ENM 503 Block 2 Lesson 7 – Matrix Methods

Slides:



Advertisements
Similar presentations
BAI CM20144 Applications I: Mathematics for Applications Mark Wood
Advertisements

Elementary Linear Algebra Anton & Rorres, 9th Edition
Applied Informatics Štefan BEREŽNÝ
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
1.5 Elementary Matrices and a Method for Finding
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Systems of Linear Equations and Matrices
MF-852 Financial Econometrics
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Chapter 2 Basic Linear Algebra
Matrices and Systems of Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Chapter 2 Matrices Definition of a matrix.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Economics 2301 Matrices Lecture 13.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
化工應用數學 授課教師: 郭修伯 Lecture 9 Matrices
Matrices and Determinants
Chapter 5 Determinants.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
1 Operations with Matrice 2 Properties of Matrix Operations
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Compiled By Raj G. Tiwari
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
ECON 1150 Matrix Operations Special Matrices
 Row and Reduced Row Echelon  Elementary Matrices.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Matrix Inversion.
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
Chap. 2 Matrices 2.1 Operations with Matrices
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Matrices & Determinants Chapter: 1 Matrices & Determinants.
Fin500J Mathematical Foundations in Finance Topic 1: Matrix Algebra Philip H. Dybvig Reference: Mathematics for Economists, Carl Simon and Lawrence Blume,
8.1 Matrices & Systems of Equations
1 Ch. 4 Linear Models & Matrix Algebra Matrix algebra can be used: a. To express the system of equations in a compact manner. b. To find out whether solution.
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Introduction and Definitions
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
Matrices and Determinants
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrices, Vectors, Determinants.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
Matrices Introduction.
MAT 322: LINEAR ALGEBRA.
Boyce/DiPrima 10th ed, Ch 7.2: Review of Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
7.7 Determinants. Cramer’s Rule
Lecture 2 Matrices Lat Time - Course Overview
Systems of First Order Linear Equations
DETERMINANT MATRIX YULVI ZAIKA.
Elementary Matrix Methid For find Inverse
Everything you would want to know about the matrix and then some…
Review of Matrix Algebra
Matrices Introduction.
Presentation transcript:

ENM 503 Block 2 Lesson 7 – Matrix Methods Everything you would want to know about The Matrix and then some… this way Narrator: Charles Ebeling

These only begin to show the potential of the matrix. Applications Solving systems of linear equations Regression analysis Markov processes Linear programming Nonlinear optimization Queuing Reliability Inventory – MRP systems These only begin to show the potential of the matrix.

Matrix and Vectors A matrix is a rectangular array of elements which are operated on as a single object. The elements are often numbers but could be any mathematical object provided that it can be added and multiplied with acceptable properties. Vectors are strongly related to matrices, they can be considered as a matrix having only a single row (row vector) or a single column (column vector).

Examples X is a 1 x 4 row vector, Y is a 3 x 1 column vector A is a 3 x 3 matrix, and B is a 3 x 2 matrix

An m x n Matrix

Vector Matrix Operations Vectors and matrices can be added (or subtracted) and multiplied when their dimensions are in agreement. To add or subtract two vectors or two matrices having the same dimensions, just add their corresponding elements A ± B = {aij ± bij} To multiply two vectors, multiply corresponding elements and add. The result is a scalar (dot product). Both vectors must have the same number of elements.

Vector Example

Example Matrix Addition and scalar multiplication

Matrix Multiplication If A is an m x n matrix and B is an n x p matrix, then C = A x B is an m x p matrix where The i,j element of C is found by multiplying the ith row of A times the jth column of B (equivalent to a vector multiplication).

Example Matrix Multiplication

Properties of Matrix Operations A (BC) = (AB) C A (B+C) = AB + AC (B+C) A = BA + CA however A B  B A (both are defined only if A and Bare n x n matrices) and A A = A2 (only if a square matrix, i.e dimension n x n)

An interesting sidelight A · B = 0 does not necessarily imply that A = 0 or B = 0 For example: Yes, that is really interesting.

The Transpose If A = {ajk} then At = {akj} Each row of A becomes a column of At If A = At, then A is a symmetric matrix; i.e. aij = aji

Properties of the Transpose (At)t = A (A + B)t = At + Bt (kA)t = k At (AB)t = Bt At Quick student exercise: Create an example to illustrate each property Quick student exercise: Show that AtA is symmetric using the above properties

Some Special Matrices The Identity Matrix (n x n) The Null Matrix

More Special Matrices Upper triangular Lower Triangular all zeros Now ain’t that special!

The Diagonal Matrix main diagonal

The Determinant For a square (n x n) matrix A, the determinant is defined as a scalar computed from the sum of n! terms of the form (  a1i a2j … anr) ; the sign alternating and depending upon the permutation.

A 2 x 2 Determinant

