Linear Second-Order ODEs

Almost every equation of motion in physics, once you look past the notation, is a linear second-order ordinary differential equation. It has the shape a2(x)y′′+a1(x)y′+a0(x)y=g(x)a_2(x)y''+a_1(x)y'+a_0(x)y=g(x), and dividing through by the leading coefficient (away from points where it vanishes) puts it in standard form y′′+p(x)y′+q(x)y=f(x)y''+p(x)y'+q(x)y=f(x). The word that unlocks everything is linear: the operator L[y]=y′′+p y′+q yL[y]=y''+p\,y'+q\,y obeys L[αy1+βy2]=αL[y1]+βL[y2]L[\alpha y_1+\beta y_2]=\alpha L[y_1]+\beta L[y_2], so solutions can be added and scaled. That single algebraic fact is why normal modes, Fourier analysis, and Green's functions exist at all. Linearity has a precise geometric payoff. Feeding the first-order system u=(y,y′)T\mathbf{u}=(y,y')^{\mathsf T} into the existence-uniqueness theorem shows that on any interval where p,qp,q are continuous, a solution is fixed by the two numbers y(x0)y(x_0) and y′(x0)y'(x_0). The homogeneous solutions therefore fill a vector space of dimension exactly two, and a pair {y1,y2}\{y_1,y_2\} is a basis precisely when their Wronskian W=y1y2′−y2y1′W=y_1y_2'-y_2y_1' is nonzero — a condition Abel's identity promotes from a point to the whole interval. Add any single particular solution ypy_p and the inhomogeneous solutions become the affine set yp+ker⁡Ly_p+\ker L: solve the homogeneous problem once, and you have spanned everything. This is not abstraction for its own sake. Newton's law near equilibrium is the damped driven oscillator; separating the wave or Laplace equation spins off the Bessel, Legendre, and Hermite equations; and the stationary Schrödinger equation −ℏ22mψ′′+Vψ=Eψ-\tfrac{\hbar^2}{2m}\psi''+V\psi=E\psi is exactly this class. The structure of one equation is the scaffolding of theoretical physics.

Key takeaways
  • A linear second-order ODE reads y′′+p(x)y′+q(x)y=f(x)y''+p(x)y'+q(x)y=f(x); it is homogeneous when f≡0f\equiv0 and inhomogeneous otherwise, and it must be in standard form (leading coefficient 1) before you read off p,qp,q.
  • The homogeneous solutions form a two-dimensional vector space: every solution is y=c1y1+c2y2y=c_1y_1+c_2y_2 with y1,y2y_1,y_2 linearly independent, certified by a nonzero Wronskian W=y1y2′−y2y1′W=y_1y_2'-y_2y_1'.
  • Abel's identity W(x)=W(x0) e−∫p dtW(x)=W(x_0)\,e^{-\int p\,\mathrm{d}t} forces WW to be either everywhere zero or nowhere zero — independence is an all-or-nothing property of the interval.
  • The inhomogeneous general solution is affine, y=yc+ypy=y_c+y_p: a complementary (transient) part plus one particular (steady-state) part. Constant coefficients yield to the characteristic equation; variable coefficients yield to reduction of order, variation of parameters, power series, and Frobenius.
  • These equations govern the harmonic oscillator, wave propagation, and quantum bound states, and their eigenvalue versions launch Sturm–Liouville theory.
  • Key idea: The map L[y]=y′′+p(x)y′+q(x)yL[y]=y''+p(x)y'+q(x)y is a linear operator, so the homogeneous solutions form a 2D vector space and inhomogeneous solutions form an affine space yp+ker⁡Ly_p+\ker L. Solve once, span everything.

Where this lives today

The structure theory of linear second-order ODEs is the daily working grammar of computational and experimental physics. Every shooting-method solver for the time-independent Schrödinger equation −ℏ22mψ′′+V(x)ψ=Eψ-\tfrac{\hbar^2}{2m}\psi''+V(x)\psi=E\psi leans on the two-dimensional solution space to match wavefunctions across a potential step and on the Wronskian to detect dependence when hunting bound-state energies. In gravitational-wave astronomy, the ringdown of a perturbed black hole obeys the Regge–Wheeler and Teukolsky equations — linear second-order ODEs whose quasinormal-mode spectrum LIGO and Virgo now measure directly, the effective potential setting damped-oscillation frequencies exactly as in the first figure. Control engineers still tune servo loops and seismometers to critical damping, the repeated-root case, for the fastest settling without overshoot. And the special functions born from separating the wave and Laplace equations — Bessel functions in an optical fibre, Legendre in multipole radiation, Hermite in the quantum oscillator — are variable-coefficient members of this family, handled by the power-series and Frobenius methods this structure theory makes rigorous. An open frontier is the theory of ODEs with irregular singular points, where resurgence and exact WKB methods are reshaping how physicists resum divergent series.

The physical picture

Treat L=d2dx2+pddx+qL=\dfrac{\mathrm{d}^2}{\mathrm{d}x^2}+p\dfrac{\mathrm{d}}{\mathrm{d}x}+q as a linear machine acting on functions. Asking for L[y]=0L[y]=0 is asking for its kernel; asking for L[y]=fL[y]=f is asking to invert it on the forcing ff. The kernel is two-dimensional because pinning down yy and y′y' at a single point fixes the entire solution — two numbers, two dimensions — and physically those two numbers are the position and velocity a Newtonian particle needs to start. Every second-order equation is F=maF=ma in disguise, and the freedom to choose where and how fast you start is the two-parameter family of solutions. The clearest laboratory for this is the constant-coefficient oscillator x¨+bx˙+cx=0\ddot{x}+b\dot{x}+cx=0, where the sign of the discriminant Δ=b2−4c\Delta=b^2-4c sorts every possible behaviour into three regimes.

Figure
The discriminant Δ = b² − 4c sorts every constant-coefficient solution of ẍ + b ẋ + c x = 0 with ω₀ = 1: overdamped ζ = 2 (Δ positive, real roots −0.27 and −3.73) crawls home, critically damped ζ = 1 (Δ = 0, double root −1, the x e^−x mode) returns fastest without overshoot, and underdamped ζ = 0.15 (Δ negative, roots −0.15 ± 0.99 i) rings down inside an e^−0.15t envelope
One equation, three fates — decided by the sign of Δ = b² − 4c 1.0 0.5 0 4 8 12 t x(t) overdamped ζ = 2 (Δ 0) critical ζ = 1 (Δ = 0) underdamped ζ = 0.15

The split y=yc+ypy=y_c+y_p is the physics of a driven system made visible. The complementary part ycy_c is the transient — the free oscillation carrying the initial data, doomed to decay whenever there is damping — and the particular part ypy_p is the steady state, the response locked in step with the driving force. Linearity is exactly the licence to add them. Watch a lightly damped oscillator driven periodically: the transient blooms and dies while the steady state marches on, and after a few damping times only ypy_p remains — which is why an instrument settles into a pure tone.

Figure
Superposition in action for the driven damped oscillator ẍ + 0.3 ẋ + x = cos(0.5 t): the general solution y = y_c + y_p adds a transient y_c (the decaying e^−0.15t homogeneous mode, fixed by the initial data y = y′ = 0) to the steady state y_p (amplitude 1.31, locked to the drive) — after a few damping times only y_p survives
The punchline: y = y_c + y_p — transient dies, steady state survives +1.31 0 −1.31 10 20 t x(t) transient y_c (decays) steady y_p · total y = y_c + y_p (black)

Finally, the Wronskian is the quantitative meter for "genuinely different solutions". Reading each solution as a phase-space vector (yi,yi′)(y_i,y_i'), the determinant W=y1y2′−y2y1′W=y_1y_2'-y_2y_1' is the signed area of the parallelogram they span. Two solutions are independent exactly when that area is nonzero, and Abel's identity guarantees the area can never sneak through zero at an interior point without being zero everywhere.

The core equations

Everything begins by clearing the leading coefficient so the highest derivative stands alone. The result is the standard form, the shape in which the coefficient functions pp and qq are read off and the entire structure theory applies.

y′′+p(x) y′+q(x) y=f(x)(1)y''+p(x)\,y'+q(x)\,y=f(x) \qquad (1)

where: y(x)y(x) — the unknown function to be determined; p(x),q(x)p(x),q(x) — coefficient functions, assumed continuous on the interval of interest; f(x)f(x) — the forcing or inhomogeneous term, set to zero for the homogeneous equation. Reading it: the equation is homogeneous when f≡0f\equiv0 and inhomogeneous otherwise, and you must divide out any leading coefficient a2(x)a_2(x) before trusting p=a1/a2p=a_1/a_2 and q=a0/a2q=a_0/a_2. The reason this class is tractable is a single algebraic property of the operator L=d2dx2+pddx+qL=\tfrac{\mathrm{d}^2}{\mathrm{d}x^2}+p\tfrac{\mathrm{d}}{\mathrm{d}x}+q. Because differentiation is linear, so is LL, and superposition follows immediately.

L[αy1+βy2]=α L[y1]+β L[y2](2)L[\alpha y_1+\beta y_2]=\alpha\,L[y_1]+\beta\,L[y_2] \qquad (2)

where: LL — the differential operator; α,β\alpha,\beta — arbitrary constants; y1,y2y_1,y_2 — any two functions in the domain. Reading it: a sum of homogeneous solutions is again a homogeneous solution, which is precisely what makes the homogeneous solution set a vector space rather than a mere collection of curves. That vector space is two-dimensional, so a full solution of the inhomogeneous problem carries two arbitrary constants plus one fixed particular piece.

y=c1 y1(x)+c2 y2(x)+yp(x)(3)y=c_1\,y_1(x)+c_2\,y_2(x)+y_p(x) \qquad (3)

where: y1,y2y_1,y_2 — linearly independent homogeneous solutions (a fundamental set); ypy_p — any single particular solution of the inhomogeneous equation; c1,c2c_1,c_2 — constants fixed by initial or boundary conditions. Reading it: the complementary combination c1y1+c2y2c_1y_1+c_2y_2 sweeps out the whole kernel, and adding ypy_p shifts that plane without changing its dimension. To test whether a candidate pair actually is a fundamental set, form the Wronskian determinant.

W(x)=∣y1y2y1′y2′∣=y1 y2′−y2 y1′(4)W(x)=\begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix}=y_1\,y_2'-y_2\,y_1' \qquad (4)

where: W(x)W(x) — the Wronskian; a value W≠0W\ne0 certifies linear independence and hence that {y1,y2}\{y_1,y_2\} spans the solution space. Reading it: WW is the phase-space area spanned by the two solution vectors (y1,y1′)(y_1,y_1') and (y2,y2′)(y_2,y_2'). The Wronskian is not just a pointwise test — it satisfies its own first-order equation driven only by pp, whose solution is Abel's identity.

W(x)=W(x0) exp⁡ ⁣(−∫x0xp(t) dt)(5)W(x)=W(x_0)\,\exp\!\left(-\int_{x_0}^{x} p(t)\,\mathrm{d}t\right) \qquad (5)

where: x0x_0 — a reference point in the interval; p(t)p(t) — the first-derivative coefficient in standard form. Reading it: because the exponential never vanishes, WW is either identically zero or nowhere zero — independence is a property of the whole interval, decided at any one point. If one nontrivial solution y1y_1 is already known, a second independent one can be manufactured directly by reduction of order.

y2(x)=y1(x)∫e−∫p dxy1(x)2 dx(6)y_2(x)=y_1(x)\int \frac{e^{-\int p\,\mathrm{d}x}}{y_1(x)^2}\,\mathrm{d}x \qquad (6)

where: y1y_1 — one known nontrivial solution; y2y_2 — the second, independent solution built from it. Reading it: the numerator e−∫pe^{-\int p} is the Wronskian up to a constant, so this formula is Abel's identity solved for the missing partner. Once a fundamental set is in hand, a particular solution for any forcing ff comes from variation of parameters — no guessing required.

yp=−y1 ⁣∫ ⁣y2fW dx+y2 ⁣∫ ⁣y1fW dx(7)y_p=-y_1\!\int\!\frac{y_2 f}{W}\,\mathrm{d}x+y_2\!\int\!\frac{y_1 f}{W}\,\mathrm{d}x \qquad (7)

where: WW — the Wronskian of y1,y2y_1,y_2; ff — the forcing term in standard form. Reading it: this is Cramer's rule applied to the promoted constants, and it works for arbitrary continuous ff, unlike undetermined coefficients. When p,qp,q are constant the whole apparatus collapses to algebra: substitute y=erxy=e^{rx} and the equation becomes a polynomial in rr.

r2+br+c=0,r1,2=−b±b2−4c2(8)r^2+br+c=0,\qquad r_{1,2}=\frac{-b\pm\sqrt{b^2-4c}}{2} \qquad (8)

where: b,cb,c — the constant coefficients of y′′+by′+cy=0y''+by'+cy=0; rr — the exponent in the trial solution y=erxy=e^{rx}. Reading it: the discriminant b2−4cb^2-4c decides between two real exponentials, one repeated exponential, or a decaying sinusoid — the three regimes of the first figure.

Derivation AWhy the homogeneous solution space is exactly two-dimensional

The goal is to prove, not merely assert, that the kernel of LL has dimension two — the fact from which the whole "two arbitrary constants" bookkeeping descends. The strategy is to convert the scalar second-order equation into an equivalent first-order system in the vector u=(y,y′)T\mathbf{u}=(y,y')^{\mathsf T}, invoke the existence-uniqueness theorem to establish a bijection between solutions and their initial data (y(x0),y′(x0))∈R2(y(x_0),y'(x_0))\in\mathbb{R}^2, and then read the dimension straight off that bijection. Because the correspondence is linear and one-to-one, the solution space inherits the dimension of R2\mathbb{R}^2 exactly.

Step 1. Rewrite y′′=−p y′−q yy''=-p\,y'-q\,y as the system u′=(01−q−p)u\mathbf{u}'=\begin{pmatrix}0&1\\-q&-p\end{pmatrix}\mathbf{u}, whose coefficient matrix is continuous wherever p,qp,q are. Why: the existence-uniqueness theorem is stated for first-order systems, so we must recast the problem in that language before we can apply it.

Step 2. By existence-uniqueness, each initial vector u(x0)=(a,b)∈R2\mathbf{u}(x_0)=(a,b)\in\mathbb{R}^2 produces one and only one solution on the interval of continuity. Why: this is the linear map "initial data ↦ solution" being both defined everywhere and injective — no two solutions can share initial data.

Step 3. Choose the two special data sets y1 ⁣:(a,b)=(1,0)y_1\!:(a,b)=(1,0) and y2 ⁣:(a,b)=(0,1)y_2\!:(a,b)=(0,1); their Wronskian at x0x_0 is W(x0)=1⋅1−0⋅0=1≠0W(x_0)=1\cdot1-0\cdot0=1\ne0, so they are independent. Why: picking the standard basis of R2\mathbb{R}^2 as initial data manufactures a candidate basis of solutions whose independence we can check on the spot.

Step 4. Any solution with data (a,b)(a,b) must equal a y1+b y2a\,y_1+b\,y_2, because both sides solve the same equation with identical initial data and uniqueness forbids a second such solution. Why: this shows {y1,y2}\{y_1,y_2\} spans as well as being independent, so it is a basis and dim⁡ker⁡L=2\dim\ker L=2 exactly.

Go deeper · Derivation B · 1 minVariation of parameters for the particular solution
Derivation BVariation of parameters for the particular solution

The goal is to construct a particular solution ypy_p of L[y]=fL[y]=f from a known fundamental set {y1,y2}\{y_1,y_2\} for arbitrary continuous forcing, without any lucky guess about the form of ff. The idea, due to Lagrange, is to promote the constants in c1y1+c2y2c_1y_1+c_2y_2 to unknown functions u1(x),u2(x)u_1(x),u_2(x) and then spend the one extra degree of freedom this introduces on a convenient algebraic constraint. That constraint kills the awkward second-derivative terms and leaves a simple 2×22\times2 linear system for u1′,u2′u_1',u_2' whose determinant is precisely the Wronskian, guaranteeing solvability.

Step 1. Write yp=u1y1+u2y2y_p=u_1y_1+u_2y_2 and differentiate: yp′=u1′y1+u2′y2+u1y1′+u2y2′y_p'=u_1'y_1+u_2'y_2+u_1y_1'+u_2y_2'; impose the constraint u1′y1+u2′y2=0u_1'y_1+u_2'y_2=0. Why: with two unknown functions we may demand one condition for free, and this one prevents second derivatives of the uiu_i from ever appearing.

Step 2. Differentiate again under the constraint to get yp′′=u1′y1′+u2′y2′+u1y1′′+u2y2′′y_p''=u_1'y_1'+u_2'y_2'+u_1y_1''+u_2y_2''. Why: the constraint from Step 1 removed the ui′′u_i'' terms, so yp′′y_p'' stays first-order in the unknowns.

Step 3. Substitute into LL: since L[y1]=L[y2]=0L[y_1]=L[y_2]=0, everything collapses to L[yp]=u1′y1′+u2′y2′=fL[y_p]=u_1'y_1'+u_2'y_2'=f. Why: the known solutions annihilate under LL, leaving only the derivative terms to carry the forcing.

Step 4. Solve the system (y1y2y1′y2′)(u1′u2′)=(0f)\begin{pmatrix}y_1&y_2\\y_1'&y_2'\end{pmatrix}\begin{pmatrix}u_1'\\u_2'\end{pmatrix}=\begin{pmatrix}0\\f\end{pmatrix} by Cramer's rule: u1′=−y2f/W, u2′=y1f/Wu_1'=-y_2f/W,\ u_2'=y_1f/W; integrate and reassemble. Why: the coefficient determinant is the Wronskian W≠0W\ne0, so the system is always solvable, and integrating gives equation (7). *The coefficient determinant of the system in Step 4 is the Wronskian W≠0W\ne0, which guarantees the system is always solvable.*

Go deeper · Derivation C · 1 minRepeated root and the origin of the extra factor of x
Derivation CRepeated root and the origin of the extra factor of x

The goal is to explain where the mysterious polynomial factor in y2=xerxy_2=xe^{rx} comes from when the characteristic equation has a double root — the critically damped case. When b2−4c=0b^2-4c=0 the algebra of equation (8) delivers only the single root r=−b/2r=-b/2 and hence only one exponential solution y1=erxy_1=e^{rx}, which cannot by itself span a two-dimensional space. Rather than guess the partner, we generate it honestly with reduction of order, and watch the integral collapse to ∫1 dx=x\int1\,\mathrm{d}x=x precisely because the double-root condition makes the numerator and denominator identical.

Step 1. Apply reduction of order (6) with p=bp=b: here ∫p dx=bx\int p\,\mathrm{d}x=bx, so y2=erx∫e−bx/e2rx dxy_2=e^{rx}\int e^{-bx}/e^{2rx}\,\mathrm{d}x. Why: reduction of order is the systematic machine for a second solution, so we feed it the one solution we have instead of guessing.

Step 2. Use the double-root identity 2r=−b2r=-b, which gives y12=e2rx=e−bxy_1^2=e^{2rx}=e^{-bx}. Why: this is the special feature of a repeated root — the exponent doubling exactly matches the sign of bb — and it is what makes the integrand trivial.

Step 3. The integrand becomes e−bx/e−bx=1e^{-bx}/e^{-bx}=1, so ∫1 dx=x\int1\,\mathrm{d}x=x. Why: numerator and denominator cancel identically only at a double root, which is why the factor of xx never appears for distinct roots.

Step 4. Assemble y2=erx⋅x=xerxy_2=e^{rx}\cdot x=xe^{rx}, giving the general solution (c1+c2x)erx(c_1+c_2x)e^{rx}. Why: the polynomial factor is forced by the degeneracy, and it is exactly the critically damped return-to-equilibrium seen as the green curve in the first figure. *The same xerxxe^{rx} can also be seen as the confluent limit r2→r1r_2\to r_1 of (er2x−er1x)/(r2−r1)(e^{r_2x}-e^{r_1x})/(r_2-r_1), confirming that the polynomial factor is the fingerprint of the degenerate root.*

Limiting cases

The constant-coefficient equation y′′+by′+cy=0y''+by'+cy=0, with roots r1,2=−b±b2−4c2r_{1,2}=\tfrac{-b\pm\sqrt{b^2-4c}}{2}, already displays every qualitative behaviour a linear second-order ODE can have. The three homogeneous regimes plus the resonant forced case are collected below.

CaseResultMeaning
Distinct real roots (overdamped)y=c1er1x+c2er2xy=c_1e^{r_1x}+c_2e^{r_2x}When b2−4c>0b^2-4c>0: two decaying exponentials, no oscillation — strongly damped systems relax monotonically.
Repeated root (critically damped)y=(c1+c2x)erx, r=−b/2y=(c_1+c_2x)e^{rx},\ r=-b/2When b2−4c=0b^2-4c=0: the factor xx is supplied by reduction of order; the fastest non-oscillatory return to equilibrium.
Complex roots (underdamped)y=eαx(c1cos⁡βx+c2sin⁡βx)y=e^{\alpha x}(c_1\cos\beta x+c_2\sin\beta x)When b2−4c<0b^2-4c<0, r=α±iβr=\alpha\pm i\beta: decaying (α<0\alpha<0) or growing oscillation; the pure harmonic oscillator is the limit b=0b=0.
Resonant forcingyp∝x eiω0xy_p\propto x\,e^{i\omega_0 x}When f=eiωxf=e^{i\omega x} with ω\omega at a natural frequency ω0\omega_0: the particular solution grows a secular factor xx — undamped amplitude blow-up.

Worked examples

1 · A constant-coefficient initial-value problem (confidence builder)

Solve y′′−5y′+6y=0y''-5y'+6y=0 with y(0)=1y(0)=1 and y′(0)=0y'(0)=0, and confirm the two building-block solutions are independent.

Step 1. Substitute y=erxy=e^{rx} to get the characteristic equation r2−5r+6=0r^2-5r+6=0, which factors as (r−2)(r−3)=0(r-2)(r-3)=0, so r=2r=2 and r=3r=3. Two distinct real roots put us in the overdamped regime, and the general solution is y=c1e2x+c2e3xy=c_1e^{2x}+c_2e^{3x}.

Step 2. Check independence with the Wronskian: W=y1y2′−y2y1′=e2x(3e3x)−e3x(2e2x)=3e5x−2e5x=e5xW=y_1y_2'-y_2y_1'=e^{2x}(3e^{3x})-e^{3x}(2e^{2x})=3e^{5x}-2e^{5x}=e^{5x}. Since e5x≠0e^{5x}\ne0 everywhere, {e2x,e3x}\{e^{2x},e^{3x}\} is a fundamental set. Notice this matches Abel's identity: with p=−5p=-5, equation (5) predicts W∝e−∫(−5) dx=e5xW\propto e^{-\int(-5)\,\mathrm{d}x}=e^{5x}, exactly what we computed.

Step 3. Impose the initial data. From y(0)=c1+c2=1y(0)=c_1+c_2=1 and y′(0)=2c1+3c2=0y'(0)=2c_1+3c_2=0, subtract twice the first from the second to get c2=−2c_2=-2, then c1=3c_1=3. The unique solution is y=3e2x−2e3xy=3e^{2x}-2e^{3x}, and a quick check confirms y(0)=3−2=1y(0)=3-2=1 and y′(0)=6−6=0y'(0)=6-6=0 as required.

2 · Resonance and the secular term (fully worked)

An undamped oscillator is driven exactly at its natural frequency: x¨+4x=cos⁡(2t)\ddot{x}+4x=\cos(2t), starting from rest, x(0)=0, x˙(0)=0x(0)=0,\ \dot{x}(0)=0. Find x(t)x(t) and describe the long-time behaviour.

Step 1. The homogeneous equation x¨+4x=0\ddot{x}+4x=0 has characteristic roots r=±2ir=\pm2i (natural frequency ω0=2\omega_0=2), so the complementary solution is xc=c1cos⁡2t+c2sin⁡2tx_c=c_1\cos2t+c_2\sin2t. The drive frequency ω=2\omega=2 coincides with ω0\omega_0, so a plain cos⁡2t\cos2t trial would be swallowed by xcx_c — the resonant flag.

Step 2. Because the forcing sits on a natural frequency, the trial solution must carry an extra factor of tt: take xp=Atsin⁡2tx_p=At\sin2t. Then x˙p=Asin⁡2t+2Atcos⁡2t\dot{x}_p=A\sin2t+2At\cos2t and x¨p=4Acos⁡2t−4Atsin⁡2t\ddot{x}_p=4A\cos2t-4At\sin2t, so x¨p+4xp=4Acos⁡2t\ddot{x}_p+4x_p=4A\cos2t. Matching to cos⁡2t\cos2t gives 4A=14A=1, hence A=14A=\tfrac14 and xp=t4sin⁡2tx_p=\tfrac{t}{4}\sin2t.

Step 3. Apply the initial conditions to the full solution x=t4sin⁡2t+c1cos⁡2t+c2sin⁡2tx=\tfrac{t}{4}\sin2t+c_1\cos2t+c_2\sin2t. At t=0t=0: x(0)=c1=0x(0)=c_1=0. Differentiate and evaluate: x˙(0)=2c2=0\dot{x}(0)=2c_2=0, so c2=0c_2=0. The motion is x(t)=t4sin⁡2tx(t)=\tfrac{t}{4}\sin2t — a sinusoid inside a linearly growing envelope ±t/4\pm t/4: at t=10 t=10\,s the amplitude has reached 2.52.5, at t=40 t=40\,s it is 1010. With no damping to cap it, the response climbs without bound — the mathematical face of undamped resonance, and why structures are engineered to keep drive frequencies off their natural modes.

Physics of the portrait

The theory of linear second-order ODEs is an eighteenth-century collective achievement — but its decisive computational key, the exponential ansatz that turns calculus into algebra, belongs to Leonhard Euler.

Origins · 1 minLeonhard Euler and how this was discovered
LE
Leonhard Euler
1707–1783 · the exponential ansatz and the analytic theory of linear differential equations

Leonhard Euler was the most prolific mathematician in history, and the systematic solution of linear differential equations is among his most consequential gifts to physics. Before him, second-order equations were attacked one clever substitution at a time. In work of the early 1740s — laid out in letters to Johann Bernoulli and later in his Institutiones calculi integralis — Euler made the move that organized the whole subject: for a constant-coefficient equation, try y=erxy=e^{rx} and the differential equation becomes a polynomial in rr, the characteristic equation. Distinct roots give distinct exponentials; and when a root repeats, Euler and Jean le Rond d'Alembert saw that the missing second solution is xerxxe^{rx}, the polynomial factor now recognizable as the fingerprint of degeneracy. Euler also grasped that solutions superpose, so the general solution is a linear combination — the vector-space picture in embryo, a century before "vector space" was a phrase. The story did not end with him: Lagrange invented variation of parameters in the 1770s to handle forcing; Abel proved in 1827 that the Wronskian obeys W=W0e−∫pW=W_0e^{-\int p}; and Józef Hoene-Wroński's determinant, christened the "Wronskian" by Thomas Muir in 1882, became the standard independence test. What Euler began as a calculus of exponentials, Sturm and Liouville would in the 1830s turn into a spectral theory — the direct ancestor of the eigenvalue problems at the heart of quantum mechanics.

History
1743
— Euler solves the constant-coefficient linear ODE by the exponential substitution y = e^rx
1748
— Euler and d'Alembert identify x e^rx as the second solution for a repeated root
1774
— Lagrange perfects variation of parameters for the inhomogeneous equation
1827
— Abel proves the identity W = W₀ exp(−∫ p dx) for the Wronskian
1882
— Muir names the Wronskian after Józef Hoene-Wroński

Going further

Texts. Stone & Goldbart, Mathematics for Physics, Ch. 1 and Ch. 3 (linear ODEs) · Arfken & Weber, Mathematical Methods for Physicists, 7th ed., Ch. 7–8 · Hassani, Mathematical Physics, Ch. 25–26 (ODEs and their solutions) · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., Ch. 15–16 · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 2 · Boyce & DiPrima, Elementary Differential Equations and Boundary Value Problems, Ch. 3 · Coddington & Levinson, Theory of Ordinary Differential Equations, Ch. 3. Key results to keep in mind: dim⁡ker⁡L=2\dim\ker L=2 follows from the companion first-order system and existence-uniqueness; Abel's identity satisfies W′=−pWW'=-pW; the variation-of-parameters formulas follow from Cramer's rule with determinant W≠0W\ne0; the repeated-root case gives y2=xerxy_2=xe^{rx} via reduction of order; the worked IVP yields r2−5r+6=0⇒r=2,3r^2-5r+6=0\Rightarrow r=2,3, W=e5xW=e^{5x}, y=3e2x−2e3xy=3e^{2x}-2e^{3x}; and the resonant secular solution xp=t4sin⁡2tx_p=\tfrac{t}{4}\sin2t satisfies x¨+4x=cos⁡2t\ddot{x}+4x=\cos2t.

Prerequisites. First-Order Ordinary Differential Equations · Existence and Uniqueness Theorems for ODEs · Integrating Factors and Exact Equations. Leads to. The Wronskian and Linear Independence · Reduction of Order · Variation of Parameters · Power Series Solutions · The Method of Frobenius · Sturm–Liouville Theory.

Ask the tutor: Give me any linear second-order ODE — constant or variable coefficient, homogeneous or driven — and I will walk you from standard form through the Wronskian, the fundamental set, and a particular solution, spelling out why each step is forced.

What exactly makes a second-order ODE "linear"?

Linearity refers to how the unknown yy and its derivatives enter, not to how xx enters. The equation is linear if y,y′,y′′y,y',y'' appear only to the first power, never multiplied together and never inside nonlinear functions — so y′′+sin⁡(x) y′+x2y=exy''+\sin(x)\,y'+x^2y=e^x is linear (the coefficients can be any functions of xx), while y′′+y y′=0y''+y\,y'=0 or y′′+sin⁡y=0y''+\sin y=0 is not. The test is operational: the map L[y]=y′′+py′+qyL[y]=y''+py'+qy must satisfy L[αy1+βy2]=αL[y1]+βL[y2]L[\alpha y_1+\beta y_2]=\alpha L[y_1]+\beta L[y_2]. That property is exactly what fails for the pendulum's sin⁡y\sin y term, which is why the small-angle linearization sin⁡y≈y\sin y\approx y is the price of admission to this whole theory.

Why are there always exactly two arbitrary constants?

Because the homogeneous solution space is two-dimensional, and that number is set by the order of the equation. Rewriting y′′=−py′−qyy''=-py'-qy as a first-order system in (y,y′)(y,y') shows that a solution is completely determined by two initial numbers — position and velocity, in the mechanical picture. The existence-uniqueness theorem then gives a one-to-one correspondence between solutions and points of R2\mathbb{R}^2, so the solution space has dimension two. Adding a particular solution to solve the inhomogeneous problem shifts this plane but cannot change its dimension, so the count of free constants stays at two. More generally, an nn-th order linear ODE has an nn-dimensional solution space and nn arbitrary constants.

