| Study Guides
Precalculus · Unit 4: Functions Involving Parameters, Vectors, and Matrices · 14 min read · Updated 2026-05-11

Matrices as functions — AP Precalculus

AP Precalculus · Unit 4: Functions Involving Parameters, Vectors, and Matrices · 14 min read

1. Core Definition of Matrix Functions ★★☆☆☆ ⏱ 3 min

In AP Precalculus Unit 4, matrices are framed not just as static arrays of numbers, but as linear functions that map input vectors to output vectors. This topic makes up 8-10% of Unit 4 content, appearing on both multiple-choice and free-response exam sections, often paired with geometric transformations or vector applications.

Unlike general non-linear functions, all matrix functions satisfy two core linearity properties: $f(a\mathbf{v}) = a f(\mathbf{v})$ for any scalar $a$, and $f(\mathbf{v} + \mathbf{w}) = f(\mathbf{v}) + f(\mathbf{w})$ for any input vectors $\mathbf{v}, \mathbf{w}$. This framework unifies many geometric and algebraic operations, turning scaling, rotation, and reflection into easily computed matrix products.

2. Matrix-Vector Multiplication as Function Evaluation ★★☆☆☆ ⏱ 4 min

When treating a matrix as a function, evaluating the function at a vector input is exactly matrix-vector multiplication. Dimension rules for multiplication align directly with function domain and codomain rules: an $m \times n$ matrix accepts $n \times 1$ vectors, so its domain is all of $\mathbb{R}^n$, and outputs $m \times 1$ vectors, so its codomain is all of $\mathbb{R}^m$.

A = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} \end{bmatrix}, \quad \mathbf{v} = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix}

The output is calculated by taking the dot product of each row of $A$ with $\mathbf{v}$:

A\mathbf{v} = \begin{bmatrix} a_{11}v_1 + a_{12}v_2 + \dots + a_{1n}v_n \\ a_{21}v_1 + a_{22}v_2 + \dots + a_{2n}v_n \\ \vdots \\ a_{m1}v_1 + a_{m2}v_2 + \dots + a_{mn}v_n \end{bmatrix}

Exam tip: Always confirm that the input vector dimension matches the number of columns of the matrix before multiplying—if it does not, the function is undefined at that input, a common trick answer for multiple-choice questions.

3. Composition of Matrix Functions ★★★☆☆ ⏱ 4 min

Just like any other function, matrix functions can be composed if the output dimension of the inner function matches the input dimension of the outer function. For two functions $f: \mathbb{R}^n \to \mathbb{R}^m$ (defined by $m \times n$ matrix $A_f$) and $g: \mathbb{R}^m \to \mathbb{R}^k$ (defined by $k \times m$ matrix $B_g$), the composition $(g \circ f)(\mathbf{v}) = g(f(\mathbf{v}))$ simplifies to matrix multiplication: $(g \circ f)(\mathbf{v}) = B_g (A_f \mathbf{v}) = (B_g A_f)\mathbf{v}$.

This means composition of matrix functions is exactly equivalent to matrix multiplication, with the same right-to-left order as function composition: the inner (first applied) function’s matrix goes on the right, and the outer (second applied) function’s matrix goes on the left. Unlike scalar function multiplication, matrix composition is not commutative, so order always changes the result for most pairs of matrices.

Exam tip: If the question asks for $f \circ g$ (f after g) instead of $g \circ f$, reverse the order of multiplication to $A_f B_g$, not $B_g A_f$. Never assume order does not matter.

4. Geometric Transformations as Matrix Functions ★★★☆☆ ⏱ 5 min

All linear 2D geometric transformations can be represented as 2×2 matrix functions that map input position vectors $\begin{bmatrix} x \\ y \end{bmatrix}$ to output transformed position vectors. Common transformations tested on the AP exam include uniform scaling, reflection over the x-axis, y-axis, or line $y=x$, and rotation around the origin.

Each of these transformations is linear, so they fit the matrix function framework, and all are invertible when their determinants are non-zero. When multiple transformations are applied in sequence, the combined transformation matrix is found by composing the individual matrix functions, following the right-to-left order rule.

Exam tip: Always order transformation matrices with the first applied transformation on the right of the product, because it is the inner function in the composition.

5. Concept Check ★★☆☆☆ ⏱ 2 min

Common Pitfalls

Why: Students mix up rows and columns when matching matrix dimensions to domain/codomain

Why: Students confuse the order of function composition, treating written order as left-to-right

Why: Students incorrectly generalize that all square matrices are invertible

Why: Students memorize the rotation matrix but do not account for direction

Why: Students confuse matrix-vector multiplication with column combinations when working with column vectors

Why: Students match the written order of $g$ then $f$ to left-to-right matrix order

Quick Reference Cheatsheet

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →