ODEs in Practice
Real-World Applications of Differential Equations
Differential equations model change in physical, biological, economic, and engineering systems. Explore interactive demonstrations in the section below.
Electrical Circuits
Circuits with resistors, capacitors, and inductors follow first and second-order ODEs describing how voltage and current change over time.
RC Circuit: \(RC\frac{dV}{dt} + V = V_0\)
RL Circuit: \(L\frac{dI}{dt} + RI = V(t)\)
RLC Circuit: \(L\frac{d^2q}{dt^2} + R\frac{dq}{dt} + \frac{q}{C} = E(t)\)
Mechanics
Newton's laws lead to ODEs for motion. Drag forces, springs, and pendulums all exhibit characteristic ODE behavior.
Free Fall with Drag: \(m\frac{dv}{dt} = mg - kv^2\)
Damped Spring: \(m\frac{d^2x}{dt^2} + c\frac{dx}{dt} + kx = 0\)
Small-angle Pendulum: \(\frac{d^2\theta}{dt^2} + \frac{g}{L}\theta = 0\)
Heat Transfer
Temperature changes follow ODEs when heat flows between objects. Newton's law of cooling is a classic first-order linear ODE.
Newton's Cooling: \(\frac{dT}{dt} = -k(T - T_{env})\)
Radiative Cooling: \(\frac{dT}{dt} = -\sigma(T^4 - T_0^4)\)
Heating with Source: \(\frac{dT}{dt} = -k(T - T_{env}) + Q(t)\)
Population Dynamics
Population growth models range from simple exponential to logistic equations with carrying capacity.
Exponential Growth: \(\frac{dP}{dt} = kP\)
Logistic Growth: \(\frac{dP}{dt} = rP(1 - \frac{P}{K})\)
Harvesting: \(\frac{dP}{dt} = rP(1 - \frac{P}{K}) - H\)
Medicine & Pharmacology
Drug concentration in the bloodstream follows first-order kinetics. Epidemiological models use systems of ODEs to track disease spread.
Drug Elimination: \(\frac{dC}{dt} = -kC\)
Drug with Dosing: \(\frac{dC}{dt} = -kC + D(t)\)
Tumor Growth: \(\frac{dV}{dt} = aV\ln(\frac{K}{V})\)
Nuclear & Chemistry
Radioactive decay and chemical reactions follow rate laws that are naturally expressed as first-order or higher-order ODEs.
Radioactive Decay: \(\frac{dN}{dt} = -\lambda N\)
Decay Chain: \(\frac{dN_1}{dt} = -\lambda_1 N_1\), \(\frac{dN_2}{dt} = \lambda_1 N_1 - \lambda_2 N_2\)
Second-order Reaction: \(\frac{d[A]}{dt} = -k[A]^2\)
Economics & Finance
Compound interest, loan amortization, and price dynamics are modeled with first-order linear and separable equations.
Compound Interest: \(\frac{dA}{dt} = rA\)
Loan with Payments: \(\frac{dP}{dt} = rP - m\)
Price Adjustment: \(\frac{dp}{dt} = k(D(p) - S(p))\)
Fluid Mixing
Concentration changes in tanks with inflow and outflow follow first-order linear ODEs, classic examples in engineering courses.
Single Tank: \(\frac{dS}{dt} = r_{in}c_{in} - \frac{r_{out}S}{V}\)
Variable Volume: \(\frac{d(VS)}{dt} = r_{in}c_{in} - r_{out}\frac{S}{V}\)
Atmospheric Pressure: \(\frac{dP}{dh} = -\frac{Mg}{RT}P\)
Interactive Demonstrations
Click on any demonstration to explore differential equations in action.
First-Order ODE Applications
Population Growth
InteractiveLogistic equation: \(\frac{dP}{dt} = rP(1 - P/K)\)
Radioactive Decay
InteractiveExponential decay: \(\frac{dN}{dt} = -\lambda N\)
RC Circuits
InteractiveCircuit equation: \(RC\frac{dV}{dt} + V = V_0\)
Second-Order & Variable Coefficient ODEs
RLC Circuits
InteractiveCircuit equation: \(L\frac{d^2q}{dt^2} + R\frac{dq}{dt} + \frac{q}{C} = V_0\)
Bessel Functions
InteractiveBessel's equation: \(x^2y'' + xy' + (x^2 - n^2)y = 0\)
Airy Functions
InteractiveAiry's equation: \(y'' - xy = 0\)
ODEs from Partial Differential Equations
Heat Equation
InteractiveSeparation yields: \(T' = -\lambda kT\) and \(X'' + \lambda X = 0\)
Wave Equation
InteractiveSeparation yields: \(T'' + c^2\lambda T = 0\) and \(X'' + \lambda X = 0\)
Why ODE Models? Physics-based vs. Data-driven Approaches
Key Insight: While data-driven models (polynomial fits, neural networks) can match training data, ODE models capture underlying physics and generalize better.
- Extrapolation: ODE models predict beyond training data range; curve fits often fail outside observed data
- Physical meaning: ODE parameters (drag coefficient, decay constant) have interpretable units and physical significance
- Data efficiency: ODE models work with sparse data; neural networks need thousands of samples
- Conservation laws: ODE models naturally respect energy/mass conservation; data models may violate physics
Planetary Orbits
InteractiveCompare: Polynomial fit vs. \(\frac{d^2r}{dt^2} = -\frac{GM}{r^2}\)
Population Growth
InteractiveCompare: Polynomial fit vs. logistic ODE \(\frac{dP}{dt} = rP(1-P/K)\)
An Introductory Discussion
Understanding the fundamental concepts of ordinary differential equations.
a The kth Order ODE
An ordinary differential equation (ODE) involves an unknown function y(x) and its derivatives with respect to a single independent variable x.
The order of an ODE is the highest derivative that appears. A kth order ODE contains derivatives up to y(k). For example, y'' + 3y' + 2y = 0 is second-order (k=2).
b Solutions of ODEs: Explicit, Implicit, and Formal
y expressed directly as a function of x:
Relationship between y and x (real solutions exist):
Defines circles of radius |C|
Relation yielding complex-valued explicit solutions:
No real solutions for C ≠ 0
c Do Solutions Always Exist?
Not all ODEs have solutions, and when they do, solutions may not be unique!
If f(x,y) is continuous near (x₀, y₀), then y' = f(x,y) has at least one solution passing through that point.
If ∂f/∂y is also continuous (Lipschitz condition), the solution is unique.
Since |y'| ≥ 0, |y| ≥ 0, and 1 > 0, the sum is always ≥ 1, never zero.
Has y = 0 and y = (x−c)³ for any c ≥ 0.
d Family of Solutions
The general solution of a kth order ODE typically contains k arbitrary constants, representing a family of solution curves.
One-parameter family (C)
Two-parameter family (C₁, C₂)
A particular solution is obtained by specifying values for all constants, often determined by initial or boundary conditions.
e Initial Value Problems vs Boundary Value Problems
Initial Value Problem (IVP)
All conditions specified at a single point x = x₀:
Example: Position and velocity of a projectile at launch time.
Boundary Value Problem (BVP)
Conditions specified at different points:
Example: Temperature at both ends of a rod.
First Order Differential Equations
Higher Order Linear Differential Equations
Solve second and higher-order linear ODEs with various techniques.
Step 1: Select Equation Type
Form: \(a_n y^{(n)} + a_{n-1} y^{(n-1)} + \cdots + a_1 y' + a_0 y = 0\)
Reference: Solution Forms by Root Type
Real Distinct Roots
Roots: \(r_1 \neq r_2\)
Complex Conjugate Roots
Roots: \(\alpha \pm \beta i\)
Repeated Roots
Root: \(r\) with multiplicity \(k\)
Select Application
Orthogonal Trajectories
Find curves that intersect a given family at right angles (90°).
Examples: Isotherms & heat flow, equipotentials & field lines
Oblique Trajectories
Find curves that intersect a given family at a fixed angle θ.