Advanced Economics‹›⌂ 0:00 studied

Module 14 · 11 min read · Free chapter

Difference and differential equations; dynamic optimisation

In short

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.

What are you preparing for? We show the practice and previous year questions of your exam.

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

yt=a yt−1+by_t = a\,y_{t-1} + b

It is called first order because only one lag appears.

Solving it. The equilibrium or stationary value y∗y^* satisfies y∗=ay∗+by^* = ay^* + b, so y∗=b/(1−a)y^* = b/(1 - a) when a≠1a \ne 1. The deviation from equilibrium shrinks or grows by the factor aa each period, giving

yt=(y0−y∗)at+y∗y_t = (y_0 - y^*)a^t + y^*

The first term is the complementary function (the transient) and y∗y^* is the particular solution.

Stability. The path converges to y∗y^* if ∣a∣<1\lvert a \rvert < 1 and diverges if ∣a∣>1\lvert a \rvert > 1. If aa is positive, the movement is steady (monotonic); if aa is negative, it oscillates, alternating above and below equilibrium. If a=1a = 1, there is no fixed equilibrium and yt=y0+bty_t = y_0 + bt grows in a straight line.

The cobweb model. Let demand be Qtd=α−βPtQ^d_t = \alpha - \beta P_t and supply depend on last period's price, Qts=−γ+δPt−1Q^s_t = -\gamma + \delta P_{t-1}, as with crops sown in advance. Market clearing gives

Pt=−δβPt−1+α+γβP_t = -\frac{\delta}{\beta}P_{t-1} + \frac{\alpha + \gamma}{\beta}

Since −δ/β-\delta/\beta is negative, prices always oscillate; they converge if δ<β\delta < \beta, 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, Ct=cYt−1C_t = cY_{t-1}, and induced investment depends on the change in consumption, It=v(Ct−Ct−1)I_t = v(C_t - C_{t-1}). With autonomous spending G,

Yt=c(1+v)Yt−1−cvYt−2+GY_t = c(1 + v)Y_{t-1} - cvY_{t-2} + G

Solving it. The equilibrium is Y∗=G/(1−c)Y^* = G/(1 - c), the ordinary multiplier result. The path around it depends on the roots of the characteristic equation λ2−c(1+v)λ+cv=0\lambda^2 - c(1 + v)\lambda + cv = 0. 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 cv\sqrt{cv}, so cycles are damped if cv<1cv < 1 and explosive if cv>1cv > 1. 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 dy/dtdy/dt, often written y˙\dot{y}. A first-order linear differential equation has the form

dydt=ay+b\frac{dy}{dt} = ay + b

It is the continuous-time cousin of the first-order difference equation.

Solution and stability. The equilibrium, where dy/dt=0dy/dt = 0, is y∗=−b/ay^* = -b/a. The solution is

y(t)=(y0−y∗)eat+y∗y(t) = (y_0 - y^*)e^{at} + y^*

The path converges if a<0a < 0 and diverges if a>0a > 0; unlike the discrete case, a first-order differential equation cannot oscillate.

Growth. With b=0b = 0, dy/dt=aydy/dt = ay gives exponential growth y(t)=y0eaty(t) = y_0e^{at}, so aa is the constant growth rate. This is why growth rates are computed as differences in logarithms: dln⁡y/dt=ad\ln y/dt = a. Population, compound interest and steady-state output all follow this law.

Walrasian price adjustment. If price rises in proportion to excess demand, dP/dt=k(D−S)dP/dt = k(D - S) with k>0k > 0. With linear demand and supply, this becomes a first-order equation whose coefficient is kk 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

k˙=sf(k)−(n+δ)k\dot{k} = s f(k) - (n + \delta)k

Saving per worker adds capital and population growth plus depreciation dilute it. The economy converges to the steady state k∗k^* where sf(k∗)=(n+δ)k∗sf(k^*) = (n + \delta)k^*, because the curve sf(k)sf(k) 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

Yt=α+βYt−1+εtY_t = \alpha + \beta Y_{t-1} + \varepsilon_t

From AR(1) to MA(∞). Substituting for Yt−1Y_{t-1}, then Yt−2Y_{t-2}, and so on gives

Yt=α1−β+εt+βεt−1+β2εt−2+…Y_t = \frac{\alpha}{1 - \beta} + \varepsilon_t + \beta\varepsilon_{t-1} + \beta^2\varepsilon_{t-2} + \dots

when ∣β∣<1\lvert \beta \rvert < 1, because the term βnYt−n\beta^n Y_{t-n} 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 α/(1−β)\alpha/(1 - \beta). The variance is σ2/(1−β2)\sigma^2/(1 - \beta^2), and the autocorrelation at lag s is βs\beta^s, which decays geometrically. These constant moments are what make the series stationary.

