Solved Exercises on Differential Equation Applications in Integral Calculus

Master differential equation applications: population dynamics, Newton's law of cooling, and mixing problems through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Population dynamics
Exercise 1
A bacterial culture initially has 1000 bacteria. The population grows at a rate proportional to the current population with a constant of proportionality k = 0.05 per hour. Find the population after 4 hours.
Definition:

Exponential growth model: \( \frac{dP}{dt} = kP \) where:

• \(P(t)\) = population at time t

• \(k\) = growth constant (positive for growth, negative for decay)

• \(P_0\) = initial population

Solution method:
  1. Solve the differential equation using separation of variables
  2. Apply initial conditions to find the constant
  3. Substitute the time value to find the population
Given
\( \frac{dP}{dt} = 0.05P \)
Solution
\( P(t) = 1000e^{0.05t} \)
Step 1: Separate variables

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

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

Step 2: Integrate both sides

\( \int \frac{dP}{P} = \int 0.05 dt \)

\( \ln|P| = 0.05t + C \)

Step 3: Solve for P

\( P = e^{0.05t + C} = e^C \cdot e^{0.05t} \)

Let \( A = e^C \), so \( P(t) = Ae^{0.05t} \)

Step 4: Apply initial condition

At \( t = 0 \), \( P(0) = 1000 \)

\( 1000 = Ae^{0.05 \cdot 0} = A \cdot 1 = A \)

So \( A = 1000 \) and \( P(t) = 1000e^{0.05t} \)

Step 5: Calculate population after 4 hours

\( P(4) = 1000e^{0.05 \cdot 4} = 1000e^{0.2} \)

\( e^{0.2} ≈ 1.2214 \)

\( P(4) = 1000 \times 1.2214 = 1221.4 \)

\( P(4) = 1000e^{0.2} ≈ 1221.4 \text{ bacteria} \)
Final answer:

After 4 hours, there will be approximately 1221 bacteria.

Applied rules:

• Separation of variables: Move all P terms to one side, t terms to the other

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

• Initial conditions: Use to find integration constants

2 Newton's law of cooling
Exercise 2
A cup of coffee initially at 90°C cools in a room at 20°C. After 10 minutes, the temperature is 70°C. Find the temperature after 20 minutes and the cooling constant k.
Definition:

Newton's law of cooling: \( \frac{dT}{dt} = -k(T - T_a) \) where:

• \(T(t)\) = temperature of object at time t

• \(T_a\) = ambient temperature (surroundings)

• \(k\) = positive cooling constant

Given
\(T_0=90°C, T_a=20°C, T(10)=70°C\)
Solution
\(T(t) = 20 + 70e^{-kt}\)
After 20min
\(T(20) ≈ 55.7°C\)
Step 1: Set up the differential equation

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

General solution: \( T(t) = T_a + (T_0 - T_a)e^{-kt} \)

\( T(t) = 20 + (90 - 20)e^{-kt} = 20 + 70e^{-kt} \)

Step 2: Find cooling constant k

Using \( T(10) = 70 \): \( 70 = 20 + 70e^{-10k} \)

\( 50 = 70e^{-10k} \)

\( \frac{50}{70} = e^{-10k} \)

\( \frac{5}{7} = e^{-10k} \)

\( \ln(\frac{5}{7}) = -10k \)

\( k = -\frac{1}{10}\ln(\frac{5}{7}) = \frac{1}{10}\ln(\frac{7}{5}) ≈ 0.0336 \) per minute

Step 3: Calculate temperature after 20 minutes

\( T(20) = 20 + 70e^{-0.0336 \times 20} \)

\( T(20) = 20 + 70e^{-0.672} \)

\( e^{-0.672} ≈ 0.51 \)

\( T(20) = 20 + 70 \times 0.51 = 20 + 35.7 = 55.7°C \)

\( k ≈ 0.0336/\text{min}, \quad T(20) ≈ 55.7°C \)
Final answer:

Cooling constant: \( k ≈ 0.0336 \) per minute

Temperature after 20 minutes: ~55.7°C

Applied rules:

• Newton's law: Rate of cooling proportional to temperature difference

• Exponential decay: Temperature approaches ambient exponentially

• Natural logarithms: Use to solve for constants

3 Mixing problem
Exercise 3
A tank contains 100 liters of water with 5 kg of salt. Fresh water flows in at 3 L/min, and the mixture flows out at 3 L/min. Find the amount of salt in the tank after 20 minutes.
Definition:

Mixing problem: \( \frac{dS}{dt} = \text{rate in} - \text{rate out} \) where:

• \(S(t)\) = amount of substance at time t

• Rate in = concentration_in × flow_rate_in

• Rate out = concentration_out × flow_rate_out

