Applications of Differential Equations: Population Dynamics, Mixing Problems, and Newton's Law of Cooling

Master differential equation applications through 5 detailed exercises covering population dynamics, mixing problems, and Newton's law of cooling with comprehensive solutions.

Exercise Solutions: 1 to 3
1 Population Dynamics
Exercise 1
A bacteria culture grows at a rate proportional to its population. If the population doubles in 3 hours, find the population after 9 hours if initially there were 1000 bacteria.
Definition:

Population Growth Model: \( \frac{dP}{dt} = kP \) where P(t) is population, k is growth constant

Solution Method:
  1. Set up the differential equation: \( \frac{dP}{dt} = kP \)
  2. Solve using separation of variables
  3. Find the growth constant k using given conditions
  4. Calculate final population
Initial Condition
P(0) = 1000
Doubling Time
P(3) = 2000
Final Time
t = 9
Step 1: Set up the differential equation

Since growth rate is proportional to population: \( \frac{dP}{dt} = kP \)

Step 2: Solve using separation of variables

\( \frac{dP}{P} = k dt \)

Integrating both sides: \( \ln|P| = kt + C \)

Therefore: \( P(t) = P_0 e^{kt} \) where \( P_0 = e^C \)

Step 3: Find constants using initial condition

At t = 0: \( P(0) = P_0 = 1000 \)

So: \( P(t) = 1000e^{kt} \)

Step 4: Find k using doubling condition

At t = 3: \( P(3) = 2000 = 1000e^{3k} \)

\( 2 = e^{3k} \)

\( \ln(2) = 3k \)

\( k = \frac{\ln(2)}{3} \approx 0.231 \)

Step 5: Calculate population at t = 9

\( P(9) = 1000e^{9k} = 1000e^{9 \cdot \frac{\ln(2)}{3}} \)

\( P(9) = 1000e^{3\ln(2)} = 1000e^{\ln(2^3)} = 1000 \cdot 2^3 = 1000 \cdot 8 = 8000 \)

After 9 hours, the population will be 8000 bacteria
Final answer:

The population after 9 hours will be 8000 bacteria

Applied rules:

• Exponential Growth: \( P(t) = P_0 e^{kt} \)

• Separation of Variables: \( \frac{dP}{dt} = kP \Rightarrow \int \frac{dP}{P} = \int k dt \)

• Natural Logarithm Property: \( e^{\ln(x)} = x \)

2 Mixing Problem
Exercise 2
A tank initially contains 100 gallons of pure water. Salt water containing 2 pounds of salt per gallon flows into the tank at 3 gal/min. The mixture flows out at the same rate. Find the amount of salt in the tank after 20 minutes.
Definition:

Mixing Problem: Rate of change of salt = Rate in - Rate out

Volume
V = 100 gal
Concentration In
2 lb/gal
Flow Rate
3 gal/min
Step 1: Set up the differential equation

Let S(t) = amount of salt at time t

Rate in = (concentration in) × (flow rate in) = 2 × 3 = 6 lb/min

Rate out = (concentration out) × (flow rate out) = (S/V) × 3 = (S/100) × 3 = 3S/100 lb/min

Therefore: \( \frac{dS}{dt} = 6 - \frac{3S}{100} \)

Step 2: Rewrite in standard form

\( \frac{dS}{dt} + \frac{3S}{100} = 6 \)

This is a linear first-order ODE with P(t) = 3/100 and Q(t) = 6

Step 3: Find integrating factor

\( \mu(t) = e^{\int \frac{3}{100} dt} = e^{\frac{3t}{100}} \)

Step 4: Solve the equation

\( S(t) \cdot e^{\frac{3t}{100}} = \int 6e^{\frac{3t}{100}} dt \)

\( S(t) \cdot e^{\frac{3t}{100}} = 6 \cdot \frac{100}{3} e^{\frac{3t}{100}} + C = 200e^{\frac{3t}{100}} + C \)

\( S(t) = 200 + Ce^{-\frac{3t}{100}} \)

Step 5: Apply initial condition

At t = 0, S(0) = 0 (pure water):

\( 0 = 200 + C \Rightarrow C = -200 \)

Therefore: \( S(t) = 200(1 - e^{-\frac{3t}{100}}) \)

Step 6: Calculate salt at t = 20

\( S(20) = 200(1 - e^{-\frac{3 \cdot 20}{100}}) = 200(1 - e^{-0.6}) \)

\( S(20) = 200(1 - 0.5488) = 200(0.4512) = 90.24 \) pounds

After 20 minutes, there will be 90.24 pounds of salt in the tank
Final answer:

After 20 minutes, there will be 90.24 pounds of salt in the tank

Applied rules:

• Mixing Rate: \( \frac{dS}{dt} = \text{Rate in} - \text{Rate out} \)

• Linear ODE: Standard form and integrating factor method

• Exponential Decay: Solution approaches equilibrium value

3 Newton's Law of Cooling
Exercise 3
A cup of coffee at 180°F is placed in a room at 70°F. If the temperature drops to 160°F after 5 minutes, find when the temperature will reach 120°F.
Definition:

Newton's Law of Cooling: \( \frac{dT}{dt} = -k(T - T_s) \) where Ts is surrounding temperature

Initial Temp
T(0) = 180°F
Surrounding Temp
Ts = 70°F
Target Temp
T = 120°F
Step 1: Set up the differential equation

Newton's Law: \( \frac{dT}{dt} = -k(T - 70) \)

Step 2: Solve using separation of variables

\( \frac{dT}{T - 70} = -k dt \)

Integrating: \( \ln|T - 70| = -kt + C \)

Therefore: \( T(t) = 70 + Ae^{-kt} \) where \( A = e^C \)

Step 3: Apply initial condition

At t = 0: \( T(0) = 180 = 70 + A \Rightarrow A = 110 \)

So: \( T(t) = 70 + 110e^{-kt} \)

Step 4: Find k using the given condition

At t = 5: \( T(5) = 160 = 70 + 110e^{-5k} \)

\( 90 = 110e^{-5k} \)

\( \frac{90}{110} = e^{-5k} \Rightarrow \frac{9}{11} = e^{-5k} \)

\( \ln(\frac{9}{11}) = -5k \Rightarrow k = -\frac{1}{5}\ln(\frac{9}{11}) \approx 0.0405 \)

Step 5: Find time when T = 120°F

\( 120 = 70 + 110e^{-0.0405t} \)

\( 50 = 110e^{-0.0405t} \)

\( \frac{50}{110} = e^{-0.0405t} \Rightarrow \frac{5}{11} = e^{-0.0405t} \)

\( \ln(\frac{5}{11}) = -0.0405t \)

\( t = -\frac{\ln(\frac{5}{11})}{0.0405} \approx 19.5 \) minutes

The temperature will reach 120°F after approximately 19.5 minutes
Final answer:

The temperature will reach 120°F after approximately 19.5 minutes

Applied rules:

• Newton's Law of Cooling: Temperature difference drives the rate of change

• Exponential Decay: Temperature approaches ambient temperature exponentially

• Natural Logarithm: Used to solve exponential equations

Key Formulas and Methods
\( \frac{dP}{dt} = kP \)
Population Growth
Population
\( P(t) = P_0 e^{kt} \)
Exponential Growth/Decay
Mixing
\( \frac{dS}{dt} = R_{in} - R_{out} \)
Rate In - Rate Out
Cooling
\( T(t) = T_s + (T_0 - T_s)e^{-kt} \)
Newton's Law
Key Definitions:

Population Dynamics: Models describing how populations change over time

Mixing Problems: Modeling concentration changes in tanks with inflow/outflow

Newton's Law of Cooling: Rate of temperature change is proportional to temperature difference

Solution Strategy:
  1. Identify the type: Population, mixing, or cooling problem
  2. Set up the differential equation: Based on physical principles
  3. Solve the equation: Using appropriate method (separation, integrating factor)
  4. Apply initial conditions: To find specific solution
  5. Answer the question: Calculate required values
Tip 1: For population problems, k > 0 means growth, k < 0 means decay.
Tip 2: In mixing problems, volume may stay constant or change depending on flow rates.
Tip 3: Newton's Law approaches equilibrium temperature asymptotically.
Tip 4: Always check that your solution makes physical sense.
Exercise Solutions: 4 to 5
4 Logistic Population Growth
Exercise 4
A population follows the logistic model with carrying capacity K = 5000 and growth rate r = 0.05. If the initial population is 200, find the population after 20 years.
Definition:

Logistic Growth Model: \( \frac{dP}{dt} = rP(1 - \frac{P}{K}) \)

Carrying Capacity
K = 5000
Growth Rate
r = 0.05
Initial Pop
P₀ = 200
Step 1: Write the logistic equation

General solution: \( P(t) = \frac{K}{1 + (\frac{K}{P_0} - 1)e^{-rt}} \)

Step 2: Substitute known values

\( P(t) = \frac{5000}{1 + (\frac{5000}{200} - 1)e^{-0.05t}} \)

\( P(t) = \frac{5000}{1 + (25 - 1)e^{-0.05t}} \)

\( P(t) = \frac{5000}{1 + 24e^{-0.05t}} \)

Step 3: Calculate population at t = 20

\( P(20) = \frac{5000}{1 + 24e^{-0.05 \cdot 20}} \)

\( P(20) = \frac{5000}{1 + 24e^{-1}} \)

\( P(20) = \frac{5000}{1 + 24(0.3679)} \)

\( P(20) = \frac{5000}{1 + 8.829} = \frac{5000}{9.829} \approx 508.7 \)

After 20 years, the population will be approximately 509 individuals
Final answer:

After 20 years, the population will be approximately 509 individuals

Applied rules:

• Logistic Growth: Accounts for limited resources

• Carrying Capacity: Maximum sustainable population

• Asymptotic Behavior: Population approaches K over time

5 Complex Mixing Problem
Exercise 5
A tank initially contains 50 gallons of brine with 20 lbs of salt. Pure water flows in at 3 gal/min, and the mixture flows out at 2 gal/min. Find the amount of salt after 30 minutes.
Definition:

Variable Volume Mixing: When inflow ≠ outflow, volume changes over time

Initial Volume
V(0) = 50 gal
Net Rate
3-2 = 1 gal/min
Time
t = 30 min
Step 1: Find volume as function of time

V(t) = 50 + (3-2)t = 50 + t gallons

Step 2: Set up differential equation

Let S(t) = amount of salt at time t

Rate in = 0 (pure water)

Rate out = (S/V) × 2 = (S/(50+t)) × 2 = 2S/(50+t)

Therefore: \( \frac{dS}{dt} = 0 - \frac{2S}{50+t} = -\frac{2S}{50+t} \)

Step 3: Solve the differential equation

\( \frac{dS}{S} = -\frac{2}{50+t} dt \)

Integrating: \( \ln|S| = -2\ln|50+t| + C = \ln((50+t)^{-2}) + C \)

Therefore: \( S(t) = \frac{A}{(50+t)^2} \)

Step 4: Apply initial condition

At t = 0: \( S(0) = 20 = \frac{A}{(50+0)^2} = \frac{A}{2500} \)

Therefore: \( A = 20 \times 2500 = 50000 \)

So: \( S(t) = \frac{50000}{(50+t)^2} \)

Step 5: Calculate salt at t = 30

\( S(30) = \frac{50000}{(50+30)^2} = \frac{50000}{80^2} = \frac{50000}{6400} = 7.8125 \) lbs

After 30 minutes, there will be 7.8125 lbs of salt in the tank
Final answer:

After 30 minutes, there will be 7.8125 lbs of salt in the tank

Applied rules:

• Variable Volume: V(t) = V₀ + (rate_in - rate_out) × t

• Concentration: Concentration = Amount/Volume

• Integration: \( \int \frac{1}{x} dx = \ln|x| \)

Detailed Concepts and Methods
\( \frac{dP}{dt} = kP \Rightarrow P(t) = P_0 e^{kt} \)
Exponential Growth/Decay
Key definitions:

Population Growth: Rate of change proportional to current population

Mixing Problems: Rate of change equals rate in minus rate out

Cooling/Heating: Rate of temperature change proportional to temperature difference

Solution approaches:
  1. Population: Separation of variables for \( \frac{dP}{dt} = kP \)
  2. Mixing: Linear ODE with integrating factor
  3. Cooling: Separation of variables for \( \frac{dT}{dt} = -k(T-T_s) \)
Tip 1: In population models, k > 0 means growth, k < 0 means decay.
Tip 2: For mixing problems, pay attention to whether volume changes.
Tip 3: Newton's law always approaches the surrounding temperature.
Tip 4: Check that your solution satisfies initial conditions.
Common errors: Forgetting signs in cooling problems, incorrect rate calculations in mixing.
Exam preparation: Practice setting up equations from word problems.
Essential formulas:

• Population: \( P(t) = P_0 e^{kt} \)

• Logistic: \( P(t) = \frac{K}{1 + (\frac{K}{P_0} - 1)e^{-rt}} \)

• Mixing: \( \frac{dS}{dt} = R_{in} - R_{out} \)

• Cooling: \( T(t) = T_s + (T_0 - T_s)e^{-kt} \)

Questions & Answers

Question: I'm confused about when to use the exponential growth model versus the logistic growth model. What are the key differences and when should I apply each?

Answer: Great question! The key differences are:

  • Exponential Growth: \( \frac{dP}{dt} = kP \) → \( P(t) = P_0 e^{kt} \)
    • Assumes unlimited resources
    • Population grows without bound
    • Good for short-term growth
  • Logistic Growth: \( \frac{dP}{dt} = rP(1 - \frac{P}{K}) \) → \( P(t) = \frac{K}{1 + (\frac{K}{P_0} - 1)e^{-rt}} \)
    • Accounts for limited resources
    • Population approaches carrying capacity K
    • More realistic for long-term growth

Use exponential when resources are abundant and time period is short. Use logistic when considering environmental limits or long-term behavior.

Question: In mixing problems, how do I determine if the volume in the tank is changing or staying constant?

Answer: To determine if volume changes, compare inflow and outflow rates:

  • Constant Volume: Inflow rate = Outflow rate
  • Increasing Volume: Inflow rate > Outflow rate
  • Decreasing Volume: Inflow rate < Outflow rate

If volume changes: V(t) = V₀ + (rate_in - rate_out) × t

When volume changes, the concentration at any time is S(t)/V(t), which affects the outflow rate calculation.

Always read the problem carefully to identify the flow rates for both input and output.

Question: Why does Newton's law of cooling involve a negative sign in the differential equation?

Answer: The negative sign in Newton's law of cooling, \( \frac{dT}{dt} = -k(T - T_s) \), ensures the correct physical behavior:

  • If T > T_s (object hotter than surroundings): T - T_s > 0, so dT/dt < 0 (temperature decreases)
  • If T < T_s (object cooler than surroundings): T - T_s < 0, so dT/dt > 0 (temperature increases)

The negative sign ensures that temperature always moves toward the surrounding temperature T_s.

Without the negative sign, the object would get hotter when it should cool down, violating physical reality.