Teleport

Main features

On this page

Topics

Arithmetic drills
Grade 7
Grade 8
Grade 9
Math I
Math A
Math II
Math B
Math C
Math III
Calculus
Linear algebra
Differential equations

Display

Theme
Differential equations

Second-order linear ODEs with constant coefficients

The general solution of y′′+ay′+by=f(x)y'' + ay' + by = f(x) is the homogeneous solution plus a particular solution: use the characteristic equation for the first and undetermined coefficients for the second.

Basic, Standard, Advanced: University Year 2+

Math problem generator

Level

Characteristic equation and general solution

Substituting y=eλxy = e^{\lambda x} into y′′+ay′+by=0y'' + ay' + by = 0 gives the characteristic equation λ2+aλ+b=0\lambda^2 + a\lambda + b = 0.

General solution
  • Distinct real roots λ1\lambda_1, λ2\lambda_2: y=C1eλ1x+C2eλ2xy = C_1e^{\lambda_1x} + C_2e^{\lambda_2x}
  • Double root λ\lambda: y=(C1+C2x)eλxy = (C_1 + C_2x)e^{\lambda x}
  • Complex roots α±βi\alpha \pm \beta i: y=eαx(C1cos⁡βx+C2sin⁡βx)y = e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x)

The initial conditions y(0)y(0) and y′(0)y'(0) give two equations for C1C_1 and C2C_2.

Undetermined coefficients

Guess the form of a particular solution from the right side f(x)f(x), substitute, and solve for the coefficients.

Trial forms
  • f(x)f(x) a polynomial: a polynomial of the same degree
  • f(x)=kecxf(x) = ke^{cx}: AecxAe^{cx}
  • f(x)=kcos⁡ωxf(x) = k\cos\omega x or ksin⁡ωxk\sin\omega x: Pcos⁡ωx+Qsin⁡ωxP\cos\omega x + Q\sin\omega x
  • a sum: the sum of the particular solutions (superposition)
Resonance

If cc or ±ωi\pm\omega i is a characteristic root, multiply the trial form by xx (by x2x^2 for a double root). For example, y′′+4y=cos⁡2xy'' + 4y = \cos 2x has a particular solution of the form x(Pcos⁡2x+Qsin⁡2x)x(P\cos 2x + Q\sin 2x).

Euler equations

For x2y′′+axy′+by=0x^2y'' + axy' + by = 0, substituting y=xλy = x^{\lambda} gives λ(λ−1)+aλ+b=0\lambda(\lambda - 1) + a\lambda + b = 0; with distinct real roots, y=C1xλ1+C2xλ2y = C_1x^{\lambda_1} + C_2x^{\lambda_2}. (The substitution x=etx = e^t turns it into a constant-coefficient equation.)