Date: 02/01/2025
Class: #24
Syllabus Topic: Simultaneous Equations and Matrix Transformation
Title: Solving Simultaneous Equations using the Matrix Method, Transformation Matrices
Solving matrices using Simultaneous Equations
Recall: In Algebra, there are 2 methods used to solve simultaneous equations:
•
Elimination
•
Substitution
We are now going to learn the Matrix method.
Changing simultaneous equations from algebraic form to matrix form
Example 1:
Algebraic form:
2π₯ + π¦ = 0
π₯ − 3π¦ = 7
Change to matrix form:
π₯
2 1
0
) (π¦) = ( )
1 −3
7
(
Example 2:
Algebraic form:
π₯ + 4π¦ = 1
2π₯ − 3π¦ = −9
Change to matrix form:
π₯
1 4
1
) (π¦) = ( )
2 −3
−9
(
Example 3:
Algebraic form:
4π − π = 3
2π − 4π = 5
Change to matrix form:
3
4 −1 π
)( ) = ( )
5
2 −4 π
(
Note
Consider
π₯
2 1
0
) (π¦) = ( )
1 −3
7
(
in the form
2
1
1
)
−3
where π΄ = (
Now,
π΄π = π΅
[coefficient matrix]
π₯
π = (π¦)
[variable matrix]
0
π΅=( )
7
[column matrix]
π΄π = π΅
π΄−1 π΄π = π΄−1 π΅
πΌπ = π΄−1 π΅
πΏ = π¨−π π©
Worked Example 1
Solve 2π₯ + π¦ = 0
π₯ − 3π¦ = 7
Solution:
Change to matrix form:
(
π₯
2 1
0
) (π¦) = ( )
1 −3
7
in the form
π΄π = π΅
∴ π = π΄−1 π΅
Note that π¨−π is placed to the left of π© and not to the right. Remember that matrix
multiplication is NOT commutative.
Find π΄−1 :
det (π΄) = ππ − ππ
= (2)(−3) − (1)(1)
= −6 − 1
= −7
π΄−1 =
1
(πππ)
πβ
π‘
−3 −1
)
−1 2
1
= −7 (
3
1
= (71
7
7
2)
−7
π
−π
πππ(π΄) = (
−π
)
π
−3 −1
)
−1 2
=(
So, we have:
3
1
π₯
0
(π¦) = (71 7 2) ( )
−7 7
7
3
1
(7 × 0) + (7 × 7)
)
=( 1
2
(7 × 0) + (− 7 × 7)
0+1
)
=(
0 + (−2)
1
)
−2
=(
∴
π₯ = 1 and π¦ = −2
Worked Example 2
Solve π₯ + 4π¦ = 1
2π₯ − 3π¦ = −9
Solution:
Change to matrix form:
π₯
1 4
1
) (π¦) = ( )
2 −3
−9
(
in the form
π΄π = π΅
∴ π = π΄−1 π΅
1
2
where π΄ = (
Find π΄−1 :
4
).
−3
π
−π
det (π΄) = ππ − ππ
πππ(π΄) = (
−3 −4
)
−2 1
= (1)(−3) − (2)(4)
=(
= −3 − 8
= −11
1
π΄−1 = πβ
π‘ (πππ)
−3 −4
)
−2 1
1
= −11 (
3
= (11
2
11
4
11
1)
− 11
So, by rearranging, we have:
(
π₯
1 4
1
) (π¦ ) = ( )
2 −3
−9
3
4
π₯
1
(π¦) = (11 11 ) ( )
2
1
−9
−
11
11
3
4
(11 × 1) + (11 × −9)
)
=( 2
1
(11 × 1) + (− 11 × −9)
3
−π
)
π
36
− 11
9)
+
11
11
= (11
2
−3
)
1
=(
OR (“shortcut” – a way to avoid the fractions)
1
π₯
1
3 −4
(π¦ ) =
(
)( )
−9
−11 −2 1
1
−3 + 36
)
−2 − 9
1
33
)
−11
= − 11 (
= − 11 (
−3
)
1
=(
∴
π₯ = −3 and π¦ = 1
Worked Example 3
Solve 4π₯ − π¦ = 3
2π₯ − 4π¦ = 5
Solution:
Change to matrix form:
3
4 −1 π₯
)( ) = ( )
5
2 −4 π¦
(
in the form
π΄π = π΅
∴ π = π΄−1 π΅
4
2
where π΄ = (
−1
)
−4
Find π΄−1 :
det (π΄) = ππ − ππ
= (4)(−4) − (2)(−1)
= −16 − (−2)
= −14
π
−π
πππ(π΄) = (
−π
)
π
−4 1
)
−2 4
=(
π΄−1 =
1
(πππ)
πβ
π‘
−4 1
)
−2 4
1
= −14 (
2
1
− 14
2)
−7
= (71
7
So, by rearranging, we have:
(
3
4 −1 π₯
) (π¦) = ( )
5
2 −4
2
π₯
(π¦) = (71
7
1
− 14 3
2 ) (5)
−7
2
1
( × 3) + (− 14 × 5)
)
= ( 71
2
(7 × 3) + (− 7 × 5)
6
5
− 14
10)
−
7
7
= (73
1
=( 2 )
−1
OR (“shortcut” – a way to avoid the fractions)
1 −4 1 3
π₯
(π¦ ) =
(
)( )
−14 −2 4 5
−12 + 5
)
−6 + 20
1
= −14 (
1
=( 2 )
−1
∴
1
π₯ = 2 and π¦ = −1
Worked Example 4
Solve 2π₯ + π¦ = 5
2π₯ + 3π¦ = 7
Solution:
Change to matrix form:
2 1 π₯
5
)( ) = ( )
2 3 π¦
7
(
in the form
π΄π = π΅
∴ π = π΄−1 π΅
2
2
where π΄ = (
1
).
3
Find π΄−1 :
det (π΄) = ππ − ππ
= (2)(3) − (2)(1)
=6−2
=4
1
π΄−1 = πβ
π‘ (πππ)
1
= 4(
3 −1
)
−2 2
π
−π
πππ(π΄) = (
−π
)
π
3 −1
)
−2 2
=(
So, by rearranging, we have:
(
2 1 π₯
5
) (π¦ ) = ( )
2 3
7
π₯
1 3
(π¦ ) = 4 (
−2
−1 5
)( )
2
7
π₯
1
15 − 7
(π¦ ) = 4 (
)
−10 + 14
π₯
1 8
(π¦ ) = 4 ( )
4
π₯
2
(π¦ ) = ( )
1
∴
π₯ = 2 and π¦ = 1
Matrix Transformation - Introduction
2 4
Consider the matrix (
).
1 0
Size/Order of the matrix is 2 × 2.
Note: The size or order of a matrix is
stated in the form: rows by column
3
Consider the matrix ( ).
4
Size/Order of the matrix is 2 × 1.
This matrix is called a column matrix.
Identity Matrix
The 2 × 2 identity matrix is (
Recall:
The additive identity is 0.
That is, π + 0 = 0 + π = π.
1 0
).
0 1
The multiplicative identity is 1.
That is, π × 1 = 1 × π = π.
5 −2
Consider the matrix (
).
1 0
When the identity matrix is multiplied to this matrix, the matrix remains unchanged.
(
1 0 5
)(
0 1 1
(1 × 5) + (0 × 1)
−2
)=(
(0 × 5) + (1 × 1)
0
=(
5
1
(1 × −2) + (0 × 0)
)
(0 × −2) + (1 × 0)
−2
)
0
Transformation Matrices
Consider the point π΄(1,4).
1
Now, (
0
0
1
)π΄ = (
1
0
0 1
)( )
1 4
1
=( )
4
π¦
π΄(1,4)
π₯
The identity matrix leaves the point π΄ unchanged.
How about we make one of the “1” negative?
Consider the point π΄(1,4). Let π΄′ be the image of π΄.
Now,
−1 0
π΄′ = (
)π΄
0 1
−1 0 1
=(
)( )
0 1 4
−1 + 0
)
0+4
=(
−1
=( )
4
where −1 is the π₯-coordinate and 4 is the π¦-coordinate
π¦
π΄′(−1,4)
π΄(1,4)
π₯
The matrix (
−1 0
) represents a reflection in the π-axis.
0 1
Consider the point π΄(1,4).
Let π΄′ be the image of π΄.
Now,
1 0
π΄′ = (
)π΄
0 −1
1 0
1
=(
)( )
0 −1 4
1+0
=(
)
0−4
1
=( )
−4
where 1 is the π₯-coordinate and −4 is the π¦-coordinate
π¦
π΄(1,4)
π₯
π΄′(1, −4)
The matrix (
1 0
) represents a reflection in the π-axis.
0 −1
Exercise
What do these transformation matrices represent?
−1 0
)
0 1
A) (
B) (
C) (
1 0
)
0 −1
0 1
)
1 0
2 0
)
0 2
D) (
Solution:
−1 0
)
0 1
→ reflection in the π¦-axis
1 0
)
0 −1
→ reflection in the π₯-axis
0 1
)
1 0
→ reflection in the line π¦ = π₯
2 0
)
0 2
→ enlargement of scale factor 2
A) (
B) (
C) (
D) (
Enlargement
Consider the points below which connect to form a triangle.
π΄ = (1, 5)
π΅ = (1, 1)
πΆ = (3, 1)
The graph is shown below.
π¦
π΄(1, 5)
π΅(1, 1)
πΆ(3, 1)
π₯
Suppose that the points undergo an enlargement of scale factor 2.
2
0
The matrix is (
0
).
2
The image points are as follows:
2 0 1
π΄′ = (
)( )
0 2 5
2
π΄′ = ( )
10
2 0 1
π΅′ = (
)( )
0 2 1
2
π΅′ = ( )
2
2 0 3
πΆ′ = (
)( )
0 2 1
6
πΆ′ = ( )
2
π΄′(2, 10)
π¦
π΄(1, 5)
π΅′(2, 2)
π΅(1, 1)
πΆ′(6, 2)
πΆ(3, 1)
π₯
Examples of Transformation Matrices
Reflection or Flip
π₯-axis
π¦-axis
1 0
)
0 −1
(
The line π¦ = π₯
The line π¦ = −π₯
(
(
0
1
1
)
0
−1 0
)
0 1
(
0 −1
)
−1 0
Translation or Slide
π₯
Use the vector: (π¦)
where π₯ represents the movement in the horizontal
and π¦ represents the vertical movement.
Common Rotations
Rotation 90 degrees clockwise (or 270 degrees anticlockwise):
(
0 1
)
−1 0
Rotation 180 degrees:
(
−1 0
)
0 −1
Rotation 270 degrees clockwise (or 90 degrees anticlockwise):
(
0
1
−1
)
0
Rotation of Transformation Matrices
Sometimes we label the transformation matrix as “ T “.
π»π¨ = π¨′
−1 0 1
−1
)( ) = ( )
0 1 4
4
For example, (
If we want to go backwards,
Note: π΄′ is called π΄ prime.
π¨ = π»−π π¨′
Recall:
2π₯ + 3π¦ = 1
π₯ + 4π¦ = 0
In matrix form,
(
1
2 3 π₯
) (π¦ ) = ( )
0
1 4
π₯
2
(π¦) = (
1
3 −1 1
) ( )
0
4
Past Paper Question - January 2021 – Question 10(b)
A right-angled triangle, π, has vertices π(1, 1), π(3, 1) and π(3, 4). When π is
transformed by the matrix π = (
0
1
1
), the image is π′.
0
Find the coordinates of the vertices of π′.
[2]
Solution:
(
0 1
) represents a reflection in the line π¦ = π₯.
1 0
So, we need to interchange coordinates to find π′.
Therefore,
π′(1, 1)
π′(1, 3)
π′(4, 3)
Another method to obtain the points:
0 1 1
π′ = (
)( )
1 0 1
(0 × 1) + (1 × 1)
)
π′ = (
(1 × 1) + (0 × 1)
0+1
π′ = (
)
1+0
1
π′ = ( )
1
Similarly,
0 1 3
π′ = (
)( )
1 0 1
1
π′ = ( )
3
And,
0 1 3
π′ = (
)( )
1 0 4
4
π′ = ( )
3
Visually, here is the βπππ reflecting in the line π¦ = π₯ to obtain βπ′π′π′.
π¦
π(3, 4)
π(1, 3)
π′(4, 3)
π
π′
π(1,1)
π′(1,1)
π′(3,1)
π₯
Past Paper Question - January 2020 – Question 10(a)
The transformation π = (
(i)
0
π
π
) maps the point π
onto π
′ as shown in the diagram below.
0
Determine the values of π and π.
Solution:
(i)
From the graph, π
(2, −5) and π
′(5, 2).
Now,
(
0
π
π
2
5
)( ) = ( )
0 −5
2
(0 × 2) + (π × −5)
5
(
)=( )
(π × 2) + (0 × −5)
2
−5π
5
(
)=( )
2π
2
[2]
By comparing the equivalent matrices, we have
−5π = 5
2π = 2
5
2
π = −5
π=2
π = −1
π=1
Past Paper Question - January 2014 – Question 11(a)
The matrix, π, is such that
2
1
π=(
−1
)
3
(i)
Determine, π −1 , the inverse of π.
(ii)
The matrix π maps the point (π, π) onto the point (4, 9). Determine the values
[3]
of π and π.
[4]
Solution:
(i)
2 −1
π
) in the form (
1 3
π
π=(
π
)
π
Finding the π −1 :
πβ
π‘ = ππ − ππ
= (2)(3) − (−1)(1)
=6+1
=7
πππ(π) = (
π
−π
−π
)
π
3 1
)
−1 2
=(
1
π −1 = πβ
π‘ (πππ)
1
= 7(
3 1
)
−1 2
3
7
= (−1
7
(ii)
1
7
2)
7
π
4
π( ) = ( )
π
9
π
4
∴ ( ) = π −1 ( )
π
9
π
1 3
1 4
( ) = 7(
)( )
π
−1 2 9
π
1 12 + 9
( )= (
)
7 −4 + 18
π
π
1 21
( ) = 7( )
π
14
π
3
( )=( )
π
2
Past Paper Question - January 2013 – Question 11(b)
0 −1
) represents a single transformation.
1 0
The matrix π½ = (
The image of the point π under the transformation π½ is (5, 4).
Determine the coordinates of π.
Solution:
[3]
5
π½π = ( )
4
(
0 −1
5
)π = ( )
1 0
4
π=(
0 −1 −1 5
) ( )
1 0
4
πβ
π‘ = ππ − ππ
= (0)(0) − (−1)(1)
=1
π½−1 =
1
(πππ)
πβ
π‘
1 0
1
= 1(
)
−1 0
0 1
)
−1 0
=(
Therefore,
0 1 5
π=(
)( )
−1 0 4
(0 × 5) + (1 × 4)
)
π=(
(−1 × 5) + (0 × 4)
4
π=( )
−5
πππ(π½) = (
π
−π
−π
)
π
=(
0 1
)
−1 0
Past Paper Question - January 2009 – Question 11(b)
−1 0
).
0 1
The transformation π
is represented by the matrix (
0 1
).
−1 0
The transformation π is represented by the matrix (
(i)
Write a single matrix, in the form (
π
π
π
) to represent the combined
π
transformation π followed by π
.
(ii)
[2]
Calculate the image of the point (5, −2) under the combined transformation in
(b) (i) above.
[3]
Solution:
(i)
0 1
)
−1 0
π=(
and
π
=(
−1
0
π followed by π
.
This means π
π.
−1 0
0 1
)(
)
0 1 −1 0
π
π = (
=(
(ii)
0 −1
)
−1 0
(0 × 5) + (−1 × −2)
0 −1
5
)
)( ) = (
(−1 × 5) + (0 × −2)
−1 0
−2
(
0+2
)
−5 + 0
=(
2
)
−5
=(
0
)
1