Instructional videos are coming to Albert.Join the waitlist
Advanced Placement®
Practice
4.13

Transformation Matrix and More Matrices as Functions: A Review

transformation matrix
✎ Study Mode — Highlight text and annotate as you read.

Matrices do more than organize numbers into rows and columns — they encode transformations that reshape vectors, rotate coordinate planes, and scale geometric figures. On the AP® Precalculus exam, transformation matrices bridge abstract algebra and visual geometry, making them one of the most versatile topics in Unit 4.

This review covers how linear transformations work, how matrices represent them, the mechanics of rotation matrices, composition of transformations, inverse matrices, and how determinants measure dilation.

Understanding Linear Transformations

A linear transformation is a function that maps vectors from one space to another while preserving two fundamental operations: vector addition and scalar multiplication. If \(T\) is a linear transformation, then for any vectors \(\vec{u}\) and \(\vec{v}\) and any scalar \(c\):

A 2×2 matrix transforms the plane; its determinant tells how areas scale.
A 2×2 matrix transforms the plane; its determinant tells how areas scale.
  • \(T(\vec{u} + \vec{v}) = T(\vec{u}) + T(\vec{v})\)
  • \(T(c\vec{v}) = cT(\vec{v})\)

These two properties guarantee that straight lines remain straight and the origin stays fixed. Any operation that bends lines or shifts the origin is not a linear transformation.

Every linear transformation from \(\mathbb{R}^2\) to \(\mathbb{R}^2\) can be represented by a 2×2 matrix. To find the transformation matrix, apply the transformation to the standard basis vectors \(\vec{e}_1 = \langle 1, 0 \rangle\) and \(\vec{e}_2 = \langle 0, 1 \rangle\). The resulting images become the columns of the matrix.

For example, consider a transformation that stretches the \(x\)-coordinate by 2 and the \(y\)-coordinate by 3. Applying this to the basis vectors gives \(\langle 2, 0 \rangle\) and \(\langle 0, 3 \rangle\), producing the matrix:

\(\begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix}\)

To transform any vector \(\langle x, y \rangle\), multiply the matrix by the vector:

\(\begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix} \begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 2 \times 1 + 0 \times 1 \\ 0 \times 1 + 3 \times 1 \end{bmatrix} = \begin{bmatrix} 2 \\ 3 \end{bmatrix}\)

The vector \(\langle 1, 1 \rangle\) maps to \(\langle 2, 3 \rangle\) — stretched horizontally by a factor of 2 and vertically by a factor of 3.

The Transformation Matrix

Matrix multiplication: each entry is a row of the first times a column of the second.
Matrix multiplication: each entry is a row of the first times a column of the second.
A square scaled down to half its width and height by the transformation matrix [[0.5, 0], [0, 0.5]]
Davi.trip, CC BY-SA 4.0, via Wikimedia Commons

A transformation matrix is the numerical encoding of a linear transformation. Each entry in the matrix controls how the input vector’s components combine to form the output. For a general 2×2 transformation matrix:

\(M = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\)

the first column \(\langle a, c \rangle\) tells you where the unit vector along the \(x\)-axis lands, and the second column \(\langle b, d \rangle\) tells you where the unit vector along the \(y\)-axis lands. This column-by-column interpretation is the fastest way to understand what any transformation matrix does geometrically.

Common transformation matrices include:

Transformation Matrix Effect
Horizontal stretch by \(k\) \(\begin{bmatrix} k & 0 \\ 0 & 1 \end{bmatrix}\) Scales x-coordinates by \(k\)
Vertical stretch by \(k\) \(\begin{bmatrix} 1 & 0 \\ 0 & k \end{bmatrix}\) Scales y-coordinates by \(k\)
Reflection over \(x\)-axis \(\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\) Negates y-coordinates
Reflection over \(y\)-axis \(\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}\) Negates x-coordinates

2D Rotation Matrix

