---
title: "AP Precalculus 4.13: Matrices as Functions Explained"
description: "Learn how 2x2 matrices represent linear transformations in AP Precalculus. Covers rotation matrices, determinants, composition, and inverse transformations."
canonical: "https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9"
type: "study-guide"
subject: "AP Pre-Calculus"
unit: "Unit 4 – Functions Involving Parameters, Vectors, and Matrices"
lastUpdated: "2026-06-09"
---

# AP Precalculus 4.13: Matrices as Functions Explained

## Summary

Learn how 2x2 matrices represent linear transformations in AP Precalculus. Covers rotation matrices, determinants, composition, and inverse transformations.

## Guide

A 2 x 2 [matrix](/ap-pre-calc/unit-4/matrices/study-guide/V3FaFXSlBTaJW9k0 "fv-autolink") 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](/ap-pre-calc/key-terms/unit-vector "fv-autolink") land, so once you know how the transformation moves $\langle 1, 0\rangle$ and $\langle 0, 1\rangle$, you know the whole matrix.

## Why This Matters for the AP Precalculus Exam

[Unit 4](/ap-pre-calc/unit-4 "fv-autolink") 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](/ap-pre-calc/unit-4/vectors/study-guide/E38atN4oigqKq7in "fv-autolink"), 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 $\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 $\langle x, y\rangle$ to $\langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle$ matches the matrix $\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}$.
- The columns of the matrix are the images of the unit vectors $\langle 1, 0\rangle$ and $\langle 0, 1\rangle$, so mapping the unit vectors gives you the matrix.
- The [rotation matrix](/ap-pre-calc/key-terms/rotation-matrix "fv-autolink") $\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}$ rotates every vector an angle $\theta$ counterclockwise about the [origin](/ap-pre-calc/unit-3/polar-function-graphs/study-guide/4Con24QzKXI6SrwldHmX "fv-autolink").
- The absolute value of the determinant tells you how much the transformation scales the area of regions in $\mathbb{R}^2$.
- The matrix for a [composition](/ap-pre-calc/unit-2/inverse-functions/study-guide/JkTPSAR9TH5LfSXP "fv-autolink") of two transformations is the product of the two matrices, and order matters.
- If $L(v) = Av$ and $A$ is [invertible](/ap-pre-calc/key-terms/invertible-function "fv-autolink"), the inverse transformation is $L^{-1}(v) = A^{-1}v$.

## Connecting Linear Transformations and Matrices

The linear transformation mapping a vector $\langle x, y\rangle$ to a vector $\langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle$ is represented by the matrix $\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}$, a 2 x 2 matrix. This is called a **[transformation matrix](/ap-pre-calc/key-terms/transformation-matrix "fv-autolink")**, and it stores all the information about the transformation in the four coefficients $a_{11}$, $a_{12}$, $a_{21}$, and $a_{22}$.

When the vector $\langle x, y\rangle$ is multiplied by the matrix $\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}$, the result is the new vector $\langle a_{11}x + a_{12}y,\ a_{21}x + a_{22}y\rangle$. That new vector is the **[image](/ap-pre-calc/key-terms/image "fv-autolink")** 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 $\langle 1, 0\rangle$ and $\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 $\langle 1, 0\rangle$ to $\langle a_{11}, a_{21}\rangle$ and maps $\langle 0, 1\rangle$ to $\langle a_{12}, a_{22}\rangle$, then the transformation matrix is $\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**:

$$\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}$$

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

$$x' = x\cos\theta - y\sin\theta$$

$$y' = x\sin\theta + y\cos\theta$$

So $x'$ and $y'$ are the [coordinates](/ap-pre-calc/unit-3 "fv-autolink") 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(-\theta) = \cos\theta$ and $\sin(-\theta) = -\sin\theta$, the clockwise rotation matrix is $\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](/ap-pre-calc/key-terms/magnitude "fv-autolink") of the [dilation](/ap-pre-calc/key-terms/dilation "fv-autolink") of regions in $\mathbb{R}^2$ under the transformation. For a 2 x 2 matrix, the determinant is:

$$\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 $|\det A| = 2$, the transformation doubles the area of regions. If $|\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](/ap-pre-calc/unit-2/inverses-exponential-functions/study-guide/7mdx6zi19alJ4hK3 "fv-autolink"), 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 $f$ maps a vector $x$ to a vector $y$, and $g$ maps $y$ to a vector $z$, then the composition is written $g(f(x))$ and it sends $x$ all the way to $z$.

