Precalculus · Grades 11, 12

Matrices as Transformations of the Plane

Quick answer

Multiplying a vector by a 2×2 matrix produces another vector, so a matrix is a way of moving the whole plane: rotating it, reflecting it, stretching it or shearing it. The columns of the matrix are where the two unit vectors land, and that settles where everything else goes. The unit square becomes a parallelogram whose area is the absolute value of the determinant.

What you'll learn

  • Multiply a vector by a matrix to produce another vector
  • Build the matrix of a rotation, reflection or scaling from its columns
  • Interpret the absolute value of the determinant as an area scale factor

A matrix acting on a vector

Write a vector as a column and multiply it by a 2×22 \times 2 matrix. The result is another vector:

[abcd][xy]=[ax+bycx+dy]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix}

Try it with a particular matrix:

[0−110][21]=[−12]\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 2 \\ 1 \end{bmatrix} = \begin{bmatrix} -1 \\ 2 \end{bmatrix}
The matrix [[0, −1], [1, 0]] turns a vector a quarter turn In a square grid, an arrow from the origin to (2, 1) and a second arrow, in another color, from the origin to (-1, 2): the first turned 90 degrees counterclockwise, with the same length. ⟨2, 1⟩ ⟨−1, 2⟩ -3-2-1123-3-2-1123xy
The matrix [[0, −1], [1, 0]] turns a vector a quarter turn

The output has the same length as the input and points 90°90° further counterclockwise. This matrix does that to every vector. It is a rotation, and a matrix is a rule for moving the whole plane at once.

Why the columns tell the whole story

Feed the matrix the two simplest vectors, ⟨1,0⟩\langle 1, 0\rangle and ⟨0,1⟩\langle 0, 1\rangle:

[abcd][10]=[ac][abcd][01]=[bd]\begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} a \\ c \end{bmatrix} \qquad \begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{bmatrix} 0 \\ 1 \end{bmatrix} = \begin{bmatrix} b \\ d \end{bmatrix}

The columns are where those two vectors land. And every vector is built from those two: ⟨x,y⟩\langle x, y\rangle is xx copies of ⟨1,0⟩\langle 1, 0\rangle plus yy copies of ⟨0,1⟩\langle 0, 1\rangle. A matrix respects that building, so the image is xx copies of the first column plus yy copies of the second.

Two columns therefore decide where every point of the plane goes. That also gives the fastest way to build a matrix: find where ⟨1,0⟩\langle 1, 0\rangle and ⟨0,1⟩\langle 0, 1\rangle go, and write them down as columns.

A catalog of transformations

Transformation⟨1,0⟩\langle 1, 0\rangle goes to⟨0,1⟩\langle 0, 1\rangle goes toMatrix
rotate 90°90° counterclockwise⟨0,1⟩\langle 0, 1\rangle⟨−1,0⟩\langle -1, 0\rangle[0−110]\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}
reflect in the xx-axis⟨1,0⟩\langle 1, 0\rangle⟨0,−1⟩\langle 0, -1\rangle[100−1]\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}
reflect in y=xy = x⟨0,1⟩\langle 0, 1\rangle⟨1,0⟩\langle 1, 0\rangle[0110]\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}
stretch by 22 across, 33 up⟨2,0⟩\langle 2, 0\rangle⟨0,3⟩\langle 0, 3\rangle[2003]\begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix}
shear sideways⟨1,0⟩\langle 1, 0\rangle⟨1,1⟩\langle 1, 1\rangle[1101]\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}

These are the transformations from geometry, now carried out by a single multiplication.

Area and the determinant

The unit square has corners (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1) and (0,1)(0, 1). A matrix sends its two sides to the two columns, so the square becomes the parallelogram built on the columns.

Take T=[2103]T = \begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix}. Its columns are ⟨2,0⟩\langle 2, 0\rangle and ⟨1,3⟩\langle 1, 3\rangle.

The unit square and its image under [[2, 1], [0, 3]] The unit square in one color, and its image, a parallelogram with corners at (0, 0), (2, 0), (3, 3) and (1, 3), in another. Arrows along the parallelogram's sides from the origin show the two columns of the matrix. square image -112345-112345xy
The unit square and its image under [[2, 1], [0, 3]]

The parallelogram has base 22 and height 33, so its area is 66. The determinant is 2⋅3−1⋅0=62 \cdot 3 - 1 \cdot 0 = 6 as well, and that is not a coincidence.

The absolute value of the determinant is the factor by which the transformation multiplies areas. The unit square has area 11 and becomes a region of area ∣det⁡∣\lvert\det\rvert. Every other shape, being built from tiny squares, scales by the same factor.

det⁡\detEffect on the plane
∣det⁡∣>1\lvert\det\rvert > 1areas grow
0<∣det⁡∣<10 < \lvert\det\rvert < 1areas shrink
negativethe plane is also flipped, like a mirror image
00the plane collapses onto a line or a point

The last row explains the inverse rule. A matrix with determinant 00 squashes the plane flat, sending many points to the same place, and nothing can pull them apart again. That is why it has no inverse.

Composing transformations

Doing one transformation and then another is a matrix product, with the first transformation on the right. Reflecting in the xx-axis and then rotating 90°90° is RFR F:

RF=[0−110][100−1]=[0110]R F = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}

