Linear Second-Order ODEs

⚡ Key Takeaways

One-line statement: A linear second-order ODE has the form a(x)y′′+b(x)y′+c(x)y=f(x)a(x)y'' + b(x)y' + c(x)y = f(x), where the unknown function and its derivatives appear only to the first power and are not multiplied together. Key result in words: The general solution is the sum of the general solution of the homogeneous equation (a two-dimensional vector space spanned by two linearly independent solutions) plus any single particular solution of the full equation. Where it applies: Mechanical vibrations, electrical circuits, quantum mechanics, heat conduction, wave propagation, beam deflection, and virtually every linear physical system with inertia. Who/when: Foundations laid by Euler, d'Alembert, and Lagrange (18th century); existence theory by Cauchy, Lipschitz, and Picard (19th century).

💡 The Core Insight

Linearity converts a differential equation into linear algebra. Because the operator L[y]=ay′′+by′+cyL[y] = a y'' + b y' + c y satisfies L[αy1+βy2]=αL[y1]+βL[y2]L[\alpha y_1 + \beta y_2] = \alpha L[y_1] + \beta L[y_2], the homogeneous solution set is the kernel of a linear map and is therefore a vector space. For a second-order equation that kernel is exactly two-dimensional. Everything else — superposition, the role of the Wronskian, the general solution = homogeneous + particular structure — is a direct consequence of this single algebraic fact.

Formal Statement

DefinitionLinear Second-Order ODE

A linear second-order ODE on an interval II is any equation expressible as

1
a(x) y′′+b(x) y′+c(x) y=f(x),\quad a(x)\,y'' + b(x)\,y' + c(x)\,y = f(x),

Derivation hint: This is the most general form in which y,y′,y′′y, y', y'' appear to the first power with no products among them; coefficients may depend on xx but not on yy. where:

  • y=y(x)y = y(x) is the unknown function,
  • a(x),b(x),c(x)a(x), b(x), c(x) are the coefficient functions (with a(x)≠0a(x) \neq 0 on II),
  • f(x)f(x) is the forcing term (or source/inhomogeneity).

The equation is homogeneous if f(x)≡0f(x) \equiv 0, and inhomogeneous (nonhomogeneous) otherwise. Dividing by a(x)a(x) gives the standard form

2
y′′+p(x) y′+q(x) y=g(x),p=ba,  q=ca,  g=fa.\quad y'' + p(x)\,y' + q(x)\,y = g(x), \qquad p = \tfrac{b}{a},\; q = \tfrac{c}{a},\; g = \tfrac{f}{a}.

Derivation hint: Valid wherever a(x)≠0a(x)\neq 0; points where aa vanishes are singular points requiring separate analysis. If the coefficients p,qp, q are constants, the equation has constant coefficients; otherwise it has variable coefficients.

DefinitionDifferential Operator and Linearity

Define the linear differential operator

3
L≡d2dx2+p(x)ddx+q(x),L[y]=y′′+py′+qy.\quad L \equiv \frac{d^2}{dx^2} + p(x)\frac{d}{dx} + q(x), \qquad L[y] = y'' + p y' + q y.

Derivation hint: LL acts on the vector space C2(I)C^2(I); linearity follows because differentiation is linear and multiplication by a fixed function is linear. Then L[αy1+βy2]=αL[y1]+βL[y2]L[\alpha y_1 + \beta y_2] = \alpha L[y_1] + \beta L[y_2] for all scalars α,β\alpha,\beta and twice-differentiable y1,y2y_1, y_2.

TheoremExistence and Uniqueness (Cauchy–Picard)

If p(x)p(x), q(x)q(x), and g(x)g(x) are continuous on an open interval II containing x0x_0, then for any prescribed values y0,y0′y_0, y_0' the initial value problem

4
y′′+py′+qy=g,y(x0)=y0,  y′(x0)=y0′\quad y'' + p y' + q y = g, \qquad y(x_0) = y_0,\; y'(x_0) = y_0'

Derivation hint: Reduce to a first-order system u′=A(x)u+b(x)\mathbf{u}' = A(x)\mathbf{u} + \mathbf{b}(x) with u=(y,y′)⊤\mathbf{u}=(y,y')^\top; apply the Picard–Lindelöf theorem to the Lipschitz right-hand side. has a unique solution existing on the entire interval II.

TheoremStructure of the Solution Set

The homogeneous equation L[y]=0L[y] = 0 has a solution set that is a two-dimensional vector space. If y1,y2y_1, y_2 are two linearly independent solutions (a fundamental set), then every homogeneous solution is

5
yh=c1y1(x)+c2y2(x),c1,c2∈R.\quad y_h = c_1 y_1(x) + c_2 y_2(x), \qquad c_1, c_2 \in \mathbb{R}.

Derivation hint: The map y↦(y(x0),y′(x0))y \mapsto (y(x_0), y'(x_0)) from the kernel of LL to R2\mathbb{R}^2 is a linear isomorphism by existence-uniqueness; hence the kernel has dimension 2. The general solution of the inhomogeneous equation is

6
y=yh+yp=c1y1+c2y2+yp,\quad y = y_h + y_p = c_1 y_1 + c_2 y_2 + y_p,

Derivation hint: If L[yp]=gL[y_p]=g and L[Y]=gL[Y]=g, then L[Y−yp]=0L[Y-y_p]=0, so Y−ypY-y_p lies in the homogeneous space; rearrange. where ypy_p is any particular solution of L[y]=gL[y] = g.

DefinitionWronskian and Linear Independence

The Wronskian of two solutions is

7
W(y1,y2)(x)=∣y1y2y1′y2′∣=y1y2′−y2y1′.\quad W(y_1, y_2)(x) = \begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix} = y_1 y_2' - y_2 y_1'.

Derivation hint: The determinant tests whether the constants c1,c2c_1,c_2 matching given (y,y′)(y, y') data are uniquely solvable; nonzero determinant ⇒ invertible coefficient matrix. Two solutions of the same equation are linearly independent on II if and only if W≠0W \neq 0 at some (equivalently every) point of II. The Wronskian obeys Abel's identity:

8
W(x)=W(x0)exp⁡ ⁣(−∫x0xp(t) dt).\quad W(x) = W(x_0)\exp\!\left(-\int_{x_0}^{x} p(t)\,dt\right).

Derivation hint: Differentiate WW, use the ODE to replace yi′′y_i'' by −pyi′−qyi-p y_i' - q y_i; cancellation yields W′=−p WW' = -p\,W, a separable first-order ODE. A profound consequence: the Wronskian is either identically zero or never zero — it cannot vanish at isolated points for solutions of the same linear equation.

Why It Holds / Derivation

ProofConstant-Coefficient Homogeneous Solution via the Characteristic Equation

Consider y′′+py′+qy=0y'' + p y' + q y = 0 with constant p,qp, q.

Step 1. Seek exponential solutions y=erxy = e^{rx}, motivated by the fact that erxe^{rx} reproduces itself under differentiation. Then y′=rerxy' = r e^{rx}, y′′=r2erxy'' = r^2 e^{rx}.

Step 2. Substitute:

9
(r2+pr+q) erx=0.\quad (r^2 + p r + q)\,e^{rx} = 0.

Derivation hint: Factor out the never-zero erxe^{rx}; the bracket must vanish.

Step 3. Since erx≠0e^{rx} \neq 0, we require the characteristic (auxiliary) equation

10
r2+pr+q=0,r1,2=−p±p2−4q2.\quad r^2 + p r + q = 0, \qquad r_{1,2} = \frac{-p \pm \sqrt{p^2 - 4q}}{2}.

Derivation hint: Quadratic formula; the discriminant Δ=p2−4q\Delta = p^2 - 4q governs the case structure.

Step 4 — Case analysis.

  • Distinct real roots (Δ>0\Delta > 0): y=c1er1x+c2er2xy = c_1 e^{r_1 x} + c_2 e^{r_2 x}. Independence: W=(r2−r1)e(r1+r2)x≠0W = (r_2 - r_1)e^{(r_1+r_2)x} \neq 0.
  • Repeated root (Δ=0\Delta = 0, r1=r2=rr_1 = r_2 = r): one solution erxe^{rx}; a second independent solution is xerxx e^{rx}, found by reduction of order:
11
y2=x erx,L[xerx]=(2r+p)erx=0 since r=−p/2.\quad y_2 = x\,e^{rx}, \qquad L[x e^{rx}] = (2r + p)e^{rx} = 0 \text{ since } r = -p/2.

Derivation hint: Try y2=v(x)erxy_2 = v(x)e^{rx}; substitution forces v′′=0v'' = 0, so v=xv = x (taking the nontrivial part).

  • Complex conjugate roots (Δ<0\Delta < 0, r=α±iβr = \alpha \pm i\beta): using Euler's formula eiβx=cos⁡βx+isin⁡βxe^{i\beta x} = \cos\beta x + i\sin\beta x, the real fundamental set is
12
y=eαx(c1cos⁡βx+c2sin⁡βx).\quad y = e^{\alpha x}\left(c_1 \cos\beta x + c_2 \sin\beta x\right).

Derivation hint: Take real and imaginary parts of the complex solution e(α+iβ)xe^{(\alpha+i\beta)x}; both solve the real ODE because LL has real coefficients. This exhausts all cases and produces a two-dimensional solution space, confirming the Structure Theorem. ■\blacksquare

∎
ProofVariation of Parameters — Finding a Particular Solution

Given a fundamental set {y1,y2}\{y_1, y_2\} of L[y]=0L[y]=0, seek yp=u1(x)y1+u2(x)y2y_p = u_1(x)y_1 + u_2(x)y_2.

Step 1. Impose the convenient constraint u1′y1+u2′y2=0u_1' y_1 + u_2' y_2 = 0 to keep the algebra clean. Then yp′=u1y1′+u2y2′y_p' = u_1 y_1' + u_2 y_2'.

Step 2. Differentiate again and substitute into L[yp]=gL[y_p] = g. The homogeneous terms cancel, leaving

13
u1′y1′+u2′y2′=g.\quad u_1' y_1' + u_2' y_2' = g.

Derivation hint: L[y1]=L[y2]=0L[y_1]=L[y_2]=0 eliminates all undifferentiated uiu_i terms; only the derivatives of uiu_i survive.

Step 3. Solve the linear system (constraint + [13]) by Cramer's rule using the Wronskian:

14
u1′=−y2 gW,u2′=y1 gW.\quad u_1' = -\frac{y_2\, g}{W}, \qquad u_2' = \frac{y_1\, g}{W}.

Derivation hint: The 2×22\times2 coefficient matrix is exactly the Wronskian matrix; invert it.

Step 4. Integrate to obtain the particular solution:

15
yp(x)=−y1 ⁣∫ ⁣y2 gW dx+y2 ⁣∫ ⁣y1 gW dx.\quad y_p(x) = -y_1\!\int\!\frac{y_2\, g}{W}\,dx + y_2\!\int\!\frac{y_1\, g}{W}\,dx.

Derivation hint: Antidifferentiate [14]; constants of integration only add homogeneous solutions, already absorbed into yhy_h. This always works whenever {y1,y2}\{y_1,y_2\} is known, regardless of the form of gg. ■\blacksquare

∎
LE
Leonhard Euler
1707–1783

Euler was the architect of the exponential-substitution method for linear ODEs with constant coefficients. In his Institutiones calculi integralis (1768–1770) he systematized the use of y=erxy = e^{rx} and explicitly handled repeated and complex roots, employing the formula eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta that bears his name to convert complex exponentials into real trigonometric solutions. He also introduced the technique now called the integrating factor and studied the equidimensional (Euler–Cauchy) equation x2y′′+axy′+by=0x^2 y'' + a x y' + b y = 0. His correspondence with d'Alembert and Daniel Bernoulli on the vibrating string drove much of the theory forward, and his notation for differentials and functions remains standard.

Building Intuition

🧠 Intuition

Think of a linear second-order ODE as describing a mass on a spring with possible friction and an external push. The term y′′y'' is acceleration (inertia), py′p y' is velocity-proportional damping, qyq y is a restoring force, and gg is the external driving force. The characteristic roots are the system's "DNA": their real parts tell you whether disturbances grow or decay; their imaginary parts tell you whether the system oscillates.

  • Two negative real roots → sluggish, overdamped return to rest (think a door closer with stiff hydraulics).
  • A repeated negative root → critically damped, the fastest non-oscillating return.
  • Complex roots with negative real part → underdamped ringing that fades.
  • Pure imaginary roots → undamped perpetual oscillation.

The two-dimensional solution space corresponds to the two pieces of information a Newtonian system needs to predict the future: initial position and initial velocity. Once you fix those, the trajectory is locked in forever — that is uniqueness made physical.

Figure
Damping regimes of y′′+2ζω0y′+ω02y=0y'' + 2\zeta\omega_0 y' + \omega_0^2 y = 0 for fixed initial displacement
t y y₀ underdamped (complex roots) critical (repeated root) overdamped (real roots)

Worked Examples

ExampleUnderdamped Mechanical Oscillator

Given: A mass–spring–damper with m=2 kgm = 2\ \text{kg}, damping c=4 N ⋅ s/mc = 4\ \text{N}\,\cdot\,\text{s/m}, stiffness k=50 N/mk = 50\ \text{N/m}, released from rest at displacement x(0)=0.1 mx(0) = 0.1\ \text{m}, x′(0)=0x'(0) = 0.

Equation: mx′′+cx′+kx=0⇒2x′′+4x′+50x=0⇒x′′+2x′+25x=0m x'' + c x' + k x = 0 \Rightarrow 2x'' + 4x' + 50x = 0 \Rightarrow x'' + 2x' + 25x = 0.

Step 1 — Characteristic equation: r2+2r+25=0r^2 + 2r + 25 = 0. Discriminant Δ=4−100=−96<0\Delta = 4 - 100 = -96 < 0.

Step 2 — Roots: r=−2±−962=−1±24 i=−1±26 ir = \dfrac{-2 \pm \sqrt{-96}}{2} = -1 \pm \sqrt{24}\,i = -1 \pm 2\sqrt{6}\,i. So α=−1 s−1\alpha = -1\ \text{s}^{-1}, β=26≈4.899 rad/s\beta = 2\sqrt{6} \approx 4.899\ \text{rad/s}.

Step 3 — General solution: x(t)=e−t(c1cos⁡βt+c2sin⁡βt)x(t) = e^{-t}\big(c_1 \cos\beta t + c_2 \sin\beta t\big).

Step 4 — Apply initial conditions: x(0)=c1=0.1x(0) = c_1 = 0.1. x′(t)=e−t[(−c1+βc2)cos⁡βt+(−c2−βc1)sin⁡βt]x'(t) = e^{-t}\big[(-c_1 + \beta c_2)\cos\beta t + (-c_2 - \beta c_1)\sin\beta t\big]; setting x′(0)=0x'(0) = 0: −c1+βc2=0⇒c2=c1/β=0.1/4.899=0.0204-c_1 + \beta c_2 = 0 \Rightarrow c_2 = c_1/\beta = 0.1/4.899 = 0.0204.

Answer:

x(t)=e−t(0.100cos⁡(4.899 t)+0.0204sin⁡(4.899 t)) m\boxed{x(t) = e^{-t}\big(0.100\cos(4.899\,t) + 0.0204\sin(4.899\,t)\big)\ \text{m}}

The amplitude decays as e−te^{-t} (time constant 1 s1\ \text{s}) while ringing at ≈0.78 Hz\approx 0.78\ \text{Hz}.

ExampleForced RLC Circuit — Variation of Parameters

Given: Solve y′′+4y=8sin⁡(t)y'' + 4y = 8\sin(t) with y(0)=0y(0) = 0, y′(0)=0y'(0) = 0 (a circuit driven off-resonance; natural frequency 22, drive frequency 11).

Step 1 — Homogeneous solution: r2+4=0⇒r=±2ir^2 + 4 = 0 \Rightarrow r = \pm 2i, so yh=c1cos⁡2t+c2sin⁡2ty_h = c_1\cos 2t + c_2 \sin 2t. Here y1=cos⁡2t, y2=sin⁡2ty_1 = \cos 2t,\ y_2 = \sin 2t, W=y1y2′−y2y1′=2cos⁡22t+2sin⁡22t=2W = y_1 y_2' - y_2 y_1' = 2\cos^2 2t + 2\sin^2 2t = 2.

Step 2 — Particular solution by method of undetermined coefficients (faster here): try yp=Asin⁡t+Bcos⁡ty_p = A\sin t + B\cos t. Then yp′′=−Asin⁡t−Bcos⁡ty_p'' = -A\sin t - B\cos t, so yp′′+4yp=3Asin⁡t+3Bcos⁡t=8sin⁡ty_p'' + 4y_p = 3A\sin t + 3B\cos t = 8\sin t. Match: 3A=8⇒A=8/33A = 8 \Rightarrow A = 8/3, B=0B = 0.

Step 3 — General solution: y=c1cos⁡2t+c2sin⁡2t+83sin⁡ty = c_1\cos 2t + c_2\sin 2t + \tfrac{8}{3}\sin t.

Step 4 — Initial conditions: y(0)=c1=0y(0) = c_1 = 0. y′(t)=−2c1sin⁡2t+2c2cos⁡2t+83cos⁡ty'(t) = -2c_1\sin 2t + 2c_2\cos 2t + \tfrac{8}{3}\cos t; y′(0)=2c2+83=0⇒c2=−43y'(0) = 2c_2 + \tfrac{8}{3} = 0 \Rightarrow c_2 = -\tfrac{4}{3}.

Answer:

y(t)=−43sin⁡2t+83sin⁡t\boxed{y(t) = -\tfrac{4}{3}\sin 2t + \tfrac{8}{3}\sin t}

The motion is a superposition of the natural mode (frequency 2) and the steady driven response (frequency 1) — a clean beating pattern with no growth because the drive is off resonance.

Common Misconceptions

⚠️ Common mistake

The sum of two solutions of an inhomogeneous equation is generally NOT a solution. Superposition holds only for the homogeneous equation. If L[y1]=gL[y_1] = g and L[y2]=gL[y_2] = g, then L[y1+y2]=2g≠gL[y_1 + y_2] = 2g \neq g. Superposition of forcing terms does work in this sense: if L[ya]=gaL[y_a] = g_a and L[yb]=gbL[y_b] = g_b, then L[ya+yb]=ga+gbL[y_a + y_b] = g_a + g_b. Keep these two statements distinct.

"Linear" does not mean "solvable in closed form." Linearity guarantees structural theorems (two-dimensional solution space, superposition), but variable-coefficient equations like Bessel's or Legendre's require special functions or series — there is no elementary formula in general.

Counterexample

Two solutions that vanish together but are still independent? No — and here is why the Wronskian matters. Consider the functions f(x)=x2f(x) = x^2 and g(x)=x∣x∣g(x) = x|x| on (−1,1)(-1,1). Their Wronskian is identically zero, yet they are linearly independent as abstract functions. This does not contradict the theory because they are not both solutions of the same linear second-order ODE with continuous coefficients on that interval — no such equation exists for which x∣x∣x|x| is a C2C^2 solution at the origin. The Wronskian's "all-or-nothing" property (Abel's identity) holds only for genuine solutions of one linear equation; it is precisely what distinguishes solution functions from arbitrary functions.

