Introduction To Matrices
Introduction To Matrices
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
Key Terms
What is a Matrix
Matrices which have a single row are called row vectors, and those
which have a single column are called column vectors. A matrix which
has the same number of rows and columns is called a square matrix. In
some contexts, such as computer algebra programs, it is useful to
consider a matrix with no rows or no columns, called an empty matrix.
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
Key Terms
A + B = B + A
(A + B) + C = A + (B + C)
Adding matrices is very simple. Just add each element in the first matrix
to the corresponding element in the second matrix.
1 2 3 10 20 30 11 22 33
( ) + ( ) = ( )
4 5 6 40 50 60 44 55 66
10 −20 30 1 −2 3 9 −18 27
( ) − ( ) = ( )
40 50 60 4 −5 6 36 55 54
Once again, note that the resulting matrix has the same dimensions as
the originals, and that you cannot subtract two matrices that have
different dimensions. Be careful when subtracting with signed numbers.
Scalar Multiplication
1 2 3 3 6 9
3 ⋅ ( ) = ( )
4 5 6 12 15 18
The resulting matrix has the same dimensions as the original. Scalar
multiplication has the following properties:
Identity: 1M = M
Null: 0M = 0
Matrix Multiplication
When multiplying matrices, the elements of the rows in the first matrix
are multiplied with corresponding columns in the second matrix.
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
Key Terms
When multiplying matrices, the elements of the rows in the first matrix
are multiplied with corresponding columns in the second matrix. Each
entry of the resultant matrix is computed one at a time.
For two matrices the final position of the product is shown below:
⎢ ⋅ ⋅ ⎥ ⋅ b12 b13 ⎢⋅ ⋅ ⋅ ⎥
⎢ ⎥[ ] = ⎢ ⎥
⎢a a32 ⎥ ⋅ b22 b23 ⎢⋅ ⋅ x33 ⎥
31
⎣ ⎦ ⎣ ⎦
⋅ ⋅ ⋅ ⋅ ⋅
B
b1,1 b1,2 b1,3
b2,1 b2,2 b2,3
a1,1 a1,2
a2,1 a2,2
A a3,1 a3,2
a4,1 a4,2
1 2 5 6
A = ( ) B = ( )
3 4 7 8
Start with producing the product for the first row, first column element.
Take the first row of Matrix A and multiply by the first column of Matrix
B : The first element of A times the first column element of B, plus the
second element of A times the second column element of B.
(1 ⋅ 5) + (2 ⋅ 7) () + ()
AB = ( )
() + () () + ()
Continue the pattern with the first row of A by the second column of B,
and then repeat with the second row of A.
(1 ⋅ 5) + (2 ⋅ 7) (1 ⋅ 6) + (2 ⋅ 8)
AB = ( )
(3 ⋅ 5) + (4 ⋅ 7) (3 ⋅ 6) + (4 ⋅ 8)
(5 + 14) (6 + 16)
AB = ( )
(15 + 28) (18 + 32)
(19) (22)
AB = ( )
(43) (50)
The Identity Matrix
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
Key Terms
Note that the definition of [I][I] stipulates that the multiplication must
commute, that is, it must yield the same answer no matter in which order
multiplication is done.
What matrix has this property? A first guess might be a matrix full of 1s,
but that does not work:
1 2 1 1 3 3
( )( ) = ( )
3 4 1 1 7 7
1 1
So ( ) is not an identity matrix.
1 1
The matrix that does work is a diagonal stretch of 1s, with all other
elements being 0.
1 3 1 0 1 3
( )( ) = ( )
2 4 0 1 2 4
1 0
So ( ) is the identity matrix for 2 × 2 matrices.
0 1
2 π −3 2 π −3
⎛ ⎞⎛1 0 0
⎞ ⎛ ⎞
1 1
⎜5 −2
2
⎟⎜0 1 0⎟ = ⎜5 −2
2
⎟
⎝ ⎠⎝ ⎠ ⎝ ⎠
9 8 8.3 0 0 1 9 8 8.3
1 0 0
⎛ ⎞
So ⎜ 0 1 0⎟ is the identity matrix for 3 × 3 matrices.
⎝ ⎠
0 0 1