A complete interactive guide — from theory to practice
By the end of this lesson, you will be able to:
A homogeneous second-order linear differential equation with constant coefficients has the standard form:
where \(a\), \(b\), and \(c\) are constants (with \(a \neq 0\)), and \(y''\) denotes the second derivative. The equation is homogeneous because the right side equals zero (no forcing term). This stands in contrast to non-homogeneous equations \(ay'' + by' + cy = g(t)\) where \(g(t) \neq 0\).
The coefficients \(a\), \(b\), \(c\) must be constants. If they depend on \(x\) or \(t\), you need different methods (like Euler equations or reduction of order). Always check this first!
Second-order ODEs with constant coefficients appear everywhere in engineering: mechanical vibrations (mass-spring systems), electrical circuits (LC, RL, RLC circuits), structural dynamics, control systems, and more. The method of characteristic equations is one of the most powerful and elegant tools in applied mathematics — it transforms a differential problem into an algebraic one.
Leonhard Euler discovered the characteristic equation method in the 1740s, revolutionizing how mathematicians solve differential equations. By recognizing that exponential functions \(e^{rx}\) satisfy constant-coefficient equations, he reduced the problem of solving ODEs to solving algebraic equations — an insight of remarkable power and elegance.
Just as the characteristic equation reveals the hidden structure of differential equations, each step you take to understand mathematics brings you closer to deeper knowledge. The journey of learning is itself a blessing.
The key insight is to assume that the solution has the form \(y = e^{rx}\) for some constant \(r\) to be determined. Let's see what happens when we substitute this into \(ay'' + by' + cy = 0\):
Substituting into the original equation:
Factor out \(e^{rx}\) (which is never zero):
For this to hold for all \(x\), we need the polynomial to vanish:
Given the ODE \(ay'' + by' + cy = 0\), the characteristic equation is:
The roots of this quadratic determine the form of the general solution. Solve using the quadratic formula:
The discriminant \(\Delta = b^2 - 4ac\) tells you which case you're in.
When \(b^2 - 4ac > 0\), the characteristic equation has two different real roots \(r_1 \neq r_2\).
Both \(e^{r_1 x}\) and \(e^{r_2 x}\) are solutions, and they are linearly independent (one is not a constant multiple of the other), so their linear combination gives the general solution.
When \(b^2 - 4ac = 0\), there is a single repeated root \(r_1 = r_2 = r\).
If we only use \(C_1\,e^{rx}\), we don't have enough constants to satisfy two initial conditions. The solution \(x\,e^{rx}\) is linearly independent from \(e^{rx}\) — this is why the \(x\) factor is essential.
When the root is repeated, \(e^{rx}\) is a solution to the homogeneous equation. By the reduction of order principle, a second linearly independent solution is \(x\,e^{rx}\). Multiplying by \(x\) breaks the linear dependence and gives us the degree of freedom we need for two arbitrary constants.
When \(b^2 - 4ac < 0\), the roots are complex conjugates: \(r = \alpha \pm \beta i\) where
The exponential solutions \(e^{(\alpha \pm \beta i)x}\) involve complex numbers, but we can extract real-valued solutions using Euler's formula:
Taking the real and imaginary parts gives two linearly independent real solutions:
This oscillatory form captures damped oscillations (if \(\alpha < 0\)) or growing oscillations (if \(\alpha > 0\)).
Always compute \(\Delta = b^2 - 4ac\) first:
Follow these five steps to solve any homogeneous constant-coefficient second-order ODE:
Once you master the three cases, you can often skip the full derivation in examples. Identify the equation, find the roots, and immediately write the solution form. This speed comes with practice!
Click each example to reveal the full step-by-step solution.
Standard form: Already in form \(y'' + y' - 6y = 0\) with \(a=1, b=1, c=-6\).
Characteristic equation:
Solve for roots: Factor: \((r+3)(r-2) = 0\), so \(r_1 = 2\) and \(r_2 = -3\).
Discriminant check: \(\Delta = 1^2 - 4(1)(-6) = 1 + 24 = 25 > 0\) ✓ Two distinct real roots.
Apply Case 1 formula:
The two terms represent two independent exponential modes. The \(e^{2t}\) term grows, while \(e^{-3t}\) decays. The general solution is their linear combination. For any initial conditions, we can find \(C_1\) and \(C_2\).
Standard form: \(a=1, b=-4, c=4\).
Characteristic equation:
Solve for roots: Factor: \((r-2)^2 = 0\), so \(r = 2\) (repeated).
Discriminant check: \(\Delta = (-4)^2 - 4(1)(4) = 16 - 16 = 0\) ✓ Repeated root.
Apply Case 2 formula:
If we only used \(y = C_1 e^{2t}\), we'd have only one arbitrary constant — not enough for a second-order ODE. The \(t\) factor in the second term \(C_2\,t\,e^{2t}\) is essential. It's linearly independent from \(e^{2t}\) because \(t\) is not a constant.
Standard form: \(a=1, b=0, c=9\).
Characteristic equation:
Solve for roots: \(r^2 = -9\), so \(r = \pm 3i\).
Discriminant check: \(\Delta = 0^2 - 4(1)(9) = -36 < 0\) ✓ Complex roots.
Extract \(\alpha\) and \(\beta\): \(r = 0 \pm 3i\), so \(\alpha = 0\) and \(\beta = 3\).
Apply Case 3 formula:
This is the equation for a mass on a spring with no damping. The solution oscillates indefinitely at frequency \(\beta = 3\) rad/s. Real-world systems have some damping, which introduces the \(e^{\alpha t}\) envelope to make oscillations decay.
Standard form: \(a=1, b=-2, c=5\).
Characteristic equation:
Solve for roots: Using the quadratic formula:
Discriminant check: \(\Delta = (-2)^2 - 4(1)(5) = 4 - 20 = -16 < 0\) ✓ Complex roots.
Extract \(\alpha\) and \(\beta\): \(\alpha = 1\), \(\beta = 2\).
Apply Case 3 formula:
Here \(\alpha = 1 > 0\), so the oscillations grow in amplitude at rate \(e^t\). This is an underdamped system with exponential instability. In a real mass-spring-dashpot system, negative damping (energy input) would create this behavior.
Standard form: \(a=1, b=-6, c=8\).
Characteristic equation: \(r^2 - 6r + 8 = 0\) → \((r-2)(r-4) = 0\) → \(r_1 = 2, r_2 = 4\).
General solution:
Find derivative:
Apply initial condition \(y(0) = -2\):
Apply initial condition \(y'(0) = 6\):
Solve the system: From the first equation, \(C_1 = -2 - C_2\). Substitute into the second:
Thus \(C_1 = -2 - 5 = -7\).
Particular solution:
\(y(0) = -7(1) + 5(1) = -2\) ✓ and \(y'(0) = -7(2) + 5(4) = -14 + 20 = 6\) ✓. Always verify your constants!
Standard form: \(a=1, b=2, c=2\).
Characteristic equation: \(r^2 + 2r + 2 = 0\).
Quadratic formula:
Discriminant check: \(\Delta = 2^2 - 4(1)(2) = 4 - 8 = -4 < 0\) ✓ Complex roots.
Extract \(\alpha\) and \(\beta\): \(\alpha = -1\), \(\beta = 1\).
General solution:
This is a damped oscillator with decay rate \(\alpha = -1 < 0\). The oscillations occur at frequency \(\beta = 1\) but decay exponentially as \(e^{-t}\). Eventually, the system comes to rest. This model applies to real mechanical and electrical systems with energy dissipation.
Standard form: \(a=1, b=-8, c=17\).
Characteristic equation: \(r^2 - 8r + 17 = 0\).
Quadratic formula:
Extract \(\alpha\) and \(\beta\): \(\alpha = 4\), \(\beta = 1\).
General solution:
With \(\alpha = 4 > 0\), the system exhibits growing oscillations. This could represent a feedback-driven system or a negative-damping scenario. The amplitude increases exponentially at rate \(e^{4t}\).
Standard form: \(a=1, b=0, c=-9\).
Characteristic equation: \(r^2 - 9 = 0\).
Solve for roots: \(r^2 = 9\) → \(r = \pm 3\).
Discriminant check: \(\Delta = 0^2 - 4(1)(-9) = 36 > 0\) ✓ Two distinct real roots.
General solution:
Alternative form (hyperbolic): Some prefer to write this using hyperbolic functions:
where \(A = C_1 + C_2\) and \(B = C_1 - C_2\). Both forms are equivalent and useful in different contexts.
For problems with symmetric real roots (like \(\pm 3\)), solutions are often written using hyperbolic functions \(\cosh\) and \(\sinh\) because they better represent "saddle-point" behavior. However, the exponential form is equally valid.
These problems are similar in style and difficulty to past exam questions. Click each problem to reveal the step-by-step solution.
Step 1: Write the characteristic equation. For $y'' + 6y' + 9y = 0$, the characteristic equation is:
Step 2: Identify the discriminant. $\Delta = b^2 - 4ac = 36 - 36 = 0$. This indicates a repeated root.
Step 3: Factor the characteristic equation.
Step 4: Apply the repeated root formula. When $r$ is repeated, the general solution is $y = (c_1 + c_2 t)e^{rt}$:
Note: The two linearly independent solutions are $e^{-3t}$ and $te^{-3t}$.
Step 1: Write the characteristic equation.
Step 2: Check the discriminant. $\Delta = (-2)^2 - 4(1)(5) = 4 - 20 = -16 < 0$. This indicates complex roots.
Step 3: Use the quadratic formula.
Step 4: Identify $\alpha$ and $\beta$. From $r = 1 \pm 2i$, we have $\alpha = 1$ and $\beta = 2$.
Step 5: Apply the complex root formula. For $r = \alpha \pm i\beta$, the general solution is $y = e^{\alpha t}(c_1\cos(\beta t) + c_2\sin(\beta t))$:
Step 1: Write the characteristic equation.
Step 2: Factor. $(r-2)(r-3) = 0 \Rightarrow r = 2, 3$. Two distinct real roots.
Step 3: General solution.
Step 4: Apply initial condition $y(0) = 2$.
Step 5: Find the derivative.
Step 6: Apply initial condition $y'(0) = 3$.
Step 7: Solve the system. From Step 4, $c_1 = 2 - c_2$. Substitute:
Step 8: Particular solution.
Enter coefficients \(a\), \(b\), \(c\) for the equation \(ay'' + by' + cy = 0\). The tool will compute the roots, show the discriminant, and plot the general solution for your choice of initial conditions.
Test your understanding! Try each problem, then check your answer.
Progress: 0 / 5 completed
What is the characteristic equation for \(y'' + 5y' - 6y = 0\)?
What type of roots does the characteristic equation \(r^2 - 4r + 4 = 0\) have?
What is the general solution of \(y'' + 4y = 0\)?
If the characteristic equation has roots \(r = 3 \pm 2i\), what is the solution form?
Solve \(y'' + 4y' + 4y = 0\), \(y(0) = 1\), \(y'(0) = 0\). What is \(y(x)\)?