Unit 4 Functions Involving Parameters, Vectors, and Matrices · 4.13 Matrices as Functions
This unit is not on the AP exam. The exam covers Units 1 to 3 only; Unit 4 is taught here for the course and for what comes after it.
Big ideas: The columns of a matrix are the images of the two unit vectors; rotations, stretches and reflections as matrices; composition as a product and undoing as an inverse.
Where it is examined: Not on the AP Precalculus exam. The College Board lists Unit 4 as an additional topic available to schools. If your school teaches it, the work is building a matrix from what a transformation does, composing two transformations, and reading the effect of a matrix on area.
The question this unit answers: How does high-resolution computer imaging turn, stretch and move a whole picture at once?
AP Precalculus 4.13
Matrices as Functions
How does high-resolution computer imaging turn, stretch and move a whole picture at once?
What you will learn
Understand that a 2 by 2 matrix is a function on the plane fixed by where i and j go
Know the rotation matrix and that |det A| is the area scale factor
Know that composition is a matrix product with the first transformation on the right, and that an inverse needs a nonzero determinant
You must be able to
Build a matrix from the images of the unit vectors
Rotate a vector with the rotation matrix
Find the area of an image using the determinant
Compose two transformations in the right order and check with i
Find the inverse of a transformation and check it on a vector
Show that the order of two transformations matters
1A matrix from a rule
The linear transformation that sends ⟨x,y⟩ to ⟨a11x+a12y,a21x+a22y⟩ goes with the matrix
A=[a11a21a12a22]
This is Topic 4.12. The subscripts say the row and column: a21 is in row 2, column 1.
2The unit vectors tell you everything
Every vector is a combination of i and j: ⟨x,y⟩=xi+yj. A linear transformation respects that, so
L(⟨x,y⟩)=xL(i)+yL(j)
Now look at what the matrix does to the unit vectors:
A[10]=[a11a21]A[01]=[a12a22]
The first column of A is where i goes. The second column is where j goes.
So you can build a matrix without the rule, if you know where the unit vectors land.
Worked example 1. A linear transformation sends i to ⟨3,−1⟩ and j to ⟨2,5⟩. Find its matrix, and where ⟨4,1⟩ goes.
The images are the columns:
A=[3−125]A[41]=[12+2−4+5]=[141]
Check with the rule L(⟨x,y⟩)=xL(i)+yL(j): 4⟨3,−1⟩+1⟨2,5⟩=⟨14,1⟩. It agrees.
3Rotations
Rotate the plane by an angle θ counterclockwise about the origin.
i=⟨1,0⟩ goes to ⟨cosθ,sinθ⟩, the point on the unit circle at angle θ.
j is a quarter turn ahead of i, so it goes to the point at angle θ+2π, which is ⟨−sinθ,cosθ⟩.
Those are the columns:
Rθ=[cosθsinθ−sinθcosθ]
This matrix rotates every vector by θ counterclockwise about the origin.
Worked example 2. Rotate ⟨3,2⟩ by 90∘. Then rotate ⟨4,0⟩ by 60∘.
For 90∘, cos=0 and sin=1: R=[01−10].
[01−10][32]=[−23]
For 60∘, cos=21 and sin=23:
[2123−2321][40]=[223]
The length is the same: 4+12=4. A rotation does not change lengths.
4Other transformations
The same method gives any other.
Reflection in the x-axis.i stays, and j goes to ⟨0,−1⟩. The matrix is [100−1].
Stretch. Scale x by 2 and y by 5: [2005].
Dilation by k.[k00k].
5The determinant as a scale factor for area
Figure 1 shows what the matrix A=[2112] does to the unit square. Read it in this order:
The grey square has corners (0,0), (1,0), (1,1), (0,1). Its area is 1.
i goes to ⟨2,1⟩ (the first column), and j goes to ⟨1,2⟩ (the second).
The amber parallelogram is the image of the square. Its corners are (0,0), (2,1), (3,3) and (1,2).
Figure 1 · The matrix with columns ⟨2, 1⟩ and ⟨1, 2⟩ sends the unit square (grey) to a parallelogram (amber) of area 3
The parallelogram has area 3, and detA=2(2)−1(1)=3.
The absolute value of the determinant of a 2×2 transformation matrix is the factor by which areas of regions are multiplied.
It holds for any region, not just the unit square.
Example: the triangle with corners (0,0), (4,0), (0,3) has area 6. Under [2005], whose determinant is 10, the image has corners (0,0), (8,0), (0,15) and area 60. That is 6×10.
A rotation has determinant cos2θ+sin2θ=1, so it keeps areas, as it keeps lengths. A matrix with determinant 0 squashes everything onto a line, so every region gets area zero.
6Composition: one transformation after another
Apply L1 first and then L2. Each is linear, and the combined function, L2(L1(v)), is also a linear transformation.
If L1 has matrix A1 and L2 has matrix A2, then
L2(L1(v))=A2(A1v)=(A2A1)v
The matrix of the composition is the product of the two matrices, with the second transformation on the left.
The matrix on the left acts last. The order is the same as for composition of functions: L2∘L1 means L1 first.
Worked example 3. Rotate by 90∘ counterclockwise, then reflect in the x-axis. Find the single matrix.