Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
Differential EquationsDifferential EquationsCollege

Second-Order Linear (Constant Coefficients)

Characteristic equation with real, repeated or complex roots.

A second-order linear equation with constant coefficients, ay′′+by′+cy=0ay'' + by' + cy = 0, describes springs, pendulums and electrical circuits. Trying y=erxy = e^{rx} turns it into the characteristic equation ar2+br+c=0ar^2 + br + c = 0, an ordinary quadratic whose roots determine the shape of every solution.

Two distinct real roots give a sum of two exponentials; a repeated root rr gives (C1+C2x)erx(C_1 + C_2 x)e^{rx}; complex roots α±βi\alpha \pm \beta i give oscillations eαx(C1cos⁡βx+C2sin⁡βx)e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x). Two initial conditions, usually y(0)y(0) and y′(0)y'(0), fix the two constants.

Key terms

Characteristic equation
Substituting y = e^{rx} gives a quadratic in r.
ay′′+by′+cy=0⇒ar2+br+c=0ay'' + by' + cy = 0 \Rightarrow ar^2 + br + c = 0

Key ideas

  • Characteristic equation: replace y′′y'' with r2r^2, y′y' with rr, yy with 1.
  • Real distinct roots: y=C1er1x+C2er2xy = C_1 e^{r_1 x} + C_2 e^{r_2 x}.
  • Complex roots produce sines and cosines; negative real part means damping.
  • Non-homogeneous equations add a particular solution to this general solution.

Worked example

Solve y′′−5y′+6y=0y'' - 5y' + 6y = 0 with y(0)=2y(0) = 2, y′(0)=5y'(0) = 5.

  1. Characteristic: r2−5r+6=0r^2 - 5r + 6 = 0, roots r=2,3r = 2, 3.
  2. General: y=C1e2x+C2e3xy = C_1 e^{2x} + C_2 e^{3x}.
  3. y(0)y(0): C1+C2=2C_1 + C_2 = 2; y′(0)y'(0): 2C1+3C2=52C_1 + 3C_2 = 5.
  4. So C2=1C_2 = 1, C1=1C_1 = 1: y=e2x+e3xy = e^{2x} + e^{3x}.

Answer: y=e2x+e3xy = e^{2x} + e^{3x}

Common mistakes

  • Using xerxxe^{rx} when the roots are distinct.
  • Forgetting the xx factor when the root is repeated.
  • Applying both initial conditions to yy instead of differentiating for y′(0)y'(0).

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.What is the sum of the roots of the characteristic equation of y′′+4y′+3y=0y'' + 4y' + 3y = 0?

    Show answer

    −4-4

  2. 2.For y′′+9y=0y'' + 9y = 0, what is the angular frequency β\beta?

    Show answer

    33

  3. 3.For y=e2x+e3xy = e^{2x} + e^{3x}, find y′(0)y'(0).

    Show answer

    55

More in Differential Equations