Differential Equations · Undergraduate

Modeling with First-Order Equations: Mixing, Cooling and Falling

Quick answer

Many situations are described by a rate of change: rate in minus rate out for a tank of brine, a temperature gap that shrinks in proportion to its size, a fall slowed by air resistance. Each gives a first-order linear equation of the form y′ = a − by, whose solution is y = a/b + Ce^(−bt). The quantity approaches the equilibrium a/b exponentially, and the initial condition fixes C.

What you'll learn

  • Write a rate-in minus rate-out model for a mixing tank
  • Apply Newton's law of cooling and find its constant from data
  • Model falling with air resistance and find terminal velocity
  • Identify the equilibrium a model approaches

One shape, many situations

Each model in this lesson says that a quantity changes at a rate made of a constant push and a pull proportional to the quantity itself:

y′=a−byy' = a - by

This is a first-order linear equation with constant coefficients. Its solution is

y=ab+Ce−bty = \frac{a}{b} + Ce^{-bt}

The constant ab\tfrac{a}{b} is the equilibrium: setting y′=0y' = 0 gives y=aby = \tfrac{a}{b}, and every solution approaches it exponentially when b>0b > 0.

Why rate in minus rate out

A tank of brine, a cup of coffee and a falling body look nothing alike, but each is an accounting statement. The rate a quantity changes equals everything that adds to it minus everything that takes away from it. Write each term in terms of the quantity and the equation follows. The models differ only in what “in” and “out” mean.

Worked examples

Salt approaching its equilibrium The amount of salt A(t) = 20(1 − e^(−t/20)) rising from 0 at t = 0, steeply at first and then leveling off, approaching the dashed horizontal line A = 20 kg. At t = 20 minutes it is about 12.6 kg. 20406080100510152025tA (20, 12.6)
  • A(t)
  • equilibrium A = 20
Salt approaching its equilibrium

Common mistakes

Practice problems

  1. A 5050-L tank holds 3030 kg of salt. Pure water flows in at 11 L/min and the mixture flows out at 11 L/min. Find A(t)A(t) and A(50)A(50).

    Answer

    A=30e−t/50A = 30e^{-t/50}; A(50)≈11.04A(50) \approx 11.04 kg

    Full solution

    Nothing comes in, and salt leaves at A50\tfrac{A}{50} kg/min, so A′=−A50A' = -\tfrac{A}{50}. Then A(50)=30e−1A(50) = 30e^{-1}.

  2. A pie at 200°200°C cools in a 25°25°C room with k=0.1k = 0.1 per minute. Find its temperature after 1010 minutes.

    Answer

    About 89.38°89.38°C

    Full solution

    T=25+175e−0.1tT = 25 + 175e^{-0.1t}, so T(10)=25+175e−1T(10) = 25 + 175e^{-1}.

  3. A drug enters the blood at 22 mg/h and is removed at 0.1Q0.1Q mg/h, where QQ is the amount present. Starting from 00, what amount does QQ approach, and when is it half of that?

    Answer

    2020 mg; at t=10ln⁡2≈6.93t = 10\ln 2 \approx 6.93 h

    Full solution

    Q′=2−0.1QQ' = 2 - 0.1Q, so Q=20(1−e−0.1t)Q = 20(1 - e^{-0.1t}). Half of 2020 is reached when e−0.1t=12e^{-0.1t} = \tfrac{1}{2}.

  4. Find the terminal velocity of a 6060-kg body with air resistance 12v12v newtons. Use g=9.8g = 9.8.

    Answer

    4949 m/s

    Full solution

    At terminal velocity 60(9.8)=12v60(9.8) = 12v.

  5. Write the equation for a 200200-L tank, starting with 1010 kg of salt, into which brine with 0.50.5 kg/L flows at 44 L/min while the mixture leaves at 44 L/min.

    Answer

    A′=2−A50A' = 2 - \tfrac{A}{50}, A(0)=10A(0) = 10

    Full solution

    In: 4×0.5=24 \times 0.5 = 2 kg/min. Out: 4⋅A200=A504 \cdot \tfrac{A}{200} = \tfrac{A}{50}. The solution is A=100−90e−t/50A = 100 - 90e^{-t/50}.

  6. What is the equilibrium of y′=6−3yy' = 6 - 3y, and is it approached from any starting value?

    Answer

    y=2y = 2; yes

    Full solution

    y=2+Ce−3ty = 2 + Ce^{-3t}, and e−3t→0e^{-3t} \to 0 for every CC.

  7. In Example 2, what is the coffee’s temperature after 2020 minutes?

    Answer

    About 42.9°42.9°C

    Full solution

    e−20k=(47)2=1649e^{-20k} = \left(\tfrac{4}{7}\right)^2 = \tfrac{16}{49}, so T=20+70⋅1649≈42.86T = 20 + 70 \cdot \tfrac{16}{49} \approx 42.86.

  8. A student models the tank in Example 1 with A′=1−5AA' = 1 - 5A. What went wrong?

    Answer

    The outflow should use the concentration A100\tfrac{A}{100}: A′=1−A20A' = 1 - \tfrac{A}{20}.

    Full solution

    5A5A treats every liter leaving as carrying all of the salt. Each liter carries A100\tfrac{A}{100} kg.

Frequently asked questions

How do you set up a mixing problem?

Let A(t) be the amount of substance in the tank. Then dA/dt = (rate in) − (rate out), where the rate out is the outflow rate times the concentration A/V.

What is Newton's law of cooling?

dT/dt = −k(T − Tₐ): an object's temperature changes at a rate proportional to the difference from the surrounding temperature Tₐ. The solution is T = Tₐ + (T₀ − Tₐ)e^(−kt).

What is terminal velocity?

The speed at which air resistance balances gravity, so the velocity stops changing. For v′ = g − (c/m)v it is mg/c.

What is an equilibrium solution?

A constant solution, found by setting the rate of change to zero. In y′ = a − by it is y = a/b, and every other solution approaches it when b > 0.

How do you find k in a cooling problem?

Use a second measurement. If T = Tₐ + (T₀ − Tₐ)e^(−kt) and the temperature is known at one later time, solve that equation for k with a logarithm.

What to learn next