Given
\(V_0=100L, S_0=5kg, r_{in}=r_{out}=3L/min\)
Solution
\(S(t) = 5e^{-0.03t}\)
After 20min
\(S(20) ≈ 2.74kg\)
Step 1: Set up the rate equation

Since fresh water flows in: rate in = 0 kg/min

Concentration in tank = \( \frac{S(t)}{V(t)} = \frac{S(t)}{100} \) kg/L (volume stays constant)

Rate out = \( \frac{S(t)}{100} \times 3 = \frac{3S(t)}{100} \) kg/min

\( \frac{dS}{dt} = 0 - \frac{3S(t)}{100} = -\frac{3S(t)}{100} \)

Step 2: Solve the differential equation

\( \frac{dS}{dt} = -0.03S \)

This is exponential decay: \( S(t) = S_0e^{-0.03t} \)

\( S(t) = 5e^{-0.03t} \)

Step 3: Calculate salt after 20 minutes

\( S(20) = 5e^{-0.03 \times 20} = 5e^{-0.6} \)

\( e^{-0.6} ≈ 0.5488 \)

\( S(20) = 5 \times 0.5488 = 2.744 \) kg

\( S(20) = 5e^{-0.6} ≈ 2.74 \text{ kg} \)
Final answer:

After 20 minutes, there will be approximately 2.74 kg of salt in the tank.

Applied rules:

• Mass balance: Rate of change = rate in - rate out

• Concentration: Amount/volume in the container

• Constant volume: When inflow equals outflow

Differential Equation Applications: Laws, Methods, and Definitions
\( \frac{dy}{dt} = ky \)
Exponential Growth/Decay
Newton's Law
\( \frac{dT}{dt} = -k(T - T_a) \)
Cooling/Heating
Mixing Problem
\( \frac{dS}{dt} = r_{in}C_{in} - r_{out}\frac{S}{V} \)
Mass Balance
General Solution
\( y(t) = y_0e^{kt} \)
Exponential
Key definitions:

Population Dynamics: Mathematical modeling of population changes over time

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

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

Rate Equation: Mathematical relationship between rate of change and current state

Application methodology:
  1. Identify the physical process: Determine which law applies
  2. Set up the differential equation: Express rate of change in terms of variables
  3. Solve the equation: Use appropriate method (separation of variables, etc.)
  4. Apply initial conditions: Find specific solution
  5. Interpret results: Connect mathematical solution to physical reality
Tip 1: Always identify what quantity is changing and what drives the change.
Tip 2: For mixing problems, track both volume and amount of substance separately.
Tip 3: In cooling problems, temperature always approaches ambient temperature.
Tip 4: Check that your solution makes physical sense (positive quantities, limiting behavior).
Real-world applications: Epidemiology, heat transfer, chemical engineering, finance.
Modeling assumptions: Homogeneous mixing, constant parameters, continuous processes.
Essential formulas:

• Exponential: \( y(t) = y_0e^{kt} \) (growth if k > 0, decay if k < 0)

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

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

• General form: \( \frac{dy}{dt} = f(y,t) \) with initial condition y(0) = y₀

Solution: Exercises 4 to 5
4 Heating problem
Exercise 4
An object at 10°C is placed in an oven at 200°C. After 5 minutes, the temperature is 60°C. Find the heating constant and how long it takes for the object to reach 150°C.
Definition:

Newton's law of heating: Same as cooling but with object temperature rising toward ambient

General solution: \( T(t) = T_a + (T_0 - T_a)e^{-kt} \) works for both cooling and heating

Given
\(T_0=10°C, T_a=200°C, T(5)=60°C\)
Solution
\(T(t) = 200 - 190e^{-kt}\)
Time to 150°C
\(t ≈ 13.5 \text{ min}\)
Step 1: Set up the equation

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

General solution: \( T(t) = 200 + (10 - 200)e^{-kt} = 200 - 190e^{-kt} \)

Step 2: Find heating constant k

Using \( T(5) = 60 \): \( 60 = 200 - 190e^{-5k} \)

\( 190e^{-5k} = 200 - 60 = 140 \)

\( e^{-5k} = \frac{140}{190} = \frac{14}{19} \)

\( -5k = \ln(\frac{14}{19}) \)

\( k = -\frac{1}{5}\ln(\frac{14}{19}) = \frac{1}{5}\ln(\frac{19}{14}) ≈ 0.0606 \) per minute

Step 3: Find time to reach 150°C

Set \( T(t) = 150 \): \( 150 = 200 - 190e^{-0.0606t} \)

\( 190e^{-0.0606t} = 200 - 150 = 50 \)

\( e^{-0.0606t} = \frac{50}{190} = \frac{5}{19} \)

\( -0.0606t = \ln(\frac{5}{19}) \)

