
Ordinary Differential Equations (17): Physics and Engineering Applications
See ODEs in action across physics and engineering. Walk through the nonlinear pendulum, RLC circuit and resonance, Kepler orbits and conservation laws, multi-DOF structural vibration with tuned mass dampers, and fluid flow from Poiseuille to vortex shedding -- all with full Python simulations.
Differential equations are not a pure mathematical game — they are the language for understanding the physical world. From celestial motion to circuit response, from a swinging pendulum to vortex shedding behind a bridge cable, every dynamical system “speaks” ODE.
This chapter is a deliberate tour through five canonical applications. Each one will pay back the entire ODE toolkit we built in chapters 1-16: phase planes, eigenvalues, Laplace transforms, modal analysis, conservation laws, numerical integration, control. None of the examples is a “toy” — they are all genuine working physics, written tightly so that the structure remains visible.

What You Will Learn#
- The nonlinear pendulum: small-angle linearisation vs the full equation, period vs amplitude, the separatrix
- RLC circuits: the three damping regimes, resonance, the Q-factor, and tuning
- Kepler orbits: gravity, eccentricity, conservation of energy and angular momentum, Bertrand’s theorem
- Multi-DOF structural vibration: modal analysis, resonance, tuned mass dampers (the Tacoma lesson)
- Fluid mechanics: Poiseuille flow, Reynolds number, vortex shedding, Stokes settling
Prerequisites#
- Chapters 1-3 — first- and second-order linear theory
- Chapter 6 -7 — linear systems and phase portraits
- Chapter 8 — nonlinear stability and energy methods
- Chapter 11 — numerical methods (used throughout)
The Nonlinear Pendulum — the Hello World of nonlinear ODEs#
$$\ddot\theta + \frac{g}{L}\sin\theta = 0.$$For small $\theta$ we replace $\sin\theta \approx \theta$ and recover simple harmonic motion with period $T_0 = 2\pi\sqrt{L/g}$ — independent of amplitude. That isochronism is the small-angle miracle Galileo exploited.
$$T(\theta_0) = \frac{4}{\omega_0}\,K\!\bigl(\sin(\theta_0/2)\bigr), \qquad \omega_0 = \sqrt{g/L}.$$
| |
Why this matters. The pendulum is the simplest non-trivial nonlinear conservative system, and its phase portrait already contains every concept of Chapters 7-8: stable/unstable equilibria, separatrices, period-energy relations, integrability. Every other oscillator — molecular vibrations, Josephson junctions, plasma waves — borrows this skeleton.
RLC Circuits — the same equation, in copper#

Compare with the mass-spring-damper $m\ddot x + c\dot x + kx = F(t)$ . They are the same equation — so all our intuition about damping ratio and natural frequency carries over directly.
$$H(s) = \frac{1/L}{s^2 + (R/L)\,s + 1/(LC)},$$with the same three step-response regimes from Chapter 16 : underdamped, critical, overdamped.

The peak amplitude of an undamped oscillator driven at resonance grows linearly in time — a phenomenon the Tacoma Narrows Bridge made historic in 1940 (more on that in section 4).
Planetary Orbits — where Newton meets Kepler#
$$\ddot{\mathbf r} \;=\; -\frac{GM\,\mathbf r}{|\mathbf r|^3}.$$The conserved quantities are total energy $E = \tfrac12|\mathbf v|^2 - GM/|\mathbf r|$ and angular momentum $\mathbf L = \mathbf r \times \mathbf v$ . Together they prove Kepler’s three laws — without solving the ODE in closed form.
| |

Bertrand’s theorem is one of those quietly amazing facts: out of all spherically symmetric potentials, exactly two ($\propto 1/r$ and $\propto r^2$ ) produce closed orbits for every bound trajectory. That is why a stable Solar System with closed planetary loops exists. Mathematics first, astronomy second.
Structural Vibration — buildings, bridges, tuned mass dampers#
$$ M\ddot{\mathbf x} + C\dot{\mathbf x} + K\mathbf x = \mathbf F(t), \qquad M = \begin{pmatrix} m_1 & 0 \\ 0 & m_2 \end{pmatrix}, \; K = \begin{pmatrix} k_1+k_2 & -k_2 \\ -k_2 & k_2 \end{pmatrix}. $$Modal analysis. The eigenproblem $K\,\boldsymbol\phi = \omega^2 M\,\boldsymbol\phi$ yields natural frequencies $\omega_i$ and mode shapes $\boldsymbol\phi_i$ . Decomposing $\mathbf x = \sum_i q_i(t)\,\boldsymbol\phi_i$ decouples the equations into $n$ independent SDOF oscillators — the multi-degree-of-freedom problem becomes $n$ scalar problems.

