Module 14 · 11 min read · Free chapter
Difference and differential equations; dynamic optimisation
Dynamic models track how variables move over time. A first-order difference equation converges if the coefficient is below one in absolute value, as the cobweb shows. Samuelson's multiplier-accelerator gives cycles. The Solow model is a differential equation with a stable steady state. Dynamic optimisation uses the Euler equation and the Hamiltonian, as in the Ramsey model.
Start from zero: how do things change over time?
A farmer's puzzle. Onion prices are high this year, so many farmers plant onions. Next season the market is flooded, prices crash, and the following year farmers switch away, so prices shoot up again. Prices swing from year to year because today's supply depends on yesterday's price.
Why dynamics. Most of economic theory compares one equilibrium with another, called comparative statics. But it does not tell us whether the economy actually reaches the new equilibrium, how long it takes, or whether it overshoots and cycles. Dynamics studies the path itself, using equations that link a variable to its own past values or to its rate of change.
The plan. This chapter covers difference equations in discrete time, including the cobweb and the multiplier-accelerator model. It then turns to differential equations in continuous time, links them to time-series AR processes, and ends with choosing the best path over time.
First-order difference equations and the cobweb
What a difference equation is. When time moves in steps (years, quarters), a difference equation links the value of a variable in one period to its values in earlier periods. The simplest is the first-order linear form
It is called first order because only one lag appears.
Solving it. The equilibrium or stationary value satisfies , so when . The deviation from equilibrium shrinks or grows by the factor each period, giving
The first term is the complementary function (the transient) and is the particular solution.
Stability. The path converges to if and diverges if . If is positive, the movement is steady (monotonic); if is negative, it oscillates, alternating above and below equilibrium. If , there is no fixed equilibrium and grows in a straight line.
The cobweb model. Let demand be and supply depend on last period's price, , as with crops sown in advance. Market clearing gives
Since is negative, prices always oscillate; they converge if , that is, if supply responds less strongly to price than demand does.
Why it matters. The cobweb explains hog cycles, onion and potato price swings and the case for price stabilisation through buffer stocks or minimum support prices. It also shows the weakness of naive expectations: farmers who expect last year's price to continue keep making the same mistake. With adaptive or rational expectations, cycles become damped or disappear, which links this model to the expectations debates in macroeconomics.
Second-order difference equations and the multiplier-accelerator
Why a second lag. Some processes depend on two past periods. In Samuelson's 1939 multiplier-accelerator model, consumption depends on last period's income, , and induced investment depends on the change in consumption, . With autonomous spending G,
Solving it. The equilibrium is , the ordinary multiplier result. The path around it depends on the roots of the characteristic equation . If the roots are real, the path moves steadily; if they are complex, the path cycles.
Stability. The path converges if both roots are less than one in absolute value (modulus). For the Samuelson model, with complex roots the modulus is , so cycles are damped if and explosive if . A strong accelerator can therefore turn a stable multiplier into an unstable economy.
Economic lesson. The model was among the first to show that cycles can arise inside the economy from the interaction of consumption and investment, without outside shocks. Hicks later added ceilings (full employment) and floors (zero gross investment) to keep explosive cycles bounded. These ideas feed directly into the business cycle chapter.
Differential equations in continuous time
What changes. When time is treated as continuous, change is measured by the derivative , often written . A first-order linear differential equation has the form
It is the continuous-time cousin of the first-order difference equation.
Solution and stability. The equilibrium, where , is . The solution is
The path converges if and diverges if ; unlike the discrete case, a first-order differential equation cannot oscillate.
Growth. With , gives exponential growth , so is the constant growth rate. This is why growth rates are computed as differences in logarithms: . Population, compound interest and steady-state output all follow this law.
Walrasian price adjustment. If price rises in proportion to excess demand, with . With linear demand and supply, this becomes a first-order equation whose coefficient is times (slope of demand minus slope of supply). The equilibrium is stable when demand slopes down more steeply than supply, the Walrasian stability condition.
The Solow equation. In the Solow model, capital per worker changes by
Saving per worker adds capital and population growth plus depreciation dilute it. The economy converges to the steady state where , because the curve is concave.
Stochastic difference equations: AR and MA processes
Adding shocks. Real time series, such as inflation or GDP growth, are hit by random shocks each period. Adding a white noise term (zero mean, constant variance, no correlation over time) to a first-order difference equation gives the AR(1) process
From AR(1) to MA(∞). Substituting for , then , and so on gives
when , because the term dies out. So an AR(1) process is a moving average of infinite order, MA(∞), with geometrically declining weights: today's value carries a fading memory of all past shocks.
Mean, variance and autocorrelation. Taking expectations, the mean is . The variance is , and the autocorrelation at lag s is , which decays geometrically. These constant moments are what make the series stationary.
Unit roots and random walks. If , the process is a random walk (with drift ): . Its mean drifts, its variance grows with time, and shocks never fade, so it is non-stationary. Its autocorrelations stay close to one, and the series must be differenced to become stationary.
Testing stationarity. The Dickey-Fuller test estimates and tests (unit root) against , using special critical values; the augmented version adds lagged differences to absorb autocorrelation. Correlograms that die out slowly also hint at a unit root. Regressing one non-stationary series on another can give a high with no real relation, the spurious regression problem treated in the regression chapter.
Dynamic optimisation
Choosing a path. Many decisions trade off the present against the future: how much to save, how fast to extract a mine, how much to invest. The choice is not one number but a whole path over time. Dynamic optimisation finds the path that maximises the present value of a stream of benefits.
Discounting. A benefit received t periods ahead is worth today in discrete time, with discount factor , or in continuous time. The discount rate reflects impatience. Its size drives debates such as how much the present generation should spend to slow climate change.
The Euler equation. A household maximising subject to a budget with interest rate r chooses consumption so that
Giving up one unit today costs and yields units tomorrow, worth today. At the optimum the two are equal, so consumption rises over time if exceeds the discount rate.
Optimal control and the Hamiltonian. In continuous time, with a state variable (capital k) and a control variable (consumption c), we form the Hamiltonian , where is the shadow value of capital. The conditions and , plus a transversality condition that rules out wasteful accumulation, give the Ramsey-Keynes rule: consumption grows when the marginal product of capital exceeds the discount rate plus depreciation and population growth.
Applications. The same tools give the Hotelling rule for exhaustible resources (resource rents rise at the rate of interest), the modified golden rule in the Ramsey growth model, and optimal tax and debt paths. Bellman's dynamic programming solves such problems backward in time and underlies modern macro models. The core idea is always the same: compare the marginal value of a resource used now with its discounted value later.
Descriptive lens: how papers ask this, and how to answer
Questions on this chapter take these forms: showing that an AR(1) process is an MA(∞) process; the mean, variance and autocorrelations of an AR process and how to test stationarity; the cobweb and its stability condition; the multiplier-accelerator interaction; stability of Walrasian price adjustment; and the logic of optimal saving or resource use over time.
Answer plan for "Show that an AR(1) process is an MA(∞) process."
- Write and substitute repeatedly for lagged Y.
- Show the remainder vanishes when .
- Write the MA(∞) form with weights and the mean .
- Note that with the sum does not converge: a unit root.
Answer plan for "Explain the cobweb theorem." Set up lagged supply and current demand, derive the first-order difference equation for price, give the solution, and state the three cases (convergent, explosive, constant oscillation) with a diagram. End with the role of expectations and buffer stocks.
Our practice questions (written by us for practice, not previous-year questions):
- Solve with and discuss stability. (8 marks)
- Derive the stability condition of the cobweb model and explain its policy relevance. (15 marks)
- Show how Samuelson's multiplier-accelerator model can generate cycles. (15 marks)
- Distinguish a stationary AR(1) process from a random walk and explain the Dickey-Fuller test. (15 marks)
- Derive and interpret the Euler equation for consumption over two periods. (10 marks)
Keywords: comparative statics, dynamics, difference equation, first and second order, equilibrium, complementary function, particular solution, convergence, oscillation, cobweb, naive expectations, multiplier-accelerator, characteristic roots, complex roots, damped and explosive cycles, ceiling and floor, differential equation, exponential growth, Walrasian adjustment, Solow equation, white noise, AR(1), MA(∞), stationarity, autocorrelation function, random walk, unit root, differencing, Dickey-Fuller, spurious regression, discounting, Euler equation, Hamiltonian, state and control variables, costate, transversality, Ramsey rule, Hotelling rule, dynamic programming.
Quick revision
- : , ; stable if ; oscillates if . Cobweb: ; always oscillates, converges if supply slope δ < demand slope β.
- Samuelson: ; complex roots give cycles; damped if .
- : ; stable if ; no oscillation. Growth ; Walrasian ; Solow .
- AR(1) with = MA(∞); mean , variance , autocorrelation . : random walk, unit root, non-stationary; Dickey-Fuller test; difference it.
- Dynamic optimisation: discounting; Euler ; Hamiltonian with state, control and costate; transversality; Ramsey rule; Hotelling rule; Bellman.