That is a reflection in y=xy = x. Doing them in the other order gives FR=[0−1−10]FR = \begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}, a reflection in y=−xy = -x — a different result, which is the non-commutative product seen from the geometric side.

Worked examples

Common mistakes

Practice problems

  1. Apply the 90°90° rotation matrix to ⟨3,1⟩\langle 3, 1\rangle.

    Answer

    ⟨−1,3⟩\langle -1, 3\rangle

    Full solution

    [0−110]\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} gives ⟨0⋅3−1⋅1, 1⋅3+0⋅1⟩=⟨−1,3⟩\langle 0 \cdot 3 - 1 \cdot 1,\ 1 \cdot 3 + 0 \cdot 1\rangle = \langle -1, 3\rangle.

  2. Apply the reflection in the xx-axis to ⟨3,2⟩\langle 3, 2\rangle.

    Answer

    ⟨3,−2⟩\langle 3, -2\rangle

    Full solution

    [100−1]\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} keeps the first component and negates the second.

  3. Find the matrix that doubles every length, in every direction.

    Answer

    [2002]\begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}

    Full solution

    ⟨1,0⟩\langle 1, 0\rangle goes to ⟨2,0⟩\langle 2, 0\rangle and ⟨0,1⟩\langle 0, 1\rangle to ⟨0,2⟩\langle 0, 2\rangle.

  4. By what factor does the matrix in problem 3 multiply areas?

    Answer

    44

    Full solution

    Its determinant is 2⋅2−0=42 \cdot 2 - 0 = 4. Doubling both length and width quadruples area.

  5. Find the area of the image of the unit square under [3112]\begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix}.

    Answer

    55

    Full solution

    The determinant is 3⋅2−1⋅1=53 \cdot 2 - 1 \cdot 1 = 5, and the unit square has area 11.

  6. Where does [2103]\begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix} send ⟨1,1⟩\langle 1, 1\rangle?

    Answer

    ⟨3,3⟩\langle 3, 3\rangle

    Full solution

    ⟨2+1,0+3⟩=⟨3,3⟩\langle 2 + 1, 0 + 3\rangle = \langle 3, 3\rangle — the far corner of the parallelogram in the figure.

  7. Describe what [1224]\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} does to the plane.

    Answer

    It flattens every point onto the line y=2xy = 2x.

    Full solution

    ⟨x,y⟩\langle x, y\rangle goes to ⟨x+2y, 2x+4y⟩\langle x + 2y,\ 2x + 4y\rangle, and the second component is always twice the first.

    The determinant is 4−4=04 - 4 = 0, so all areas become 00 and the matrix has no inverse.

  8. Multiply the 90°90° rotation matrix by itself. What transformation results?

    Answer

    [−100−1]\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}, a rotation by 180°180°.

    Full solution

    Two quarter turns make a half turn, which sends every ⟨x,y⟩\langle x, y\rangle to ⟨−x,−y⟩\langle -x, -y\rangle.

  9. A shape of area 77 is transformed by a matrix with determinant −2-2. What is the new area?

    Answer

    1414

    Full solution

    Areas scale by ∣−2∣=2\lvert -2\rvert = 2. The negative sign means the shape is also flipped over.

  10. For T=[2103]T = \begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix}, Amir says ⟨1,0⟩\langle 1, 0\rangle goes to ⟨2,1⟩\langle 2, 1\rangle. Find his error.

    Hint

    Multiply TT by ⟨1,0⟩\langle 1, 0\rangle and see which entries survive.

    Answer

    He read the first row. ⟨1,0⟩\langle 1, 0\rangle goes to the first column, ⟨2,0⟩\langle 2, 0\rangle.

    Full solution

    T[10]=[2⋅1+1⋅00⋅1+3⋅0]=[20]T\begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} 2 \cdot 1 + 1 \cdot 0 \\ 0 \cdot 1 + 3 \cdot 0 \end{bmatrix} = \begin{bmatrix} 2 \\ 0 \end{bmatrix}.

    The 11 in ⟨1,0⟩\langle 1, 0\rangle picks out the first entry of each row, and those entries form the first column.

Frequently asked questions

How does a matrix transform a vector?

Multiply the matrix by the vector written as a column. The result is the transformed vector.

How do I find the matrix for a transformation?

Find where the vectors ⟨1, 0⟩ and ⟨0, 1⟩ go. Those two images, written as columns, are the matrix.

What is the matrix for a 90° rotation?

[[0, −1], [1, 0]]. It sends ⟨1, 0⟩ to ⟨0, 1⟩ and ⟨0, 1⟩ to ⟨−1, 0⟩.

What does the determinant mean geometrically?

Its absolute value is the factor by which the transformation multiplies every area. A negative determinant also means the plane was flipped over.

What happens when the determinant is zero?

The whole plane is flattened onto a line or a point, so areas become zero and the transformation cannot be undone.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSN.VM.C.11Vector and Matrix Quantities(+) Multiply a vector (regarded as a matrix with one column) by a matrix of suitable dimensions to produce another vector. Work with matrices as transformations of vectors.
  • CCSS.MATH.CONTENT.HSN.VM.C.12Vector and Matrix Quantities(+) Work with 2 × 2 matrices as transformations of the plane, and interpret the absolute value of the determinant in terms of area.