Let II be an interval and p,q,g:I→Rp,q,g:I\rightarrow\mathbb{R} be continuous. A second-order linear equation in normal form is an equation of the form

y′′+p(x) y′+q(x) y=g(x).y''+p(x)\,y'+q(x)\,y=g(x).

The associated homogeneous equation is the equation with the forcing function set to zero.

y′′+p(x) y′+q(x) y=0y''+p(x)\,y'+q(x)\,y=0

Every initial value problem y(x0)=y0,y\left(x_0\right)=y_0, y′(x0)=y1y'\left(x_0\right)=y_1 with x0∈Ix_0\in I has exactly one solution, which exists on all of I.I.

Let II be an interval and p,q:I→Rp,q:I\rightarrow\mathbb{R} be continuous. The differential operator of the equation is the linear transformation LL on the vector space C2(I)C^2(I) that maps a function to the left-hand side of the equation.

L[y]:=y′′+p y′+q yL[y]:=y''+p\,y'+q\,y

Let L[y]=gL[y]=g be a second-order linear equation on I.I. The superposition principle states that linear combinations of solutions of the homogeneous equation are solutions of the homogeneous equation, and that the difference of two solutions of the inhomogeneous equation solves the homogeneous equation. The solutions of the homogeneous equation therefore form the kernel of L,L, which is a vector space, and the general solution of the inhomogeneous equation is the sum of any particular solution ypy_p and the general solution yhy_h of the homogeneous equation.

y=yh+ypy=y_h+y_p

Let II be an interval and y1,y2:I→Ry_1,y_2:I\rightarrow\mathbb{R} be differentiable. The Wronskian of y1y_1 and y2y_2 is the determinant of the matrix whose rows are the functions and their derivatives.

W(y1,y2)(x):=det⁡[y1(x)y2(x)y1′(x)y2′(x)]=y1(x) y2′(x)−y1′(x) y2(x)W\left(y_1,y_2\right)(x):=\det\begin{bmatrix}y_1(x) & y_2(x) \\ y_1'(x) & y_2'(x)\end{bmatrix}=y_1(x)\,y_2'(x)-y_1'(x)\,y_2(x)

Let y1,y2y_1,y_2 be solutions of the homogeneous equation y′′+p y′+q y=0y''+p\,y'+q\,y=0 on II with Wronskian W.W. Abel’s identity states that the Wronskian satisfies W′=−p W,W'=-p\,W, so that

W(x)=W(x0)exp⁡(−∫x0xp(s) ds).W(x)=W\left(x_0\right)\exp\left(-\int_{x_0}^{x}p(s)\,ds\right).

The Wronskian of two solutions is therefore either identically zero or never zero on I.I.

Let y′′+p y′+q y=0y''+p\,y'+q\,y=0 be a homogeneous second-order linear equation on I.I. The solution space of the equation has the following properties:

  • two solutions are linearly independent if and only if their Wronskian is non-zero;
  • the solution space has dimension two, since the map y↦(y(x0),y′(x0))y\mapsto\left(y\left(x_0\right),y'\left(x_0\right)\right) is an isomorphism onto R2\mathbb{R}^2 by existence and uniqueness.

Let y′′+p y′+q y=0y''+p\,y'+q\,y=0 be a homogeneous second-order linear equation on I.I. A fundamental set of solutions of the equation is a basis y1,y2y_1,y_2 of its solution space. The general solution of the homogeneous equation is yh=c1y1+c2y2y_h=c_1y_1+c_2y_2 for c1,c2∈R.c_1,c_2\in\mathbb{R}.

Let y′′+p y′+q y=0y''+p\,y'+q\,y=0 be a homogeneous second-order linear equation on II and y1y_1 be a solution with no zeros on I.I. Reduction of order is the method that finds a second solution by the substitution y2=v y1,y_2=v\,y_1, which gives a first-order linear equation for v′v' with solution

y2(x)=y1(x)∫1y1(x)2exp⁡(−∫p(x) dx)dx.y_2(x)=y_1(x)\int\frac{1}{y_1(x)^2}\exp\left(-\int p(x)\,dx\right)dx.

These statements extend to a linear equation of order nn with continuous coefficients: the solution space of the homogeneous equation has dimension n,n, the Wronskian of nn solutions is the determinant of the matrix whose rows are the solutions and their first n−1n-1 derivatives, it satisfies W′=−an−1W,W'=-a_{n-1}W, and nn solutions form a fundamental set if and only if their Wronskian is non-zero.

Let a,b,c∈Ra,b,c\in\mathbb{R} with a≠0.a\neq 0. A homogeneous equation with constant coefficients is an equation of the form

a y′′+b y′+c y=0.a\,y''+b\,y'+c\,y=0.

Let a y′′+b y′+c y=0a\,y''+b\,y'+c\,y=0 be a homogeneous equation with constant coefficients. The characteristic equation of the equation is the quadratic equation obtained by substituting y=erxy=e^{rx} and dividing by erx.e^{rx}.

a r2+b r+c=0a\,r^2+b\,r+c=0

The function y=erxy=e^{rx} is a solution if and only if rr is a root of the characteristic equation. The roots are r=−b±b2−4ac2a.r=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.

Let a y′′+b y′+c y=0a\,y''+b\,y'+c\,y=0 be a homogeneous equation with constant coefficients. The discriminant of its characteristic equation is b2−4ac.b^2-4ac. The fundamental set depends on the sign of the discriminant:

  • if b2−4ac>0b^2-4ac>0 the roots r1≠r2r_1\neq r_2 are real and yh=c1er1x+c2er2x;y_h=c_1e^{r_1x}+c_2e^{r_2x};
  • if b2−4ac=0b^2-4ac=0 the root r=−b2ar=-\frac{b}{2a} is repeated and, by reduction of order, yh=(c1+c2x)erx;y_h=\left(c_1+c_2x\right)e^{rx};
  • if b2−4ac<0b^2-4ac<0 the roots are the complex conjugates α±iβ\alpha\pm i\beta with β>0,\beta>0, the complex solutions e(α±iβ)x=eαx(cos⁡βx±isin⁡βx)e^{\left(\alpha\pm i\beta\right)x}=e^{\alpha x}\left(\cos\beta x\pm i\sin\beta x\right) have real and imaginary parts that are real solutions by Euler’s formula, and yh=eαx(c1cos⁡βx+c2sin⁡βx).y_h=e^{\alpha x}\left(c_1\cos\beta x+c_2\sin\beta x\right).

For an equation of order nn with constant coefficients any(n)+⋯+a1y′+a0y=0,a_ny^{(n)}+\cdots+a_1y'+a_0y=0, the characteristic equation is the polynomial equation anrn+⋯+a1r+a0=0.a_nr^n+\cdots+a_1r+a_0=0. A real root rr of multiplicity mm contributes erx,x erx,…,xm−1erxe^{rx},x\,e^{rx},\ldots,x^{m-1}e^{rx} to the fundamental set, and a pair of complex roots α±iβ\alpha\pm i\beta of multiplicity mm contributes xkeαxcos⁡βxx^ke^{\alpha x}\cos\beta x and xkeαxsin⁡βxx^ke^{\alpha x}\sin\beta x for k=0,…,m−1.k=0,\ldots,m-1.

Let b,c∈R.b,c\in\mathbb{R}. The Euler–Cauchy equation is the equation x2y′′+b x y′+c y=0x^2y''+b\,x\,y'+c\,y=0 on (0,∞).\left(0,\infty\right). The function y=xry=x^r is a solution if and only if r(r−1)+b r+c=0,r\left(r-1\right)+b\,r+c=0, and the substitution x=etx=e^t turns the Euler–Cauchy equation into an equation with constant coefficients.

Let L[y]=gL[y]=g have constant coefficients and a forcing function that is a sum of terms of the form P(x) eαxcos⁡βxP(x)\,e^{\alpha x}\cos\beta x or P(x) eαxsin⁡βxP(x)\,e^{\alpha x}\sin\beta x with PP a polynomial of degree k.k. The method of undetermined coefficients is the method that finds a particular solution by substituting a trial solution of the same form with unknown coefficients and matching terms. For a term P(x) eαxcos⁡βxP(x)\,e^{\alpha x}\cos\beta x or P(x) eαxsin⁡βxP(x)\,e^{\alpha x}\sin\beta x the trial solution is

xs eαx(Q1(x)cos⁡βx+Q2(x)sin⁡βx)x^s\,e^{\alpha x}\left(Q_1(x)\cos\beta x+Q_2(x)\sin\beta x\right)

with Q1,Q2Q_1,Q_2 polynomials of degree kk and ss the multiplicity of α+iβ\alpha+i\beta as a root of the characteristic equation, with s=0s=0 if it is not a root. By superposition the particular solutions for each term of gg are added.

Let L[y]=gL[y]=g have constant coefficients. Resonance is the situation in which a term of the forcing function solves the homogeneous equation, so that s>0s>0 in the trial solution. For example, y′′+y=cos⁡xy''+y=\cos x has s=1s=1 and particular solution yp=x2sin⁡x,y_p=\frac{x}{2}\sin x, whose amplitude grows without bound.

Let L[y]=gL[y]=g be a second-order linear equation with continuous forcing function gg and y1,y2y_1,y_2 be a fundamental set of solutions of the homogeneous equation with Wronskian W.W. Variation of parameters is the method that finds a particular solution by replacing the constants in yhy_h with functions, yp=u1y1+u2y2,y_p=u_1y_1+u_2y_2, subject to u1′y1+u2′y2=0.u_1'y_1+u_2'y_2=0. This leads to the linear system u1′y1′+u2′y2′=gu_1'y_1'+u_2'y_2'=g and the formula

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

Written as a single integral,

yp(x)=∫x0xy1(s) y2(x)−y1(x) y2(s)W(s) g(s) ds,y_p(x)=\int_{x_0}^{x}\frac{y_1(s)\,y_2(x)-y_1(x)\,y_2(s)}{W(s)}\,g(s)\,ds,

which is the particular solution with yp(x0)=yp′(x0)=0.y_p\left(x_0\right)=y_p'\left(x_0\right)=0. Variation of parameters applies to variable coefficients and to any continuous g,g, whereas the method of undetermined coefficients requires constant coefficients and a forcing function of the special form but is simpler when it applies.

Let ω0>0,\omega_0>0, ζ≥0,\zeta\geq 0, F∈RF\in\mathbb{R} and ω>0.\omega>0. The harmonic oscillator is the constant-coefficient equation for a displacement y(t)y(t)

y′′+2ζω0 y′+ω02 y=Fcos⁡ωt.y''+2\zeta\omega_0\,y'+\omega_0^2\,y=F\cos\omega t.

The number ω0\omega_0 is the natural frequency, ζ\zeta is the damping ratio and FF and ω\omega are the forcing amplitude and forcing frequency. The characteristic roots are ω0(−ζ±ζ2−1).\omega_0\left(-\zeta\pm\sqrt{\zeta^2-1}\right).

Let y′′+2ζω0 y′+ω02 y=0y''+2\zeta\omega_0\,y'+\omega_0^2\,y=0 be an unforced harmonic oscillator. The oscillator is undamped if and only if ζ=0,\zeta=0, underdamped if and only if 0<ζ<1,0<\zeta<1, critically damped if and only if ζ=1\zeta=1 and overdamped if and only if ζ>1.\zeta>1. The harmonic oscillator has the following properties:

  • an undamped oscillator has solutions c1cos⁡ω0t+c2sin⁡ω0tc_1\cos\omega_0t+c_2\sin\omega_0t of period 2πω0;\frac{2\pi}{\omega_0};
  • an underdamped oscillator has oscillations of frequency ω01−ζ2\omega_0\sqrt{1-\zeta^2} whose amplitude decays like e−ζω0t;e^{-\zeta\omega_0t};
  • a critically damped or overdamped oscillator returns to rest without oscillating.

Let y′′+2ζω0 y′+ω02 y=Fcos⁡ωty''+2\zeta\omega_0\,y'+\omega_0^2\,y=F\cos\omega t be a forced harmonic oscillator with ζ>0.\zeta>0. The transient is the homogeneous solution, which decays to zero. The steady-state solution is the particular solution yp=Acos⁡(ωt−ϕ),y_p=A\cos\left(\omega t-\phi\right), to which every solution converges, with amplitude

A=F(ω02−ω2)2+(2ζω0ω)2.A=\frac{F}{\sqrt{\left(\omega_0^2-\omega^2\right)^2+\left(2\zeta\omega_0\omega\right)^2}}.

For small ζ\zeta the amplitude is largest when the forcing frequency is near the natural frequency. When ζ=0\zeta=0 and ω=ω0\omega=\omega_0 the forcing is in resonance with the oscillator and the particular solution F2ω0tsin⁡ω0t\frac{F}{2\omega_0}t\sin\omega_0t grows without bound.