EE234 - Lec 6 - Matrices - Notes
EE234 - Lec 6 - Matrices - Notes
1. Size of a Matrix
2. Entry of a Matrix
3. Principal Diagonal (Main Diagonal)
4. Leading Entry
Size of a matrix
1
0 1 2
C 2 x3 D 2 3 x 1
3 4 5 m n
3
m n
Entry of a matrix
a11 π 0 e
x
B 3 j a23 e
a31 ln 2 3 j4 x2 y2
Principal Diagonal (Main Diagonal)
The diagonal from the upper left to the lower right is called the
principal diagonal or main diagonal.
π 0 e
All entries in the said diagonal x
3 j e
are called diagonal entries.
ln 2 j4 x2
Leading Entry
The first entry that is located at the first row, first column is
called the leading entry.
π 0 e
x
3 j e
ln 2 j4 x2
Classification of Matrices
1. Square Matrix
2. Diagonal Matrix
3. Identity Matrix
4. Scalar Matrix
5. Zero Matrix
6. Vector
Classification of Matrices
1. Square Matrix
A matrix whose number of rows m is equal to the
number of columns n.
1 0 2
9 3 6 3
m
x3
n
7 5 4
Classification of Matrices
2. Diagonal Matrix
A diagonal matrix is a square matrix with all zero
values except for the aij value for all i = j.
2 0 0
0 3 0
0 0 1
Classification of Matrices
3. Identity Matrix
An identity matrix is a diagonal matrix with all non-
zero entries equal to 1.
1 0 0
0 1 0
0 0 1
Classification of Matrices
4. Scalar Matrix
A scalar matrix is a diagonal matrix with all non-zero
entries equal to some other constant.
8 0 0
0 8 0
0 0 8
Classification of Matrices
5. Zero Matrix
A zero matrix is a square matrix whose entries are all
equal to zero.
0 0 0
0 0 0
0 0 0
Classification of Matrices
6. Vector
A vector is a matrix with only one column or one row.
Its entries are called the components of the vector.
2
5
3 2 1 4
1. Equality of Matrices
2. Addition and Subtraction of Matrices
3. Multiplication of Matrices
Algebraic Operations of Matrices
1. Equality of Matrices
Two matrices are equal iff they have same number of rows
and columns and their corresponding entries are equal.
2 1 3 2 1 3
A 5 3 4 B = 5 3 4
7 6 1 7 6 1
Algebraic Operations of Matrices
2 1 3 8 2 3
A 5 3 4 B = 6 3 1
7 6 1 4 7 5
Algebraic Operations of Matrices
Ex. Evaluate: A + B
2 1 3 8 2 3
A 5 3 4 B = 6 3 1
7 6 1 4 7 5
Algebraic Operations of Matrices
Solution:
2 1 3 8 2 3
A 5 3 4 B = 6 3 1
7 6 1 4 7 5
2 1 3 8 2 3 2 8 1 2 3 (3)
A B 5 3 4 6 3 1 5 6 3 3 4 1
7 6 1 4 7 5 7 4 6 7 1 5
10 1 0
A B 11 6 5
11 13 6
Algebraic Operations of Matrices
3. Multiplication of Matrices
3.1 Scalar Product
3. Multiplication of Matrices
3.1 Scalar Product
Multiply the scalar to each element of the matrix.
Example:
2 4 1
r 3 A
3 1 2
Algebraic Operations of Matrices
2 4 1
r 3 A
3 1 2
Algebraic Operations of Matrices
Solution:
2 4 1
r 3 A
3 1 2
3. Multiplication of Matrices
3.2 Vector Product
It is only possible if the number of columns “n” of the
left-hand matrix is equal to the number of rows “m” of the right-
hand matrix.
Algebraic Operations of Matrices
3. Multiplication of Matrices
Laws for Matrix Multiplication (Scalar):
c(A + B) = cA + cB
(c + k)A = cA + kA
c(kA) = (ck)A
1A = 0
where: c, k = scalar
Algebraic Operations of Matrices
Thus, generally
A x BBx A
Not Commutative!
Algebraic Operations of Matrices
1 2 4 3
A B=
3 4 1 2
2x2 2x2
Possible!
Resulting matrix: 2 x 2
Algebraic Operations of Matrices
3 1
2 4 1
C D = 2 4
3 1 2 1 2
2x3
3x2
Possible!
Resulting matrix: 2 x 2
Algebraic Operations of Matrices
1
E 2 F = 5 2 7
1 1x3
3x1
Possible!
Resulting matrix: 3 x 3
Algebraic Operations of Matrices
3 1
2 4 1
A B = 2 4
3 1 2 1 2
2x3
3x2
Algebraic Operations of Matrices
Solution:
3 1
2 4 1
A B = 2 4
3 1 2 1 2
2x3
3x2
A: n = 3, B: m = 3, nA mB
A: n = 3, B: m = 3, nA mB
A x B m 2
n2
Algebraic Operations of Matrices
Ex. Evaluate A x B (vector product).
3 1 Note: The resulting product is
2 4 1 the “m” of the left-hand matrix
A B = 2 4
3 1 2 1 2
by the “n” of the right-hand
2x3
matrix.
3x2
A: n = 3, B: m = 3, nA mB
3 1
2 4 1
B = 2 4 A
1 2 3 1 2
2x3
3x2
Algebraic Operations of Matrices
Solution:
3 1
2 4 1
B = 2 4 A
1 2 3 1 2
2x3
3x2
B: n = 2, A: m = 2, nB mA
B x A 3 x 3 matrix
Other Operations on Matrices
2 1 3
A 5 3 4
7 6 1
Other Operations on Matrices
Solution:
2 1 3 2 5 7
T
A 5 3 4 A 1 3 6
7 6 1 3 4 1
ANSWER !
Other Operations on Matrices
Laws of Transposition:
(AT)T = A
(A + B)T = AT + BT
(cA)T = cAT
(AB)T = BTAT
Special Matrices
1. Symmetric Matrices
2. Skew-symmetric Matrices
3. Triangular Matrices
3.1 Upper Triangular
3.2 Lower Triangular
Special Matrices
1. Symmetric Matrices
- square matrices whose transpose equal the matrix
itself.
2 5 7
A 5 3 6
7 6 1
Special Matrices
2. Skew-symmetric Matrices
- square matrices whose transpose equals the negative
of the matrix.
0 1 3
B 1 0 2
3 2 0
Special Matrices
3. Triangular Matrix
A triangular matrix has zeros in all positions above or
below the diagonal.
2 0 0
0 3 0
0 0 1
Special Matrices
2 5 7
0 3 6
0 0 1
Special Matrices
2 0 0
5 3 0
7 6 1
Other Operations on Matrices
2. Determinant of a Matrix
The determinant of a matrix is a scalar calculated from a
square matrix. The determinant is indicated by enclosing the
matrix by vertical lines.
Properties of Determinant
0 0 0 6 0 5
2 4 1 0 2 0 1 0
9 7 3 9 0 3
Properties of Determinant
1 3 4 2 2 5
2 4 1 0 2 2 1 0
1 3 4 9 9 3
Properties of Determinant
2 0 0
0 3 0 2 3 4 24
0 0 4
Properties of Determinant
2 5 7 2 1 8
1 3 5 5 3 6
8 6 4 7 5 4
Properties of Determinant
2 5 7 2 5x2 7 2 5 7
1 3 5 1 3x2 5 2 1 3 5
8 6 4 8 6x2 4 8 6 4
Properties of Determinant
1 5 2
4 3 8 0
3 6 6
1 4 2 1 2 4
5 7 10 5 10 7
3 8 6 3 6 8
Properties of Determinant
1 4 2 1 4 2 1(3) 1 4 5
5 7 8 5 7 8 5(3) 5 7 23
3 8 6 3 8 6 3(3) 3 8 15
Determinant
Example:
Solve for x: (2nd order)
3 1
x 3 4 2 1 10
2 4
Determinant
Example:
Solve for x: (3rd order)
1 3 2
x 2 1 4
3 2 1
Determinant
Solution:
1 3 2 1 3
x 2 1 4 2 1
3 2 1 3 2
x 1 1 1 3 4 3 2 2 2
3 1 2 2 4 1 1 2 3 21
Determinant
2 1 3
2 3
A 5 3 4 Ma22
7 6 1 7 1
Determinant
Kij 1
i j
Mij
Determinant
2 1 3
A 5 3 4
7 6 1
Determinant
2 1 3
2 3
A 5 3 4 Ma22
7 6 1 7 1
Determinant
2 1 3
2 3
A 5 3 4 Ma22
7 6 1 7 1
2 3
K 1 Ma22 1 2 1 7 3 19
i j 2 2
7 1
Determinant Sign Convention:
Solution: Determine the cofactor „K‟ of a22.
2 1 3
Note: The entry itself is not
A 5 3 4
7 6 1 included in the solution.
2 3
K 1 Ma22 1 2 1 7 3 19
i j 2 2
7 1
Determinant
n i j
j 1, or n
1
2,
D aijMij
i 1
Note: i = row, j = column
Determinant
n i j
i 1, or n
1
2,
D aijMij
j 1
Note: i = row, j = column
Determinant
n i j
D 1
i or j 1
aijMij
Determinant
Example*:
Solve for x using the minor-cofactor method: (3rd order)
1 3 2
x 2 1 4
3 2 1
1 3 2
x 2 1 4
3 2 1
Solution: Minor-cofactor method:
1 3 2
x 2 1 4 Sign Convention:
3 2 1
Solution: Minor-cofactor method:
1 3 2
x 2 1 4 Sign Convention:
3 2 1
Solution:
1 3 2
x 2 1 4 Sign Convention:
3 2 1
1 4 3 2 3 2
x 1 2 3
2 1 2 1 1 4
x 1 1 8 2 3 4 3 12 2
x 21
Determinant
Example:
Solve for x: (4th order)
2 0 1 1
1 2 2 3
x
3 2 3 2
4 4 2 3
Solution:
2 0 1 1
1 2 2 3
x
3 2 3 2
4 4 2 3
Solution: Sign Convention:
2 0 1 1
x
1 2 2 3
x
3 2 3 2
4 4 2 3
2 2 3 1 2 3 1 2 3 1 2 2
x 2 2 3 2 0 3 3 2 1 3 2 2 1 3 2 3
4 2 3 4 2 3 4 4 3 4 4 2
x 84
Other Operations on Matrices
Given: Matrix A,
4.Inverse of a Matrix
The inverse of a matrix is defined as the ratio between the
adjoint and the determinant of the given matrix
Given: Matrix A,
1 3 2
A 2 1 4
3 2 1