Homogeneous and non-homogeneous second-order linear differential equations for physical harmonic oscillators.
What it is
A second-order ordinary linear differential equation has the general form:
a(x)dx2d2y+b(x)dxdy+c(x)y=g(x)
Dividing by the leading non-zero coefficient a(x) yields canonical standard form:
y′′+p(x)y′+q(x)y=f(x)
If external source term f(x)=0, it is homogeneous; if f(x)=0, it is inhomogeneous (or driven/forced).
For the canonical case of constant coefficients (y′′+ay′+by=0), seeking trial exponential solutions y(x)=erx leads to the characteristic polynomial:
r2+ar+b=0,with roots r1,2=2−a±a2−4b
Three physical regimes arise depending on the discriminant Δ=a2−4b:
Δ>0 (Distinct real roots r1=r2): Overdamped regime.
yh(x)=C1er1x+C2er2x
Δ=0 (Repeated real root r1=r2=−a/2): Critically damped regime.
yh(x)=(C1+C2x)er1x
For the driven equation, the linear superposition principle establishes that the general solution is:
y(x)=yh(x)+yp(x)
where yp(x) is any particular solution generated by driving forcing f(x).
Why it appears in physics
Second-order equations dominate classical physics because Newton's second law couples applied forces to acceleration (d2x/dt2).
Simple harmonic oscillator: mx¨+kx=0 (the universal parabolic minimum of any stable equilibrium potential well).
Series RLC resonator: Lq¨+Rq˙+C1q=V(t) (telecom frequency tuning).
Special functions (Bessel, Legendre, Hermite): Arise naturally upon separating coordinates in wave, diffusion, or Schrödinger equations across curvilinear geometries.
Visual or geometric intuition
The solution manifold of the homogeneous ODE forms a two-dimensional vector space. Any arbitrary solution is an exact linear combination of two linearly independent functions y1(x),y2(x), called a fundamental basis.
Linear independence is verified via the Wronskian determinant:
W(y1,y2)(x)=y1(x)y1′(x)y2(x)y2′(x)=y1y2′−y1′y2=0
By Abel's identity, the Wronskian evolves according to:
W(x)=W(x0)exp(−∫x0xp(ξ)dξ)
If p(x)>0 (dissipative damping), the phase-space area spanned by trajectories in (y,y′) contracts exponentially toward the origin attractor (0,0).
Minimal symbolic language
Linear differential operator:
L[y]=dx2d2y+p(x)dxdy+q(x)y
Abel's formula:
W′(x)+p(x)W(x)=0⟹W(x)=Ce−∫p(x)dx
Variation of parameters (universal particular solution formula):
yp(x)=−y1(x)∫W(y1,y2)(x)y2(x)f(x)dx+y2(x)∫W(y1,y2)(x)y1(x)f(x)dx
Quality factor and resonance:
Q=2γω0=bkm
At resonance with low damping (Q≫1), the steady-state amplitude is amplified by approximately Q: Ares≈QkF0.
What the result means
Transient vs. Steady-State: The homogeneous solution yh(t) represents the transient system response shaped by initial state conditions, fading to zero in dissipative media (a>0). The particular solution yp(t) captures the steady-state rhythm imposed by external forcing.
Response phase lag: The driven output exhibits a frequency-dependent phase delay relative to the driver: near zero phase lag at low frequencies, exactly π/2 at resonance, and anti-phase π at high frequencies.
Resonance: When driver frequency ω approaches natural frequency ω0, energy transfer maximizes. In undamped systems (b=0), amplitude grows without bound (tsin(ω0t)).
When not to use it
Large-amplitude oscillations: The small-angle approximation sinθ≈θ fails for large amplitudes, requiring nonlinear Duffing or elliptic formulations.
State-dependent coefficients: Equations such as Van der Pol's x¨−μ(1−x2)x˙+x=0 break linear superposition.
Vanishing Wronskians: Variation of parameters requires non-zero Wronskian denominators.
Operational summary
Normalize to y′′+py′+qy=f(x).
Solve the homogeneous equation via r2+pr+q=0.
Identify damping regime: overdamped, critically damped, or underdamped. Assemble yh(x)=C1y1+C2y2.
Determine yp(x):
Use undetermined coefficients for polynomial, exponential, and sinusoidal source functions (apply modification rule if driving frequency hits an eigenvalue).
Use variation of parameters for general source terms (tangents, secants, arbitrary functions).
Assemble full general solution y(x)=yh(x)+yp(x).
Apply initial conditions simultaneously on y(t) and y′(t) to isolate C1,C2.
Procedure: Solving Second-Order Linear ODEs
Before calculating
Normalize the ODE: Ensure the coefficient of y′′ is unity:
y′′+p(x)y′+q(x)y=f(x)
Inspect coefficients: Constant or variable? If variable of type x2y′′+αxy′+βy=0, use Cauchy-Euler substitution y=xr.
Classify the source term: Choose between undetermined coefficients and variation of parameters.
Step 1: Identify the mathematical object
Formulate the characteristic polynomial for the homogeneous equation:
r2+pr+q=0
Compute roots:
r1,2=2−p±p2−4q
Step 2: Choose the operation
2A. Homogeneous solution construction yh(x)
Case 1: Positive discriminant (p2−4q>0):
Two distinct real roots r1=r2:
yh(x)=C1er1x+C2er2x
Case 2: Zero discriminant (p2−4q=0):
Repeated real root r=−p/2:
yh(x)=(C1+C2x)erx
Carefully chain-rule angular frequencies and alternate signs when differentiating sinusoids.
Step 4: Calculate
Assemble complete solution:
y(t)=yh(t)+yp(t)
Differentiate analytically to obtain y′(t).
Apply initial conditions at t=0 to solve the algebraic system for C1,C2.
Step 5: Interpret the result
Check for resonance (s>0).
Confirm that damping causes yh(t)→0 as t→∞, leaving the steady-state solution yp(t).
Self-check checklist
Did I evaluate the discriminant of the characteristic polynomial accurately?
Did I invoke the resonance boost factor xs when the driver matches an eigenvalue?
Did I fit initial conditions to (yh+yp) rather than yh alone?
Is the Wronskian non-zero throughout the entire domain?
Are frequency and amplitude units dimensionally consistent?
Worked Examples: Second-Order Linear Equations
Step-by-step guided example
Problem
A driven damped mechanical oscillator comprises a mass m=1kg, a viscous dashpot with damping b=2N⋅s/m, and a spring of stiffness k=5N/m.
The system is excited by an external oscillatory driving force F(t)=10cos(t)N.
At t=0, the mass is at rest at the equilibrium origin: x(0)=0m, x˙(0)=0m/s.
Formulate the normalized equation of motion.
Determine the homogeneous solution xh(t) and identify the damping regime.
Find the steady-state particular solution xp(t) via undetermined coefficients.
Construct the complete particular solution satisfying initial conditions.
Detailed solution
Step 1: Formulation and normalization
From Newton's second law:
mx¨+bx˙+kx=F(t)⟹x¨+2x˙+5x=10cos(t)
Normalized with p=2, q=5, and f(t)=10cos(t).
Step 2: Homogeneous solution xh(t)
Characteristic polynomial:
r2+2r+5=0⟹r=2−2±4−20=−1±2i
Since roots are complex conjugates with α=−1 and β=2, the system is underdamped.
xh(t)=e−t(C1cos(2t)+C2sin(2t))
Step 3: Particular solution xp(t)
Driver frequency is ω=1rad/s (non-resonant with β=2, hence s=0).
Trial form:
xp(t)=Acos(t)+Bsin(t)
Differentiating:
x˙p(t)=−Asin(t)+Bcos(t)x¨p(t)=−Acos(t)−Bsin(t)
Substitute into x¨p+2x˙p+5xp=10cos(t):
(−A+2B+5A)cos(t)+(−B−2A+5B)sin(t)=10cos(t)(4A+2B)cos(t)+(−2A+4B)sin(t)=10cos(t)
Matching terms:
{4A+2B=10−2A+4B=0⟹A=2B⟹10B=10⟹B=1,A=2
Thus:
xp(t)=2cos(t)+sin(t)m
Step 4: Complete initial value solutionx(t)=e−t(C1cos(2t)+C2sin(2t))+2cos(t)+sin(t)
Differentiating:
x˙(t)=−e−t(C1cos(2t)+C2sin(2t))+e−t(−2C1sin(2t)+2C2cos(2t))−2sin(t)+cos(t)
Applying initial conditions at t=0:
x(0)=0⟹C1+2=0⟹C1=−2
x˙(0)=0⟹−C1+2C2+1=0⟹2+2C2+1=0⟹C2=−1.5
Final solution:
x(t)=e−t(−2cos(2t)−1.5sin(2t))+2cos(t)+sin(t)m
Inverse example
Problem
The unforced transient vibration of a unit-mass elastic beam follows:
y(t)=(3+4t)e−5t
Identify the damping regime and reconstruct the governing second-order linear homogeneous ODE.
Determine equivalent spring constant k and damping dashpot coefficient b.
Detailed solution
Step 1: Identifying characteristic roots
The presence of (C1+C2t)ert with r=−5 indicates a repeated real root of multiplicity 2:
r1=r2=−5
This signifies critical damping.
Step 2: Reconstructing the ODE(r+5)2=r2+10r+25=0⟹y¨+10y˙+25y=0
Step 3: Extracting physical parameters
Comparing with my¨+by˙+ky=0 for m=1kg:
b=10N⋅s/m,k=25N/m
Discriminant check:
b2−4mk=100−100=0
Confirms exact critical damping.
Common Errors: Second-Order Linear Equations
Error 1: Ignoring resonance in undetermined coefficients
Attempting yp=Acos(ωx)+Bsin(ωx) when ω matches the natural frequency of an undamped system.
Consequence: Substitution yields 0=cos(ωx) (incompatible system). You must multiply by x to account for secular resonance.
Error 2: Fitting initial conditions to the homogeneous solution alone
Evaluating C1,C2 from yh(0)=y0 and yh′(0)=v0 prior to computing and adding yp.
Correction: Initial conditions apply to the total combined motion:
y(0)=yh(0)+yp(0)=y0,y′(0)=yh′(0)+yp′(0)=v0
Error 3: Dropping the factor x in repeated characteristic roots
Writing yh=C1erx+C2erx for a double root r.
Consequence: Collapses the solution space into a single degree of freedom. The valid fundamental set is erx,xerx.
Error 4: Sign errors in damping exponents
Writing e+αt instead of e−αt when α=p/2>0.
Consequence: Converts a dissipative physical system into an explosive runaway process violating energy conservation.
Error 5: Omitting normalization in variation of parameters
In a(x)y′′+b(x)y′+c(x)y=g(x), using f(x)=g(x) directly in Wronskian formulas without dividing by a(x).
Correction: Variation of parameters strictly requires monic form y′′+py′+qy=f(x) with f(x)=g(x)/a(x).
Quick control rule
For damped systems (b>0): as t→∞, the transient component yh(t) must vanish identically, leaving exclusively the driven steady-state response yp(t).
Physical Applications: Second-Order Linear Equations
1. Structural earthquake engineering and Tuned Mass Dampers (TMD)
Skyscrapers such as Taipei 101 suspend massive second-order resonant pendulums near their crowns to mitigate wind and seismic excitations:
MX¨+(B+b)X˙+(K+k)X−bx˙−kx=Fwind(t)
Tuning the TMD natural frequency to the building's fundamental resonance diverts destructive kinetic energy into the hydraulic damping fluid.
2. Automotive suspension dynamics and quarter-car models
A quarter-car model evaluates chassis vertical displacement (m) riding over road roughness profile zr(t):
mz¨+bz˙+kz=bz˙r(t)+kzr(t)
Automotive engineers design a damping ratio ζ=2kmb≈0.7 (subcritical) to balance passenger comfort with road-tire traction.
3. Telecommunications: RF resonant filters and RLC tuners
Signal selection in wireless communications relies on series RLC circuit resonance:
Lq¨+Rq˙+C1q=V0cos(ωt)
Peak circulating current occurs at resonance ω0=1/LC. The bandwidth Δω=R/L=ω0/Q establishes filter selectivity for channel separation.
4. Atomic Force Microscopy (AFM)
In dynamic tapping mode, a microscopic silicon cantilever vibrates near resonance:
m∗z¨+Qm∗ω0z˙+k∗z=F0cos(ωt)+Ftip-sample(z)
Nanoscale shifts in vibrational amplitude and phase caused by Van der Waals forces map single-molecule surface topography.
5. Architectural acoustics and Helmholtz resonators
A Helmholtz resonator (e.g. bass traps in acoustic studios) acts as a second-order acoustic mass-spring system:
mneckξ¨+Rradξ˙+Kcavityξ=pext(t)S
Air in the neck provides oscillating inertia while cavity volume acts as a pneumatic spring, absorbing targeted acoustic frequencies.
Interdisciplinary connection
Second-order linear ODEs form the backbone of closed-loop control stability (Routh-Hurwitz criterion), aeroelastic flutter analysis in aeronautics, and circadian biological limit-cycle pacemakers.
Guided Practice: Second-Order Linear Equations
Exercise 1: Pure undamped resonance
An oscillator of mass m=2kg and stiffness k=32N/m is driven by an exact resonant force: F(t)=8cos(4t)N.
The system starts from rest: x(0)=0m, x˙(0)=0m/s.
Compute natural frequency ω0 and state the homogeneous solution.
Apply the modification rule to obtain the secular particular solution xp(t).
State full trajectory x(t) and describe the envelope growth.
Resonant driving frequency ω=ω0=4 (s=1):
xp(t)=t(Acos(4t)+Bsin(4t))
Substituting into x¨p+16xp=4cos(4t):
−8Asin(4t)+8Bcos(4t)=4cos(4t)⟹A=0,B=0.5xp(t)=0.5tsin(4t)m
With x(0)=0,x˙(0)=0⟹C1=0,C2=0.
x(t)=0.5tsin(4t)m
Linearly growing envelope leads to mechanical fatigue rupture.
Exercise 2: Underdamped RLC circuit under DC step voltage
A series RLC circuit with L=0.1H, R=20Ω, and C=100μF=10−4F is energized by a DC battery V0=12V at t=0. Uncharged initial state: q(0)=0,i(0)=0.
Formulate the charge ODE.
Determine attenuation α and damped pseudofrequency ωd.
Compute the peak charge during the initial overshoot.