1 7-Matrices
1 7-Matrices
7 Matrices
AI HL
1.7.1 Introduction to Matrices
Introduction to Matrices
Matrices are a useful way to represent and manipulate data in order to model situations. The elements
in a matrix can represent data, equations or systems and have many real-life applications.
What are matrices?
A matrix is a rectangular array of elements (numerical or algebraic) that are arranged in rows and
columns
The order of a matrix is de ned by the number of rows and columns that it has
fi
The order of a matrix with m rows and n columns is m × n
A matrix A can be de ned by A = ( a ) where i = 1, 2, 3, . . ., m and j = 1, 2, 3, . . ., n and
ij
fi
a ij refers to the element in row i , column j
Exam Tip
Make sure that you know how to enter and store a matrix on your GDC
Page 1 of 10
For more help visit our website www.exampaperspractice.co.uk
Worked example
⎛⎜ 5 −3 7 ⎞⎟
Let the matrix A = ⎜⎜ ⎟⎟
⎝ −1 2 4 ⎠
a) Write down the order of A .
Exam Tip
Make sure that you know how to add and subtract matrices on your GDC for speed or for
checking work in an exam!
Page 2 of 10
For more help visit our website www.exampaperspractice.co.uk
Worked example
⎛⎜ −4 2 ⎞⎟ ⎛⎜ 2 6 ⎞⎟
⎜⎜ ⎟⎟ ⎜⎜ ⎟⎟
Consider the matrices A = ⎜⎜ 7 3 ⎟⎟ , B = ⎜⎜ 5 −9 ⎟⎟ .
⎜⎜ ⎟⎟ ⎜⎜ ⎟⎟
⎝ 1 −5 ⎠ ⎝ −2 −3 ⎠
a) Find A + B .
b) Find A − B .
Page 3 of 10
For more help visit our website www.exampaperspractice.co.uk
Matrix Multiplication
Matrices can also be multiplied either by a scalar or by another matrix.
How do I multiply a matrix by a scalar?
Multiply each element in the matrix by the scalar value
kA = (ka ) ij
The resultant matrix is of the same order as the original matrix
Multiplication by a negative scalar changes the sign of each element in the matrix
How do I multiply a matrix by another matrix?
To multiply a matrix by another matrix, the number of columns in the rst matrix must be equal to
fi
the number of rows in the second matrix
If the order of the rst matrix is m × n and the order of the second matrix is n × p , then the
fi
order of the resultant matrix will be m × p
The product of two matrices is found by multiplying the corresponding elements in the row of
the rst matrix with the corresponding elements in the column of the second matrix and nding
fi
fi
the sum to place in the resultant matrix
⎡a b c⎤ ⎤ ⎡g h
E.g. If A = ⎢ ⎥, B = ⎢ i j
⎥
⎣ d e f ⎦ ⎥ ⎢
⎦ ⎣k l
⎡ ( ag + bi + ck )
( ah + bj + cl ) ⎤
then AB = ⎢ ⎥
⎣ (dg + ei + fk )
(dh + ej + fl ) ⎦
⎡ (ga + hd ) (gb + he) (gc + hf ) ⎤
then BA = ⎢ (ia + jd ) (ib + je ) (ic + jf ) ⎥
⎢ ⎥
⎣ (ka + ld ) (kb + le) (kc + lf ) ⎦
How do I square an expression involving matrices?
If an expression involving matrices is squared then you are multiplying the expression by itself, so
write it out in bracket form rst, e.g. (A + B ) 2 = (A + B ) (A + B )
fi
remember, the regular rules of algebra do not apply here and you cannot expand these
brackets, instead, add together the matrices inside the brackets and then multiply the
matrices together
What are the properties of matrix multiplication?
AB ≠ BA (non-commutative)
A ( BC ) = ( AB ) C (associative)
A ( B + C ) = AB + AC (distributive)
( A + B ) C = AC + BC (distributive)
AI = IA = A (identity law)
AO = OA = O , where O is a z ero matrix
Powers of square matrices: A 2 = AA , A 3 = AAA etc.
Exam Tip
Make sure that you are clear on the properties of matrix algebra and show each step of your
calculations
Page 4 of 10
For more help visit our website www.exampaperspractice.co.uk
Worked example
⎡ 4 2 −5 ⎤ ⎡ 5 1⎤
Consider the matrices A = ⎢ −3 8 1 ⎥ and B = ⎢ −2 5 ⎥ .
⎢ ⎥ ⎢ ⎥
⎣ −1 −2 2 ⎦ ⎣ 9 7⎦
a) Find AB .
Page 5 of 10
For more help visit our website www.exampaperspractice.co.uk
1.7.3 Determinants & Inverses
Determinants
What is a determinant?
The determinant is a numerical value (positive or negative) calculated from the elements in a
matrix and is used to nd the inverse of a matrix
fi
You can only nd the determinant of a square matrix
fi
The method for nding the determinant of a 2 × 2 matrix is given in your formula booklet:
fi
⎛ a b ⎞⎟
A = ⎜⎜⎜ ⎟⎟ ⇒ det A = A = ad − bc
⎝c d ⎠
You only need to be able to nd the determinant of a 2 × 2 matrix by hand
fi
For larger n × n matrices you are expected to use your GDC
The determinant of an identity matrix is det ( I ) = 1
The determinant of a zero matrix is det ( O ) = 0
When nding the determinant of a multiple of a matrix or the product of two matrices:
fi
det (kA ) = k 2 det ( A ) (for a 2 × 2 matrix)
det ( AB ) = det ( A ) × det ( B )
Worked example
⎛⎜ 3 −6 ⎞⎟
Consider the matrix A = ⎜⎜ ⎟⎟ , where p ∈ℝ is a constant.
⎝ p 7 ⎠
a) Given that det A = − 3 , nd the value of p .
Page 6 of 10
For more help visit our website www.exampaperspractice.co.uk
Inverse Matrices
How do I nd the inverse of a matrix?
fi
The determinant can be used to nd out if a matrix is invertible or not:
fi
If det A ≠ 0 , then A is invertible
If det A = 0 , then A is singular and does not have an inverse
The method for nding the inverse of a 2 × 2 matrix is given in your formula booklet:
fi
⎛ a b ⎞⎟ 1 ⎛⎜ d −b ⎞⎟
A = ⎜⎜⎜ ⎟⎟ ⇒ A −1 = ⎜⎜ ⎟⎟, ad ≠ bc
⎝c d ⎠ det A ⎝ − c a ⎠
You only need to be able to nd the inverse of a 2 × 2 matrix by hand
fi
For larger n × n matrices you are expected to use your GDC
The inverse of a square matrix A is the matrix A −1 such that the product of these matrices is an
identity matrix, AA −1 = A −1 A = I
As a result of this property:
AB = C ⇒ B = A −1 C (pre-multiplying by A −1 )
BA = C ⇒ B = CA −1 (post-multiplying by A −1 )
Page 7 of 10
For more help visit our website www.exampaperspractice.co.uk
Worked example
⎛⎜ 4 −2 ⎞⎟ ⎛ k 6 ⎞⎟ ⎛ 18 18 ⎞⎟
Consider the matrices P = ⎜⎜ ⎟⎟ , Q = ⎜⎜⎜ ⎟⎟ and R = ⎜⎜⎜ ⎟⎟ , where k is a
⎝ 8 2 ⎠ ⎝ −5 3 ⎠ ⎝ 6 54 ⎠
constant.
a) Find P −1 .
Page 9 of 10
For more help visit our website www.exampaperspractice.co.uk
Worked example
a) Write the system of equations
⎧⎪
⎪⎪ x + 3y − z = − 3
⎪⎪
⎨⎪ 2x + 2y + z = 2
⎪⎪
⎪⎪ 3x − y + 2z = 1
⎩
in matrix form.
Page 10 of 10
For more help visit our website www.exampaperspractice.co.uk