AP Precalculus · Study guide

Linear Transformations and Matrices

AP® Precalculus · Unit 4 · Functions Involving Parameters, Vectors, and Matrices

Linear Transformations and Matrices

A linear transformation moves every point of the plane by a rule built only from multiplying and adding the coordinates. Every such rule is multiplication by a 2 × 2 matrix. This guide translates between rules and matrices and transforms many points at once.

The idea in one paragraph

A linear transformation \(L\) takes an input vector \(\langle x, y\rangle\) to an output vector whose components are sums of constant multiples of \(x\) and \(y\), like \(\langle 2x + y, x - 3y\rangle\). It always sends the zero vector to the zero vector. Writing vectors as \(2 \times 1\) columns, every linear transformation of the plane is \(L(\vec v) = A\vec v\) for one and only one \(2 \times 2\) matrix \(A\), and every \(2 \times 2\) matrix gives one. To transform \(n\) vectors at once, put them as the columns of a \(2 \times n\) matrix and multiply.

1What makes a transformation linear

Worked Example 1 Linear or not?

Are \(T(\langle x, y\rangle) = \langle x + 1, y\rangle\) and \(U(\langle x, y\rangle) = \langle x^2, y\rangle\) linear transformations?

  1. 1
    A linear transformation sends \(\langle 0, 0\rangle\) to \(\langle 0, 0\rangle\). \(T(\langle 0, 0\rangle) = \langle 1, 0\rangle\), so \(T\) is not linear (it is a shift).
  2. 2
    \(U(\langle 0, 0\rangle) = \langle 0, 0\rangle\), but \(x^2\) is not a constant multiple of \(x\). \(U\) is not linear either.
Answer: Neither is linear.
Common Mistake 1 · Calling a shift linear

“Move every point 1 unit right” is a perfectly good transformation, but it moves the origin, so it is not linear and no \(2 \times 2\) matrix does it.

2The matrix of a transformation

The coefficients of \(x\) and \(y\) in the first output component form the first row; those in the second form the second row. Write a coefficient of 0 for any missing variable.

Worked Example 2 From a rule to a matrix

\(L(\langle x, y\rangle) = \langle 2x + y,\ x - 3y\rangle\). Find its matrix and \(L(\langle 3, -1\rangle)\).

  1. 1
    Each output component is a sum of constant multiples of \(x\) and \(y\), so \(L\) is linear. The coefficients form the rows: \(A = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}\).
  2. 2
    \(A\begin{bmatrix} 3 \\ -1 \end{bmatrix} = \begin{bmatrix} 6 - 1 \\ 3 + 3 \end{bmatrix} = \begin{bmatrix} 5 \\ 6 \end{bmatrix}\).
Answer: \(A = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}\); \(L(\langle 3, -1\rangle) = \langle 5, 6\rangle\)
Worked Example 3 A rule with a missing variable

Find the matrix of \(L(\langle x, y\rangle) = \langle 3y, -x\rangle\) and use it on \(\langle 2, 5\rangle\).

  1. 1
    Write every component with both variables: \(\langle 0x + 3y,\ -1x + 0y\rangle\). Matrix: \(\begin{bmatrix} 0 & 3 \\ -1 & 0 \end{bmatrix}\).
  2. 2
    \(\begin{bmatrix} 0 & 3 \\ -1 & 0 \end{bmatrix}\begin{bmatrix} 2 \\ 5 \end{bmatrix} = \begin{bmatrix} 15 \\ -2 \end{bmatrix}\).
Answer: \(\langle 15, -2\rangle\)
Write it like this

“\(L(\langle x, y\rangle) = \langle 2x + y, x - 3y\rangle\) is the linear transformation \(L(\vec v) = A\vec v\) with \(A = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}\).”

Common Mistake 2 · Putting the coefficients in columns

For \(\langle 3y, -x\rangle\), the first row holds the coefficients of the first output: 0, 3. Putting them in a column instead gives \(\begin{bmatrix} 0 & -1 \\ 3 & 0 \end{bmatrix}\), which sends \(\langle 2, 5\rangle\) to \(\langle -5, 6\rangle\) instead of \(\langle 15, -2\rangle\).

3Transforming several vectors

Figure 1. Here A has rows 2, 1 and 0, 1. Multiplying each corner by A gives the new corners. Straight lines stay straight, and the origin stays put, as with every linear transformation.
Worked Example 4 Many vectors at once

Apply \(A = \begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}\) to the corners of the unit square.

  1. 1
    Put the corners \((0, 0), (1, 0), (1, 1), (0, 1)\) as the columns of a \(2 \times 4\) matrix.
  2. 2
    \(\begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}\begin{bmatrix} 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 1 \end{bmatrix} = \begin{bmatrix} 0 & 2 & 3 & 1 \\ 0 & 0 & 1 & 1 \end{bmatrix}\).
  3. 3
    Each column of the product is the image of the matching corner.
Answer: \((0, 0), (2, 0), (3, 1), (1, 1)\): a parallelogram (Figure 1).

Quick reference

IdeaIn symbols
LinearOutput components are sums of constant multiples of \(x\) and \(y\)
Zero vector\(L(\vec 0) = \vec 0\) always
Matrix\(\langle ax + by,\ cx + dy\rangle \leftrightarrow \begin{bmatrix} a & b \\ c & d \end{bmatrix}\)
Apply\(L(\vec v) = A\vec v\)
n vectors\(A\) times a \(2 \times n\) matrix of columns