Matrices - Simultaneous Equations and Matrix Transformation
Matrices - Simultaneous Equations and Matrix Transformation
Title: Solving Simultaneous Equations using the Matrix Method, Transformation Matrices
AR
Solving matrices using Simultaneous Equations
• Elimination
UN
• Substitution
Example 1:
JA
Algebraic form: 2𝑥 + 𝑦 = 0
𝑥 − 3𝑦 = 7
2 1 𝑥 0
( ) (𝑦) = ( )
1 −3 7
S.
Example 2:
M
Algebraic form: 𝑥 + 4𝑦 = 1
2𝑥 − 3𝑦 = −9
1 4 𝑥 1
( ) (𝑦) = ( )
2 −3 −9
Example 3:
Algebraic form: 4𝑚 − 𝑛 = 3
2𝑚 − 4𝑛 = 5
AR
Change to matrix form:
4 −1 𝑚 3
( )( ) = ( )
2 −4 𝑛 5
UN
Note
Consider
2 1 𝑥 0
( ) (𝑦) = ( )
1 −3 7
M
in the form 𝐴𝑋 = 𝐵
2 1
where 𝐴 = ( ) [coefficient matrix]
1 −3
JA
𝑥
𝑋 = (𝑦) [variable matrix]
0
𝐵=( ) [column matrix]
7
R
Now, 𝐴𝑋 = 𝐵
S.
𝐴−1 𝐴𝑋 = 𝐴−1 𝐵
M
𝐼𝑋 = 𝐴−1 𝐵
𝑿 = 𝑨−𝟏 𝑩
Worked Example 1
Solve 2𝑥 + 𝑦 = 0
𝑥 − 3𝑦 = 7
Solution:
2 1 𝑥 0
( ) (𝑦 ) = ( )
1 −3 7
in the form 𝐴𝑋 = 𝐵
AR
∴ 𝑋 = 𝐴−1 𝐵
Note that 𝑨−𝟏 is placed to the left of 𝑩 and not to the right. Remember that matrix
UN
multiplication is NOT commutative.
M
Find 𝐴−1 :
𝑑 −𝑏
det (𝐴) = 𝑎𝑑 − 𝑏𝑐 𝑎𝑑𝑗(𝐴) = ( )
JA
−𝑐 𝑎
−3 −1
= (2)(−3) − (1)(1) =( )
−1 2
R
= −6 − 1
= −7
S.
M
1
𝐴−1 = (𝑎𝑑𝑗)
𝑑ⅇ𝑡
1 −3 −1
= −7 ( )
−1 2
3 1
= (71 7
2)
−7
7
So, we have:
3 1
𝑥 0
(𝑦) = (71 7 2) ( )
−7 7
7
3 1
(7 × 0) + (7 × 7)
=( 1 2
)
(7 × 0) + (− 7 × 7)
AR
0+1
=( )
0 + (−2)
1
=( )
−2
∴ 𝑥 = 1 and 𝑦 = −2
UN
M
Worked Example 2
Solve 𝑥 + 4𝑦 = 1
JA
2𝑥 − 3𝑦 = −9
Solution:
R
𝑥
S.
1 4 1
( ) (𝑦) = ( )
2 −3 −9
in the form 𝐴𝑋 = 𝐵
M
∴ 𝑋 = 𝐴−1 𝐵
1 4
where 𝐴 = ( ).
2 −3
Find 𝐴−1 :
𝑑 −𝑏
det (𝐴) = 𝑎𝑑 − 𝑏𝑐 𝑎𝑑𝑗(𝐴) = ( )
−𝑐 𝑎
−3 −4
= (1)(−3) − (2)(4) =( )
−2 1
= −3 − 8
= −11
AR
1
𝐴−1 = 𝑑ⅇ𝑡 (𝑎𝑑𝑗)
1 −3 −4
= −11 ( )
−2 1
UN
3 4
= (11
2
11
1)
− 11
11
M
So, by rearranging, we have:
1 4 𝑥 1
JA
( ) (𝑦 ) = ( )
2 −3 −9
3 4
𝑥 1
(𝑦) = (11 11 ) ( )
2 1 −9
−
R
11 11
3 4
(11 × 1) + (11 × −9)
S.
=( 2 1
)
(11 × 1) + (− 11 × −9)
3 36
M
− 11
= (11
2 9)
+
11 11
−3
=( )
1
−3
=( )
1
AR
∴ 𝑥 = −3 and 𝑦 = 1
UN
Worked Example 3
Solve 4𝑥 − 𝑦 = 3
2𝑥 − 4𝑦 = 5
M
Solution:
JA
4 −1 𝑥 3
( )( ) = ( )
2 −4 𝑦 5
in the form 𝐴𝑋 = 𝐵
R
∴ 𝑋 = 𝐴−1 𝐵
S.
4 −1
where 𝐴 = ( )
2 −4
M
Find 𝐴−1 :
𝑑 −𝑏
det (𝐴) = 𝑎𝑑 − 𝑏𝑐 𝑎𝑑𝑗(𝐴) = ( )
−𝑐 𝑎
−4 1
= (4)(−4) − (2)(−1) =( )
−2 4
= −16 − (−2)
= −14
1
𝐴−1 = (𝑎𝑑𝑗)
𝑑ⅇ𝑡
1 −4 1
= −14 ( )
−2 4
2 1
− 14
= (71 2)
−7
7
AR
So, by rearranging, we have:
4 −1 𝑥 3
( ) (𝑦) = ( )
2 −4 5
UN
2 1
𝑥 − 14 3
(𝑦) = (71 2 ) (5)
−
7 7
2 1
M
(7 × 3) + (− 14 × 5)
=( 1 2
)
(7 × 3) + (− 7 × 5)
JA
6 5
− 14
= (73
10)
−
7 7
1
R
=( 2 )
−1
S.
𝑥 1 −4 1 3
M
(𝑦 ) = ( )( )
−14 −2 4 5
1 −12 + 5
= −14 ( )
−6 + 20
1
=( 2 )
−1
1
∴ 𝑥 = 2 and 𝑦 = −1
Worked Example 4
Solve 2𝑥 + 𝑦 = 5
2𝑥 + 3𝑦 = 7
Solution:
AR
2 1 𝑥 5
( )( ) = ( )
2 3 𝑦 7
in the form 𝐴𝑋 = 𝐵
2 1
∴ 𝑋 = 𝐴−1 𝐵
UN
M
where 𝐴 = ( ).
2 3
JA
Find 𝐴−1 :
𝑑 −𝑏
det (𝐴) = 𝑎𝑑 − 𝑏𝑐 𝑎𝑑𝑗(𝐴) = ( )
R
−𝑐 𝑎
3 −1
= (2)(3) − (2)(1) =( )
S.
−2 2
=6−2
M
=4
1
𝐴−1 = 𝑑ⅇ𝑡 (𝑎𝑑𝑗)
1 3 −1
= 4( )
−2 2
So, by rearranging, we have:
2 1 𝑥 5
( ) (𝑦 ) = ( )
2 3 7
𝑥 1 3 −1 5
(𝑦 ) = 4 ( )( )
−2 2 7
𝑥 1 15 − 7
(𝑦 ) = 4 ( )
−10 + 14
AR
𝑥 1 8
(𝑦 ) = 4 ( )
4
𝑥 2
(𝑦 ) = ( )
1
∴ 𝑥 = 2 and 𝑦 = 1
Identity Matrix
1 0
The 2 × 2 identity matrix is ( ).
0 1
Recall:
That is, 𝑎 + 0 = 0 + 𝑎 = 𝑎.
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 −2 (1 × 5) + (0 × 1) (1 × −2) + (0 × 0)
AR
( )( )=( )
0 1 1 0 (0 × 5) + (1 × 1) (0 × −2) + (1 × 0)
5 −2
=( )
1 0
Transformation Matrices
1
JA
=( )
4
𝑦
R
𝐴(1,4)
S.
M
𝑥
The identity matrix leaves the point 𝐴 unchanged.
Now,
−1 0
𝐴′ = (
AR
)𝐴
0 1
−1 0 1
=( )( )
0 1 4
UN
−1 + 0
=( )
0+4
−1
=( ) where −1 is the 𝑥-coordinate and 4 is the 𝑦-coordinate
4
M
𝑦
JA
𝐴′(−1,4) 𝐴(1,4)
R
S.
M
−1 0
The matrix ( ) represents a reflection in the 𝒚-axis.
0 1
Consider the point 𝐴(1,4).
Now,
1 0
𝐴′ = ( )𝐴
0 −1
AR
1 0 1
=( )( )
0 −1 4
1+0
=( )
0−4
1
=( )
−4
UN
where 1 is the 𝑥-coordinate and −4 is the 𝑦-coordinate
𝑦
M
𝐴(1,4)
JA
R
𝑥
S.
M
𝐴′(1, −4)
1 0
The matrix ( ) represents a reflection in the 𝒙-axis.
0 −1
Exercise
−1 0
A) ( )
0 1
1 0
B) ( )
0 −1
AR
0 1
C) ( )
1 0
2 0
D) ( )
0 2
Solution: UN
M
−1 0
A) ( ) → reflection in the 𝑦-axis
0 1
JA
1 0
B) ( ) → reflection in the 𝑥-axis
0 −1
0 1
C) ( ) → reflection in the line 𝑦 = 𝑥
1 0
R
2 0
D) ( ) → enlargement of scale factor 2
0 2
S.
Enlargement
M
𝐴 = (1, 5)
𝐵 = (1, 1)
𝐶 = (3, 1)
𝐴(1, 5)
AR
𝐵(1, 1)
UN
𝐶(3, 1)
𝑥
M
Suppose that the points undergo an enlargement of scale factor 2.
JA
2 0
The matrix is ( ).
0 2
2 0 1
𝐴′ = ( )( )
S.
0 2 5
2
𝐴′ = ( )
10
M
2 0 1
𝐵′ = ( )( )
0 2 1
2
𝐵′ = ( )
2
2 0 3
𝐶′ = ( )( )
0 2 1
6
𝐶′ = ( )
2
𝐴′(2, 10)
AR
𝑦
𝐴(1, 5) UN
M
JA
R
𝐵′(2, 2) 𝐶′(6, 2)
𝐵(1, 1) 𝐶(3, 1)
S.
M
𝑥
Examples of Transformation Matrices
Reflection or Flip
𝑥-axis 𝑦-axis
1 0 −1 0
( ) ( )
0 −1 0 1
AR
The line 𝑦 = 𝑥 The line 𝑦 = −𝑥
0 1 0 −1
( ) ( )
1 0 −1 0
Translation or Slide
𝑥
Use the vector: (𝑦) UN
M
where 𝑥 represents the movement in the horizontal
Common Rotations
0 1
( )
−1 0
S.
−1 0
( )
0 −1
0 −1
( )
1 0
otation of Transformation Matrices
𝑻𝑨 = 𝑨′
−1 0 1 −1
For example, ( )( ) = ( )
0 1 4 4
AR
If we want to go backwards,
Note: 𝐴′ is called 𝐴 prime.
𝑨 = 𝑻−𝟏 𝑨′
Recall:
2𝑥 + 3𝑦 = 1
UN
M
𝑥 + 4𝑦 = 0
JA
In matrix form,
2 3 𝑥 1
( ) (𝑦 ) = ( )
1 4 0
R
𝑥 2 3 −1 1
(𝑦) = ( ) ( )
1 4 0
S.
M
A right-angled triangle, 𝑀, has vertices 𝑋(1, 1), 𝑌(3, 1) and 𝑍(3, 4). When 𝑀 is
0 1
transformed by the matrix 𝑁 = ( ), the image is 𝑀′.
1 0
0 1
( ) represents a reflection in the line 𝑦 = 𝑥.
1 0
Therefore,
AR
𝑋′(1, 1)
𝑌′(1, 3)
UN
𝑍′(4, 3)
𝑍(3, 4)
R
𝑌(1, 3)
𝑍′(4, 3)
S.
𝑀
M
𝑀′
𝑋(1,1)
𝑋′(1,1) 𝑌′(3,1)
𝑥
Past Paper Question - January 2020 – Question 10(a)
0 𝑝
The transformation 𝑀 = ( ) maps the point 𝑅 onto 𝑅′ as shown in the diagram below.
𝑞 0
AR
UN
M
JA
R
Solution:
Now,
0 𝑝 2 5
( )( ) = ( )
𝑞 0 −5 2
(0 × 2) + (𝑝 × −5) 5
( )=( )
(𝑞 × 2) + (0 × −5) 2
−5𝑝 5
( )=( )
2𝑞 2
By comparing the equivalent matrices, we have
−5𝑝 = 5 2𝑞 = 2
5 2
𝑝 = −5 𝑞=2
𝑝 = −1 𝑞=1
AR
Past Paper Question - January 2014 – Question 11(a)
2 −1
𝑇=( )
UN
1 3
of 𝑎 and 𝑏. [4]
JA
Solution:
R
2 −1 𝑎 𝑏
(i) 𝑇=( ) in the form ( )
1 3 𝑐 𝑑
S.
Finding the 𝑇 −1 :
M
𝑑 −𝑏
𝑑ⅇ𝑡 = 𝑎𝑑 − 𝑏𝑐 𝑎𝑑𝑗(𝑇) = ( )
−𝑐 𝑎
3 1
= (2)(3) − (−1)(1) =( )
−1 2
=6+1
=7
1
𝑇 −1 = 𝑑ⅇ𝑡 (𝑎𝑑𝑗)
1 3 1
= 7( )
−1 2
3 1
7 7
= (−1 2)
7 7
AR
𝑎 4
(ii) 𝑇( ) = ( )
𝑏 9
𝑎 4
∴ ( ) = 𝑇 −1 ( )
𝑏 9
𝑎
𝑏
𝑎
1 3
( ) = 7(
1 4
)( )
−1 2 9
1 12 + 9
( ) = 7( )
UN
M
𝑏 −4 + 18
𝑎 1 21
( ) = 7( )
𝑏 14
JA
𝑎 3
( )=( )
𝑏 2
R
0 −1
The matrix 𝐽 = ( ) represents a single transformation.
1 0
M
Solution:
5
𝐽𝑃 = ( )
4
0 −1 5
( )𝑃 = ( )
1 0 4
0 −1 −1 5
𝑃=( ) ( )
1 0 4
AR
𝑑 −𝑏
𝑑ⅇ𝑡 = 𝑎𝑑 − 𝑏𝑐 𝑎𝑑𝑗(𝐽) = ( )
−𝑐 𝑎
UN
0 1
= (0)(0) − (−1)(1) =( )
−1 0
=1
M
1
𝐽−1 = (𝑎𝑑𝑗)
JA
𝑑ⅇ𝑡
1 0 1
= 1( )
−1 0
R
0 1
=( )
−1 0
S.
Therefore,
M
0 1 5
𝑃=( )( )
−1 0 4
(0 × 5) + (1 × 4)
𝑃=( )
(−1 × 5) + (0 × 4)
4
𝑃=( )
−5
Past Paper Question - January 2009 – Question 11(b)
−1 0
The transformation 𝑅 is represented by the matrix ( ).
0 1
0 1
The transformation 𝑆 is represented by the matrix ( ).
−1 0
𝑎 𝑏
(i) Write a single matrix, in the form ( ) to represent the combined
𝑐 𝑑
AR
transformation 𝑆 followed by 𝑅. [2]
(ii) Calculate the image of the point (5, −2) under the combined transformation in
Solution: UN
M
0 1 −1 0
(i) 𝑆=( ) and 𝑅=( )
−1 0 0 1
JA
𝑆 followed by 𝑅.
−1 0 0 1
𝑅𝑆 = ( )( )
0 1 −1 0
R
0 −1
=( )
−1 0
S.
0 −1 5 (0 × 5) + (−1 × −2)
(ii) ( )( ) = ( )
−1 0 −2 (−1 × 5) + (0 × −2)
M
0+2
=( )
−5 + 0
2
=( )
−5