The pattern is universal: whether the system is a violin string, a wing, a turbine blade or the Millennium Bridge, the steps are form $M, C, K$ -> solve eigenproblem -> decouple via modes -> add damping where needed.
Fluid Mechanics — from steady pipes to vortex shedding#
Steady pipe flow (Poiseuille)#
$$\frac{1}{r}\frac{d}{dr}\!\Bigl(r\,\frac{du}{dr}\Bigr) = -\frac{1}{\mu}\frac{dp}{dz},$$with boundary conditions $u(R) = 0$ (no-slip) and $u(0)$ finite. The solution is the parabolic profile $u(r) = u_{\max}(1 - r^2/R^2)$ , and total volume flow $Q = \pi R^4 \Delta p / (8\mu L)$ — the Hagen-Poiseuille law. The fourth-power dependence on radius explains why arteries dilate to drop blood pressure: doubling radius eightfold-improves flow at the same pressure gradient.
Reynolds number and the laminar-turbulent transition#
The dimensionless number $\mathrm{Re} = \rho U L / \mu$ measures the ratio of inertial to viscous effects. Below $\mathrm{Re}\sim 2300$ flow is laminar and the linear $Q \propto \Delta p$ holds; above it the same pressure drop produces less flow because turbulent eddies dissipate energy.
Vortex shedding (the Strouhal number)#
Behind a bluff body in steady flow, alternating vortices shed at frequency $f$ such that the Strouhal number $\mathrm{St} = f D / U$ is roughly constant ($\approx 0.21$ ) over a wide range of Re. When that frequency matches a structural mode, you get the Tacoma resonance again.
Settling sphere (Stokes drag)#
$$m\dot v = (\rho_p - \rho_f) V g - 6\pi\mu R\,v,$$a first-order linear ODE with terminal velocity $v_t = (\rho_p - \rho_f) V g / (6\pi\mu R)$ and time constant $\tau = m/(6\pi\mu R)$ .