If the Wronskian is zero at one point, are the solutions dependent?

For two solutions of the same equation on an interval where pp and qq are continuous, yes: Abel's identity W(x)=W(x0)e−∫pW(x)=W(x_0)e^{-\int p} shows that if WW vanishes anywhere it vanishes everywhere, which forces dependence. But the conclusion is fragile. If the coefficients are discontinuous — most commonly because the leading coefficient of the original equation vanishes at that point, so the standard form is invalid there — the identity does not apply and a zero Wronskian need not imply dependence. The classic warning example x2x^2 and x∣x∣x|x| has W≡0W\equiv0 yet the functions are independent, precisely because they cannot both solve one regular equation through the origin.

When does the extra factor of x appear, and is it the same x in resonance?

The factor of xx (or tt) appears whenever a solution mode is "doubly requested". In the homogeneous constant-coefficient case a repeated characteristic root asks for the mode erxe^{rx} twice, and reduction of order supplies xerxxe^{rx} as the independent partner. In the forced case, driving an undamped oscillator exactly at a natural frequency asks for a mode that already solves the homogeneous equation, and the particular solution grows a secular factor tt, as in xp=t4sin⁡2tx_p=\tfrac{t}{4}\sin2t. These are the same phenomenon seen from two sides: whenever the naive trial solution collides with the homogeneous solution space, multiply by the independent variable to escape the collision. Both are the mathematics of critical damping and resonance.

