Introduction
In our last lesson, we explored how first-order differential equations serve as powerful tools for modeling physical systems where the rate of change depends on the current state, such as in radioactive decay or mixing problems. We are now ready to expand our mathematical toolkit to address more complex dynamics.
This lesson will focus on a cornerstone of engineering mathematics: solving second-order linear homogeneous ordinary differential equations (ODEs) with constant coefficients. These are equations of the form . You'll find that these equations are fundamental to describing systems that involve acceleration and oscillation, from the vibrations in a chemical reactor pump to the behavior of control circuits. Mastering this topic builds directly on your calculus skills and prepares you for analyzing the dynamic behavior of many physical systems you'll encounter in engineering.
From Differential Equations to Algebraic Equations
The beauty of the method we'll learn is that it transforms a calculus problem (solving an ODE) into an algebra problem (finding the roots of a quadratic equation). Let's see how this is done and why it's so relevant to physical systems.
The following video provides an excellent introduction. It defines the type of equation we're interested in, explains the core solution strategy, and then demonstrates how a classic mechanical system—a mass, spring, and damper—is perfectly described by this very type of ODE.
Linear Second-Order Differential Equations Part 1: Homogeneous Case
This video from the "Professor Dave Explains" channel introduces the topic and connects it to a tangible physical model, which will help you appreciate the "why" behind the mathematics.
First, watch the segment that defines the equation and the solution method. Pay close attention to how the "guess" solution, y = e^{\lambda x}, is used to create the characteristic equation. Then, skip ahead and watch the section that models a mass-spring-damper system. This will give you a concrete physical picture to keep in mind as we work through the mathematical solutions. Notice how the final equation has the exact form m\ddot{x} + c\dot{x} + kx = 0.
As the video explained, by substituting the trial solution into the general ODE , we arrive at the characteristic equation:
The original problem is now reduced to finding the roots of this quadratic equation. The nature of these roots—whether they are real and distinct, real and repeated, or complex—determines the form of the solution to the ODE. We will now explore each of these three cases.
Case 1: Two Distinct Real Roots
This is the most straightforward case. It occurs when the discriminant of the characteristic equation is positive (). This gives two different real numbers, and , as roots.
Each root gives a valid solution, and . Because the ODE is linear and homogeneous, any linear combination of these solutions is also a solution. This gives us the general solution:
where and are constants determined by initial conditions. This type of solution represents non-oscillatory behavior, such as exponential growth or decay. In the context of the mass-spring-damper system, this corresponds to an "overdamped" system, where the object slowly returns to its equilibrium position without oscillating.
The following resource provides a formal walkthrough of this case with an example.
2.2: Constant coefficient second order linear ODEs
This article from Mathematics LibreTexts provides a clear, step-by-step method for solving these ODEs. We'll use it to explore all three cases.
Please read the first part of the article, from the beginning down to the start of the first theorem. Focus on the example presented at the top. Notice how it follows the exact procedure: Write the characteristic equation (r^2 - 6r + 8 = 0). Find its distinct real roots (r=2, r=4). Write the general solution (y = C_1e^{2x} + C_2e^{4x}). Use the initial conditions (y(0)=-2, y'(0)=6) to solve for the constants C_1 and C_2.
Case 2: One Repeated Real Root
This case occurs when the discriminant is zero (). The characteristic equation yields only one real root, . This gives us one solution, . However, a second-order ODE requires two linearly independent solutions to form a general solution.
It can be shown that in this specific situation, a second independent solution is given by multiplying the first solution by , so . Combining these gives the general solution:
This case is known as "critical damping" in mechanical systems. It represents the fastest possible return to equilibrium without any oscillation.
2.2: Constant coefficient second order linear ODEs
Now, let's continue with the same resource to see how to handle a repeated root.
Read the section that deals with the second case. It's identified by the condition r_1 = r_2. Pay close attention to the form of the solution presented in the theorem and examine Example \PageIndex{2}, which solves y'' - 8y' + 16y = 0.
Case 3: Two Complex Conjugate Roots
This is the most mathematically interesting case and the one that produces oscillations. It occurs when the discriminant is negative (). The roots of the characteristic equation are a complex conjugate pair, which can be written as .
To turn these complex roots into the real-valued physical solutions we need, we must use one of the most beautiful and powerful relationships in mathematics: Euler's Formula.
A Quick Detour: Euler's Formula
Euler's formula provides a stunning link between the exponential function and trigonometric functions:
This formula allows us to interpret an exponential with an imaginary exponent as a point on the complex plane, with a real part () and an imaginary part ().
2.2: Constant coefficient second order linear ODEs
Before we solve the ODE, take a moment to review the properties of complex numbers and Euler's formula in the same resource. This is essential for understanding the final form of the solution.
Please read the section 2.2.2 Complex numbers and Euler’s formula. Start from the sentence It may happen that a polynomial has some complex roots and read through to the end of the section, just before the "Complex roots" heading. Focus on understanding the definition of Euler's Formula.
Deriving the Oscillatory Solution
With Euler's formula, we can take the two complex solutions, and , and combine them in a way that eliminates the imaginary parts, leaving two real, independent solutions: and .
The general solution for the complex roots case is therefore:
This solution describes damped oscillations.
- The term is the damping factor. If is negative, the oscillations decay over time. If , the oscillations continue indefinitely.
- The trigonometric terms describe the oscillation. The value is related to the frequency of the oscillation.
This is the "underdamped" case in a mechanical system, where the object oscillates back and forth before settling at equilibrium. The following images visualize exactly this type of behavior.


Now, let's see the formal derivation and an example.
2.2: Constant coefficient second order linear ODEs
This final reading from the LibreTexts article brings everything together.
Please read the section 2.2.3 Complex roots. The text shows how to get from the complex exponential solutions to the real-valued solution form using Euler's formula. Then, work through Example \PageIndex{4} to see how to solve an initial value problem with complex roots.
Conclusion
In this lesson, you have learned a systematic method for solving any second-order linear homogeneous ODE with constant coefficients. This powerful technique reduces the problem to finding the roots of a simple quadratic equation.
Key Takeaways:
- Second-order ODEs of the form are solved by first finding the roots of the characteristic equation .
- The form of the general solution depends entirely on the nature of these roots, which is determined by the discriminant .
- Distinct Real Roots (): The solution is purely exponential, representing non-oscillatory behavior like decay. .
- Repeated Real Root (): The solution has an additional linear term, representing the fastest non-oscillatory return to equilibrium. .
- Complex Conjugate Roots (): The solution involves sine and cosine functions multiplied by an exponential, representing damped oscillations. .
We have already begun to touch upon the physical meaning of these different solution types. In our next lesson, we will formalize this connection and relate the form of the solution (exponential vs. oscillatory) to the roots of the characteristic equation by exploring the concepts of overdamping, critical damping, and underdamping in greater detail.