## Mixture problem in Calculus

I keep forgetting the way to solve this problem. So, when I in future have no clue I know where to look.

**The problem**

A 200-galon tank is half full of distilled water. At time , a solution containing 0.5 pound/galon of salt enters the tank at the rate of 5 gal/minutes, and the well-stirred mixture is withdrawn at the rate of 3 gal/minutes.

a. Give a mathematical model representation of the above problem.

b. At what time, will the tank be full?

c. At the time the tank is full, how many pounds of salt will it contain?

**The mathematical model**

The model describing the above process is based on the following formula:

rate of change of the amount of salt = (rate of salt arrived) – (rate of salt departed)

Suppose is the volume of the liquid in the tank at time . The volume of liquid inside the tank will increase as the inflow (5 gal/minutes) is bigger than the outflow (3 galon/minutes). Thus, we have

100 galon + (5 gal/min – 3 gal/min) min,

gal,

as we know that initially the tank is half full (100 gal).

Suppose is the amount of salt inside the tank at time . The rate in of salt is as follows,

rate in (pound/min) (0.5 pound/gal) (5 gal/min) 2.5 pound/min,

while the rate out is

rate out (pound/min) outflow (gal/min)

(pound/min)

(pound/min).

Therefore, the mathematica model is given by,

. (1)

**The solution**

First we determine time at which the tank will be full. We use the following equation,

,

We solve for when the volume is 200 galon, then we obtain .

To solve the differential equation (1) we need the initial condition

as follow,

.

We are going to use Maple to solve the problem

` > model := diff(y(t),t) = 2.5 - (3*y(t))/(100+2*t); `

` > init := y(0)=0; `

` > dsolve({model,init}); `

We obtain the solution that is given by

When , the amount of salt inside the tank will be

.

## Export figures produced in Maple to eps file

Found the following tips during my PhD candidature. We now can export figures produced in Maple (any versions) to an eps file.

Right clicking on top of the figure using the mouse and choosing the export option do not satisfy me as the figure produced is mathematically ugly.

> plotsetup(postscript, plotoutput=`square_of_x.eps`, plotoptions=`color,portrait,height=350,width=350`);

> plot(x^2,x=-5..5,axes=boxed);

> plotsetup(default);

The first line of the command above will set up maple to create an output file called “square_of_x.eps” in the directory where this maple file located. The second line is the maple command to produce the figure. And the last command is to set up everything back.

## Your says