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

Matrices Modeling Contexts

Everyone Moves. The Total Holds.

You'll learnto predict how a population shifts between two places using a matrix.

Each year a share of the city leaves for the suburbs, and a share of the suburbs comes back. One matrix stores every one of those fractions, its columns reading off where each group started. Multiply, and the population takes a single step; multiply again for the next. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · STATES · COLUMNS · CONSERVATION · STEADY STATE · v4

Unit 4 is not assessed on the AP exam — it's here because the ideas are genuinely useful.

each column is one from-state, and every column adds to 1
Before you start
What you're looking at
A town drawn as two groups of figures, one for the city and one for the suburbs.
The question
If a share moves each way every year, where do the two counts end up?
Step 1 / 12

Read all 12 steps as text
Step 1

A town in two places

A town holds 600 people in the city and 400 in the suburbs, and stacking those two counts into a single column gives the state vector that everything else will act on.

Step 2

Each year, some people move

Every year \(10%\) of the city moves out to the suburbs and \(20%\) of the suburbs moves back in, which on these counts is \(60\) people one way and \(80\) the other.

Step 3

A column is one from-state, split up

A column of the transition matrix follows one starting group and splits it into every place it can end up: of everyone who begins in the city, \(0.9\) stays and \(0.1\) leaves, and those two numbers are the first column.

Step 4

Every column must add to exactly 1

Everyone who starts somewhere ends up somewhere, so each column has to sum to 1: here \(0.9 + 0.1 = 1\) and \(0.2 + 0.8 = 1\). A column of \(0.9\) and \(0.2\) would sum to \(1.1\), sending \(110%\) of the city away.

Step 5

One multiply takes one step

Multiplying takes the town forward one year, and each new count is its own stayers plus the arrivals from the other side: \(0.9 \cdot 600 + 0.2 \cdot 400 = 620\) in the city and \(0.1 \cdot 600 + 0.8 \cdot 400 = 380\) in the suburbs.

Step 6

The total never changes

The two counts moved and the sum did not: \(600 + 400\) and \(620 + 380\) are both \(1000\), because columns that add to 1 hand on every person they are given.

Step 7

Apply it again for the next year

Year two comes from multiplying the year-one column, not the original one: \(M \cdot (620, 380) = (634, 366)\). Feeding the starting counts back in a second time would simply repeat year one.

Step 8

n steps is the nth power of M

Two steps in one multiply is \(M^{2} = [0.83, 0.34; 0.17, 0.66]\), and applying it to the starting column gives \((634, 366)\) directly. Its columns still add to \(1\), because a matrix that conserves people still does so after two years.

Step 9

The state is a column, M on its left

Written as a row and pushed in from the left, the same numbers give \((580, 440)\), a town of \(1020\) people — \(20\) of whom arrived from nowhere. The total is the tell: if it moved, the state was on the wrong side.

Step 10

Run it far enough and it settles

Repeating the same step year after year, the counts move by less and less each time, drifting toward a split that eventually stops changing at all.

Step 11

The steady state stops changing

It settles at \((666.7, 333.3)\), where \(0.1 \cdot 666.7 = 66.7\) people leave the city and \(0.2 \cdot 333.3 = 66.7\) arrive from the suburbs. The two flows are equal, so both counts hold still while people keep moving.

Step 12

Everyone moves, the total holds

Build the matrix one column per starting group, each adding to 1; run it by multiplying the state column on the left, once per step or as a power for many. The columns adding to 1 are exactly what keeps the total fixed while the shares move, until the two flows cancel and the split settles.

That closes Unit 4: parameters, vectors and matrices, each of them a way of handing a familiar object something extra to carry.