Delta Banner

Mathematics & Science Learning Center
Computer Laboratory

 

Applications of Differential Equations

Compartmental Analysis

More Examples in Mathematica

(continued from last page...)

Your results should have been very similar to the following:

  1. y(0) = 1200

    Mix 2 Solution
    Mix 2 Plot
  2. y(0) = 1000

    Mix 3 Solution
    Mix 3 Plot
  3. y(0) = 800

    Mix 4 Solution
    Mix 4 Plot
  4. y(0) = 600

    Mix 5 Solution
    Mix 5 Plot
  5. y(0) = 400

    Mix 6 Solution
    Mix 6 Plot

Notice that in every single case, regardless of initial condition, in the long term the amount of salt in the tank approaches exactly the same value—800 pounds. If you think about our explanation for the asymptotic behavior we witnessed in the original example, you should agree that the same asymptotic behavior should be expected regardless of the initial condition. If you start with more than 800 pounds, the amount in the tank will decrease towards the asymptote, y = 800. If you start with less than 800 pounds, the amount in the tank will increase towards the asymptote, y = 800. If you start with exactly 800 pounds of salt in the tank then this level is maintained, since the concentration in the tank to start with is exactly the same as the concentration of the inflow, i.e. 2 pounds of salt per gallon.

As our grand finale for this sequence of linked examples, use the Show command to display all six of the solutions—mix1 through mix6 on the same graph. Use a PlotRange->All option while you're at it. Come back here when you're done.

Let's go and see what you should have gotten...


Compass If you're lost, impatient, want an overview of this laboratory assignment, or maybe even all three, you can click on the compass button on the left to go to the table of contents for this laboratory assignment.
 
 

ODE Laboratories: A Sabbatical Project by Christopher A. Barker

©2009 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA
e-mail:
cbarker@deltacollege.edu