A7 · Lesson 4 · Matrices as transformations
A matrix moves every point of the plane at once
A grid of numbers like looks like bookkeeping. It's really a machine that moves every point of the plane: stretching, shearing, rotating or flattening it. Once you can picture what a matrix does to the plane, questions like "can this system of equations be solved?" become questions about shapes.
Play
- The two solid arrows are where the matrix sends the basis vectors and : its first and second columns. The parallelogram is where the unit square lands, and the curve is where the unit circle lands.
- Set the matrix to (a shear) and watch the square lean. Then try .
- Make the two columns point along the same line. What happens to the square, and to the number in the strip?
Predict
The matrix sends to and to . What does it do to the whole plane?
It rotates the plane a quarter turn counterclockwise. Both basis vectors turn 90° and keep their length, and since every vector is a combination of the two, every vector turns 90°. It's the matrix version of multiplying by from A3.
Name it
The columns are where the basis goes
Multiplying a matrix by a vector combines the matrix's columns, using the vector's entries as weights:
So the first column is where lands and the second is where lands. Since every vector is a combination of those two, knowing where they go tells you where everything goes. That's what makes the map linear: and . Straight lines stay straight, the origin stays put, and the grid stays evenly spaced.
| Matrix | Does |
|---|---|
| scales by | |
| shears horizontally | |
| rotates by θ | |
| projects onto the horizontal axis |
Doing one after another is the matrix product. Applying then is : each column of is times the matching column of . Order matters: rotating then shearing differs from shearing then rotating, so in general .
In circuits, says the conductance matrix maps node voltages to the currents injected at the nodes. Solving the circuit means running that map backward: which voltages produce the given currents?
Worked example
Where does the shear send the unit square?
Show the solution
- Read the columns. The columns say and .
- Map the corners. The square becomes a parallelogram leaning right, with corners , , and .
- Area. Its area is still 1: a shear slides layers without stretching them.
Answer a parallelogram leaning right, with corners , , and and area 1.
Worked example
Rotate by 90° counterclockwise.
Show the solution
- The rotation matrix.
- Multiply.
- Check. Its length is still , and its dot product with is zero.
Answer turns to .
Worked example
Which matrix drops every point straight down onto the axis, and what does it do to the unit square?
Show the solution
- Choose the columns. It must send to itself and to , so its columns are those two images:
- The unit square. It collapses onto the segment from 0 to 1 on the axis, with zero area.
- No way back. Every point above or below a spot on that segment lands on the same spot, so there's no way to undo : it's the first example of a matrix with no inverse.
Answer . It flattens the unit square onto the segment from 0 to 1 on the axis, and it has no inverse.
Check
Compute .
(a)
First component?
(b)
Second component?
Check
What is the top-right entry of the matrix that rotates the plane by 45° counterclockwise?
Check
For and , what is the top-left entry of ?
Check
A matrix sends the unit square to a parallelogram of zero area: a line segment. What does that tell you?
Check
Consider .
(a)
Where does go? Give its coordinate.
(b)
What is the area of the image of the unit square?
Check
Build the matrix that rotates by radians.
Step 1
Where does go? Give its coordinate.
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Where does go? Give its coordinate.
Step 3
Add the columns: what is the coordinate of the image of ?
Explain why
Why is knowing where a matrix sends and enough to know where it sends every vector?
Every vector is times plus times . A matrix is linear: it sends a sum to the sum of the images and a multiple to the same multiple of the image. So goes to times the image of plus times the image of , and those two images are the matrix's columns.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.