Академический Документы
Профессиональный Документы
Культура Документы
Matrices
A matrix is a rectangular arrangement
of numbers in rows and columns. Rows
run horizontally and columns run
vertically.
The dimensions of a matrix are stated
“m x n” where ‘m’ is the number of
rows and ‘n’ is the number of columns.
Equal Matrices
Two matrices are considered equal
if they have the same number of
rows and columns (the same
dimensions) AND all their
corresponding elements are exactly
the same.
Types of Matrices
1. Rectangular Matrix 7. Row Matrix
2. Square Matrix 8. Column Matrix
3. Diagonal Matrix 9. Upper Triangular
4. Scalar Matrix Matrix
5. Identity Matrix 10. Lower Triangular
6. Null Matrix
Matrix
11. Sub matrix.
Matrix Addition
You can add or subtract matrices if
they have the same dimensions (same
number of rows and columns).
To do this, you add (or subtract) the
corresponding numbers (numbers in
the same positions).
Matrix Addition
Example:
2 4 1 0 3 4
5 0 2 1 7 1
1 3 3 3 2 0
Properties of Matrix Addition
Matrix addition is commutative i.e.
A+B = B+A
Matrix addition is associative i.e.
(A+B)+C = A+(B+C)
Matrix addition is distributive w.r.t. scalar K
K(A+B) = KA+KB
Scalar Multiplication
To do this, multiply each entry in
the matrix by the number outside
(called the scalar). This is like
distributing a number to a
polynomial.
Scalar Multiplication
Example:
2 4 8 16
4 5 0 20 0
1 3 4 12
Matrix Multiplication
21 33 11
Matrix Multiplication
Notice the dimensions of the matrices and
their product.
2 3 11 8 15
5 6 1 2 0
3 13 34 30
4 5
9 7 12 46 35
3x2
__ 2 x 3__ 3 x 3__
__
Matrix Multiplication
Another example:
2 1 8
9 0 5 45
2
10 5 60
3x2 2x1 3x1
Properties of Matrix
Multiplication
Matrix Multiplication is not commutative,
i.e. AB ≠ BA
Matrix Multiplication is associative, i.e.
A(BC) = (AB)C
Matrix Multiplication is distributive, i.e.
A(B+C) = AB+AC
Special Types of Matrices
Idempotent Matrix
Nilpotent Matrix
Involutory Matrix
Transpose of Matrix
Let A be any matrix. The matrix obtained
by interchanging rows and columns of A is
called the transpose of A and is denoted
by A’ or AT.
Properties of Transpose of
Matrices
1. The transpose of transposed matrix is
equal to the matrix itself, i.e. (A’)’ = A.
2. The transpose of the sum of the two
matrices is equal to the transpose of the
matrices, i.e. (A+B)’ = A’+B’.
3. The transpose of the product of two
matrices is equal to the product of their
transposes in the reverse order, i.e.
(AB)’ = B’A’.
Matrix Determinants
1 3
1 0 3 1 2 3 2
-½ 0
Determinant of a 3x3 matrix
Imagine crossing out the first row. Now take the double-crossed element. . .
And the first column. And multiply it by the determinant of the
remaining 2x2 matrix
-3 8 ¼
2 0 -¾
3 0 11
3 4 180
4 180 11
Determinant of a 3x3 matrix
Now keep the first row crossed. •Now take the negative of the double-
Cross out the second column. crossed element.
•And multiply it by the determinant of the
remaining 2x2 matrix.
•Add it to the previous result.
-3 8 ¼
2 0 -¾
3 0 11 3 4 180 8 211 3 4 4
4 180 11
Determinant of a 3x3 matrix
Finally, cross out first •Now take the double-crossed element.
row and last column. •Multiply it by the determinant of the
remaining 2x2 matrix.
•Then add it to the previous piece.
-3 8 ¼
1 2 180 0 4 695
4
4 180 11
Computation
Method of Cofactors
Also known as the expansion of minors
Method of Minors
Determinant of a 2 x 2
matrix is difference in
products of diagonal
elements.
4 1
A A 4 2 1 1 7
1 2
General form for 2 x 2 matrix
a b
A Then,
c d
A ad - bc
What about larger matrices?
Use method of cofactors
Need to define a new term, “minor”
– Minor of an element aij is the determinant of
the matrix formed by deleting the ith row and
jth column
Example
1 2 3 a11 a12 a13
A 2 2 1 a21 a22 a23
3 1 4 a31 a23 a33
Minor of a12 = 2 is determinant of the 2 x 2
matrix obtained by deleting the 1st row and 2nd
column
2 1
83 5
3 4
Minor of a13 = 3 is
2 2
2 6 4
3 1
Cofactors
Definition
– The cofactor of aij = (-1)i+j x minor
Evaluate cofactors for first three elements
of the 3 x 3 matrix
A11(-1)1+1 =1
A12(-1)1+2 =-1
A13(-1)1+3 =1
Pattern of signs
+ - +
- + -
+ - +
Matrix of Cofactors
Determinant of A = -15
Determinants of 4 x 4 matrices
Computational energy increases as order
of matrix increases
Use pivotal condensation (computer
algorithm)
Key Properties of Determinant
1. Determinant of matrix and its transpose
are equal.
2. If any two adjacent rows(columns) of a
determinant are interchanged, the value of
the determinant changes only in sign.
3. If any two rows or two columns of a
determinant are identical or are multiple of
each other, then the value of the
determinant is zero.
4. If all the elements of any row or column of
a determinant are zero, then the value of
the determinant is zero.
5. If all the elements of any row (or column) of a
determinant are multiplied by a quantity (K), the
value of the determinant is multiplied by the
same quantity.
6. If each element of a row (or column) of a
determinant is sum of two elements, the
determinant can be expressed as the sum of
two determinants of the same order.
7. The addition of a constant multiple of one row
(or column) to another row (or column) leave
the determinant unchanged.
8. The determinant of the product of two matrices
of the same order is equal to the product of
individual determinants.
Adjoint of a Matrix
If A is any square matrix, then the adjoint
of A is defined as the transpose of the
matrix obtained by replacing the element
of A by their corresponding co-factors.
Adj.A = Transpose of the cofactor matrix
Inverse Matrix
Inverse of square matrix A is a matrix A-1
that satisfies the following equation
– AA-1 = A-1A = I
Steps to success in Matrix
Inversion
If the determinant = 0, the inverse does
not exist if the matrix is singular.
Replace each element of matrix A, by it’s
minor
Create the matrix of cofactors
Transpose the matrix of cofactors
– Forms the adjoint
Divide each element of the adjoint by the
determinant of A.
Matrix Inversion
Pre multiplying both sides of the last equation by
A-1, and using the result that A-1A=I,
we can get
C' 1 1 1
A , or A adj A
A A
1
1
xA d (adj A) d method of inverse
A
1
x1 A1 Cramer's Rule
A
d
i 1
i Ci1
1
x1 A1
A
Cramer’s Rule
In general,
an1 an 2 d n ann
Cramer’s Rule
Find the solution of 5 x1 3 x2 30
6 x1 2 x2 8
5 3 30 3 5 30
A 28 A1 84 A2 140
6 2 8 2 6 8
A1 84
x1 3
A 28
A2 140
x1 5
A 28
Cramer’s Rule
7 x1 x2 x3 0
10 x1 2 x2 x3 8 ♫ Work this out!!!!
6 x1 3x2 2 x3 7