Educerie · AP · Precalculus
Unit 4 Functions Involving Parameters, Vectors, and Matrices · 4.12 Linear Transformations and Matrices
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: A function whose inputs and outputs are vectors; a matrix as the rule of such a function; many vectors moved at once by one product.
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 applying a matrix to one vector or to a set of vectors, and recognising which rules are linear.
The question this unit answers: How can one matrix move every vector in the plane, and many vectors at once?
AP Precalculus 4.12
Linear Transformations and Matrices
How can one matrix move every vector in the plane, and many vectors at once?
What you will learn
- Understand what makes a transformation linear and that it fixes the zero vector
- Know that every linear transformation has a unique 2 by 2 matrix
- Know that one product moves a whole set of vectors
You must be able to
- Decide whether a rule is linear and say why a non-linear one fails
- Write the matrix of a linear transformation from its rule
- Find the output vector A v
- Transform several vectors or the corners of a shape with one product
- Write vectors as columns of a 2 by n matrix
- Check one output column by hand
1What is a linear transformation?
A linear transformation is a function that maps an input vector to an output vector so that each component of the output is a sum of constant multiples of the input components.
For input , the output is
where are constants.
Worked example 1. Is linear?
Yes. The first output, , is times plus times . The second, , is times plus times . Both are sums of constant multiples.
Worked example 2. Which of these are linear?
- . Not linear. The is not a multiple of an input.
- . Not linear. is a product of the inputs, not a constant multiple of one.
- . Not linear. Squaring is not a constant multiple.
- . Linear.
A quick test: a linear transformation sends the zero vector to the zero vector.
If a rule sends anywhere else, it is not linear. The rule sends it to , so it fails.
Passing the test does not make a rule linear. sends zero to zero and is still not linear. Use the test to rule a rule out, and check the form to rule one in.
2Vectors as matrices
A single vector in the plane is a matrix, a column:
A set of vectors in the plane is a matrix. Each vector is one column.
Example: the three vectors , and form
The first row holds the x-components. The second row holds the y-components.
A shape can be stored the same way. The corners of a triangle at , and are the columns of .
3The matrix of a linear transformation
Every linear transformation from the plane to the plane has exactly one matrix with
for every vector . The other way round, any matrix gives a linear transformation .
The entries come from the rule. For :
Check by multiplying:
Worked example 3. Write the matrix of .
Read the coefficients row by row.
If a variable is missing, its coefficient is . For the matrix is .
Worked example 4. Let . Find the output when the input is .
The input is sent to .
The zero vector always maps to the zero vector: for any .
4Many vectors at once
To transform vectors, put them in a matrix , and multiply on the left by :
The product is a matrix. Its columns are the output vectors, in the same order.
The reason is how matrix multiplication works. Each column of is times the matching column of .
Worked example 5. Use on the vectors , and .
The outputs are , and .
Check the third column by hand: and .
Notice what happened to the first two vectors. The inputs and came out as the two columns of . Topic 4.13 uses that.
Worked example 6. Apply to the vectors , and .
The outputs are , and .
5Moving a shape
The corners of a shape are vectors, so one product moves all of them. If you join the output points in the same order, you get the transformed shape.
Example: the triangle with corners , and , under :
The new corners are , and . The triangle is stretched times horizontally and times vertically.
Linear transformations of this kind are what computer graphics use to turn, stretch and shrink a picture: every point is a column, and one matrix product moves them all.