A 3 x 3 determinant + -

Properties of Determinants 1. |A| = |At| 2. If ajk = 0 for all k or for all j, |A| = 0 3. Interchange any 2 rows, A’: |A| = - |A’| 4. For scalar k, |kA| = k |A| 5. If there are 2 identical rows or columns, |A| = 0 6. |AB| = |A| |B| 7. If A is triangular, Quick student exercise: Create an example to illustrate each property

Cofactors Minor – determinant of order (n-1) obtained by removing the jth row and kth column of A Cofactor: (-1)j+k Minorjk = Ajk Cofactor matrix - A matrix with elements that are the cofactors, term-by-term, of a given square matrix – [Ajk] Adjoint Matrix = transpose of the cofactor matrix – [Ajk]t

Example Cofactor Matrix

The Adjoint Matrix

Expansion by Cofactors (2 x 2) I call this technique the Laplace expansion. Pierre-Simon Laplace Born: 23 March 1749 in Normandy, France Died: 5 March 1827 in Paris, France

Expansion by Cofactors (3x3) Quick student exercise: Complete the example below (i.e. express algebraically)

Example Expansion by Cofactors (3x3) Expanding about row 1: Quick student exercise: Expand about column 2 and show that the same result is obtained.

Matrix Inverse A square matrix A may have an inverse matrix A-1 such that: If such a matrix exists, then A is said to be nonsingular or invertible. The inverse matrix A-1 will be unique. A square matrix A is said to be singular if |A| = 0. If |A|  0, then A is said to be nonsingular

How did you ever find A-1? A lucky guess or somethin? The Necessary Example Quick student exercise: Show A-1 A = I for this example. How did you ever find A-1? A lucky guess or somethin?

Finding A-1 for a 2 x 2 solve for x, y, z, and w in terms of a, b, c, and d. (we will come back to this problem and solve it shortly)

Properties of Inverses How much more of this can I absorb?

Finding Inverses Method 1 – Adjoint Matrix Method 2 – Gauss-Jordan Elimination Method Elementary Row Operations (ERO) define an augment matrix [A:I] where I is an n x n identity matrix Perform ERO on [A:I] to obtain [I:A-1] Did you know: If |A| = 0, then A-1 does not exist!

Method 1: The Adjoint Method

Method 2 – The Gauss-Jordan Way This is our way of doing it. We do it with elementary row operations. Carl Friedrich Gauss: 1777-1855  Wilhelm Jordan 1838-1922 Gaussian Elimination

Elementary Row Operations (ERO) Interchange ith and jth row: Ri  Rj Multiply the ith row by a nonzero scalar Ri  kRi Replace the ith row by k times the jth row plus the ith row Ri  kRj + Ri

The Augmented Matrix [ A : I ] [ I : A-1] ERO’s need an example?

The Example

Matrices and Systems of Linear Equations Ax = b

The Augmented Matrix Ax = b [ A : I : b ] [ I : A-1 : b’ ] x = b’ ERO’s need an example? Did you know: implied in A-1 are all the ERO’s (arithmetic) to go from A to A-1

An Example R1  R1 /3 R2  R2 – R1 R2  3 R2 R1  R1 – (5/3)R2

Solving systems of linear eqs. using the matrix inverse Matrix solution: AX = b A-1 (AX) = (A-1A)X = IX =X = A-1b

Example System or Eqs

Cramer’s Rule for solving systems of linear equations I do it with determinants! Given AX = b Let Ai = matrix formed by replacing the ith column with b, then Gabriel Cramer Born: 31 July 1704 in Geneva, Switzerland Died: 4 Jan 1752 in Bagnols-sur-Cèze, France

An Example of Cramer’s Rule

Cramer solving a 3 x 3 system

Let’s use Cramer’s rule! Finding A-1 for a 2 x 2 solve for x, y, z, and w in terms of a, b, c, and d. Let’s use Cramer’s rule! A rare moment of inspiration among a group of ENM students.

Finding A-1 for a 2 x 2

Finding A-1 for a 2 x 2

Finding A-1 for a 2 x 2 I get it. To find the inverse you swap the two diagonal elements, change the sign of the two off-diagonal elements and divide by the determinant.

A Numerical Example

Properties of Triangular Matrices Triangular matrices have the following properties (prefix ``triangular'' with either ``upper'' or ``lower'' uniformly): The inverse of a triangular matrix is a triangular matrix. The product of two triangular matrices is a triangular matrix. The determinant of a triangular matrix is the product of the diagonal elements. A matrix which is simultaneously upper and lower triangular is diagonal The transpose of a upper triangular matrix is a lower triangular matrix and vice versa

Determinants by Triangularization R’2  -5/4 R1 + R2 R’3  -4 R2 + R3

Solving Systems of Equations the Easy Way There must be an easier way. Why not use Excel with VBA? to Excel with VBA…