Slides: IGCSE Further Maths - Matrix Transformations

advertisement
IGCSE FM Matrix Transformations
Dr J Frost (jfrost@tiffin.kingston.sch.uk)
www.drfrostmaths.com
The specification:
Last modified: 3rd January 2016
Introduction
A matrix (plural: matrices) is simply an ‘array’ of numbers, e.g.
On a simple level, a matrix is simply a way to organise values into rows and columns,
and represent these multiple values as a single structure.
For the purposes of IGCSE Further Maths, you should understand matrices as a
way to transform points.
Matrices are particularly useful in
3D graphics, as matrices can be
used to carry out
rotations/enlargements (useful for
changing the camera angle) or
project into a 2D ‘viewing’ plane.
(Just for Fun) Using matrices to represent data
This is a scene from the film Good Will?Hunting.
Maths professor Lambeau poses a “difficult”* problem for his graduate students from
algebraic graph theory, the first part asking for a matrix representation of this graph.
Matt Damon anonymously solves the problem while on a cleaning shift.
In an ‘adjacency matrix’, the
number in the ith row and jth
column is the number of
edges directly connecting
node (i.e. dot) i to dot j
?
* It really isn’t.
Using matrices to represent data
In my 4th year undergraduate dissertation, I used matrices to help ‘learn’ mark schemes from
GCSE biology scripts. Matrix algebra helped me to initially determine how words (and more
complex semantic information) tended to occur together with other words.
Matrix Algebra
Matrix Fundamentals
Understand the dimensions of a matrix, and operations on
matrices, such as addition, scalar multiplication and matrix
multiplication.
Matrix Fundamentals
#1 Dimensions of Matrices
The dimension of a matrix is its size, in terms of its number of rows and columns.
Matrix
Dimensions
2ο‚΄3
3ο‚΄1
?
1ο‚΄3
?
Matrix Fundamentals
#2 Notation/Names for Matrices
A matrix can have square or curvy brackets*.
Matrix
Column Vector
Row Vector
(The vector you know
and love)
So a matrix with one column is simply a vector in the usual sense.
* The textbook only uses curvy.
Matrix Fundamentals
#3 Variables for Matrices
If we wish a variable to represent a matrix, we use bold, capital letters.
1
𝑨= 6
−3
π‘ͺ = π‘·πŸ 𝑻𝑷
Matrix Fundamentals
#4 Adding/Subtracting Matrices
Simply add/subtract the corresponding elements of each matrix.
They must be of the same dimension.
?
?
Matrix Fundamentals
#5 Scalar Multiplication
A scalar is a number which can ‘scale’ the elements inside a matrix/vector.
1
2
3
?
?
?
Matrix Fundamentals
#6 Matrix Multiplication
This is where things get slightly more complicated...
Now repeat for the next row of the left matrix...
1
2
7
0 3 -2
8 4 3
-1 0 2
5
1
0
8
1
7
3
-3
-11
42
16
61
50
-6
We start with this row and column, and sum the products of each pair.
(1 x 5) + (0 x 1) + (3 x 0) + (-2 x 8) = -11
Further Example
June 2012 Paper 1 Q2
=
10
?
17
Test Your Understanding
Now you have a go...
a
If 𝐴 =
b
1
2
c
1
3
1
1
1
0
2
4
2
0
0
,𝐡 =
3
1
1
𝟎 ?𝟏
, 𝐴𝐡 =
2
πŸ‘ πŸ‘
𝟐 ?
3
=
πŸ”
−1
7 10
=
?
15 22
N
N
N
1
1 2 3 2 = 14 ?
3
1
1 2 3
2 1 2 3 = 2 4? 6
3
3 6 9
?
Bro Exam Note: In IGCSEFM, you
will only have to multiply either a
2 × 2 by 2 × 1 or 2 × 2 by 2 × 1.
Identity Matrix
1 0
π‘Ž
Let 𝑰 =
and 𝐴 =
0 1
𝑐
Determine:
𝒂
𝒄
𝒂
𝐼𝐴 =
𝒄
𝐴𝐼 =
𝑏
.
𝑑
𝒃
?𝒅
𝒃
?𝒅
1 0
is known as the ‘identity matrix’.
0 1
Multiplying by it has no effect, i.e. 𝐴𝐼 = 𝐼𝐴 = 𝐴 for any matrix 𝐴.
𝑰 =
It may seem pointless to have such a matrix, but it’ll have more
importance when we consider matrices as ‘transformations’ later.
Although admittedly you won’t quite fully appreciate why we have it
unless you do Further Maths A Level…
Exercise 1
1
?
?
?
?
?
?
2
?
?
?
?
?
?
3
?
?
?
?
?
?
Exercise 1
4
?
?
?
?
?
?
5
?
?
?
?
?
?
6
?
?
?
?
?
?
Exercise 1
7
?
?
?
?
?
?
Harder Multiplication Questions
Matrix multiplications may give us simultaneous equations, which we solve in
the usual way.
June 2013 Paper 2 Q12
π‘₯ 2 − 12
4π‘₯
=
π‘₯ − 4𝑦
8
π‘₯ 2 − 12 = 4π‘₯
π‘₯?2 − 4π‘₯ − 12 = 0
π‘₯ = −2 π‘œπ‘Ÿ π‘₯ = 6
𝑦 = −2.5 π‘œπ‘Ÿ 𝑦 = −0.5
Test Your Understanding
AQA Worksheet 2
𝟐 + πŸπ’‚ = 𝟏𝟐 → 𝒂 = πŸ“
πŸ” + 𝒂𝒃 = πŸπŸ”
→ 𝒃=πŸ’
?→ 𝒄 = πŸ“
πŸ‘+𝟐=𝒄
22
ο€­ οƒΆ2οƒΆ a οƒΆ
3
 οƒ·οƒ· οƒ·οƒ· οƒ·οƒ·
