6m left·0%
Reading Time: 6 min
Last Updated: September 15, 2026
Main Ideas: 5
Reading Time: 6 min
Last Updated: September 15, 2026
Main Ideas: 5

Topic 4.14 Notes – Matrices Modeling Contexts

Verified for 2027 AP® Precalculus Exam
Read aloud
A two-state transition matrix models how something moves back and forth between exactly two categories over equal time steps. In this topic, you build the matrix from a context, use it to predict future or past states, and interpret what a steady state means in real terms.

What a Two-State Transition Matrix Represents

A two-state transition model tracks a system where each item is in one of two states at each step, then some fraction switches each interval.

The diagram below shows that idea in a simple two-state system, with some amount staying in the same state and some moving to the other one.

Study guide illustration

Two-state transition diagram

The state at step kk is written as a column vector

xk=[AkBk]. \mathbf{x}_k=\begin{bmatrix}A_k\\B_k\end{bmatrix}.

That means:

  • AkA_k is the amount in state AA after step kk
  • BkB_k is the amount in state BB after step kk

Those entries might be:

  • counts like people or customers
  • proportions of a whole
  • probabilities of being in each state

If the model is closed, nothing enters or leaves the system, so the total stays constant. For counts, Ak+BkA_k+B_k stays the same. For proportions or probabilities, the total stays 11.

One detail students mix up a lot: a rate like “20% move from AA to BB” means 20% of the current amount in AA leaves AA. It does not mean the net amount in AA drops by 20%, because some amount may also enter from BB.

Also, keep the state order fixed everywhere. If your vector is [AB]\begin{bmatrix}A\\B\end{bmatrix}, then every row and column must use AA first, BB second.

Building the Transition Matrix from a Context

If α\alpha moves from AA to BB each step, and β\beta moves from BB to AA, then

T=[1−αβα1−β]. T=\begin{bmatrix}1-\alpha & \beta\\ \alpha & 1-\beta\end{bmatrix}.

Here’s how to read it:

  • first column = what happens to the amount currently in AA
  • second column = what happens to the amount currently in BB
  • first row = what contributes to the next amount in AA
  • second row = what contributes to the next amount in BB

The diagonal entries, 1−α1-\alpha and 1−β1-\beta, are the retention rates.

Each source column should add to 11:

  • from AA, either stay in AA or move to BB
  • from BB, either move to AA or stay in BB

This setup shows up in contexts like:

  • subscription plans switching between two options
  • residents moving between two regions
  • changing between two conditions such as healthy/sick or on/off

Common mistakes:

  • putting both given rates in one row
  • reversing “from” and “to”
  • changing state order midway
  • forgetting 20%=0.2020\% = 0.20

Iterating a transition to later times

One step ahead uses

xk+1=Txk \mathbf{x}_{k+1}=T\mathbf{x}_k

which means

Ak+1=(1−α)Ak+βBk,Bk+1=αAk+(1−β)Bk. A_{k+1}=(1-\alpha)A_k+\beta B_k,\qquad B_{k+1}=\alpha A_k+(1-\beta)B_k.

So each new amount equals what stayed plus what came in.

For nn steps from the initial state,

xn=Tnx0. \mathbf{x}_n=T^n\mathbf{x}_0.

That exponent means repeated matrix multiplication. T2=T⋅TT^2=T\cdot T, not squaring each entry.

Use:

  1. TxkT\mathbf{x}_k for the next step
  2. Tnx0T^n\mathbf{x}_0 for nn steps from the start

Your output keeps the same units as the state vector. If the entries are counts, decimals are model predictions. Round at the end if the context needs whole people.

Quick checks:

  • totals stay constant in a closed count model
  • proportions or probabilities still sum to 11

Steady State

A steady state is a vector s\mathbf{s} that satisfies

Ts=s. T\mathbf{s}=\mathbf{s}.

That means the distribution stays the same from step to step. People may still move both ways. The balance happens because the flows match:

αA=βB. \alpha A=\beta B.

If the total is NN, then

A=βα+βN,B=αα+βN. A=\frac{\beta}{\alpha+\beta}N,\qquad B=\frac{\alpha}{\alpha+\beta}N.

You’ll often find or confirm steady state by repeatedly multiplying with TT, or by using a large power Tnx0T^n\mathbf{x}_0, until the vectors stop changing much.

Do not assume every model settles to one steady state. Some alternate forever, and repeated rounding can throw off the long-term result.

Predicting Past States and Checking Validity

If TT is invertible, you can work backward:

xk=T−1xk+1,xk−n=T−nxk. \mathbf{x}_k=T^{-1}\mathbf{x}_{k+1},\qquad \mathbf{x}_{k-n}=T^{-n}\mathbf{x}_k.

For

T=[1−αβα1−β], T=\begin{bmatrix}1-\alpha & \beta\\ \alpha & 1-\beta\end{bmatrix},

the determinant is

det⁡(T)=1−α−β. \det(T)=1-\alpha-\beta.

So T−1T^{-1} exists when α+β≠1\alpha+\beta\ne1.

This backward model reconstructs an earlier state. The entries of T−1T^{-1} are not reverse transition probabilities, and they can be negative.

Be suspicious if you get:

  • negative amounts in a context that should stay nonnegative
  • a backward calculation with a noninvertible matrix
  • weird results caused by a rounded current state

On tests, keep the interval length, state labels, and state order attached to your answer.

Key Takeaways

In the column-vector setup, each column of TT tells what happens to a source state and should sum to 11.
A rate like α\alpha from AA to BB applies to the current amount in AA, not to the net change in AA.
The matrix T=[1−αβα1−β]T=\begin{bmatrix}1-\alpha & \beta\\ \alpha & 1-\beta\end{bmatrix} comes from retention on the diagonal and movement off the diagonal.
Use xk+1=Txk\mathbf{x}_{k+1}=T\mathbf{x}_k for one step and xn=Tnx0\mathbf{x}_n=T^n\mathbf{x}_0 for nn steps from the initial state.
TnT^n means repeated matrix multiplication, not raising each entry to the nnth power.
A steady state can still have movement both ways because equal flow in both directions keeps the totals unchanged.
For backward prediction, check det⁡(T)=1−α−β\det(T)=1-\alpha-\beta first, since T−1T^{-1} exists only when α+β≠1\alpha+\beta\ne1.
If inverse work gives negative counts, the stated current vector may be impossible under the model or too rounded to reverse reliably.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining