A74 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 4 · Matrices as transformations

A matrix moves every point of the plane at once

A grid of numbers like [2101] 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 (1,0) and (0,1): 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 [1101] (a shear) and watch the square lean. Then try [0−110].
  • Make the two columns point along the same line. What happens to the square, and to the number in the strip?

Predict

The matrix [0−110] sends (1,0) to (0,1) and (0,1) to (−1,0). What does it do to the whole plane?

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:

[abcd][xy]=x[ac]+y[bd]=[ax+bycx+dy]

So the first column is where (1,0) lands and the second is where (0,1) 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: A(𝐮+𝐯)=A𝐮+A𝐯 and A(c𝐯)=cA𝐯. Straight lines stay straight, the origin stays put, and the grid stays evenly spaced.

MatrixDoes
[k00k]scales by k
[1k01]shears horizontally
[cos⁡θ−sin⁡θsin⁡θcos⁡θ]rotates by θ
[1000]projects onto the horizontal axis

Doing one after another is the matrix product. Applying B then A is AB: each column of AB is A times the matching column of B. Order matters: rotating then shearing differs from shearing then rotating, so in general AB≠BA.

In circuits, G𝐯=𝐢 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 [1101] send the unit square?

Show the solution
  1. Read the columns. The columns say (1,0)→(1,0) and (0,1)→(1,1).
  2. Map the corners. The square becomes a parallelogram leaning right, with corners (0,0), (1,0), (2,1) and (1,1).
  3. Area. Its area is still 1: a shear slides layers without stretching them.

Answer a parallelogram leaning right, with corners (0,0), (1,0), (2,1) and (1,1) and area 1.

Worked example

Rotate (3,1) by 90° counterclockwise.

Show the solution
  1. The rotation matrix. R=[0−110]
  2. Multiply. R[31]=[0⋅3−1⋅11⋅3+0⋅1]=[−13]
  3. Check. Its length is still 10, and its dot product with (3,1) is zero.

Answer (3,1) turns to (−1,3).

Worked example

Which matrix drops every point straight down onto the x axis, and what does it do to the unit square?

Show the solution
  1. Choose the columns. It must send (1,0) to itself and (0,1) to (0,0), so its columns are those two images: P=[1000]
  2. The unit square. It collapses onto the segment from 0 to 1 on the x axis, with zero area.
  3. 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 P: it's the first example of a matrix with no inverse.

Answer P=[1000]. It flattens the unit square onto the segment from 0 to 1 on the x axis, and it has no inverse.

Check

Compute [2−325][11].

(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 A=[2201] and B=[3031], what is the top-left entry of AB?

Check

A matrix sends the unit square to a parallelogram of zero area: a line segment. What does that tell you?

Check

Consider A=[2101].

(a)

Where does (1,1) go? Give its x coordinate.

(b)

What is the area of the image of the unit square?

Check

Build the matrix that rotates by t radians.

Step 1

Where does (1,0) go? Give its x 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°.

Explain why

Why is knowing where a matrix sends (1,0) and (0,1) enough to know where it sends every vector?

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.