ο€­9οƒΈ4οƒΈ 3 οƒΈ
7
Exercise 1b
4
1
Set 4 Paper 1 Q17
−πŸ” + πŸ•π’‚
= 𝟐𝟐
?
𝒂=πŸ’
2
June 2013 Paper 2 Q11
−𝒂 πŸπ’ƒ − 𝒄
𝟏
𝟎
𝒃
πŸ‘
?
πŸπ’‚ + 𝒂𝒃 = −𝟏
𝒂 − πŸ‘π’ƒ = 𝟐
𝒂 = 𝟐 + πŸ‘π’ƒ
∴ 𝟐(𝟐 + πŸ‘π’ƒ) + 𝟐 + πŸ‘π’ƒ 𝒃 = −𝟏
πŸ‘π’ƒπŸ + πŸ–π’ƒ + πŸ“ = 𝟎
πŸ‘π’ƒ + πŸ“ 𝒃 + 𝟏 = 𝟎
πŸ“
𝒃 = −𝟏 𝒐𝒓 𝒃 = −
πŸ‘
𝒂 = −𝟏 𝒐𝒓 𝒂 = −πŸ‘
?
?
𝒂 = −𝟏, 𝒃 = πŸ‘, 𝒄 = πŸ”
3
Set 2 Paper 2 Q16
𝟐
πŸ“
𝒂 𝒂+𝒃
𝟐+𝒂 πŸ‘+𝒃
𝑸𝑷 =
𝒂
𝒃
∴ 𝒂 = 𝟎, 𝒃 = 𝟐
𝑷𝑸 =
?
Matrices representing transformations
Matrices can represent transformations to points in 2D or 3D space.
π‘₯
Let us represent a point as the vector 𝑦
We can multiply it by a matrix:
πŸπ’™
2 0 π‘₯
= ?
𝑦
πŸπ’š
0 2
(Note: You’re used to representing
points as coordinates like π‘₯, 𝑦 rather
than vectors, but it allows us to apply
matrix transformations to them more
easily in this form)
𝑦
Important Note: When we multiply by a matrix, it goes on the front, not after.
This is a bit like how with composite functions, e.g. 𝑔𝑓(π‘₯), we applied 𝑓 to π‘₯
followed 𝑔. We go right to left.
What ‘transformation’ therefore does the
2 0
matrix
represent?
0 2
An enlargement by scale factor 2 about
?
the origin.
π‘₯
𝑦
2π‘₯
2𝑦
π‘₯
A further example
What transformation does the matrix
0
−1
1
0
0 1
represent?
−1 0
π‘₯
π’š
?
𝑦 = −𝒙
Step 1: Find the effect
π‘₯
on a point 𝑦 .
Step 2: Draw the old and
new point (using a specific
example point if you wish) to
see the effect.
𝑦
3
1
?
π‘₯
1
−3
Transformation:
Rotation πŸ—πŸŽ° clockwise about
?
the origin.
Investigate
In pairs or otherwise, determine the transformations that each of these
matrices represents.
−1
0
0
1
Reflection in the
line 𝒙 = ?
𝟎
0
1
1
0
0
−1
Reflection in the
line π’š =?𝟎
0
−1
Rotation πŸπŸ–πŸŽ°
? origin.
about the
1
0
Reflection in the line
π’š=𝒙 ?
−1
0
0
1
−1
0
Rotation πŸ—πŸŽ°
? about
anticlockwise
the origin.
0
−1
1
0
Rotation πŸ—πŸŽ°
clockwise ?
about the
origin.
1
0
0
1
No effect!
?
Going backwards
Work out the transformation that transforms a point 270° clockwise
about the origin.
𝑦
−1
3
?
?
3
π‘₯1
Use a specific point or 𝑦
and find the effect of the
transformation.
π‘₯
Work
0 out
−1
what
1 matrix
0
would have
this effect
π‘₯
−𝑦
𝑦 = π‘₯
Transforming the unit square
Set 3 Paper 2 Q17
For more complex transformations
it’s not sufficient to look at the
effect on just one point: we can’t
fully see what the matrix is doing.
If we look at the effect on a unit
square (with coordinates
0,0 , 1,0 , 1,1 , 0,1 ), we can
better see the effect of a matrix
transformation on a region in the
π‘₯-𝑦 plane.
Just apply the transformation to
each point of the unit square.
3
0
3
0
3
0
3
0
0
3
0
3
0
3
0
3
0
0
1
0
0
1
1
1
𝟎
?
𝟎
πŸ‘
= ?
𝟎
𝟎
= ?
πŸ‘
πŸ‘
= ?
πŸ‘
=
Test Your Understanding
Set 1 Paper 1 Q14
𝐴′
𝐡′
𝐢′
0
−1
0
−1
0
−1
0
−1
−1
0
−1
0
−1
0
−1
0
0
0
1
? 00
1
1
1
𝟎
𝟎
𝟎
=
−𝟏
−𝟏
=
𝟎
−𝟏
=
−𝟏
=
Exercise 3
1 [Jan 2013 Paper 2 Q15] Describe fully the
single transformation represented by the
0 −1
matrix
1 0
Rotation πŸ—πŸŽ° anticlockwise about the origin.
5
?
2 [Set 2 Paper 1 Q4] The transformation matrix
π‘Ž 2
maps the point 3,4 onto the point
−1 1
2, 𝑏 . Work out the values of π‘Ž and 𝑏.
𝒂 =?−𝟐, 𝒃 = 𝟏
?
6
π‘Ž
𝑏
3 [Set 3 Paper 1 Q6] The matrix −π‘Ž 2𝑏 maps
the point 5,4 onto the point 1,17 . Work
7
out the values of π‘Ž and 𝑏.
𝒂 = ?−𝟏, 𝒃 = 𝟏. πŸ“
4
[Worksheet 2 Q5] Work out the image of the
point D (ο€­1, 2) after transformation by the
πŸ’
2 3
matrix
Solution:
? πŸ‘
−1 1
[Worksheet 2 Q6] The point A(m, n) is
transformed to the point Aο‚’ (ο€­2, 0) by
2 3
the matrix
1 1
Work out the values of m and n.
π’Ž = 𝟐, 𝒏 = −𝟐
[Worksheet 2 Q8] Describe fully the
transformation given by the matrix
0 −1
−1 0
Reflection in the line π’š = −𝒙
?
[Worksheet 2 Q9] The unit square
OABC is transformed by the matrix
β„Ž 0
to the square OAο‚’Bο‚’Cο‚’.
0 β„Ž
The area of OAο‚’Bο‚’Cο‚’ is 27. Work out
the exact value of h.
𝒉 =?πŸ‘ πŸ‘
Combined Transformations
𝐴
𝑃
𝐡
?
𝐴𝑃
?
𝐡𝐴𝑃
𝐡𝐴
?
If a point 𝑃 is transformed by the matrix 𝐴 followed by the matrix
𝐡, what calculation would get the new point?
Therefore what matrix represents the combined transformation
of 𝐴 followed by 𝐡?
 The matrix 𝐡𝐴 represents the combined transformation
