Courses › Graduate Macroeconomic Theory
Difference equations, stability, and phase diagrams
The mathematical language of dynamic macro: first-order and second-order difference equations, steady states, stability, eigenvalues, saddle paths, and how to read a phase diagram.
The crash course opened with the Bellman equation. Before we can use it well, we need the language every dynamic model is written in: equations that link a variable today to its value yesterday. Intermediate Macroeconomics used these equations informally, for example when the Solow model’s capital stock crept toward its steady state. Here we make the tools precise.
You will learn to solve linear difference equations, tell stable from unstable dynamics, find eigenvalues of two-variable systems, and read a phase diagram. The single most important idea is the saddle path: in almost every model in this course, some variables are inherited from the past while others can jump, and the economy settles on the one path that does not explode.
By the end of this module you will be able to
- Solve first-order linear difference equations and find their steady states.
- Judge the stability of a steady state, including for nonlinear equations by linearizing.
- Solve second-order equations and two-variable systems using characteristic roots and eigenvalues.
- Explain saddle-path stability and the role of predetermined and jump variables.
- Translate between discrete and continuous time and read a two-variable phase diagram.
What this module covers
- Dynamics in one variable
- Nonlinear dynamics and linearization
- Second-order equations and systems
- Saddle paths and jump variables
- Continuous time and phase diagrams
- Problem set with step-by-step solutions
- Module quiz
Lesson 1.1 Free lesson
Dynamics in one variable
Macroeconomic variables have memory. Today’s capital stock is yesterday’s capital plus investment minus wear and tear; today’s debt is yesterday’s debt plus interest plus new borrowing. Models that track variables period by period are written as difference equations, where t counts periods (months, quarters or years).
The simplest is the first-order linear difference equation:
“First order” means only one lag appears; “linear” means x enters without powers or products. To solve it we look first for a steady state x*, a value that reproduces itself: x* = a x* + b. As long as a ≠ 1, this gives
Now subtract the steady-state equation from the original one. The constant b cancels and we get xt+1 − x* = a(xt − x*). In words: the gap from the steady state is multiplied by a every period. Applying this t times gives the full solution.
Everything about the dynamics is in the number a. If |a| < 1, at shrinks to zero and x converges to x* from any start: the steady state is stable. If |a| > 1, the gap grows and x runs away: the steady state is unstable. The sign of a decides the shape. A positive a gives a smooth path that stays on one side of x*; a negative a flips the gap’s sign every period, so the path oscillates.
Worked example: Regulars at a neighbourhood café
A café keeps 80% of its regular customers each month and wins 50 new regulars. Starting from x0 = 100 regulars, the number evolves as xt+1 = 0.8xt + 50.
Steady state: x* = 50/(1 − 0.8) = 250 regulars. Solution: xt = 250 + 0.8t(100 − 250) = 250 − 150 × 0.8t.
After three months: 0.83 = 0.512, so x3 = 250 − 76.8 = 173.2. Checking by hand: 100 → 130 → 154 → 173.2. The two methods agree.
How fast is convergence? The half-life, the time for half the gap to close, solves 0.8h = 0.5, so h = ln 0.5 / ln 0.8 ≈ 3.1 months. A higher retention rate means a bigger steady state but slower convergence: memory is persistence.
Worked example: A savings plan that never settles
You deposit $1,000 at the end of each year into an account paying 4%: Bt+1 = 1.04Bt + 1,000, starting from zero.
Here a = 1.04 > 1. The formula still gives a steady state, B* = 1,000/(1 − 1.04) = −$25,000, but it is unstable and meaningless for a saver: the balance grows forever. The solution Bt = −25,000 + 1.04t(0 + 25,000) = 25,000(1.04t − 1) gives $12,006 after 10 years, the familiar annuity formula in disguise.
The full module has an interactive graph here that you can move yourself.
Common mistake
Thinking a steady state is always where the economy ends up. A steady state is only a resting point; whether the economy goes there depends on stability. With |a| > 1 the steady state exists but the system moves away from it.
Key ideas
- The steady state of xt+1 = axt + b is x* = b/(1 − a) when a ≠ 1.
- The gap from the steady state is multiplied by a each period: xt = x* + at(x0 − x*).
- |a| < 1 means stable, |a| > 1 unstable; a negative a means oscillation.
- The half-life of a gap is ln 0.5 / ln |a|.
Practice questions: Difference equations, stability, and phase diagrams
Try these, then open each answer to check your work.
- 1.What is the steady state of xt+1 = 0.75xt + 5?
- 5
- 6.67
- 15
- 20
Show answer
Answer: D. x* = 5/(1 − 0.75) = 20.
- 2.For xt+1 = −0.5xt + 3, which describes the path from x0 = 0?
- It diverges smoothly
- It converges while oscillating around 2
- It converges smoothly to 6
- It cycles forever between two values
Show answer
Answer: B. a = −0.5: |a| < 1 so it converges, and the negative sign makes it oscillate. x* = 3/1.5 = 2.
- 3.A gap from the steady state shrinks by the factor 0.8 each period. Roughly how many periods until half the gap is gone?
- 3.1
- 4.5
- 5.0
- 6.2
Show answer
Answer: A. ln 0.5 / ln 0.8 ≈ 0.693/0.223 ≈ 3.1.
Problems with step-by-step solutions
- 4.Solve xt+1 = 0.5xt + 3 with x0 = 2. Find the steady state and x3.
Show step-by-step solution
- Steady state: x* = 3/(1 − 0.5) = 6.
- Solution: xt = 6 + 0.5t(2 − 6) = 6 − 4(0.5)t.
- x3 = 6 − 4 × 0.125 = 5.5. Check by iterating: 2 → 4 → 5 → 5.5.
- 5.Classify the dynamics of xt+1 = axt + b for a = 0.3, a = −0.9, a = −1 and a = 1.1.
Show step-by-step solution
- a = 0.3: |a| < 1 and positive, so smooth convergence (gap shrinks 70% each period).
- a = −0.9: |a| < 1 but negative, so convergence with oscillation; it is slow because 0.9 is close to 1.
- a = −1: the gap flips sign without shrinking, a permanent two-period cycle.
- a = 1.1: |a| > 1, so the steady state is unstable and paths diverge smoothly.
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.