The Common Thread#
Every domain in this chapter speaks the same five-step grammar:
- Write Newton’s / Kirchhoff’s / Navier-Stokes law for an infinitesimal element.
- Reduce to ODEs by symmetry, dimensional analysis, or projection onto modes.
- Identify the equilibrium and linearise; find natural frequencies and damping ratios.
- Add forcing, look for resonance, and decide whether to add damping or de-tune the source.
- Integrate numerically when the nonlinearity bites (large amplitude, turbulence, multi-body).
Master this loop and a vast portion of physics and engineering is unified.
| Domain | Governing ODE | Key dimensionless number |
|---|---|---|
| Mechanics | $\ddot\theta + (g/L)\sin\theta = 0$ | — |
| Electrical | $L\ddot q + R\dot q + q/C = V(t)$ | $Q = (1/R)\sqrt{L/C}$ |
| Orbital | $\ddot{\mathbf r} = -GM\mathbf r/\lvert \mathbf r\rvert^3$ | eccentricity $e$ |
| Structural | $M\ddot x + C\dot x + Kx = F$ | modal damping $\zeta_i$ |
| Fluid (pipe) | $\nabla \cdot \boldsymbol\sigma = 0$ -> radial ODE | Re |
| Fluid (wake) | — (empirical) | St $\approx 0.21$ |
Worked Example with Units: Designing a Tuned RLC Bandpass#
A symbolic equation is mathematics; an equation with units attached is engineering. Design a series RLC bandpass with centre frequency $f_0 = 1\,\text{kHz}$ and bandwidth $\Delta f = 100\,\text{Hz}$ .
$$ \omega_0 = 2\pi f_0 = 6283\ \text{rad/s},\quad Q = \frac{f_0}{\Delta f} = 10. $$For $L\ddot q + R\dot q + q/C = V(t)$ , $\omega_0 = 1/\sqrt{LC}$ and $Q = \omega_0 L/R$ .
$$ C = \frac{1}{\omega_0^2 L} = \frac{1}{(6283)^2 \cdot 0.01} \approx 2.53\,\mu\text{F}. $$ $$ R = \frac{\omega_0 L}{Q} = \frac{6283 \cdot 0.01}{10} = 6.28\,\Omega. $$Step 3: check units. $\omega_0^2 L C = (\text{s}^{-2})(\text{H})(\text{F}) = (\text{s}^{-2})(\text{V}\cdot\text{s/A})(\text{A}\cdot\text{s/V}) = 1$ . Dimensionless, correct.
Step 4: physical reading. $Q = 10$ means after the source disconnects, oscillation amplitude takes about $Q/\pi \approx 3.2$ periods to fall by $1/e$ — about 3.2 ms of ringing. In math language, damping ratio $\zeta = 1/(2Q) = 0.05$ , deep underdamped.
Step 5: energy view. At resonance, peak inductor energy $\tfrac12 L I_{\max}^2$ swaps periodically with peak capacitor energy $\tfrac12 C V_{\max}^2$ , with $\pi/Q$ of it lost to $R$ each cycle. Higher $Q$ means narrower, sharper peak.
Five steps and four numbers turn an abstract second-order ODE into something I can put on a breadboard.
Limit Cases: Small Parameters Make Equations Degenerate#
The nonlinear pendulum $\ddot\theta + (g/\ell)\sin\theta = 0$ degenerates to the harmonic oscillator as $|\theta| \to 0$ , with amplitude-independent period $2\pi\sqrt{\ell/g}$ . Standard small-angle story.
What is more useful in the ML era is the other direction: parameters going to 0 or infinity often make the equation worse for numerical solvers, not better.
Case 1: high Reynolds number. As viscosity $\nu \to 0$ in Navier-Stokes, the equation formally reduces to Euler, but in practice almost all smooth solutions destabilise into turbulence. Numerically, small $\nu$ blows up the grid Péclet number; you must switch to upwind schemes or shock capturing.
Case 2: stiff spring limit. Spring constant $k \to \infty$
effectively constrains the mass to a manifold. Direct integration demands $h \sim 1/\sqrt k$
— unaffordable. The physical fix: rewrite as a constrained ODE/DAE with Lagrange multipliers. scipy.integrate.solve_ivp with LSODA or BDF survives moderate stiffness; beyond that you need Hairer-Wanner-style implicit symplectic methods.
Case 3: low Mach number. Compressible flow at $M \to 0$ has acoustic and convective timescales separated by $1/M$ . Explicit CFL is dominated by sound waves and wastes 99% of the work. Low-Mach preconditioning is a core trick of industrial CFD.
Lesson: a parameter going to zero rarely simplifies the numerics. This is the contradiction Neural Operators in PDE-ML chapter 2 are trying to dodge.
Data-Driven Modelling: SINDy and Koopman#
Section 6 made the case that one ODE skeleton describes five phenomena. In real engineering, when a new system shows up the equation may not be derivable. You go from data to equation.
$$ \dot x = \Theta(x)\,\xi,\quad \min \|\dot x - \Theta(x)\xi\|_2^2 + \lambda \|\xi\|_1. $$Most components of $\xi$
collapse to zero; the survivors give you the equation form. With pysindy, 1000 samples of Lorenz data recover the three RHS terms with their coefficients $\sigma, \rho, \beta$
— provided the library includes the correct basis.
Koopman operator methods. Lift a nonlinear map $x_{t+1} = F(x_t)$ to a linear operator $\mathcal{K}\,g = g \circ F$ on observable functions. Combined with DMD (Dynamic Mode Decomposition), you read off dominant oscillation modes and decay constants. Schmid’s DMD with Control has been applied to PIV data of Kármán vortex streets.
When to use which:
- Clean data, interpretable variables, want an equation → SINDy.
- Noisy data, want forecasting/control, equation form irrelevant → Koopman/DMD.
- Both → SINDy on a Koopman-invariant subspace (Otto & Rowley, 2019).
Summary#
Differential equations are the lingua franca of physics. You spent 16 chapters building the language; this chapter showed how a handful of canonical models — pendulum, RLC, Kepler, MDOF building, pipe flow — carry you from undergraduate physics to professional engineering practice. None of them required new mathematics. They required us to recognise the structure and reach for the right tool.
The next chapter, the finale, looks beyond this classical menu: Neural ODEs, stochastic and fractional equations, and the questions that connect ODE theory to modern machine learning.
References#
- Kreyszig, Advanced Engineering Mathematics, Wiley (2011).
- Taylor, Classical Mechanics, University Science Books (2005).
- Goldstein, Poole & Safko, Classical Mechanics, Pearson (2002).
- Den Hartog, Mechanical Vibrations, Dover (1985).
- Acheson, Elementary Fluid Dynamics, Oxford (1990).
Previous Chapter: Chapter 16: Control Theory
Next Chapter: Chapter 18: Frontiers and Series Summary
This is Part 17 of the 18-part series on Ordinary Differential Equations.
ODE Foundations 18 parts
- 01 Ordinary Differential Equations (1): Origins and Intuition
- 02 Ordinary Differential Equations (2): First-Order Methods
- 03 Ordinary Differential Equations (3): Higher-Order Linear Theory
- 04 Ordinary Differential Equations (4): The Laplace Transform
- 05 Ordinary Differential Equations (5): Power Series and Special Functions
- 06 Ordinary Differential Equations (6): Linear Systems and the Matrix Exponential
- 07 Ordinary Differential Equations (7): Stability Theory
- 08 Ordinary Differential Equations (8): Nonlinear Systems and Phase Portraits
- 09 Ordinary Differential Equations (9): Chaos Theory and the Lorenz System
- 10 Ordinary Differential Equations (10): Bifurcation Theory
- 11 Ordinary Differential Equations (11): Numerical Methods
- 12 Ordinary Differential Equations (12): Boundary Value Problems
- 13 Ordinary Differential Equations (13): Introduction to Partial Differential Equations
- 14 Ordinary Differential Equations (14): Epidemic Models and Epidemiology
- 15 Ordinary Differential Equations (15): Population Dynamics
- 16 Ordinary Differential Equations (16): Fundamentals of Control Theory
- 17 Ordinary Differential Equations (17): Physics and Engineering Applications you are here
- 18 Ordinary Differential Equations (18): Frontiers and Series Finale