of 𝐴 followed by 𝐡.
Example
−1 0
A point 𝑃 is transformed using the matrix
, i.e. a reflection in the line π‘₯ = 0,
0 1
0 1
followed by
, i.e. a reflection in the line 𝑦 = π‘₯.
1 0
(a) Give a single matrix which represents the combined transformation.
(b) Describe geometrically the single transformation this matrix represents.
a
b
𝟎 𝟏
𝟏 𝟎
−𝟏 𝟎
𝟎 𝟏
=
?
𝟎 𝟏
−𝟏 𝟎
Rotation πŸ—πŸŽ° clockwise about the origin.
?
Test Your Understanding
Worksheet 2 Q7
Bro Note: The default direction of rotation is
anticlockwise if not specified.
0 ?1
1 0
0 1
𝑩=
−1? 0
0 1 0 1
1 0
𝑩𝑨 =
=
−1 0 1 0
0 −1 ?
(The question does not ask, but this represents a reflection in the line 𝑦 = 0)
𝑨=
Exercise 3
1 Point 3, −2 is transformed by the matrix
−1
followed by a further transformation
1
0 2
by the matrix
.
1 0
(i) Work out the matrix for the combined
𝟎 𝟐
transformation.
Solution:
𝟏 −𝟏
(ii) Work out the co-ordinates of the image point
of 𝑃.
Solution: (−πŸ’, πŸ“)
3
1
0
The unit square is reflected in the π‘₯-axis
followed by a rotation through 180° centre
the origin. Work out the matrix for the
combined transformation.
Solution:
?
?
2 Point −1,4 is transformed by the matrix
3
−2
−1
followed by a further
2
1 0
transformation by the matrix
.
3 −2
(i) Work out the matrix for the combined
πŸ‘ −𝟏
transformation.
Solution:
πŸπŸ‘ −πŸ•
(ii) Work out the co-ordinates of the image point
of π‘Š.
Solution: (−πŸ•, −πŸ’πŸ)
?
?
4
?−𝟏
𝟎
𝟎
𝟏
The unit square is enlarged, centre the
origin, scale factor 2 followed by a
reflection in the line 𝑦 = π‘₯. Work out the
matrix for the combined transformation.
Solution:
?𝟎𝟐
𝟐
𝟎
Exercise 3
5 [Jan 2013 Paper 2 Q17] −1 0 represents a
0
1
0 1
represents a
1 0
reflection in the line 𝑦 = π‘₯.
Work out the matrix that represents a
reflection in the 𝑦-axis followed by a reflection
in the line 𝑦 = π‘₯.
𝟎 𝟏 −𝟏 𝟎
𝟎 𝟏
=
𝟏 𝟎
𝟎 𝟏
−𝟏 𝟎
reflection in the 𝑦-axis.
?
6
[June 2012 Paper Q22] The transformation
0 −1
matrix
maps a point 𝑃 to 𝑄. The
−1 0
1 0
transformation matrix
maps point 𝑄
0 −1
to point 𝑅.
Point 𝑅 is −4,3 . Work out the coordinates of
point 𝑃.
𝟏 𝟎
𝟎 −𝟏
𝟎 −𝟏
=
𝟎 −𝟏 −𝟏 𝟎
𝟏 𝟎
This is a rotation πŸ—πŸŽ° anticlockwise. So
πŸ‘
original point 𝑷 is
πŸ’
?
7 [Set 1 Paper Q14b] The unit square
OABC is transformed by reflection in
the line 𝑦 = π‘₯ followed by
enlargement about the origin with
scale factor 2. What is the matrix of
the combined transformation?
𝟐 𝟎 𝟎 𝟏
𝟎 𝟐
=
?
𝟎 𝟐 𝟏 𝟎
𝟐 𝟎
3 0
−1 0
and 𝐡 =
.
0 3
0 1
The point 𝑃 2,7 is transformed by
matrix 𝐡𝐴 to 𝑃′. Show that 𝑃′ lies on
the line
7π‘₯ + 2𝑦 = 0.
𝐴=
−𝟏
𝟎
𝟎 πŸ‘ 𝟎 𝟐
−πŸ”
=
𝟏 𝟎 ?
πŸ‘ πŸ•
𝟐𝟏
πŸ• −πŸ” + 𝟐 𝟐𝟏 = 𝟎
Download