Why are constant-coefficient equations so much easier than variable-coefficient ones?

Because a constant-coefficient equation is invariant under shifts in xx, the exponential erxe^{rx} is an eigenfunction of ddx\tfrac{\mathrm{d}}{\mathrm{d}x}, so substituting it turns differentiation into multiplication by rr and the equation collapses to a polynomial — algebra, not calculus. When p(x)p(x) and q(x)q(x) vary, no single exponential works, and you must instead expand as a power series about an ordinary point, or use the method of Frobenius about a regular singular point, where the indicial equation plays the role of the characteristic equation. Reduction of order and variation of parameters still apply, but they need an already-known solution or an integral you may not be able to evaluate in closed form.

How is this the same equation as the Schrödinger equation?

The one-dimensional time-independent Schrödinger equation −ℏ22mψ′′+V(x)ψ=Eψ-\tfrac{\hbar^2}{2m}\psi''+V(x)\psi=E\psi is a linear second-order ODE in disguise: it is ψ′′+q(x)ψ=0\psi''+q(x)\psi=0 with p=0p=0 and q(x)=2mℏ2(E−V(x))q(x)=\tfrac{2m}{\hbar^2}(E-V(x)). Everything here applies — a two-dimensional solution space, the Wronskian test, matching across regions. What makes it quantum is the boundary conditions: demanding ψ→0\psi\to0 at infinity or ψ=0\psi=0 at walls turns the ODE into an eigenvalue problem, and only special values of EE admit a normalizable solution. That is Sturm–Liouville theory, and the discreteness of those allowed EE is the origin of energy quantization.

Before this

Where this leads