Unit roots and random walks. If β=1\beta = 1, the process is a random walk (with drift α\alpha): Yt=Y0+αt+∑εY_t = Y_0 + \alpha t + \sum \varepsilon. 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 ΔYt=α+ρYt−1+εt\Delta Y_t = \alpha + \rho Y_{t-1} + \varepsilon_t and tests ρ=0\rho = 0 (unit root) against ρ<0\rho < 0, 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 R2R^2 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 uu received t periods ahead is worth βtu\beta^t u today in discrete time, with discount factor β=1/(1+ρ)\beta = 1/(1 + \rho), or e−ρtue^{-\rho t}u 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 ∑βtu(ct)\sum \beta^t u(c_t) subject to a budget with interest rate r chooses consumption so that

u′(ct)=β(1+r)u′(ct+1)u'(c_t) = \beta(1 + r)u'(c_{t+1})

Giving up one unit today costs u′(ct)u'(c_t) and yields (1+r)(1 + r) units tomorrow, worth β(1+r)u′(ct+1)\beta(1 + r)u'(c_{t+1}) today. At the optimum the two are equal, so consumption rises over time if rr 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 H=u(c)+μ[f(k)−c−(n+δ)k]H = u(c) + \mu[f(k) - c - (n + \delta)k], where μ\mu is the shadow value of capital. The conditions ∂H/∂c=0\partial H/\partial c = 0 and μ˙=ρμ−∂H/∂k\dot{\mu} = \rho\mu - \partial H/\partial k, 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 Yt=α+βYt−1+εtY_t = \alpha + \beta Y_{t-1} + \varepsilon_t and substitute repeatedly for lagged Y.
  • Show the remainder βnYt−n\beta^n Y_{t-n} vanishes when ∣β∣<1\lvert \beta \rvert < 1.
  • Write the MA(∞) form with weights βj\beta^j and the mean α/(1−β)\alpha/(1 - \beta).
  • Note that with β=1\beta = 1 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):

  1. Solve yt=0.5yt−1+10y_t = 0.5y_{t-1} + 10 with y0=30y_0 = 30 and discuss stability. (8 marks)
  2. Derive the stability condition of the cobweb model and explain its policy relevance. (15 marks)
  3. Show how Samuelson's multiplier-accelerator model can generate cycles. (15 marks)
  4. Distinguish a stationary AR(1) process from a random walk and explain the Dickey-Fuller test. (15 marks)
  5. 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

  • yt=ayt−1+by_t = ay_{t-1} + b: y∗=b/(1−a)y^* = b/(1 - a), yt=(y0−y∗)at+y∗y_t = (y_0 - y^*)a^t + y^*; stable if ∣a∣<1\lvert a \rvert < 1; oscillates if a<0a < 0. Cobweb: Pt=−(δ/β)Pt−1+constP_t = -(\delta/\beta)P_{t-1} + \text{const}; always oscillates, converges if supply slope δ < demand slope β.
  • Samuelson: Yt=c(1+v)Yt−1−cvYt−2+GY_t = c(1 + v)Y_{t-1} - cvY_{t-2} + G; complex roots give cycles; damped if cv<1cv < 1.
  • dy/dt=ay+bdy/dt = ay + b: y(t)=(y0−y∗)eat+y∗y(t) = (y_0 - y^*)e^{at} + y^*; stable if a<0a < 0; no oscillation. Growth y0eaty_0e^{at}; Walrasian dP/dt=k(D−S)dP/dt = k(D - S); Solow k˙=sf(k)−(n+δ)k\dot{k} = sf(k) - (n + \delta)k.
  • AR(1) with ∣β∣<1\lvert \beta \rvert < 1 = MA(∞); mean α/(1−β)\alpha/(1 - \beta), variance σ2/(1−β2)\sigma^2/(1 - \beta^2), autocorrelation βs\beta^s. β=1\beta = 1: random walk, unit root, non-stationary; Dickey-Fuller test; difference it.
  • Dynamic optimisation: discounting; Euler u′(ct)=β(1+r)u′(ct+1)u'(c_t) = \beta(1 + r)u'(c_{t+1}); Hamiltonian with state, control and costate; transversality; Ramsey rule; Hotelling rule; Bellman.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. The difference equation yₜ = 0.5yₜ₋₁ + 10 has the equilibrium value:

  2. In yₜ = a·yₜ₋₁ + b, the path oscillates and converges when:

  3. The cobweb model converges when:

  4. In Samuelson's multiplier-accelerator model, cycles arise when the characteristic roots are:

  5. With complex roots in the Samuelson model, cycles are explosive if:

  6. The differential equation dy/dt = ay + b is stable if:

  7. In the Solow model k̇ = sf(k) − (n + δ)k, the steady state is where:

  8. For a stationary AR(1) process Yₜ = α + βYₜ₋₁ + εₜ, the mean is:

  9. The autocorrelation at lag s of a stationary AR(1) process with coefficient β is:

  10. A random walk with drift, Yₜ = a + Yₜ₋₁ + εₜ, has:

  11. The consumption Euler equation u′(cₜ) = β(1 + r)u′(cₜ₊₁) implies consumption rises over time when:

  12. In optimal control, the costate (multiplier) on the capital equation measures:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Quantitative methods