Lecture Notes Matrices
Lecture Notes Matrices
Introduction
𝑘11 ⋯ 𝑘1𝑚
1 2
Eg. ( ) is a 2x2 matrix, ( ⋮ ⋱ ⋮ ) is a n rows x m columns matrix.
3 4 𝑘 𝑛1 ⋯ 𝑘𝑛𝑚
A square matrix has same number of rows and columns
An identity matrix is a square matrix with elements of leading diagonal equal to 1, denoted by 𝑰𝒌
1 0
where k is the size, eg 𝑰𝟐 = ( ).
0 1
Eg. Vector, Linear Equation Systems
To add or subtract matrices, add or subtract the corresponding elements in each matrix.
1 2 5 6 1+5 2+6 6 8
Eg. ( )+( )=( )=( )
3 4 7 8 3+7 4+8 10 12
To multiply or divide a matrix by a scalar, multiply or divide every element in the matrix by the scalar.
1 2 2 4
Eg. ( )×2= ( )
3 4 6 8
2 4 1 2
Eg. ( )÷2=( )
6 8 3 4
Exercise A
Matrix Multiplication
2 matrices can be multiplied together if the number of columns of the 1st matrix is the same as the
number of rows of the 2nd matrix.
𝒃𝟏𝟏 𝑏12
𝒂𝟏𝟏 𝒂𝟏𝟐 𝒂𝟏𝟑 𝒄 𝑐12
Eg. ( 𝑎 𝑎22 𝑎23 ) × (𝒃𝟐𝟏 𝑏22 ) = ( 𝑐𝟏𝟏 𝑐22 )
21 21
𝒃𝟑𝟏 𝑏32
Where:
𝑐𝑖𝑗 = ∑𝑚
𝑒=1 𝑎𝑖𝑒 𝑏𝑒𝑗 ,
and so on.
Associative Properties
(AB)C = A(BC)
Exercise B
Determinant
Exercise C
Inverting a 2x2 Matrix
Exercise D
Review Exercise