Skip to main content

Applications of Differential Equations

A differential equation is not really about xx and yy — it is a statement about change. It says: "the rate at which this quantity changes right now depends on how much of it there is right now." That single idea turns out to describe cooling coffee, spreading rumors, charging capacitors, decaying isotopes, vibrating bridges, and shrinking populations of fish. When you learn to read a physical situation and translate "the rate of change is proportional to ..." into an equation, you gain one of the most powerful modeling tools in all of science.

This page walks through four of the classic, must-know applications — logistic population growth, Newton's law of cooling, RC electrical circuits, and mechanical vibrations — and shows you not just the formulas but why each equation looks the way it does and how to solve it end to end.

Learning Objectives

  • Translate a described physical process ("rate of change is proportional to...") into a differential equation.
  • Set up and solve the logistic growth model and interpret the carrying capacity.
  • Apply Newton's law of cooling to temperature problems and find unknown times.
  • Model RC circuits and compute charging/discharging behavior and time constants.
  • Set up the equation for mechanical vibrations and classify the motion (undamped, under-, over-, and critically damped).
  • Recognize the shared mathematical structure behind physically different phenomena.

Quick Answer

Differential equations model any system where change depends on the current state. Logistic growth, dPdt=rP(1PK) \frac{dP}{dt} = rP\left(1 - \frac{P}{K}\right), describes populations that grow fast when small but level off at a carrying capacity KK. Newton's law of cooling, dTdt=k(TTs) \frac{dT}{dt} = -k(T - T_s), says an object's temperature approaches its surroundings exponentially. RC circuits obey Rdqdt+qC=V R\frac{dq}{dt} + \frac{q}{C} = V, giving exponential charging and discharging governed by the time constant τ=RC\tau = RC. Mechanical vibrations follow md2xdt2+cdxdt+kx=F(t) m\frac{d^2x}{dt^2} + c\frac{dx}{dt} + kx = F(t), a second-order equation whose damping term cc decides whether the system oscillates. The remarkable lesson is that these four unrelated fields share the same handful of equation types.

Where It Came From

The story begins with Isaac Newton and Gottfried Leibniz in the late 1600s. Newton did not invent calculus for its own sake — he invented it because he needed to describe motion. To state his second law, F=ma F = ma, precisely, he needed a language for instantaneous rate of change, and acceleration is literally the second derivative of position. From the very start, then, calculus and differential equations were the native language of physics.

Through the 1700s a spectacular generation of mathematicians — the Bernoullis, Leonhard Euler, Joseph-Louis Lagrange, and Pierre-Simon Laplace — realized that almost every physical law, once stated as "this rate depends on that quantity," became a differential equation. Euler's work on vibrating strings and beams, and later Jean le Rond d'Alembert's wave equation, showed that the same mathematics governed sound, elasticity, and fluid flow. Newton himself, in Principia, effectively used the law of cooling in his study of how bodies lose heat.

The nineteenth century made the language universal. When physicists needed to describe heat (Fourier), electricity and magnetism (Maxwell), and later quantum systems (Schrödinger), each of them arrived at a differential equation. The logistic equation came from a different need: in 1838 the Belgian mathematician Pierre François Verhulst was dissatisfied with Thomas Malthus's prediction of unlimited exponential population growth, which clearly could not continue forever. Verhulst added a braking term to capture the finite resources of the real world. The deep reason differential equations became the core language of engineering and physics is simple: nature's laws are almost never about how much there is, but about how fast it changes — and that is exactly what a derivative expresses.

Logistic Population Growth

Pure exponential growth, dPdt=rP \frac{dP}{dt} = rP, assumes each individual reproduces at the same rate no matter how crowded things get. Real populations run into limited food, space, and other resources. Verhulst's fix multiplies the growth rate by a factor that shrinks as the population approaches a maximum sustainable size KK, called the carrying capacity:

dPdt=rP(1PK) \frac{dP}{dt} = rP\left(1 - \frac{P}{K}\right)

When PP is small, 1P/K1 1 - P/K \approx 1 and growth is nearly exponential. As PKP \to K, the bracket 0\to 0 and growth stalls. The solution (by separation of variables and partial fractions) is the S-shaped logistic curve:

P(t)=K1+Aert,A=KP0P0 P(t) = \frac{K}{1 + A e^{-rt}}, \qquad A = \frac{K - P_0}{P_0}

Worked example. A fish population in a lake has carrying capacity K=1000 K = 1000, intrinsic growth rate r=0.4 r = 0.4 per year, and starts at P0=100 P_0 = 100. Find the population after 5 years.

First, A=1000100100=9 A = \frac{1000 - 100}{100} = 9. Then

P(5)=10001+9e0.4×5=10001+9e2. P(5) = \frac{1000}{1 + 9 e^{-0.4 \times 5}} = \frac{1000}{1 + 9 e^{-2}}.

Since e20.1353 e^{-2} \approx 0.1353, the denominator is 1+9(0.1353)=1+1.218=2.218 1 + 9(0.1353) = 1 + 1.218 = 2.218, so

P(5)=10002.218451 fish. P(5) = \frac{1000}{2.218} \approx 451 \text{ fish}.

The population has more than quadrupled but is nowhere near KK yet — it is in the steepest part of the S-curve.

Newton's Law of Cooling

Newton observed that a hot object loses heat at a rate proportional to how much hotter it is than its surroundings. If T(t) T(t) is the object's temperature and Ts T_s the (constant) ambient temperature:

dTdt=k(TTs),k>0. \frac{dT}{dt} = -k(T - T_s), \qquad k > 0.

The minus sign encodes that a hotter object (T>Ts T > T_s) cools down. Separating variables gives the solution:

T(t)=Ts+(T0Ts)ekt. T(t) = T_s + (T_0 - T_s) e^{-kt}.

The temperature difference decays exponentially; the object asymptotically approaches room temperature.

Worked example. A cup of coffee at 90C 90^\circ\text{C} sits in a 20C 20^\circ\text{C} room. After 5 minutes it has cooled to 70C 70^\circ\text{C}. When will it reach 40C 40^\circ\text{C}?

Here T0=90 T_0 = 90, Ts=20 T_s = 20, so T0Ts=70 T_0 - T_s = 70. Use the 5-minute data to find kk:

70=20+70e5k    50=70e5k    e5k=57. 70 = 20 + 70 e^{-5k} \;\Rightarrow\; 50 = 70 e^{-5k} \;\Rightarrow\; e^{-5k} = \tfrac{5}{7}.

So 5k=ln(5/7)=0.3365 -5k = \ln(5/7) = -0.3365, giving k=0.0673 k = 0.0673 per minute. Now solve for the time tt when T=40 T = 40:

40=20+70ekt    ekt=2070=0.2857. 40 = 20 + 70 e^{-kt} \;\Rightarrow\; e^{-kt} = \tfrac{20}{70} = 0.2857.

Then kt=ln(0.2857)=1.2528 -kt = \ln(0.2857) = -1.2528, so t=1.25280.067318.6 t = \frac{1.2528}{0.0673} \approx 18.6 minutes. The coffee reaches 40C 40^\circ\text{C} about 18 to 19 minutes after it was poured.

RC Electrical Circuits

A resistor (RR) and capacitor (CC) in series with a voltage source is one of the most important circuits in electronics. Kirchhoff's voltage law says the source voltage equals the sum of the voltage drops across the resistor (iR iR) and the capacitor (q/C q/C). Because current is the rate of change of charge, i=dqdt i = \frac{dq}{dt}:

Rdqdt+qC=V. R\frac{dq}{dt} + \frac{q}{C} = V.

This is a first-order linear ODE. For a capacitor charging from q(0)=0 q(0) = 0 toward a battery voltage VV, the solution is:

q(t)=CV(1et/RC),τ=RC. q(t) = CV\left(1 - e^{-t/RC}\right), \qquad \tau = RC.

The quantity τ=RC\tau = RC is the time constant: after one τ\tau the capacitor reaches about 63% 63\% of full charge; after 5τ 5\tau it is over 99% 99\% charged, effectively "full." For discharging (no source, initial charge q0 q_0), the equation becomes Rdqdt+qC=0 R\frac{dq}{dt} + \frac{q}{C} = 0 with solution q(t)=q0et/RC q(t) = q_0 e^{-t/RC}.

Worked example. A circuit has R=2000 Ω R = 2000\ \Omega, C=100 μF=100×106 F C = 100\ \mu\text{F} = 100 \times 10^{-6}\ \text{F}, and a 12 V 12\ \text{V} battery. The time constant is

τ=RC=2000×100×106=0.2 s. \tau = RC = 2000 \times 100 \times 10^{-6} = 0.2 \text{ s}.

The final charge is CV=100×106×12=1.2×103 C=1.2 mC CV = 100 \times 10^{-6} \times 12 = 1.2 \times 10^{-3}\ \text{C} = 1.2\ \text{mC}. After t=0.2 s t = 0.2\ \text{s} (one time constant):

q=1.2×103(1e1)=1.2×103(10.3679)=7.585×104 C, q = 1.2 \times 10^{-3}\left(1 - e^{-1}\right) = 1.2 \times 10^{-3}(1 - 0.3679) = 7.585 \times 10^{-4}\ \text{C},

about 0.76 mC 0.76\ \text{mC}, which is indeed 63% 63\% of the full 1.2 mC 1.2\ \text{mC}.

Mechanical Vibrations

A mass on a spring is the archetype of oscillation. Newton's second law balances three forces: the spring's restoring force (kx -kx, Hooke's law), a damping (friction) force proportional to velocity (cdxdt -c\frac{dx}{dt}), and any external driving force F(t) F(t):

md2xdt2+cdxdt+kx=F(t). m\frac{d^2x}{dt^2} + c\frac{dx}{dt} + kx = F(t).

This second-order linear ODE governs an enormous range of systems: car suspensions, building responses to earthquakes, and even electrical LC circuits (which are mathematically identical). The behavior depends entirely on the damping, judged by the discriminant of the characteristic equation mλ2+cλ+k=0 m\lambda^2 + c\lambda + k = 0:

  • Undamped (c=0 c = 0): pure sinusoidal oscillation forever at natural frequency ω0=k/m \omega_0 = \sqrt{k/m}.
  • Underdamped (c2<4mk c^2 < 4mk): oscillation with decaying amplitude — a car door swinging shut with a couple of bounces.
  • Critically damped (c2=4mk c^2 = 4mk): returns to rest as fast as possible without oscillating — the design goal for a good shock absorber.
  • Overdamped (c2>4mk c^2 > 4mk): returns to rest slowly, no oscillation — like a screen door with a heavy closer.

Worked example (undamped). A 2 kg 2\ \text{kg} mass on a spring with stiffness k=8 N/m k = 8\ \text{N/m}, no damping, is pulled 0.1 m 0.1\ \text{m} and released from rest. The equation is 2x+8x=0 2x'' + 8x = 0, i.e. x+4x=0 x'' + 4x = 0. The natural frequency is ω0=4=2 rad/s \omega_0 = \sqrt{4} = 2\ \text{rad/s}. With x(0)=0.1 x(0) = 0.1 and x(0)=0 x'(0) = 0, the solution is

x(t)=0.1cos(2t). x(t) = 0.1 \cos(2t).

The mass oscillates with amplitude 0.1 m 0.1\ \text{m} and period T=2πω0=2π2=π3.14 s T = \frac{2\pi}{\omega_0} = \frac{2\pi}{2} = \pi \approx 3.14\ \text{s}, returning to its starting position every π\pi seconds.

Real-World Applications

  • Epidemiology. The logistic equation and its cousins (SIR models) predict how diseases spread and level off, guiding vaccination targets.
  • Pharmacology. Drug concentration in the bloodstream decays much like Newton's cooling, setting safe dosing intervals.
  • Forensic science. Investigators use Newton's law of cooling on a body's temperature to estimate time of death.
  • Electronics and signal processing. RC circuits form the timing elements in clocks, filters that remove noise, and the smoothing stages of power supplies.
  • Structural and automotive engineering. Vibration analysis prevents resonance disasters (like the Tacoma Narrows Bridge) and tunes suspensions toward critical damping for a smooth, safe ride.
  • Ecology and fisheries management. Carrying-capacity models set sustainable harvest quotas.

Common Mistakes

  1. Confusing exponential with logistic growth. Misconception: populations grow exponentially forever. Why wrong: resources are finite, so growth must slow. Correction: use the logistic model when there is a carrying capacity; exponential is only a good approximation while PK P \ll K.

  2. Getting the sign wrong in cooling. Misconception: writing dTdt=k(TTs) \frac{dT}{dt} = k(T - T_s) with a plus sign. Why wrong: that predicts a hot object gets hotter, which is nonsense. Correction: the rate must be negative when T>Ts T > T_s, so the equation is dTdt=k(TTs) \frac{dT}{dt} = -k(T - T_s) with k>0 k > 0.

  3. Mishandling units in RC circuits. Misconception: plugging in C=100 C = 100 when the capacitance is 100 μF 100\ \mu\text{F}. Why wrong: microfarads are 106 F 10^{-6}\ \text{F}; using raw numbers inflates τ\tau by a million. Correction: always convert to base SI units (farads, ohms, seconds) before computing τ=RC \tau = RC.

  4. Assuming vibrations always oscillate. Misconception: a mass-spring system always bounces. Why wrong: enough damping (c24mk c^2 \geq 4mk) kills all oscillation. Correction: check the discriminant before deciding whether the solution has a sin\sin/cos\cos part.

Comparison and Connections

Although these phenomena come from biology, thermodynamics, electronics, and mechanics, their equations rhyme. The first three are first-order; vibrations is second-order, which is why only it can oscillate on its own.

ApplicationGoverning equationOrderTypical behavior
Logistic growthdPdt=rP(1P/K) \frac{dP}{dt} = rP(1 - P/K)1st (nonlinear)S-curve to KK
Newton coolingdTdt=k(TTs) \frac{dT}{dt} = -k(T - T_s)1st (linear)Exponential decay to Ts T_s
RC circuitRdqdt+q/C=V R\frac{dq}{dt} + q/C = V1st (linear)Exponential charge/discharge
Vibrationsmx+cx+kx=F mx'' + cx' + kx = F2nd (linear)Oscillation, possibly damped

Notice that cooling and the discharging RC circuit are the same equation, y=ky y' = -ky, wearing different physical clothes. This is the great economy of differential equations: master a handful of equation types and you understand dozens of fields.

Practice Questions

Recall

State the logistic differential equation and identify what r r and K K represent.

Answer: dPdt=rP(1P/K) \frac{dP}{dt} = rP(1 - P/K); r r is the intrinsic (small-population) growth rate and K K is the carrying capacity, the maximum sustainable population.

Understanding

Explain why Newton's law of cooling has a negative sign but the temperature never goes below the surroundings.

Guidance: The factor (TTs) (T - T_s) shrinks toward zero as TTs T \to T_s. When T=Ts T = T_s the rate is zero, so cooling stops exactly at ambient — the object asymptotes to Ts T_s rather than overshooting.

Application

A capacitor with R=500 Ω R = 500\ \Omega and C=2 μF C = 2\ \mu\text{F} discharges from q0=4 μC q_0 = 4\ \mu\text{C}. Find the charge after 1 ms 1\ \text{ms}.

Answer: τ=RC=500×2×106=103 s \tau = RC = 500 \times 2\times 10^{-6} = 10^{-3}\ \text{s}. So q=4×106e1×103/103=4×106e11.47 μC q = 4\times 10^{-6} e^{-1\times 10^{-3}/10^{-3}} = 4\times 10^{-6} e^{-1} \approx 1.47\ \mu\text{C}.

Analysis

A 1 kg 1\ \text{kg} mass sits on a spring with k=16 N/m k = 16\ \text{N/m}. What damping coefficient c c makes the system critically damped, and why might an engineer want exactly this value?

Answer: Critical damping needs c2=4mk=4(1)(16)=64 c^2 = 4mk = 4(1)(16) = 64, so c=8 N⋅s/m c = 8\ \text{N·s/m}. Engineers target it because the system then returns to equilibrium in the shortest possible time with no overshoot — ideal for shock absorbers and instrument needles.

FAQ

Do I always have to solve the differential equation to use it? No. Often the equation itself answers the question — for example, setting dPdt=0 \frac{dP}{dt} = 0 finds equilibrium populations (P=0 P = 0 or P=K P = K) without any integration.

Why is RC RC called a "time constant" — it's a product of ohms and farads, not seconds? Work out the units: ohms ×\times farads == (volts/amp) ×\times (coulombs/volt) == coulombs/amp == seconds. The units genuinely come out to time.

How do I know whether to use exponential or logistic growth? If the population is far below any resource limit and you only need a short-term forecast, exponential is fine. If you care about long-term behavior or the population is a sizeable fraction of K K, use logistic.

What's the difference between the damping cases in real life? Underdamped bounces a few times (a plucked guitar string). Critically damped snaps to rest fastest without bouncing (a good car shock). Overdamped oozes back slowly (a hydraulic door closer set too stiff).

Why does the same equation describe cooling and a discharging capacitor? Both are systems where the rate of decrease is proportional to the current amount — y=ky y' = -ky. Nature reuses this pattern constantly, which is exactly why learning ODEs pays off across so many subjects.

Quick Revision

  • Logistic: dPdt=rP(1P/K) \frac{dP}{dt} = rP(1 - P/K), solution P=K1+Aert P = \frac{K}{1 + Ae^{-rt}}, A=(KP0)/P0 A = (K - P_0)/P_0.
  • Cooling: dTdt=k(TTs) \frac{dT}{dt} = -k(T - T_s), solution T=Ts+(T0Ts)ekt T = T_s + (T_0 - T_s)e^{-kt}.
  • RC charging: q=CV(1et/RC) q = CV(1 - e^{-t/RC}); discharging: q=q0et/RC q = q_0 e^{-t/RC}; time constant τ=RC \tau = RC.
  • Vibrations: mx+cx+kx=F(t) mx'' + cx' + kx = F(t); natural frequency ω0=k/m \omega_0 = \sqrt{k/m}; critical damping at c2=4mk c^2 = 4mk.
  • Cooling and RC discharge are both y=ky y' = -ky — pure exponential decay.

Prerequisites

Next Topics