The 2D rotation matrix rotates every vector counterclockwise by an angle \(\theta\) about the origin. Its form is:

\(R(\theta) = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}\)

This matrix preserves the length of every vector it transforms — it changes direction without changing magnitude. This property makes rotation matrices orthogonal, meaning \(R^T = R^{-1}\).

To rotate the vector \(\langle 1, 0 \rangle\) by 90° (that is, \(\theta = \frac{\pi}{2}\)):

\(R\left(\frac{\pi}{2}\right) = \begin{bmatrix} \cos \frac{\pi}{2} & -\sin \frac{\pi}{2} \\ \sin \frac{\pi}{2} & \cos \frac{\pi}{2} \end{bmatrix} = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\)

Applying this to \(\langle 1, 0 \rangle\):

\(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} 0 \\ 1 \end{bmatrix}\)

The vector that pointed along the positive \(x\)-axis now points along the positive \(y\)-axis, exactly a 90° counterclockwise rotation. Key rotation angles to memorize: 90° maps \(\langle 1, 0 \rangle\) to \(\langle 0, 1 \rangle\), 180° maps it to \(\langle -1, 0 \rangle\), and 270° maps it to \(\langle 0, -1 \rangle\).

Composition of Linear Transformations

When you apply one linear transformation and then another, the combined effect is a composition. If matrix \(A\) represents the first transformation and matrix \(B\) represents the second, the composition is the product \(BA\) — note the reversed order. The transformation applied first goes on the right.

This ordering matters because matrix multiplication is not commutative: \(AB \neq BA\) in general. Scaling then rotating produces a different result than rotating then scaling.

For example, let \(A\) scale all coordinates by 2 and \(B\) apply a horizontal shear:

\(A = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}\)

Applying \(A\) first, then \(B\):

\(BA = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} = \begin{bmatrix} 2 & 2 \\ 0 & 2 \end{bmatrix}\)

The resulting matrix first doubles every component, then shears horizontally. Any vector transformed by \(BA\) undergoes both operations in a single matrix multiplication.

Inverse of Linear Transformations

The inverse of a transformation matrix undoes whatever the original matrix did. If matrix \(A\) maps vector \(\vec{v}\) to \(\vec{w}\), then \(A^{-1}\) maps \(\vec{w}\) back to \(\vec{v}\). Mathematically, \(AA^{-1} = A^{-1}A = I\), where \(I\) is the identity matrix.

For a 2×2 matrix \(A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\), the inverse is:

\(A^{-1} = \frac{1}{ad – bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\)

The quantity \(ad – bc\) is the determinant. If the determinant equals zero, the matrix has no inverse — the transformation collapses the plane onto a line or point, and that collapse cannot be reversed.

For the scaling matrix \(A = \begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix}\), the determinant is \(2 \cdot 3 – 0 \cdot 0 = 6\), so:

\(A^{-1} = \frac{1}{6} \begin{bmatrix} 3 & 0 \\ 0 & 2 \end{bmatrix} = \begin{bmatrix} \frac{1}{2} & 0 \\ 0 & \frac{1}{3} \end{bmatrix}\)

This inverse scales \(x\) by \(\frac{1}{2}\) and \(y\) by \(\frac{1}{3}\), exactly reversing the original stretch.

Dilation and the Determinant

The determinant of a transformation matrix tells you how the transformation changes area. Specifically, if a region has area \(S\) before the transformation, its area afterward is \(|\det(A)| \cdot S\).

For the 2×2 matrix \(A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\), the determinant is:

\(\det(A) = ad – bc\)

The absolute value \(|\det(A)|\) gives the area scaling factor. A determinant of 1 means area is preserved (as with rotation matrices). A determinant of 0 means the transformation flattens everything onto a line or point. A negative determinant means the transformation includes a reflection — it flips the orientation of the plane.

For the matrix \(A = \begin{bmatrix} 2 & 3 \\ 1 & 2 \end{bmatrix}\):

