Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Precalculus · Unit 4 · Step-Through Animation

Matrices as Functions

One Vector In, One Vector Out

You'll learnto treat a matrix as a function: one vector in, one vector out.

Topic 4.12 watched the whole plane move at once. Here a matrix is a function: feed it one vector and it hands back exactly one, by the same rule every time. That single-input view is what lets sums pass straight through it and lets two machines chain into one. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · MACHINE · COLUMNS · LINEARITY · COMPOSITION · v4

Unit 4 is not assessed on the AP exam; schools include it where local requirements ask.

rows do the arithmetic, columns say what the map is
Before you start
What you're looking at
A single input arrow on the plane, about to be sent through a matrix and come back changed.
The question
How is the output worked out, and how do you read what the matrix does?
Step 1 / 12

Read all 12 steps as text
Step 1

A matrix takes a vector and hands one back

A matrix is a function whose inputs and outputs are both vectors: feed it \((2, 1)\) and it returns \((5, 3)\), a different arrow altogether.

Step 2

Rows across, and stack the answers

Each row of the matrix runs across the input and produces one coordinate of the output: \(2 \cdot 2 + 1 \cdot 1 = 5\) from the top row and \(0 \cdot 2 + 3 \cdot 1 = 3\) from the bottom, stacked into \((5, 3)\).

Step 3

Watch the two basis arrows instead

Running the arithmetic on a general vector is one thing; understanding the machine is another, and for that the two simplest inputs do all the work — \((1, 0)\) comes out as \((2, 0)\).

Step 4

The columns are the destinations

The other basis vector comes out as \((1, 3)\), so the two columns of the matrix are exactly the two answers: \((1, 0) \to (2, 0)\) and \((0, 1) \to (1, 3)\), read down rather than across.

Step 5

Add two arrows, then send them through

Take \(u = (1, 1)\) and \(v = (1, 0)\), whose sum is \((2, 1)\). There are two routes to an answer: add the arrows and send the sum through, or send each one through and add the results.

Step 6

The image of a sum is the sum of images

Both routes agree: \(M(u) = (3, 3)\) and \(M(v) = (2, 0)\) add to \((5, 3)\), which is exactly \(M(u + v) = (5, 3)\). That agreement is what the word linear means.

Step 7

Two machines in a row, right to left

Apply the quarter turn first and the reflection second, and the single matrix that does both is \(F \cdot R = [0, -1; -1, 0]\), with the first-acting map written on the right because that is the end the vector enters from.

Step 8

Order changes which machine you built

Reversed, \(R \cdot F = [0, 1; 1, 0]\), which is a different matrix and therefore a different map — the dashed outline is where the other order sent the same square.

Step 9

The identity does nothing at all

The identity matrix has columns \((1, 0)\) and \((0, 1)\), so it sends every basis arrow to itself and leaves the whole grid where it was. It is the map that a composition has to arrive at if one matrix is going to undo another.

Step 10

An inverse puts everything back

The stretch \(S\) pulls the plane \(4\) across and \(2\) up, so its undo shrinks by \(0.25\) and \(0.5\); multiplied together they give \([1, 0; 0, 1]\), the identity, which is what being an inverse means.

Step 11

Given the destinations, write it down

The reading runs backwards too: a map that sends \((1, 0)\) to \((1, 2)\) and \((0, 1)\) to \((4, -1)\) has those two images standing up as its columns, in that order, and the matrix is written.

Step 12

Rows execute, columns describe

Both readings of a matrix are real and they answer different questions: run the rows across a vector to compute its image, and read down the columns to see what the map does. Composition is written right to left, and an inverse is whatever brings the identity back.

Next in Unit 4: transition models, where the same machine is applied over and over to watch a population settle.