\( t = -\frac{1}{0.0606}\ln(\frac{5}{19}) = \frac{1}{0.0606}\ln(\frac{19}{5}) \)

\( t ≈ 16.5 \times 1.335 ≈ 22.0 \) minutes

\( k ≈ 0.0606/\text{min}, \quad t ≈ 22.0 \text{ minutes to reach } 150°C \)
Final answer:

Heating constant: \( k ≈ 0.0606 \) per minute

Time to reach 150°C: ~22.0 minutes

Applied rules:

• Newton's law: Same equation works for heating and cooling

• Positive k: Both processes use positive cooling/heating constants

• Natural logarithms: Essential for solving exponential equations

5 Salt solution mixing
Exercise 5
A tank contains 500 liters of brine with 100 kg of salt. Brine with 0.5 kg/L salt flows in at 4 L/min, while the mixture flows out at 3 L/min. Find the amount of salt after 30 minutes.
Definition:

Variable volume mixing: When inflow rate ≠ outflow rate, volume changes over time

Volume equation: \( V(t) = V_0 + (r_{in} - r_{out})t \)

Given
\(V_0=500L, S_0=100kg, r_{in}=4, r_{out}=3\)
Volume
\(V(t) = 500+t\)
Salt after 30min
\(S(30) ≈ 147.5kg\)
Step 1: Set up volume equation

Since \( r_{in} = 4 \) L/min and \( r_{out} = 3 \) L/min:

\( V(t) = 500 + (4-3)t = 500 + t \) L

Step 2: Set up mass balance equation

Rate in = concentration_in × flow_rate_in = \( 0.5 \times 4 = 2 \) kg/min

Rate out = concentration_out × flow_rate_out = \( \frac{S(t)}{V(t)} \times 3 = \frac{3S(t)}{500+t} \) kg/min

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

Step 3: Solve the linear differential equation

Rearrange: \( \frac{dS}{dt} + \frac{3S}{500+t} = 2 \)

This is linear: \( \frac{dS}{dt} + P(t)S = Q(t) \) where \( P(t) = \frac{3}{500+t} \), \( Q(t) = 2 \)

Integrating factor: \( \mu(t) = e^{\int \frac{3}{500+t} dt} = e^{3\ln(500+t)} = (500+t)^3 \)

\( S(t)(500+t)^3 = \int 2(500+t)^3 dt = \frac{2(500+t)^4}{4} = \frac{(500+t)^4}{2} + C \)

\( S(t) = \frac{(500+t)^4}{2(500+t)^3} + \frac{C}{(500+t)^3} = \frac{500+t}{2} + \frac{C}{(500+t)^3} \)

Step 4: Apply initial condition

At \( t = 0 \), \( S(0) = 100 \): \( 100 = \frac{500}{2} + \frac{C}{500^3} = 250 + \frac{C}{125000000} \)

\( \frac{C}{125000000} = 100 - 250 = -150 \)

\( C = -150 \times 125000000 = -18750000000 \)

Step 5: Calculate salt after 30 minutes

\( S(30) = \frac{500+30}{2} + \frac{-18750000000}{(500+30)^3} \)

\( S(30) = \frac{530}{2} + \frac{-18750000000}{530^3} \)

\( S(30) = 265 + \frac{-18750000000}{148877000} ≈ 265 - 126.5 = 138.5 \) kg

\( S(30) ≈ 138.5 \text{ kg} \)
Final answer:

After 30 minutes, there will be approximately 138.5 kg of salt in the tank.

Applied rules:

• Variable volume: When inflow ≠ outflow, volume changes linearly

• Linear DE method: Use integrating factor for linear equations

• Mass balance: Always consider both inflow and outflow rates

Comprehensive Applications Theory & Summary
\( \frac{dy}{dt} = f(y,t) \)
General Differential Equation
Key definitions:

Population Dynamics: Mathematical modeling of population changes accounting for birth, death, migration, and carrying capacity

Newton's Law of Cooling: Rate of temperature change is proportional to the difference between object and ambient temperatures

Mixing Problems: Modeling of concentration changes in containers with inflow and outflow of substances

Rate Equations: Mathematical relationships expressing how a quantity changes with respect to time

Complete solution methodology:
  1. Problem identification: Determine which physical law applies (growth, cooling, mixing)
  2. Variable definition: Clearly define dependent and independent variables
  3. Rate equation setup: Express rate of change in terms of current state
  4. Equation solving: Use appropriate method (separation, integrating factor, etc.)
  5. Initial conditions: Apply to find particular solution
  6. Validation: Check physical reasonableness of solution
