![]() |
|||
Mathematics & Science
Learning Center |
|||
Applications of Differential EquationsCompartmental AnalysisSolving The Example in Mathematica(continued from last page...) For easy reference, I'll repeat the important details from the last page. The ExampleA large tank initially holds 400 gallons of water into which 1600 pounds of a certain salt has been dissolved. An inflow pipe brings in water containing 2 pounds of the same salt per gallon at a rate of 5 gallons per minute. An outflow pipe allows the fully mixed fluid in the tank to exit at the same rate of 5 gallons per minute. Find the initial value problem that models the amount of the salt, y, in the tank at time t. The Resulting Initial Value ProblemBy now you've solved enough IVPs with Mathematica for you to be able to solve this particular IVP without me telling you exactly what to type. Solve it now using the DSolve command, reading your result into the variable mix1. Use the [[1,1,2]] trick to strip out the important part of the solution that Mathematica returns to you, and read the result back into mix1 again. Come back here when you're done. Let's go look at what you should have gotten... |
|||
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 |
|||