CP 9.3 - Modelling with differential equations

CP 9.3 - Modelling with differential equations

A differential equation turns a statement about rates into a prediction over time. You will form and solve first-order models for mixing, motion and cooling, use initial or measured data, and interpret what their solutions say about limits and the assumptions behind them.

A rate balance for a well-mixed tank

A tank initially contains clean water. Pollutant enters, but its incoming concentration starts decreasing immediately. Can the amount of pollutant in the tank keep rising for some time? The rate entering and the amount already present are different quantities; a rate balance connects them.

You already know

An integrating factor solves S′+P(t)S=Q(t)S'+P(t)S=Q(t); an initial amount selects the constant. Amount per unit volume is concentration, so multiplying concentration by volume flow rate gives amount per unit time.

Let S(t)S(t) be the mass of dissolved substance in a tank. The governing balance is change in stored mass equals mass entering minus mass leaving. If the tank is well mixed, its outlet concentration equals the concentration throughout the tank.

Conservation in a mixing model

For tank volume V(t)V(t), inflow rate qinq_{\mathrm{in}}, incoming concentration cin(t)c_{\mathrm{in}}(t), and outflow rate qoutq_{\mathrm{out}},

dSdt=qincin(t)−qoutSV(t)\frac{\mathrm{d}S}{\mathrm{d}t} =q_{\mathrm{in}}c_{\mathrm{in}}(t)-q_{\mathrm{out}}\frac{S}{V(t)}

Assume uniform mixing and no other gain or loss of the substance. Equal volume flow rates make VV constant. Not in the formula booklet: learn it.

Write units beside the terms while building the model. Subtracting an outgoing concentration from an incoming mass rate would compare different quantities.

Worked example 1: constant incoming concentration

Question. A well-mixed tank contains 100 L100\,\mathrm{L} of clean water. Solution enters at 2 L min−12\,\mathrm{L\,min^{-1}}, with concentration 3 g L−13\,\mathrm{g\,L^{-1}}; mixture leaves at the same volume rate. Form and solve a model for the mass SS grams after tt minutes, and find its limiting value.

Plan. Use constant volume, subtract the outgoing mass rate, then solve with S(0)=0S(0)=0.

inflow mass rate=2(3)=6g min−1outflow mass rate=2(S100)=S50g min−1S′+S50=6rate balance(et/50S)′=6et/50integrating factorS=300+Ce−t/50integrate and divide0=300+Cinitially clean\begin{aligned} \text{inflow mass rate}&=2(3)=6&&\mathrm{g\,min^{-1}}\\ \text{outflow mass rate}&=2\left(\frac S{100}\right)=\frac S{50}&&\mathrm{g\,min^{-1}}\\ S'+\frac S{50}&=6&&\text{rate balance}\\ (\mathrm{e}^{t/50}S)'&=6\mathrm{e}^{t/50}&&\text{integrating factor}\\ S&=300+C\mathrm{e}^{-t/50}&&\text{integrate and divide}\\ 0&=300+C&&\text{initially clean} \end{aligned}

Why this step? The leaving concentration is S/100S/100, rather than the incoming value 33: the tank starts clean and takes time to approach the inlet concentration.

Answer. S=300(1−e−t/50) gS=300(1-\mathrm{e}^{-t/50})\,\mathrm{g}, with limiting mass 300 g300\,\mathrm{g}.

Check. S(0)=0S(0)=0, and S′=6e−t/50=6−S/50S'=6\mathrm{e}^{-t/50}=6-S/50. At the limit, the tank concentration is 300/100=3 g L−1300/100=3\,\mathrm{g\,L^{-1}}, equal to the incoming concentration.

The second example changes only the incoming concentration to a decaying function. The same outflow mechanism remains, but the tank eventually becomes clean again.

Worked example 2: a falling input and a delayed peak

Question. The tank and flow rates are as in Worked example 1, but incoming concentration is 3e−t/50 g L−13\mathrm{e}^{-t/50}\,\mathrm{g\,L^{-1}}. Find S(t)S(t) and the time and value of its maximum.

Plan. Replace the incoming mass rate by 6e−t/506\mathrm{e}^{-t/50}, solve with the same factor and initial amount, then differentiate.

S′+S50=6e−t/50new inflow mass rate(et/50S)′=6multiply throughS=(6t+C)e−t/50integrate and divideS(0)=0⟹C=0initially cleanS′=6e−t/50(1−t50)differentiate the solution\begin{aligned} S'+\frac S{50}&=6\mathrm{e}^{-t/50}&&\text{new inflow mass rate}\\ (\mathrm{e}^{t/50}S)'&=6&&\text{multiply through}\\ S&=(6t+C)\mathrm{e}^{-t/50}&&\text{integrate and divide}\\ S(0)=0&\Longrightarrow C=0&&\text{initially clean}\\ S'&=6\mathrm{e}^{-t/50}\left(1-\frac t{50}\right)&&\text{differentiate the solution} \end{aligned}

