The Solow and Ramsey Foundations
“The solution of a differential equation is a function — not a number but a whole trajectory through time.”
Cross-reference: Principles Ch. 5.2 (Solow ODE); Ch. 5.3 (RCK Hamiltonian system and phase plane); Ch. 19 (labour market dynamics); Ch. 3 (GDP convergence) [P:Ch.5.2, P:Ch.5.3, P:Ch.19, P:Ch.3]
3.1 Why Continuous Time? The Case for ODEs in Growth Theory¶
Two modeling conventions compete in macroeconomics: continuous time (differential equations) and discrete time (difference equations). The choice is largely one of mathematical convenience, but the two approaches have different strengths.
Continuous-time models are analytically cleaner for growth theory and optimal control. The differential equation is a single object with a well-developed theory. Phase plane analysis — drawing the plane, finding nullclines, identifying stable manifolds — provides geometric intuition that is harder to obtain in discrete time. The Pontryagin maximum principle, developed in Chapter 11, is most naturally stated in continuous time.
Discrete-time models are preferred for business cycle analysis, DSGE estimation, and numerical work. All macroeconomic data are observed at discrete intervals (quarterly GDP, monthly inflation), and most numerical algorithms — value function iteration, Kalman filtering, particle filtering — are discrete-time procedures.
This chapter develops continuous-time differential equations systematically, with every result illustrated by the two key models of Principles Part I: the Solow growth model and the RCK optimal growth model. Chapter 4 develops the discrete-time analogue.
3.2 First-Order Linear Ordinary Differential Equations¶
Definition 3.1 (Ordinary Differential Equation). An ordinary differential equation (ODE) of order is an equation relating a function and its derivatives up to order :
It is ordinary (as opposed to partial) because depends on a single variable .
We begin with the first-order linear case, which covers the linearized Solow dynamics and the Wicksellian adjustment process.
3.2.1 Homogeneous Equation¶
The equation has the general solution:
where is the initial condition. The sign of determines behavior:
: (stable, exponential decay).
: (constant).
: (unstable, exponential growth).
Theorem 3.1 (Stability of Linear First-Order ODE). The equilibrium of is globally asymptotically stable if and only if .
This is the continuous-time analogue of the discrete-time condition . The connection is: if we discretize with step size , we get , which is stable iff , iff — which for small requires .
3.2.2 Nonhomogeneous Equation and Particular Solutions¶
The equation (with ) has equilibrium . Let ; then , which is the homogeneous equation. Therefore:
For , as : the system converges to the steady state at rate . The half-life — time for the gap to halve — is .
Application: The linearized Solow model near the steady state gives:
where [P:Ch.5.2]. This is exactly with , giving convergence at rate and half-life years for — the conditional convergence result of Principles Ch. 5.2.
3.2.3 The Integrating Factor Method¶
For the general first-order linear ODE , the solution uses the integrating factor :
This formula is useful when or are time-varying — as in models with time-varying interest rates or technology growth rates.
3.3 First-Order Nonlinear ODEs: Phase Line Analysis¶
Most continuous-time macro models generate nonlinear ODEs. Analytical solutions often do not exist, but the phase line (for scalar equations) and phase plane (for 2D systems) provide a complete qualitative picture of the dynamics.
3.3.1 Autonomous Equations and the Phase Line¶
An autonomous ODE does not depend explicitly on . The dynamics are fully determined by the sign of :
Definition 3.2 (Steady State). A point is a steady state (or equilibrium) of if . The system is stationary at .
Definition 3.3 (Phase Line). The phase line is a one-dimensional diagram plotting on the vertical axis against on the horizontal axis. The steady states are the zeros of . The system moves rightward () wherever and leftward wherever .
Theorem 3.2 (Local Stability via Linearization). Let be a steady state of and suppose is differentiable at . Then is locally asymptotically stable if and locally unstable if .
Proof. Let . Taylor-expanding: . By Theorem 3.1, this converges iff .
3.3.2 The Solow Equation as a Nonlinear ODE¶
The fundamental equation of the Solow model [P:Ch.5.2]:
where (Cobb–Douglas), is the saving rate, is the effective depreciation rate.
Phase line analysis:
Steady state: , giving .
For : (since is decreasing in ), so .
For : , so .
Therefore is globally stable: the economy converges to it from any initial .
Local convergence rate:
confirming stability and giving the convergence rate .
The Cobb–Douglas analytical solution. For , the Solow ODE is a Bernoulli equation, solvable in closed form. Let ; then , which is a linear ODE with solution:
Converting back: .
This is the exact transition path of the Solow model — no approximation. It is used in Chapter 10 for numerical verification and to replicate the Mankiw–Romer–Weil convergence regressions.
3.4 Systems of ODEs and Phase Plane Analysis¶
The RCK model involves two coupled ODEs — the Euler equation for consumption and the capital accumulation equation — which together constitute a 2D autonomous system. Understanding 2D systems requires phase plane analysis.
3.4.1 Linear 2D Systems¶
For the system with , the solution is:
where is the eigendecomposition (assuming is diagonalisable). The qualitative behavior near the origin is completely determined by the eigenvalues .
Definition 3.4 (Classification of 2D Equilibria). For with eigenvalues :
| Eigenvalues | Equilibrium Type | Behavior |
|---|---|---|
| Stable node | Monotone convergence | |
| Unstable node | Monotone divergence | |
| Saddle point | Stable in one direction, unstable in other | |
| , | Stable spiral | Oscillatory convergence |
| , | Unstable spiral | Oscillatory divergence |
| , purely imaginary | Centre | Closed orbits (neutral stability) |
The saddle point is the most important case in macroeconomics. The RCK model has a saddle point: there is a one-dimensional stable manifold (the saddle path) along which the system converges to the steady state, and convergence occurs along this path. Any trajectory starting off the saddle path either violates the transversality condition (too much capital accumulation) or runs into a corner (negative consumption). The unique optimal trajectory is thus the saddle path, selected by the appropriate initial condition on the jump variable .
3.4.2 The Nullcline Method¶
Definition 3.5 (Nullclines). For a 2D autonomous system , :
The nullcline is the curve .
The nullcline is the curve .
Steady states occur at nullcline intersections. The phase plane is divided into four regions by the nullclines; in each region, the signs of and are constant, determining the direction of motion with arrows.
Example — RCK Phase Plane. The system in effective-labor units :
nullcline: . This is a hump-shaped curve, peaking at the Golden Rule capital stock where .
nullcline: . This is a vertical line at the unique .
The steady state is at the intersection. The RCK steady state satisfies because impatience () pushes , implying since .
3.4.3 Linearization Around the Steady State¶
To analyze local dynamics, linearize the system around . Define deviations , . The Jacobian:
Theorem 3.3 (Saddle-Point Property of the RCK Steady State). The Jacobian of the RCK system at the steady state has one negative and one positive real eigenvalue (i.e., the steady state is a saddle point).
Proof. , since (diminishing returns) and . Since , the eigenvalues have opposite signs, confirming a saddle point.
The product of eigenvalues is negative: one is positive, one is negative. The negative eigenvalue governs the speed of convergence along the saddle path. From the quadratic formula applied to :
Since , the discriminant , ensuring real eigenvalues.
3.5 Second-Order ODEs: The Multiplier–Accelerator¶
A second-order ODE arises in the continuous-time multiplier–accelerator model [P:Ch.27]. It can always be converted to a 2D first-order system by letting , :
The matrix of this system is with and .
The characteristic equation of the second-order ODE: . The roots:
Stability (both roots with negative real part) requires and .
The nature of the roots determines whether approach to equilibrium is monotone (, real roots) or oscillatory (, complex roots with non-zero imaginary part). Oscillatory convergence corresponds to the business-cycle-like fluctuations in the continuous-time multiplier–accelerator model.
3.6 Numerical Solution of ODEs¶
When analytical solutions are unavailable — which is the rule for nonlinear systems — numerical methods are essential. The two most important are the Euler method and the Runge–Kutta 4th-order method.
Algorithm 3.1 (Euler Method).
Given , , step size :
Set , .
For : , .
The Euler method has local truncation error and global error . It is simple but requires small for accuracy.
Algorithm 3.2 (Runge–Kutta 4th Order, RK4).
Given , , step size :
Compute four slopes:
Update: .
RK4 has local truncation error and global error — dramatically more accurate than Euler for the same step size.
⎕IO←0 ⋄ ⎕ML←1
alpha ← 1÷3 ⋄ s ← 0.25 ⋄ mu ← 0.08
solow ← {(s × ⍵*alpha) - mu × ⍵}
⍝ RK4 logic
rk4 ← {f←⍺⍺ ⋄ h←⍺ ⋄ k1←f ⍵ ⋄ k2←f ⍵+(h÷2)×k1 ⋄ k3←f ⍵+(h÷2)×k2 ⋄ k4←f ⍵+h×k3 ⋄ ⍵+(h÷6)×k1+(2×k2)+(2×k3)+k4}
h ← 0.2 ⋄ T ← 1000 ⋄ k0 ← 0.5
⍝ The Logic: We use the Power operator (⍣) to generate the vector.
⍝ {⍵, h (solow rk4) ⊢ ⊃⌽⍵} starts with k0 and appends the NEXT step to the end of the list.
all_k ← {⍵, h (solow rk4) ⊢ ⊃⌽⍵} ⍣ T ⊢ k0
⍝ Check the results
¯20 ↑ all_k# Python — RK4 for the Solow model
import numpy as np
import matplotlib.pyplot as plt
alpha, s, mu = 1/3, 0.25, 0.08
def solow(k): return s * k**alpha - mu * k
def rk4_step(f, x, h):
k1 = f(x)
k2 = f(x + (h/2)*k1)
k3 = f(x + (h/2)*k2)
k4 = f(x + h*k3)
return x + (h/6)*(k1 + 2*k2 + 2*k3 + k4)
h, T, k0 = 0.1, 200, 0.5
k_ss = (s / mu) ** (1/(1-alpha))
print(f"Steady state: k* = {k_ss:.4f}")
path = [k0]
for _ in range(T):
path.append(rk4_step(solow, path[-1], h))
plt.plot(np.arange(T+1)*h, path, label='RK4 trajectory')
plt.axhline(k_ss, linestyle='--', color='red', label='Steady state k*')
plt.xlabel('Time'); plt.ylabel('k̃'); plt.legend(); plt.show()# Julia — RK4 for the Solow model
alpha, s, mu = 1/3, 0.25, 0.08
solow(k) = s * k^alpha - mu * k
function rk4_step(f, x, h)
k1 = f(x); k2 = f(x + (h/2)*k1)
k3 = f(x + (h/2)*k2); k4 = f(x + h*k3)
x + (h/6)*(k1 + 2k2 + 2k3 + k4)
end
h, T, k0 = 0.1, 200, 0.5
path = accumulate((k,_) -> rk4_step(solow, k, h), 1:T; init=k0)
println("Final k: ", round(last(path), digits=4), " Steady state: ", round((s/mu)^(1/(1-alpha)), digits=4))# R — RK4 for the Solow model
alpha <- 1/3; s <- 0.25; mu <- 0.08
solow <- function(k) s * k^alpha - mu * k
rk4_step <- function(f, x, h) {
k1 <- f(x); k2 <- f(x + (h/2)*k1)
k3 <- f(x + (h/2)*k2); k4 <- f(x + h*k3)
x + (h/6)*(k1 + 2*k2 + 2*k3 + k4)
}
h <- 0.1; T <- 200; k0 <- 0.5
path <- Reduce(function(k, .) rk4_step(solow, k, h), seq_len(T), accumulate=TRUE, init=k0)
plot(seq(0, T*h, h), path, type='l', xlab='Time', ylab='k̃',
main='Solow convergence'); abline(h=(s/mu)^(1/(1-alpha)), lty=2, col='red')3.7 Worked Example: Full Phase Diagram of the Solow Model¶
Cross-reference: Principles Ch. 5.2 [P:Ch.5.2]
Calibration: , , , , , so .
Steady state: .
Convergence rate: . Half-life: years.
Phase line: At (below steady state): . At (above steady state): . Both confirm convergence to .
Transition path (analytical): With and :
For : , so .
At years (one half-life): gap should halve. Current gap: . Predicted , giving . The gap , which is indeed half of the initial gap . ✓
3.8 Programming Exercises¶
Exercise 3.1 (APL)¶
Write a dfn solow_phase ← {s delta n g alpha ← ⍵ ⋄ ...} that takes parameters as a 5-vector and returns the steady state , convergence rate , and half-life . Test with the calibration from Section 3.7.
Exercise 3.2 (Python — Phase Diagram)¶
Plot the Solow phase diagram: the curve and the line on the same axes for , with the steady state marked. Add three trajectory arrows at showing the direction of motion.
Exercise 3.3 (Julia — RCK Saddle Path)¶
Implement the reverse-shooting algorithm for the RCK model: start from the steady state , perturb slightly along the eigenvector corresponding to , and integrate backward in time to trace the saddle path. Parameters: , , , , , .
Exercise 3.4 (R — Convergence Regression)¶
Using the analytical Solow transition path , generate simulated data for 100 “countries” with:
(different initial conditions)
(different saving rates)
(common effective depreciation)
Compute 40-year average growth rates and regress on with and without as a control. Verify that conditional convergence ( conditional on the saving rate) holds but unconditional convergence does not.
Exercise 3.5 — Stability Classification ()¶
For the linear system with Jacobian from Section 3.4.3:
(a) Express and in terms of , , , , .
(b) Show that for any satisfying and any , confirming the saddle-point property without reference to any specific functional form.
(c) In APL, implement a function that takes as arguments and returns both eigenvalues of , verifying they have opposite signs.
Exercise 3.6 — Endogenous Growth ()¶
The AK model [P:Ch.5.4] has (no diminishing returns). The growth equation becomes . Show that: (a) there is no interior steady state of the Solow type; (b) all trajectories grow at rate (for ); (c) the phase line technique fails here because is constant. Explain what this implies for the convergence analysis.
3.9 Chapter Summary¶
This chapter developed the theory of ordinary differential equations for continuous-time macroeconomic models.
Key results:
The first-order linear ODE has solution with steady state ; stable iff .
The linearization theorem allows local stability analysis of nonlinear ODEs: the stability of for is determined by the sign of .
The Solow ODE is a Bernoulli equation with the exact solution , giving convergence at rate .
For 2D systems , the equilibrium type (node, saddle, spiral, center) is determined by ; the RCK steady state is a saddle point because .
RK4 is the standard numerical ODE solver, with global error far superior to Euler’s .
Connections forward: Chapter 10 develops the full Solow model analytically and numerically, including the closed-form transition path and the MRW convergence regression. Chapter 11 applies the phase plane analysis to the RCK model, using the saddle-path structure to motivate the shooting algorithm and the transversality condition.
Next: Chapter 4 — Difference Equations in Discrete-Time Macro Models