The matrix associated with the composition of two linear transformations is the product of the matrices associated with each transformation. If $A$ is the matrix for $f$ and $B$ is the matrix for $g$, then the matrix for the composition that applies $f$ first and then $g$ is $BA$. Multiplying a vector by that product carries it through both transformations in order.

Order matters. In general $AB \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 $f$ maps $x$ to $y$ and $g$ maps $y$ back to $x$, then $g$ is the inverse of $f$, written $f^{-1}$.

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

$$L^{-1}(v) = A^{-1}v$$

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

$$L^{-1}(Av) = A^{-1}(Av) = A^{-1}A\,v = Iv = v$$

Here $I$ is the [identity matrix](/ap-pre-calc/unit-4/inverse-determinant-matrix/study-guide/5R16yv2jjzGKkQ3H "fv-autolink"), the matrix that leaves every vector unchanged. Applying $A^{-1}$ to the output $Av$ returns the original vector $v$.

Not every matrix has an inverse. A 2 x 2 matrix $A$ is invertible if and only if its determinant is not [zero](/ap-pre-calc/unit-1/polynomial-functions-complex-zeros/study-guide/Ex6Y5wBlobCpxdVr "fv-autolink"). When $\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 $\langle 1, 0\rangle$ and $\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 $\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}$. For clockwise, use $-\theta$.
- To find how a transformation scales area, compute $|\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) = Av$, use $L^{-1}(v) = A^{-1}v$, and remember it only exists when $\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.** $\langle 1, 0\rangle$ maps to the first column and $\langle 0, 1\rangle$ maps to the second column.
- **Order matters when composing.** The matrix for "do $f$ first, then $g$" is $BA$, not $AB$. Matrix multiplication is generally not [commutative](/ap-pre-calc/unit-2/composition-functions/study-guide/glFlt2HgsCSjvjSL "fv-autolink").
- **The determinant scales area, not length.** $|\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 $\det A = 0$, the transformation squashes the plane to a line or point and cannot be reversed, so $A^{-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.

## Related AP Precalculus Guides

- [4.9 Vector-Valued Functions](/ap-pre-calc/unit-4/vector-valued-functions/study-guide/whLsHN0aHpK1U3Ae)
- [4.11 The Inverse and Determinant of a Matrix](/ap-pre-calc/unit-4/inverse-determinant-matrix/study-guide/5R16yv2jjzGKkQ3H)
- [4.5 Implicitly Defined Functions](/ap-pre-calc/unit-4/implicitly-defined-functions/study-guide/Mte9qLDnbtGWht7g)
- [4.8 Vectors](/ap-pre-calc/unit-4/vectors/study-guide/E38atN4oigqKq7in)
- [4.12 Linear Transformations and Matrices](/ap-pre-calc/unit-4/linear-transformations-matrices/study-guide/fcZC60nNumkMiS05)
- [4.4 Parametrically Defined Circles and Lines](/ap-pre-calc/unit-4/parametrically-defined-circles-lines/study-guide/5PNaoSvqKLbAnKQQ)

## Vocabulary

- **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 ℝ².

## FAQs

### 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.

## Structured Data

```json
{"@context":"https://schema.org","@type":"FAQPage","inLanguage":"en","mainEntity":[{"@type":"Question","@id":"https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9#how-can-a-matrix-act-like-a-function","name":"How can a matrix act like a function?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","@id":"https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9#how-do-you-find-the-matrix-for-a-linear-transformation","name":"How do you find the matrix for a linear transformation?","acceptedAnswer":{"@type":"Answer","text":"Track where the unit vectors  and  go. Write those two image vectors as the columns of the matrix."}},{"@type":"Question","@id":"https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9#what-does-the-ap-precalculus-rotation-matrix-do","name":"What does the AP Precalculus rotation matrix do?","acceptedAnswer":{"@type":"Answer","text":"The matrix [[cos θ, -sin θ], [sin θ, cos θ]] rotates every vector θ radians or degrees counterclockwise about the origin, depending on the angle units in the problem."}},{"@type":"Question","@id":"https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9#what-does-the-determinant-tell-you-about-a-transformation","name":"What does the determinant tell you about a transformation?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","@id":"https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9#how-do-you-compose-two-matrix-transformations","name":"How do you compose two matrix transformations?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","@id":"https://fiveable.me/ap-pre-calc/unit-4/matrices-as-functions/study-guide/5YRNj78FIP4lmMi9#when-does-a-matrix-transformation-have-an-inverse","name":"When does a matrix transformation have an inverse?","acceptedAnswer":{"@type":"Answer","text":"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."}}]}
```
