Difference and Differential Equations Explained: How Economic Variables Evolve Over Time
- ▸A difference equation links a variable's value in one period to its value in the previous period; a differential equation does the same in continuous time by linking a variable's rate of change to its level.
- ▸For the first-order linear case the whole solution follows from two numbers, the steady state and the coefficient on the lagged value: the path converges when that coefficient is below 1 in absolute value (or, in continuous time, when the rate of change falls as the level rises) and explodes otherwise.
- ▸Applied to US federal debt with fiscal 2025 values, an interest rate below growth makes the debt ratio converge slowly toward about 172% of GDP and reach about 109% in 2036 if nothing changes; with the interest rate equal to growth it reaches about 126%, and CBO's February 2026 baseline, which has interest costs rising, projects 120%.
Understanding difference and differential equations — simply put
Many economic quantities depend on their own past. This year's government debt is last year's debt plus this year's borrowing. Next quarter's capital stock is this quarter's stock, minus wear and tear, plus new investment. An equation that ties a variable to its own earlier values is a difference equation when time moves in steps (years, quarters) and a differential equation when time is treated as continuous. Either way, the equation is a rule for how something evolves, and solving it tells you where the variable is heading and whether it settles down or runs away.
How does it actually help?
Take government debt measured as a share of GDP, written for year . Each year the existing debt grows with the interest paid on it, the economy grows and shrinks the ratio, and the government adds any primary deficit (spending minus revenue, excluding interest). That gives the debt-dynamics equation , where is the average nominal interest rate on the debt, is nominal GDP growth and is the primary deficit as a share of GDP.
This is a first-order linear difference equation: first-order because only one lag appears, linear because enters with a constant coefficient. From this one line you can find the debt ratio the economy is heading toward and whether it will ever get there.
Why does this matter?
Most dynamic questions in economics reduce to equations of this kind: whether public debt is sustainable, how fast an economy converges to its growth path in the Solow model, how prices adjust in a market with production lags, how inflation responds to a policy rule. Knowing how to find the steady state and test stability lets you read these models without simulating them, and tells you which parameters decide the outcome.
What makes the solution reliable?
Two things. The coefficients must be stable over the period you project, because the solution assumes they do not change. And the stability condition must hold: in a difference equation the coefficient on the lagged value must be smaller than 1 in absolute value; in a differential equation the coefficient on the level must be negative. If either fails, the "steady state" exists on paper but the variable moves away from it.
The takeaway
Every first-order linear dynamic equation has a steady state and a stability test, and the solution is the steady state plus a gap that shrinks or grows at a fixed rate. The rest of this guide works through both versions by hand, applies them to US federal debt, and then derives the general formulas.
Solving it by hand: a difference equation
Consider with a starting value (illustrative numbers).
Step 1: find the steady state. A steady state is a value that reproduces itself, so set : , which gives and .
Step 2: check stability. The coefficient on is . Because , any gap from the steady state shrinks by 10% each period, so the path converges to 20. Because is positive, it approaches 20 from one side without overshooting.
Step 3: write the solution. The gap is multiplied by every period, so .
Step 4: check against direct iteration. Iterating the original equation gives , and . The formula gives , and . They match.
If the coefficient were instead, the steady state would be , but the gap would grow by 10% a period and the path would move away from it. If , the path would converge while jumping above and below the steady state, a damped oscillation.
Solving it by hand: a differential equation
Now let time be continuous: with , where is the rate of change of per unit of time (illustrative numbers).
Step 1: steady state. Set : , so .
Step 2: stability. The coefficient on is . A negative coefficient means that when is above 6 it falls and when it is below 6 it rises, so the steady state is stable.
Step 3: solution. The gap decays exponentially at rate 0.5: .
Step 4: check. Differentiate: . Substitute into the right-hand side: . Both sides agree, and . Numerically, , and : the path closes the gap to 6 quickly at first, then more slowly.
A real example: US federal debt
The debt equation from the opening section can be applied to the US federal government. The table shows debt held by the public at the end of each fiscal year, net interest outlays from the Treasury's Monthly Treasury Statement, and the primary deficit, all as a share of GDP. The effective interest rate is interest paid during the year divided by the debt at the start of it; nominal GDP growth is the calendar-year growth of GDP from the Bureau of Economic Analysis.
| Fiscal year | Debt held by the public (% of GDP) | Net interest (% of GDP) | Primary deficit (% of GDP) | Effective interest rate i (%) | Nominal GDP growth g (%) | i − g (percentage points) |
|---|---|---|---|---|---|---|
| 2019 | 78.0 | 1.74 | 2.83 | 2.38 | 4.28 | −1.89 |
| 2020 | 98.3 | 1.61 | 13.04 | 2.05 | −0.76 | 2.82 |
| 2021 | 93.8 | 1.48 | 10.19 | 1.68 | 11.09 | −9.41 |
| 2022 | 93.1 | 1.82 | 3.45 | 2.13 | 9.74 | −7.61 |
| 2023 | 94.3 | 2.37 | 3.72 | 2.72 | 6.78 | −4.06 |
| 2024 | 96.0 | 3.00 | 3.24 | 3.36 | 5.59 | −2.23 |
| 2025 | 97.8 | 3.14 | 2.61 | 3.44 | 5.04 | −1.60 |
With fiscal 2025 values, the coefficient on last year's debt is . Because , the equation is stable: the debt ratio has a steady state and moves toward it. The steady state is of GDP. Starting from 97.8% in 2025, the debt ratio would reach about 109% in 2036 if the interest rate, growth rate and primary deficit stayed at their 2025 values.
| Scenario | Debt in 2036 (% of GDP) |
|---|---|
| 2025 values held constant (i = 3.44%, g = 5.04%, p = 2.61%) | 109.2 |
| Primary deficit cut to 2.1% of GDP (CBO's 2036 projection) | 104.0 |
| Interest rate equal to growth (i = g = 4.0%) | 126.4 |
| Interest rate above growth (i = 4.3%, g = 4.0%) | 130.0 |
| CBO baseline, February 2026 | 120 |
The model and CBO do not have to agree, and the gap is informative. CBO's baseline is a full projection in which interest costs rise as old low-rate debt is refinanced: CBO expects the 10-year Treasury rate to rise from 4.1% in 2026 to 4.3%–4.4% from 2027 on and net interest to reach 4.6% of GDP in 2036.
A difference equation with constant 2025 coefficients cannot capture that drift. CBO's 120% lies between the constant-coefficient path (109%) and the path with the interest rate equal to growth (126%), which is consistent with an effective rate that climbs toward the growth rate over the decade, even though CBO also has the primary deficit narrowing to 2.1% of GDP by 2036. Part of the gap also reflects CBO's use of fiscal-year GDP.
Reading the result
Three lessons carry over to any first-order equation. First, the sign of decides stability. When the interest rate is below growth, the debt ratio converges even with a permanent primary deficit, but toward a level, here 172%, that is far above today's. When , there is no stable steady state: with any primary deficit the ratio rises without limit, and only primary surpluses can hold it down.
Second, convergence is slow when is close to 1. With the gap to the steady state shrinks by only 1.5% a year, so it takes about 45 years to close half of it. Over a 10-year horizon the steady state matters less than the starting point and the deficit.
Third, small changes in coefficients have large effects. Raising by about 1.9 percentage points, from −1.60 to +0.3, moves the 2036 debt ratio from 109% to 130%, and the long-run outcome changes from convergence to explosion.
The assumptions
Constant coefficients. The solution assumes and the constant term do not change. Why it matters: the closed-form path is only valid if is the same every period. When the interest rate drifts upward, as in CBO's baseline, the path has to be computed period by period.
Linearity. The next value depends on the current value through a constant multiplier. Why it matters: with a nonlinear rule, such as a capital stock where output has diminishing returns, there can be several steady states, and stability must be checked at each one by linearizing around it (see the formula section).
Exogenous forcing terms. The primary deficit, interest rate and growth rate are taken as given rather than responding to debt. Why it matters: in practice higher debt can raise interest rates and governments often tighten policy as debt rises. Both feedbacks change the coefficient on lagged debt and therefore the stability condition.
First order. Only one lag appears. Why it matters: if the variable depends on two past values (as in a model with investment lags), a single coefficient no longer settles stability; you need the roots of a characteristic equation, covered below.
The formula
The general results follow. This section is optional reading for anyone who wants the full derivation.
First-order linear difference equation. Write the equation as
If , the steady state solves :
Subtract the steady-state equation from the original to get the deviation , which satisfies . Repeated substitution gives , so
The path converges to if and only if . It approaches monotonically when and oscillates when . The number of periods needed to close half the gap is . In the debt example, , so the half-life is years. If there is no steady state unless , and the variable grows by each period.
Applied to debt. The government budget identity in levels is , where is debt and is the primary deficit. Dividing by GDP, , gives the ratio form used above:
Here , so the stability condition is the same as , and, because , the steady state is , approximately for small rates. With the 2025 values, , or 163%; the exact formula gives 172%.
First-order linear differential equation. In continuous time,
Setting gives the steady state . The deviation satisfies , whose solution is , so
The path converges if and only if . The continuous-time debt equation is , so and the stability condition is again , with steady state . Applied to the hand-worked example, and , so , matching the earlier result.
Linking the two. A difference equation with coefficient behaves like a differential equation with observed once per period. Stability corresponds to ; the oscillating case has no continuous-time counterpart in one dimension.
Nonlinear equations and linearization. For , a steady state solves and is locally stable if . For , a steady state solves and is locally stable if . The Solow model is the classic case: capital per worker follows , and at the positive steady state because of diminishing returns, so the steady state is stable.
Second-order equations. If , try in the homogeneous part to get the characteristic equation . The solution is a combination of the two roots' powers, and the path is stable if both roots have modulus below 1. Complex roots produce cycles, which is how Samuelson's 1939 multiplier–accelerator model generated business cycles. For systems of several equations, the roots become the eigenvalues of the coefficient matrix, as in the linear algebra guide.
When this isn't the right tool
When coefficients change over time. Use period-by-period simulation or a projection model, as CBO does, rather than the closed-form solution.
When agents look ahead. If today's choice depends on expected future values (forward-looking consumption or prices), the equation has to be solved forward, and stability means something different: rational-expectations models need as many unstable roots as jump variables (variables such as prices or consumption that can change instantly in response to news). See dynamic optimization and the New Keynesian model.
When shocks matter more than the deterministic path. Real data are hit by shocks every period. Adding a random error turns the difference equation into an autoregressive process, which is estimated and tested with the methods in the time series guide.
When the question is existence rather than dynamics. If you need to know whether an equilibrium exists at all in a nonlinear system, fixed-point theorems are the right tool; see fixed points and existence of equilibrium.
Practice problems
Problem 1. A country's debt ratio follows (in percent of GDP), starting at . Find the steady state, say whether it is stable, and compute and .
Solution. The steady state solves , so and . The coefficient is , so the steady state is unstable: a gap of 10 points grows by 2% a year. Iterating, and . Check with the closed form: . Interpretation: the interest rate exceeds growth (the coefficient is above 1), so a primary surplus of 1% of GDP holds debt only at exactly 50%. From 60% the ratio keeps rising unless the surplus is increased.
Problem 2. In the cobweb model, farmers decide this year's supply from last year's price: supply is and demand is . Derive the difference equation for the price, find the equilibrium price, and say whether prices converge.
Solution. Setting supply equal to demand, , so . The steady state is ; check: supply and demand . The coefficient is , so and prices converge, but they oscillate because : from , , , . Prices converge because demand responds more strongly to price (slope 4) than supply does (slope 2).
Problem 3. In continuous time, with . Find the steady state, the solution, and how long it takes to close half of the initial gap.
Solution. The steady state is , and it is stable because . The solution is . Half the gap is closed when , that is time units. Check: , halfway between 30 and 20.
Further reading
- Growth models: Solow, the steady state and endogenous growth — internal
- Linear algebra for economists — internal
- Time series analysis — internal
- Dynamic optimization — internal
- Fixed points and existence of equilibrium — internal
- Fiscal policy and multipliers — internal
- Congressional Budget Office, The Budget and Economic Outlook: 2026 to 2036 — external reference
- FRED, Federal debt held by the public as percent of GDP (FYPUGDA188S) — external reference
Sources
Office of Management and Budget and US Department of the Treasury, via FRED (Federal Reserve Bank of St. Louis), Federal debt held by the public as percent of GDP (FYPUGDA188S); federal surplus or deficit as percent of GDP (FYFSGDA188S), fiscal years, accessed December 3, 2026. https://fred.stlouisfed.org/series/FYPUGDA188S
US Department of the Treasury, Bureau of the Fiscal Service, Monthly Treasury Statement, Table 9 (Outlays by Function): net interest (function 900), September fiscal-year-to-date totals, via the Fiscal Data API, accessed December 3, 2026. https://fiscaldata.treasury.gov/datasets/monthly-treasury-statement/
US Bureau of Economic Analysis, via FRED, Gross domestic product, annual (GDPA), accessed December 3, 2026. https://fred.stlouisfed.org/series/GDPA
Congressional Budget Office, The Budget and Economic Outlook: 2026 to 2036 (February 2026). https://www.cbo.gov/publication/61882
Congressional Budget Office, 2026 to 2036 Executive Summary (primary deficit, net interest projections). https://www.cbo.gov/system/files/2026-02/61882-Executive-Summary.pdf
The difference-equation projections, effective interest rates and steady states are EconoLens calculations; the numbers in the hand-worked examples and practice problems are illustrative.
Frequently Asked Questions
What is the difference between a difference equation and a differential equation?
A difference equation describes how a variable changes from one discrete period to the next, for example from one year to the next. A differential equation describes the instantaneous rate of change of a variable in continuous time. Both are used to model dynamics; discrete versions match data collected by period, while continuous versions are often easier to solve analytically.
How do you find the steady state of a difference equation?
Set the variable equal to the same value in every period and solve. For x(t+1) = a·x(t) + b, the steady state is x* = b/(1 − a), provided a is not equal to 1.
When is a difference equation stable?
A first-order linear difference equation x(t+1) = a·x(t) + b is stable when the absolute value of a is less than 1. Then any deviation from the steady state shrinks over time. If the absolute value of a is greater than 1, deviations grow and the variable moves away from the steady state.
What is the debt dynamics equation?
It describes how government debt as a share of GDP evolves: next year's ratio equals this year's ratio multiplied by (1 + interest rate)/(1 + nominal growth), plus the primary deficit as a share of GDP. When the interest rate is below growth, the ratio converges to primary deficit divided by (growth minus interest rate); when it is above growth, a primary surplus is needed to keep the ratio from rising.
How are differential equations used in economics?
They describe continuous-time dynamics such as capital accumulation in the Solow growth model, optimal consumption paths in the Ramsey model, asset price movements and population growth. Solving them gives the steady state and the speed of convergence toward it.
What does it mean if the coefficient in a difference equation is negative?
If the coefficient lies between −1 and 0, the variable converges to its steady state while overshooting in alternate periods, producing damped oscillations. The cobweb model of agricultural prices is the standard example.
Primary Sources
Cite This Article
EconoLens. (2026, December 3). Difference and Differential Equations Explained: How Economic Variables Evolve Over Time. EconoLens. https://www.econolens.co.in/news/study-difference-differential-equations-explained