Fiveable

📈AP Pre-Calculus Unit 4 Review

QR code for AP Pre-Calculus practice questions

4.13 Matrices as Functions

4.13 Matrices as Functions

Written by the Fiveable Content Team • Last updated June 2026
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated June 2026
📈AP Pre-Calculus
Unit & Topic Study Guides
Pep mascot

A 2 x 2 matrix can act like a function that takes an input vector and produces an output vector. The columns of that matrix tell you where the standard unit vectors land, so once you know how the transformation moves 1,0\langle 1, 0\rangle and 0,1\langle 0, 1\rangle, you know the whole matrix.

Why This Matters for the AP Precalculus Exam

Unit 4 topics, including matrices as functions, are not assessed on the AP Precalculus exam. The exam covers Units 1, 2, and 3. Still, this topic is worth learning because it ties together vectors, matrix multiplication, determinants, and inverses into one clear idea: a matrix is a function on vectors.

The thinking you build here carries into later math and science. Connecting a rule like x,ya11x+a12y, a21x+a22y\langle x, y\rangle \mapsto \langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle to a single matrix is exactly the kind of move-between-representations reasoning the course wants you to practice. If your school includes Unit 4, use technology to build matrices, multiply them, and find inverses, just as you would for other calculator-supported work.

Key Takeaways

  • The linear transformation that sends x,y\langle x, y\rangle to a11x+a12y, a21x+a22y\langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle matches the matrix [a11a12a21a22]\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}.
  • The columns of the matrix are the images of the unit vectors 1,0\langle 1, 0\rangle and 0,1\langle 0, 1\rangle, so mapping the unit vectors gives you the matrix.
  • The rotation matrix [cosθsinθsinθcosθ]\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix} rotates every vector an angle θ\theta counterclockwise about the origin.
  • The absolute value of the determinant tells you how much the transformation scales the area of regions in R2\mathbb{R}^2.
  • The matrix for a composition of two transformations is the product of the two matrices, and order matters.
  • If L(v)=AvL(v) = Av and AA is invertible, the inverse transformation is L1(v)=A1vL^{-1}(v) = A^{-1}v.

Connecting Linear Transformations and Matrices

The linear transformation mapping a vector x,y\langle x, y\rangle to a vector a11x+a12y, a21x+a22y\langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle is represented by the matrix [a11a12a21a22]\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}, a 2 x 2 matrix. This is called a transformation matrix, and it stores all the information about the transformation in the four coefficients a11a_{11}, a12a_{12}, a21a_{21}, and a22a_{22}.

When the vector x,y\langle x, y\rangle is multiplied by the matrix [a11a12a21a22]\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}, the result is the new vector a11x+a12y, a21x+a22y\langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle. That new vector is the image of the original vector under the transformation.

Mapping the Unit Vectors

The mapping of the unit vectors gives you a fast way to find the matrix. In two dimensions, the unit vectors are 1,0\langle 1, 0\rangle and 0,1\langle 0, 1\rangle, often called the standard basis vectors. The transformation sends each unit vector to a new vector, and those new vectors are the columns of the transformation matrix.

For example, if the transformation maps 1,0\langle 1, 0\rangle to a11,a21\langle a_{11}, a_{21}\rangle and maps 0,1\langle 0, 1\rangle to a12,a22\langle a_{12}, a_{22}\rangle, then the transformation matrix is [a11a12a21a22]\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}. Track where the unit vectors land, write those results as columns, and you have the matrix.

Rotation Matrices

The matrix associated with rotating every vector an angle θ\theta counterclockwise about the origin is the rotation matrix:

[cosθsinθsinθcosθ]\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}

When a vector x,y\langle x, y\rangle is multiplied by this matrix, the resulting vector x,y\langle x', y'\rangle is the image of the original vector under the rotation:

x=xcosθysinθx' = x\cos\theta - y\sin\theta

y=xsinθ+ycosθy' = x\sin\theta + y\cos\theta

So xx' and yy' are the coordinates after rotating by an angle θ\theta counterclockwise. The matrix stores everything about the rotation, including the angle θ\theta.

To rotate clockwise instead, replace θ\theta with θ-\theta. Because cos(θ)=cosθ\cos(-\theta) = \cos\theta and sin(θ)=sinθ\sin(-\theta) = -\sin\theta, the clockwise rotation matrix is [cosθsinθsinθcosθ]\begin{bmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{bmatrix}.

Determinants and Area Scaling

The absolute value of the determinant of a 2 x 2 transformation matrix gives the magnitude of the dilation of regions in R2\mathbb{R}^2 under the transformation. For a 2 x 2 matrix, the determinant is:

det[a11a12a21a22]=a11a22a12a21\det \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} = a_{11}a_{22} - a_{12}a_{21}

The absolute value of this number is the area-scaling factor. If detA=2|\det A| = 2, the transformation doubles the area of regions. If detA=12|\det A| = \tfrac{1}{2}, it cuts areas in half. The sign of the determinant tells you about orientation: a negative determinant means the transformation flips orientation, like a reflection, while still scaling area by the absolute value.

Compositions of Two Linear Transformations

The composition of two linear transformations is itself a linear transformation. A linear transformation takes a vector as input and produces a vector as output. When you compose two of them, the output of the first becomes the input of the second.

If ff maps a vector xx to a vector yy, and gg maps yy to a vector zz, then the composition is written g(f(x))g(f(x)) and it sends xx all the way to zz.