The derivative is positive for 0≤t<500\le t<50 and negative for t>50t>50.

Why this step? The maximum occurs when incoming and outgoing mass rates balance, not when the incoming concentration itself is greatest.

Answer. S=6te−t/50 gS=6t\mathrm{e}^{-t/50}\,\mathrm{g}, with maximum 300e g\frac{300}{\mathrm{e}}\,\mathrm{g}, approximately 110 g110\,\mathrm{g}, at t=50 mint=50\,\mathrm{min}.

Check. At t=50t=50, both mass rates equal 6/e g min−16/\mathrm{e}\,\mathrm{g\,min^{-1}}. Also S→0S\to0 as t→∞t\to\infty, consistent with the fading input and continued flushing.

This answers the opening puzzle: the tank's pollutant amount rises for 5050 minutes even though the incoming concentration decreases from the start. Stored material reflects the whole earlier inflow, not just its current concentration.

[DIAGRAM: asset_name: A falling inflow can produce a later maximum in stored mass; asset_slug: 9fm0-cp55-delayed-peak; caption: The incoming concentration falls immediately, while the tank's stored mass peaks later; description: Two aligned time plots show incoming concentration three exp minus t over fifty decreasing from three, and stored mass six t exp minus t over fifty starting at zero and reaching a labelled maximum at time fifty with mass three hundred over e. A vertical dotted guide joins the fifty-minute positions.]
The incoming concentration falls immediately, while the tank's stored mass peaks later

Watch out

Wrong: outflow mass rate =S/100=S/100. That is a concentration in g L−1\mathrm{g\,L^{-1}}. Right: multiply by the volume flow rate, giving 2S/100=S/50 g min−12S/100=S/50\,\mathrm{g\,min^{-1}}.

Check the volume and flow rate before choosing the coefficient in the next model.

Motion with a driving force and resistance

In a motion model, the rate of change of velocity is acceleration, so Newton's second law supplies a differential equation for velocity.

You already know

In one-dimensional motion, v=dxdtv=\frac{\mathrm{d}x}{\mathrm{d}t}, a=dvdta=\frac{\mathrm{d}v}{\mathrm{d}t}, and resultant force equals mama. Choose a positive direction and use signed forces. Integrating velocity gives displacement; its constant is set by the initial position.

Suppose a particle moves in the positive direction with a constant driving force and resistance proportional to its speed. The drive and resistance oppose each other. Their balance predicts a limiting velocity, but the solution must show whether the particle approaches it from above or below.

Worked example 3: accelerating towards a limiting velocity

Question. A particle of mass 2 kg2\,\mathrm{kg} moves horizontally in the positive direction. A constant driving force is 8 N8\,\mathrm{N}; the opposing resistance has magnitude vv newtons when its speed is v m s−1v\,\mathrm{m\,s^{-1}}. Initially v=2v=2 and x=0x=0. Find v(t)v(t), x(t)x(t) and the limiting velocity, using SI units.

Plan. Form the signed force balance, solve the linear velocity equation, then integrate velocity with the initial position.

2dvdt=8−vdrive minus resistancev′+12v=4divide by the mass(et/2v)′=4et/2integrating factorv=8+Ce−t/2integratev(0)=2⟹C=−6initial velocityx=8t+12e−t/2+Dintegrate vx(0)=0⟹D=−12initial position\begin{aligned} 2\frac{\mathrm{d}v}{\mathrm{d}t}&=8-v&&\text{drive minus resistance}\\ v'+\frac12v&=4&&\text{divide by the mass}\\ (\mathrm{e}^{t/2}v)'&=4\mathrm{e}^{t/2}&&\text{integrating factor}\\ v&=8+C\mathrm{e}^{-t/2}&&\text{integrate}\\ v(0)=2&\Longrightarrow C=-6&&\text{initial velocity}\\ x&=8t+12\mathrm{e}^{-t/2}+D&&\text{integrate }v\\ x(0)=0&\Longrightarrow D=-12&&\text{initial position} \end{aligned}

Why this step? Resistance opposes the chosen positive motion, so it enters with a minus sign. A plus sign would predict ever-increasing acceleration instead of a balance.

Answer. v=8−6e−t/2 m s−1v=8-6\mathrm{e}^{-t/2}\,\mathrm{m\,s^{-1}}, x=8t−12(1−e−t/2) mx=8t-12(1-\mathrm{e}^{-t/2})\,\mathrm{m}. The limiting velocity is 8 m s−18\,\mathrm{m\,s^{-1}}.

Check. At t=0t=0, v=2v=2 and x=0x=0. Differentiating xx gives vv; as t→∞t\to\infty, resistance tends to 8 N8\,\mathrm{N}, balancing the drive.

The second example changes only the initial velocity, placing it above the limiting value. The same forces now cause deceleration.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account