Connections

connection

Linear second-order ODEs sit at a crossroads of analysis and algebra. They are the simplest nontrivial case of Linear Differential Equations of arbitrary order, and reduce to a planar Systems of First-Order ODEs via u=(y,y′)⊤\mathbf{u} = (y, y')^\top, linking them to matrix exponentials and eigenvalue theory. The constant-coefficient case is the natural home of the Laplace Transform, which algebraizes the equation into a rational function of ss. Variable-coefficient cases with singular points open into the Frobenius Method and the theory of Special Functions (Bessel, Legendre, Hermite). The eigenvalue problem L[y]=λyL[y] = \lambda y with boundary conditions is the gateway to Sturm–Liouville Theory and the spectral decomposition underlying Fourier Series.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1690s — The Bernoulli family and Leibniz solve early special second-order equations arising from the catenary and elastica problems.
- 1739 — Euler develops the exponential-substitution method for linear constant-coefficient equations and treats repeated and complex roots systematically.
- 1743 — Euler publishes the characteristic-equation technique; the term "characteristic" enters the lexicon. d'Alembert's work on the vibrating string (1747) supplies key physical motivation.
- 1760s–1770s — Lagrange invents variation of parameters and adjoint methods, generalizing particular-solution construction to arbitrary forcing.
- 1827 — Niels Henrik Abel proves Abel's identity for the Wronskian, clarifying the all-or-nothing nature of linear independence among solutions.
- 1836–1837 — Charles Sturm and Joseph Liouville develop the spectral theory of (py′)′+(q+λw)y=0(p y')' + (q + \lambda w)y = 0, founding Sturm–Liouville theory and oscillation theorems.
- 1838 — Friedrich Bessel's functions and the Bessel equation become central to variable-coefficient problems in physics and astronomy.
- 1868 — The Frobenius series method (refined later by Frobenius, 1873) provides solutions near regular singular points.
- 1890s — Picard and Lindelöf establish the modern existence-uniqueness theory via successive approximations, placing the entire subject on rigorous footing.

Subtleties & Limits

open-problem

While the linear theory is essentially complete, several deep issues persist at its boundaries. Closed-form solvability is governed by differential Galois theory (Picard–Vessiot), which determines exactly when a linear ODE has solutions expressible in elementary or Liouvillian terms — but deciding this algorithmically for high-order or parametric families remains intricate. Singular points where a(x)=0a(x) = 0 (irregular singularities especially) generate solutions with essential singularities and Stokes phenomena, whose asymptotic behavior connects to resurgence theory and is still actively studied. The transition from linear to weakly nonlinear systems (e.g., the Duffing or van der Pol equations) shows that linear superposition is a fragile idealization; perturbation series can diverge, and chaos appears. Finally, the spectral theory of singular Sturm–Liouville operators on unbounded domains — central to quantum scattering — raises subtle questions about continuous spectra, self-adjoint extensions, and limit-point/limit-circle classification that blend ODE theory with functional analysis.

See Also

Linear Differential Equations · First-Order ODEs · Sturm–Liouville Theory · Laplace Transform · Frobenius Method · Wronskian · Special Functions · Mechanical Vibrations · Differential Galois Theory