\(\det(A) = (2)(2) – (3)(1) = 4 – 3 = 1\)

Since \(|\det(A)| = 1\), this transformation preserves area. It reshapes regions but does not expand or compress them.

Quick Reference Chart

Term Definition or Key Feature
Linear Transformation A function mapping vectors that preserves addition and scalar multiplication
Transformation Matrix A matrix whose columns are the images of the standard basis vectors under the transformation
2D Rotation Matrix \(\begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}\) — rotates vectors counterclockwise by \(\theta\)
Composition Applying transformation \(A\) then \(B\) gives \(BA\) (right-to-left order)
Inverse Matrix Reverses the effect of a transformation; exists only when \(\det(A) \neq 0\)
Determinant \(ad – bc\) for a 2×2 matrix; its absolute value is the area scaling factor

Test-Taking Strategies for Transformation Matrix Problems

Transformation matrix problems on the AP® Precalculus exam test whether you truly understand what matrices do geometrically, not just whether you can multiply. Use the mnemonic COLUMN to stay organized: Columns show basis images, Order matters in composition, Look at the determinant, Undo with the inverse, Multiply carefully, Note the geometry.

Cross-topic connections to watch for: Transformation matrices connect directly to systems of equations (the matrix equation \(A\vec{x} = \vec{b}\)), parametric functions (transformed parametric curves), and trigonometric functions (rotation matrices use \(\cos\) and \(\sin\)). When a problem involves rotating a curve or reflecting a graph, think transformation matrix. When a problem asks about area changes after a mapping, think determinant.

Common question formats: Expect questions asking you to identify the matrix for a described transformation, compute the image of a specific vector, find the composition of two transformations, determine whether a transformation is invertible, or calculate how area changes. Multiple-choice distractors often swap the order of composition (\(AB\) instead of \(BA\)) or mix up rows and columns.

Frequent student mistakes: The most common error is composition order — remember that “first transformation on the right” is the rule. Students also frequently miscalculate 2×2 matrix products by mixing up which row multiplies which column. Another trap: mixing up angle units. \(\theta = 90°\) and \(\frac{\pi}{2}\) are the same angle, so either works in a rotation matrix, but your calculator’s mode (degrees or radians) must match the unit you substitute into \(\cos\) and \(\sin\).

Test-day shortcuts: For quick geometric identification, check what happens to \(\langle 1, 0 \rangle\) and \(\langle 0, 1 \rangle\) — the results are just the columns of the matrix, no multiplication needed. For rotation matrices, if you know the angle, you can write the matrix immediately from the \(\cos/\sin\) template without deriving it. For determinants of 2×2 matrices, the cross-multiply pattern \(ad – bc\) takes seconds.

Time management tips: Matrix multiplication problems look time-consuming but follow a mechanical pattern. Write out the row-by-column products systematically rather than trying to do them mentally. For composition questions, set up the product \(BA\) with the correct order before computing anything. If a question asks only whether a matrix is invertible, compute the determinant and check if it is zero — you do not need to find the actual inverse.

Mnemonic for the inverse formula: For \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\), the inverse swaps \(a\) and \(d\), negates \(b\) and \(c\), and divides by the determinant. Think “Swap, Negate, Divide” — SND.

Check for Understanding

Think you’ve got it? Complete the quiz below to make sure. Download your results at the end.

Highlight & Annotate
📝

Study Annotations

You just made your first highlight! You can highlight text and click images to add study notes as you read.

Your annotations are saved during this session, as long as you keep this browser tab open. When you’re done, use the Print button to save the article with all your notes in the margins.

Click any highlight to view or edit your note.

Click another word to finish highlighting, or press Esc to cancel
0 Notes
Study Mode
Print Preview — Article with Annotations

Ready to practice? Try Albert free.

Build real confidence with thousands of adaptive practice questions across AP®, SAT®, ACT®, and core subjects — aligned to what you’re studying right now.

Practice for AP® Precalculus