Tip 1: Always draw a diagram showing inflows, outflows, and the system being modeled.
Tip 2: For mixing problems, track both volume and solute amount separately.
Tip 3: In cooling problems, temperature always asymptotically approaches ambient temperature.
Tip 4: Check limiting behavior: as t → ∞, what does your solution approach?
Tip 5: Units must be consistent throughout your calculations.
Modeling assumptions: Homogeneous mixing, constant parameters, continuous processes, negligible external influences.
Real-world applications: Epidemiology, pharmacokinetics, heat exchangers, chemical reactors, financial modeling.
Common pitfalls: Incorrect sign conventions, inconsistent units, wrong initial conditions, ignoring boundary constraints.
Essential formulas and properties:

• Exponential growth/decay: \( y(t) = y_0e^{kt} \) where k > 0 for growth, k < 0 for decay

• Newton's law of cooling: \( T(t) = T_a + (T_0 - T_a)e^{-kt} \)

• Mixing mass balance: \( \frac{dS}{dt} = r_{in}C_{in} - r_{out}\frac{S}{V(t)} \)

• Variable volume: \( V(t) = V_0 + (r_{in} - r_{out})t \)

• Linear DE solution: \( y(t) = \frac{1}{\mu(t)}[\int \mu(t)Q(t)dt + C] \) where \( \mu(t) = e^{\int P(t)dt} \)

Application Visualization: Comparative Analysis
Exercise 6: Different Processes Comparison
Compare different processes:
\(P(t) = 1000e^{0.05t}\) (population growth)
\(T(t) = 20 + 70e^{-0.0336t}\) (cooling)
\(S(t) = 5e^{-0.03t}\) (mixing/salt decay)

Analysis: The chart shows how different processes evolve over time.

  • \(P(t)\): Exponential growth - increases without bound
  • \(T(t)\): Exponential decay to equilibrium - approaches ambient temperature
  • \(S(t)\): Exponential decay - approaches zero as substance is removed

Questions & Answers

Question: In Newton's law of cooling, why is there a negative sign in the equation \( \frac{dT}{dt} = -k(T - T_a) \)? Doesn't this make the rate always negative?

Answer: Great question! The negative sign ensures the physics is correct regardless of whether the object is cooling or heating:

Physical reasoning:

  • When object is hotter than surroundings (\(T > T_a\)): \( (T - T_a) > 0 \), so \( \frac{dT}{dt} = -k(T - T_a) < 0 \) → temperature decreases (cooling)
  • When object is cooler than surroundings (\(T < T_a\)): \( (T - T_a) < 0 \), so \( \frac{dT}{dt} = -k(T - T_a) > 0 \) → temperature increases (heating)
  • In both cases, the temperature moves toward equilibrium with the ambient temperature

The negative sign ensures that the rate of temperature change always opposes the temperature difference, which is physically correct. The constant k is always positive, representing the strength of the coupling between the object and its surroundings.

Question: How do I know when to use the integrating factor method versus separation of variables for mixing problems?

Answer: The choice depends on the form of the differential equation:

Separation of variables: Use when the equation can be written as \( \frac{dy}{dt} = f(y)g(t) \)

  • Works for: \( \frac{dS}{dt} = -kS \) (constant volume mixing)
  • Works for: \( \frac{dP}{dt} = kP \) (population growth)
  • Results in: \( \int \frac{dy}{f(y)} = \int g(t) dt \)

Integrating factor: Use for linear first-order equations of the form \( \frac{dy}{dt} + P(t)y = Q(t) \)

  • Required for: \( \frac{dS}{dt} = r_{in}C_{in} - r_{out}\frac{S}{V(t)} \) when V(t) varies
  • Method: Multiply by \( \mu(t) = e^{\int P(t)dt} \) to make left side exact
  • Results in: \( y(t) = \frac{1}{\mu(t)}[\int \mu(t)Q(t)dt + C] \)

In mixing problems, if the volume is constant, separation usually works. If volume changes (inflow ≠ outflow), you'll likely need the integrating factor method.

Question: What are the limitations of the basic exponential growth model compared to more realistic models like logistic growth?

Answer: The basic exponential model has several important limitations:

Exponential growth model limitations:

  • Unbounded growth: Predicts infinite population as t → ∞, which is biologically impossible
  • No resource limitation: Ignores carrying capacity and competition for resources
  • Constant growth rate: Assumes per capita growth rate never changes with population size
  • No environmental feedback: Doesn't account for density-dependent effects

More realistic alternatives:

  • Logistic model: \( \frac{dP}{dt} = rP(1 - \frac{P}{K}) \) accounts for carrying capacity
  • Gompertz model: \( \frac{dP}{dt} = rP\ln(\frac{K}{P}) \) for sigmoidal growth
  • Lotka-Volterra: Models predator-prey interactions

The exponential model is only accurate for the initial phase of population growth when resources are abundant and population density is low.