Optimal Consumption Paths

This Demonstration shows the optimal consumption path created by specification of an initial level of assets and a terminal level of assets. The user may specify the interest rate the consumer could earn on investments, the rate at which they discount future consumption versus present consumption, and their wage trajectory (a starting point and a rate of change). Red areas of the consumption graph correspond to dissavings. Green areas correspond to savings.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


This Demonstration is premised on the theory of optimal control. Form a Hamiltonian , where u represents consumption (the control variable), w represents wages, r represents the interest rate, x represents the level of assets (the state variable), and y is a Lagrangian. Then take the variational derivative of the Hamiltonian with respect to the control variable and set it equal to zero, the variational derivative of the Hamiltonian with respect to the state variable and set it equal to the derivative of the Lagrangian, and lastly set the Lagrangian function at the terminal time to be equal to zero. With some complicated calculus and algebra facilitated by Mathematica and its VariationalMethods Package, the plotted expressions for optimal asset and consumption trajectories shown in this Demonstration are created. This Demonstration does not include as a complication a requirement that assets be positive at all times.
Snapshot 1: a decline in wages coupled with a low rate of discount on consumption and no desire to accumulate capital at the terminal time combine to create savings during the early years and dissavings in later years.
Snapshot 2: setting the interest rate equal to the consumption discount rate results in constant levels of consumption with dissavings in the early years and savings later.
Snapshot 3: the individual who needs to reach a high level of terminal wealth saves at a high rate for most of their life even if investment rates are low and future consumption is significantly discounted.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+