The matrix associated with the composition of two linear transformations is the product of the matrices associated with each transformation. If AA is the matrix for ff and BB is the matrix for gg, then the matrix for the composition that applies ff first and then gg is BABA. Multiplying a vector by that product carries it through both transformations in order.

Order matters. In general ABBAAB \neq BA, so swapping the order of the matrices usually changes the result. Keep careful track of which transformation happens first.

Inverses of Linear Transformations

Two linear transformations are inverses if their composition maps any vector back to itself. An inverse transformation undoes the effect of the original. If ff maps xx to yy and gg maps yy back to xx, then gg is the inverse of ff, written f1f^{-1}.

If a linear transformation LL is given by L(v)=AvL(v) = Av, then its inverse transformation is:

L1(v)=A1vL^{-1}(v) = A^{-1}v

where A1A^{-1} is the inverse of the matrix AA. This follows directly from how matrix-vector multiplication works. The matrix AA encodes the transformation, and A1A^{-1} reverses it:

L1(Av)=A1(Av)=A1Av=Iv=vL^{-1}(Av) = A^{-1}(Av) = A^{-1}A\,v = Iv = v

Here II is the identity matrix, the matrix that leaves every vector unchanged. Applying A1A^{-1} to the output AvAv returns the original vector vv.

Not every matrix has an inverse. A 2 x 2 matrix AA is invertible if and only if its determinant is not zero. When detA=0\det A = 0, the transformation collapses the plane onto a line or a point, so there is no way to undo it.

How to Use This on the AP Precalculus Exam

Problem Solving

  • To find a transformation matrix, track where 1,0\langle 1, 0\rangle and 0,1\langle 0, 1\rangle go. Write each image as a column, and you have the matrix.
  • To rotate a vector counterclockwise by θ\theta, multiply by [cosθsinθsinθcosθ]\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}. For clockwise, use θ-\theta.
  • To find how a transformation scales area, compute detA|\det A|. A negative determinant also flips orientation.
  • To compose transformations, multiply the matrices in the right order. The transformation applied first sits on the right of the product.
  • To undo a transformation L(v)=AvL(v) = Av, use L1(v)=A1vL^{-1}(v) = A^{-1}v, and remember it only exists when detA0\det A \neq 0.

Using Technology

If your school covers Unit 4, practice building matrices, multiplying them, and finding inverses on a graphing calculator. These are the same calculator skills used elsewhere in the course, so getting comfortable with them helps your overall fluency.

Common Misconceptions

  • The columns of the matrix, not the rows, are the images of the unit vectors. 1,0\langle 1, 0\rangle maps to the first column and 0,1\langle 0, 1\rangle maps to the second column.
  • Order matters when composing. The matrix for "do ff first, then gg" is BABA, not ABAB. Matrix multiplication is generally not commutative.
  • The determinant scales area, not length. detA|\det A| tells you the area-scaling factor for regions, not how much a single vector stretches.
  • A negative determinant does not mean the area shrinks. The area scales by the absolute value. The negative sign signals a flip in orientation, like a reflection.
  • Not every matrix is invertible. If detA=0\det A = 0, the transformation squashes the plane to a line or point and cannot be reversed, so A1A^{-1} does not exist.
  • The rotation matrix rotates about the origin. It rotates every vector around the origin by θ\theta, not around some other point.

Vocabulary

The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.

Term

Definition

composition of functions

A function operation where one function is applied to the output of another function, written as (f ∘ g)(x) = f(g(x)).

composition of linear transformations

The result of applying one linear transformation followed by another linear transformation.

determinant

A scalar value calculated from a square matrix that determines whether the matrix is invertible; for a 2×2 matrix [a b; c d], the determinant equals ad - bc.

dilation

A linear transformation that scales regions by a constant factor, with the magnitude determined by the absolute value of the determinant.

inverse transformations

Two linear transformations that are inverses if their composition maps any vector to itself, effectively undoing each other's effects.

linear transformation

A function that maps vectors to vectors while preserving vector addition and scalar multiplication, represented by a matrix.

matrix

A rectangular array of numbers arranged in rows and columns that represents a linear transformation.

matrix inverse

A matrix that, when multiplied by the original matrix, produces the identity matrix; a square matrix has an inverse if and only if its determinant is nonzero.

matrix product

The product of two matrices that represents the composition of their corresponding linear transformations.

rotation

A linear transformation that rotates every vector by a fixed angle about the origin without changing its length.

unit vector

A vector with a magnitude of 1, often used to indicate direction.

vector

A mathematical object with both magnitude and direction, represented as an ordered pair of components in ℝ².

Frequently Asked Questions

How can a matrix act like a function?

A 2 x 2 matrix can take an input vector and produce an output vector. The matrix stores the rule for a linear transformation, so multiplying the matrix by a vector gives the vector’s image.

How do you find the matrix for a linear transformation?

Track where the unit vectors <1, 0> and <0, 1> go. Write those two image vectors as the columns of the matrix.

What does the AP Precalculus rotation matrix do?

The matrix [[cos θ, -sin θ], [sin θ, cos θ]] rotates every vector θ radians or degrees counterclockwise about the origin, depending on the angle units in the problem.

What does the determinant tell you about a transformation?

The absolute value of the determinant tells you the area-scaling factor for regions in the plane. A negative determinant also means the transformation reverses orientation.

How do you compose two matrix transformations?

Multiply the matrices in the order that matches the transformations. If A happens first and B happens second, the combined matrix is BA because the rightmost matrix acts first.

When does a matrix transformation have an inverse?

A 2 x 2 matrix transformation has an inverse when its determinant is not zero. If det A = 0, the transformation collapses the plane and cannot be undone.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly→ and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot