MATH 250 · Mathematics for Economics II
Dynamic Choice: A First Look at Optimizing Over Time
Optimizing over time links today's choice to tomorrow's, and the Euler equation says how to trade them off.
Key takeaways
- A dynamic choice problem asks you to pick a whole plan over time, where each period's choice affects later options.
- The intertemporal budget constraint adds up income and spending at different dates after discounting them with the interest rate.
- The Euler equation says that at the best plan, giving up a little today to gain tomorrow leaves total satisfaction unchanged.
- Solving backward, last period first, is a reliable way to work out a plan; this idea is called dynamic programming.
- The Euler equation is itself a difference equation, so the stability tools from earlier lessons apply to consumption paths.
Picture Maya, who runs a smoothie cart, on the day she wins a small prize. She will have $60 to spend this year and expects $48 next year. If she spends it all as it comes, this year is comfortable and next year is a little leaner. But she can move money across time. She can save some of this year's cash at the bank and have more next year. Or she could borrow against next year's earnings and splash out now. How much should she save?
Every choice up to now in this course happened in one moment. This lesson adds time. When today's choice changes what is possible tomorrow, you cannot solve each day separately. You have to think about the whole sequence at once. The tools are the ones you already have, the constrained optimization of Constrained Optimization and Lagrange Multipliers, plus one new habit: counting dollars received at different dates as different goods, with a price (the interest rate) between them.
The setup: two periods
Maya has income y₁ = 60 now and y₂ = 48 next year. She chooses spending c₁ now and c₂ next year. She can save or borrow at an interest rate r. Suppose, as an invented number, r = 20%, so each dollar saved becomes $1.20 next year, and each dollar borrowed costs $1.20 to repay.
The budget constraint. If she saves s = y₁ − c₁ now, next year she can spend c₂ = y₂ + (1 + r) × s. Eliminating s gives
c₁ + c₂/(1 + r) = y₁ + y₂/(1 + r)
The right side is her wealth in today's dollars: 60 + 48/1.2 = 60 + 40 = 100. The left side is spending in today's dollars. A dollar next year is worth only 1/1.2 of a dollar today, because you could earn interest in between. This is the discounting logic of Discounting and Present Value Arithmetic. In terms of next year's dollars, the budget line is c₂ = 120 − 1.2 × c₁: each dollar not spent today buys $1.20 next year.
The preferences: patience and smoothness
Maya likes spending in both years, but she values this year a bit more than next year. Suppose her total satisfaction, her lifetime utility, is
U = ln(c₁) + β × ln(c₂)
where ln is the natural logarithm and β is a number between 0 and 1 measuring patience. Here β = 0.9: a unit of satisfaction next year counts as 0.9 of a unit now. The logarithm captures diminishing returns: the tenth smoothie in a day is worth less than the first. It also makes her dislike big swings, so she prefers to smooth spending across years.
Solving it with a Lagrangian
Form the Lagrangian with multiplier λ on the budget:
L = ln(c₁) + β × ln(c₂) + λ × [W − c₁ − c₂/(1 + r)]
where W = 100 is her wealth. Take the partial derivatives, as in Partial Derivatives, and set them to zero:
- ∂L/∂c₁ = 1/c₁ − λ = 0, so λ = 1/c₁.
- ∂L/∂c₂ = β/c₂ − λ/(1 + r) = 0, so β/c₂ = λ/(1 + r).
Substitute λ = 1/c₁ into the second: β/c₂ = 1/(c₁ × (1 + r)). Rearranged,
c₂/c₁ = β × (1 + r)
This is the Euler equation for the two-period problem. With β = 0.9 and 1 + r = 1.2, c₂ = 1.08 × c₁. Since the interest rate is high enough to outweigh her impatience (β × (1 + r) = 1.08 is above 1), she plans to spend more next year than this year.
Now use the budget. c₁ + 1.08 × c₁/1.2 = 100, that is c₁ + 0.9 × c₁ = 100, so 1.9 × c₁ = 100 and
c₁ = 100/1.9 ≈ 52.63, c₂ = 1.08 × 52.63 ≈ 56.84
Check the budget: 52.63 + 56.84/1.2 = 52.63 + 47.37 = 100 ✓. Find saving: s = 60 − 52.63 = 7.37. Next year she has 48 + 1.2 × 7.37 = 48 + 8.84 = 56.84, which matches c₂ ✓.
So Maya saves about $7.37 now. She smooths: her income is 60 then 48, but her spending is about 52.6 then 56.8, far closer together.
The picture shows the same result. Each indifference curve joins plans giving equal lifetime utility. Higher curves are better. The best plan sits where the budget line just touches an indifference curve, and there the two have the same slope: the rate at which she is willing to swap this year for next equals the rate the bank offers. That is the Euler equation in picture form.
What the Euler equation means
It looks like a formula, but it is a statement about a tiny experiment. Suppose Maya gives up one dollar today. She loses about u′(c₁) of satisfaction, where u′ is marginal utility (the extra satisfaction from one more dollar). The dollar earns interest and becomes (1 + r) dollars next year, which gives her (1 + r) × u′(c₂), discounted by β. If she has the plan right, this swap should leave her exactly as happy as before:
u′(c₁) = β × (1 + r) × u′(c₂)
With the log, u′(c) = 1/c, and the equation becomes 1/c₁ = β × (1 + r)/c₂, the same ratio we found. If the left side were bigger, she should not save that last dollar. If the right side were bigger, she should save more. The best plan is the one where the margin is balanced, the same logic as setting marginal cost equal to marginal benefit in Finding Maximums and Minimums.
A second route: work backward
There is another way to solve the same problem, and it generalizes to many periods. Start with the last period. In year 2, Maya has no future to save for, so she spends everything she has: c₂ = y₂ + (1 + r) × s. Now go back one step and choose s to maximize
ln(y₁ − s) + β × ln(y₂ + (1 + r) × s)
The first-order condition: −1/(y₁ − s) + β × (1 + r)/(y₂ + (1 + r) × s) = 0. With numbers: 48 + 1.2 × s = 1.08 × (60 − s) = 64.8 − 1.08 × s. So 2.28 × s = 16.8 and s = 7.37. The same answer, with no Lagrangian.
The principle behind this is called dynamic programming: whatever happened before, the remaining plan must be best for the situation you find yourself in. So you can solve for the last period first, work out how much a dollar of wealth is worth there, then step back. The value of wealth at each stage is a value function, the object of The Envelope Theorem. In fact, the shadow price λ in the Lagrangian equals the marginal utility of a dollar of wealth: here λ = 1/c₁ ≈ 0.019.
More than two periods
With many periods, the same idea gives an Euler equation for each pair of neighboring periods: u′(c_t) = β × (1 + r) × u′(c_(t+1)). With logarithmic utility this is
c_(t+1) = β × (1 + r) × c_t
That is a difference equation, exactly the kind studied in Difference Equations and the Cobweb Model, with a = β × (1 + r) and no constant term. So spending changes by a constant factor each year. If β × (1 + r) = 1.08, spending grows 8% per year. If it were 0.95, it would fall by 5% per year. If it equals 1, spending is perfectly flat, which is the full smoothing result: when patience exactly offsets the interest rate, the best plan is to spend the same each year.
In continuous time the equation becomes a differential equation, as in Differential Equations for Growth Models. Under logarithmic utility, with discount rate ρ and interest rate r, the growth rate of consumption is r − ρ. The mathematical tool for the full problem is optimal control, which uses a Hamiltonian, a cousin of the Lagrangian. You will meet it in an advanced course; the logic is the same one we used here.
This is also the engine behind life-cycle and permanent-income ideas in Consumption Theory: Keynes, Permanent Income and the Life Cycle: people smooth spending over a lifetime rather than spending whatever arrives each month.
What changes if the interest rate changes?
Raise r and two forces arrive. Saving pays more, which encourages saving: a substitution effect. But Maya is also richer if she is a saver, which encourages spending now: an income effect, as in Income and Substitution Effects. For logarithmic utility these cancel exactly in the choice of c₁: c₁ = W/(1 + β) depends on wealth W = 100 and β, not on r except through W. Wealth W itself depends on r through y₂/(1 + r), so a higher r lowers W and reduces spending now. With other utility functions the net effect of r on saving could go either way, which is why the real data are debated.
A common mistake: treating each period separately
The most common error is to maximize this year's satisfaction first, then next year's. Doing so ignores that saving moves resources between years. The plan is one decision, made with the intertemporal budget.
A second is to compare dollars at different dates without discounting. $48 next year is worth $40 today at r = 20%, not $48.
A third is to confuse the discount factor β (patience) with the interest rate r (the market's rate). The Euler equation depends on their product. A person can be impatient (β low) and still save if interest is high enough.
Finally, remember that these examples use invented numbers, and the rates in the real world change; for current interest rates and savings data, see the Federal Reserve and the Bureau of Economic Analysis.
Words to know
Dynamic choice a decision problem in which choices at different dates are linked.
Intertemporal budget constraint the rule that the discounted value of spending cannot exceed the discounted value of income.
Discount factor (β) the weight a person gives next period's satisfaction compared with this period's.
Euler equation the condition that, at the best plan, shifting a dollar between periods leaves lifetime utility unchanged.
Consumption smoothing spreading spending evenly over time instead of matching it to each period's income.
Dynamic programming solving a multi-period problem backward, from the last period to the first.
Lifetime utility the total satisfaction over all periods, with later periods weighted by β.
Check yourself
- With r = 20%, how much is $48 next year worth in today's dollars?
- A person has wealth W = 100, utility ln(c₁) + 0.9 × ln(c₂) and r = 20%. State the Euler equation result for c₂/c₁.
- In question 2, why is c₁ = 100/1.9 and not 50?
- If β × (1 + r) = 1, what does the Euler equation say about spending, and what is it called?
- Maya's income is 60 now and 48 next year. She plans c₁ = 52.63. How much does she save, and what does she spend next year (r = 20%)?
- Explain why solving backward from the last period is a sensible way to solve a dynamic problem.
Show the answers
- 48/1.2 = $40.
- c₂/c₁ = β(1 + r) = 0.9 × 1.2 = 1.08, so c₂ = 1.08 × c₁.
- The budget is c₁ + c₂/1.2 = 100 with c₂ = 1.08c₁, so c₁ × (1 + 0.9) = 100; she shifts a little spending to next year because she is patient enough and the interest rate is high enough that 50 now would not be best.
- It says c₂ = c₁: the person spends the same each period, which is perfect consumption smoothing.
- Saving is 60 − 52.63 = 7.37, and next year she spends 48 + 1.2 × 7.37 ≈ 56.84.
- In the last period nothing remains to be saved, so that choice is easy; knowing the value of leftover wealth there lets you solve each earlier period one step at a time.