17.1: Second-Order Linear Equations
( \newcommand{\kernel}{\mathrm{null}\,}\)
- Recognize homogeneous and nonhomogeneous linear differential equations.
- Determine the characteristic equation of a homogeneous linear equation.
- Use the roots of the characteristic equation to find the solution to a homogeneous linear equation.
- Solve initial-value and boundary-value problems involving linear differential equations.
When working with differential equations, usually the goal is to find a solution. In other words, we want to find a function (or functions) that satisfies the differential equation. The technique we use to find these solutions varies, depending on the form of the differential equation with which we are working. Second-order differential equations have several important characteristics that can help us determine which solution method to use. In this section, we examine some of these characteristics and the associated terminology.
Homogeneous Linear Equations
Consider the second-order differential equation
Notice that
Not all differential equations are homogeneous. Consider the differential equation
The
A second-order differential equation is linear if it can be written in the form
where
In linear differential equations,
Note that equations may not always be given in standard form (the form shown in the definition). It can be helpful to rewrite them in that form to decide whether they are linear, or whether a linear equation is homogeneous.
Classify each of the following equations as linear or nonlinear. If the equation is linear, determine further whether it is homogeneous or nonhomogeneous.
Solution
- This equation is nonlinear because of the
term. - This equation is linear. There is no term involving a power or function of
and the coefficients are all functions of .The equation is already written in standard form, and is identically zero, so the equation is homogeneous. - This equation is nonlinear. Note that, in this case,
is the dependent variable and is the independent variable. The second term involves the product of and , so the equation is nonlinear. - This equation is linear. Since
the equation is nonhomogeneous. - This equation is nonlinear, because of the
term. - This equation is linear. Rewriting it in standard form gives
With the equation in standard form, we can see that so the equation is nonhomogeneous. - This equation looks like it’s linear, but we should rewrite it in standard form to be sure. We get
This equation is, indeed, linear. With it is nonhomogeneous. - This equation is nonlinear because of the
term.
Classify each of the following equations as linear or nonlinear. If the equation is linear, determine further whether it is homogeneous or nonhomogeneous.
- Hint
-
Write the equation in standard form (Equation
) if necessary. Check for powers or functions of and its derivatives. - Answer a
-
Nonlinear Linear - Answer b
-
nonhomogeneous
Later in this section, we will see some techniques for solving specific types of differential equations. Before we get to that, however, let’s get a feel for how solutions to linear differential equations behave. In many cases, solving differential equations depends on making educated guesses about what the solution might look like. Knowing how various types of solutions behave will be helpful.
Consider the linear, homogeneous differential equation
Looking at this equation, notice that the coefficient functions are polynomials, with higher powers of
Solution
Let
Show that
- Hint
-
Calculate the derivatives and substitute them into the differential equation.
- Answer
-
This requires calculating
and .and
Inserting these derivatives along with
into Equation .Yes, this is a solution to the differential equation in Equation
.
Although simply finding any solution to a differential equation is important, mathematicians and engineers often want to go beyond finding one solution to a differential equation to finding all solutions to a differential equation. In other words, we want to find a general solution. Just as with first-order differential equations, a general solution (or family of solutions) gives the entire set of solutions to a differential equation. An important difference between first-order and second-order equations is that, with second-order equations, we typically need to find two different solutions to the equation to find the general solution. If we find two solutions, then any linear combination of these solutions is also a solution. We state this fact as the following theorem.
If
where
The proof of this superposition principle theorem is left as an exercise.
Consider the differential equation
Given that
Solution
Although this can be done through a simple application of the Superposition principle (Equation
Then
Thus,
Consider the differential equation
Given that
- Hint
-
Differentiate the function and substitute into the differential equation.
- Answer
-
Although this can be a simple application of the Superposition principle (Equation
), we can also set through it like in Example . We haveThen
Thus,
is a solution to the differential equation
Unfortunately, to find the general solution to a second-order differential equation, it is not enough to find any two solutions and then combine them. Consider the differential equation
Both
is not the general solution. This expression does not account for all solutions to the differential equation. In particular, it fails to account for the function
A set of functions
for all
In this chapter, we usually test sets of only two functions for linear independence, which allows us to simplify this definition. From a practical perspective, we see that two functions are linearly dependent if either one of them is identically zero or if they are constant multiples of each other.
First we show that if the functions meet the conditions given previously, then they are linearly dependent. If one of the functions is identically zero—say,
Next, we show that if two functions are linearly dependent, then either one is identically zero or they are constant multiples of one another. Assume
for all
Now, since we stated that
so one of the functions is identically zero. Now suppose
and we see that the functions are constant multiples of one another.
Two functions,
Determine whether the following pairs of functions are linearly dependent or linearly independent.
and and and and
Solution
so the functions are linearly dependent.- There is no constant
such that so the functions are linearly independent. - There is no constant
such that so the functions are linearly independent. Don’t get confused by the fact that the exponents are constant multiples of each other. With two exponential functions, unless the exponents are equal, the functions are linearly independent. - There is no constant
such that so the functions are linearly independent.
Determine whether the following pairs of functions are linearly dependent or linearly independent:
- Hint
-
Are the functions constant multiples of one another?
- Answer
-
Linearly independent
If we are able to find two linearly independent solutions to a second-order differential equation, then we can combine them to find the general solution. This result is formally stated in the following theorem.
If
where
When we say a family of functions is the general solution to a differential equation, we mean that
- every expression of that form is a solution and
- every solution to the differential equation can be written in that form, which makes this theorem extremely powerful.
If we can find two linearly independent solutions to a second order differential equation, we have, effectively, found all solutions to the second order differential equation—quite a remarkable statement. The proof of this theorem is beyond the scope of this text.
If
Solution
Note that
If
- Hint
-
Check for linear independence first.
- Answer
-
Second-Order Equations with Constant Coefficients
Now that we have a better feel for linear differential equations, we are going to concentrate on solving second-order equations of the form
where
Since all the coefficients are constants, the solutions are probably going to be functions with derivatives that are constant multiples of themselves. We need all the terms to cancel out, and if taking a derivative introduces a term that is not a constant multiple of the original function, it is difficult to see how that term cancels out. Exponential functions have derivatives that are constant multiples of the original function, so let’s see what happens when we try a solution of the form
If
Since
We call this the characteristic equation of the differential equation.
The characteristic equation of the second order differential equation
The characteristic equation is very important in finding solutions to differential equations of this form. We can solve the characteristic equation either by factoring or by using the quadratic formula
This gives three cases. The characteristic equation has
- distinct real roots;
- a single, repeated real root; or
- complex conjugate roots.
We consider each of these cases separately.
Case 1: Distinct Real Roots
If the characteristic equation has distinct real roots
where
For example, the differential equation
Case 2: Single Repeated Real Root
Things are a little more complicated if the characteristic equation has a repeated real root,
But,
Substituting both expressions into Equation
This shows that
where
For example, the differential equation
This factors into
Case 3: Complex Conjugate Roots
The third case we must consider is when
This creates a little bit of a problem for us. If we follow the same process we used for distinct real roots—using the roots of the characteristic equation as the coefficients in the exponents of exponential functions—we get the functions
Based on the roots
Using some smart choices for
We encountered exponential functions with complex exponents earlier. One of the key tools we used to express these exponential functions in terms of sines and cosines was Euler’s formula, which tells us that
for all real numbers
Going back to the general solution, we have
Applying Euler’s formula (Equation
Now, if we choose
as a real-value solution to Equation
as a second, linearly independent, real-value solution to Equation
Based on this, we see that if the characteristic equation has complex conjugate roots
where
For example, the differential equation
Summary of Results
We can solve second-order, linear, homogeneous differential equations with constant coefficients by finding the roots of the associated characteristic equation. The form of the general solution varies, depending on whether the characteristic equation has distinct, real roots; a single, repeated real root; or complex conjugate roots. The three cases are summarized in Table
| Characteristic Equation Roots | General Solution to the Differential Equation |
|---|---|
| Distinct real roots, |
|
| A repeated real root, |
|
| Complex conjugate roots |
- Write the differential equation in the form
- Find the corresponding characteristic equation
- Either factor the characteristic equation or use the quadratic formula to find the roots.
- Determine the form of the general solution based on whether the characteristic equation has distinct, real roots; a single, repeated real root; or complex conjugate roots.
Find the general solution to the following differential equations. Give your answers as functions of
Solution
Note that all these equations are already given in standard form (step 1).
- The characteristic equation is
(step 2). This factors into , so the roots of the characteristic equation are and (step 3). Then the general solution to the differential equation is - The characteristic equation is
(step 2). Applying the quadratic formula, we see this equation has complex conjugate roots (step 3). Then the general solution to the differential equation is - The characteristic equation is
(step 2). This factors into so the characteristic equation has a repeated real root (step 3). Then the general solution to the differential equation is - The characteristic equation is
(step 2). This factors into so the roots of the characteristic equation are and (step 3). Note that , so our first solution is just a constant. Then the general solution to the differential equation is - The characteristic equation is
(step 2). This factors into so the roots of the characteristic equation are and (step 3). Then the general solution to the differential equation is - The characteristic equation is
(step 2). This has complex conjugate roots (step 3). Note that , so the exponential term in our solution is just a constant. Then the general solution to the differential equation is
Find the general solution to the following differential equations:
- Hint
-
Find the roots of the characteristic equation.
- Answer a
-
- Answer b
-
Initial-Value Problems and Boundary-Value Problems
So far, we have been finding general solutions to differential equations. However, differential equations are often used to describe physical systems, and the person studying that physical system usually knows something about the state of that system at one or more points in time. For example, if a constant-coefficient differential equation is representing how far a motorcycle shock absorber is compressed, we might know that the rider is sitting still on his motorcycle at the start of a race, time
Sometimes we know the condition of the system at two different times. For example, we might know
Mathematicians, scientists, and engineers are interested in understanding the conditions under which an initial-value problem or a boundary-value problem has a unique solution. Although a complete treatment of this topic is beyond the scope of this text, it is useful to know that, within the context of constant-coefficient, second-order equations, initial-value problems are guaranteed to have a unique solution as long as two initial conditions are provided. Boundary-value problems, however, are not as well behaved. Even when two boundary conditions are known, we may encounter boundary-value problems with unique solutions, many solutions, or no solution at all.
Solve the following initial-value problem:
Solution
We already solved this differential equation in Example 17.6a. and found the general solution to be
Then
When
Then
So,
Solve the initial-value problem
- Hint
-
Use the initial conditions to determine values for
and . - Answer
-
Solve the following initial-value problem and graph the solution:
Solution
We already solved this differential equation in Example
Then
When
Therefore,

Solve the following initial-value problem and graph the solution:
- Hint
-
Use the initial conditions to determine values for
and - Answer
-
The following initial-value problem models the position of an object with mass attached to a spring. Spring-mass systems are examined in detail in Applications. The solution to the differential equation gives the position of the mass with respect to a neutral (equilibrium) position (in meters) at any given time. (Note that for spring-mass systems of this type, it is customary to define the downward direction as positive.)
Solve the initial-value problem and graph the solution. What is the position of the mass at time
Solution
In Example Example
Then
When
Thus,
This solution is represented in the following graph. At time

To calculate the velocity at time
Then
Suppose the following initial-value problem models the position (in feet) of a mass in a spring-mass system at any given time. Solve the initial-value problem and graph the solution. What is the position of the mass at time
- Hint
-
Use the initial conditions to determine values for
and . - Answer
-

At time
The mass is ft below equilibrium. At time The mass is moving downward at a speed of ft/sec.
In Example 17.6f. we solved the differential equation
Solution
We have
- Applying the first boundary condition given here, we get
So the solution is of the form When we apply the second boundary condition, though, we get for all values of . The boundary conditions are not sufficient to determine a value for so this boundary-value problem has infinitely many solutions. Thus, is a solution for any value of . - Applying the first boundary condition given here, we get
Applying the second boundary condition gives so In this case, we have a unique solution: . - Applying the first boundary condition given here, we get
However, applying the second boundary condition gives so We cannot have so this boundary value problem has no solution.
Key Concepts
- Second-order differential equations can be classified as linear or nonlinear, homogeneous or nonhomogeneous.
- To find a general solution for a homogeneous second-order differential equation, we must find two linearly independent solutions. If
and are linearly independent solutions to a second-order, linear, homogeneous differential equation, then the general solution is given by - To solve homogeneous second-order differential equations with constant coefficients, find the roots of the characteristic equation. The form of the general solution varies depending on whether the characteristic equation has distinct, real roots; a single, repeated real root; or complex conjugate roots.
- Initial conditions or boundary conditions can then be used to find the specific solution to a differential equation that satisfies those conditions, except when there is no solution or infinitely many solutions.
Key Equations
- Linear second-order differential equation
- Second-order equation with constant coefficients
Glossary
- boundary conditions
- the conditions that give the state of a system at different times, such as the position of a spring-mass system at two different times
- boundary-value problem
- a differential equation with associated boundary conditions
- characteristic equation
- the equation
for the differential equation
- homogeneous linear equation
- a second-order differential equation that can be written in the form
, but for every value of
- nonhomogeneous linear equation
- a second-order differential equation that can be written in the form
, but for some value of
- linearly dependent
- a set of functions
for whichthere are constants , not all zero, such that for all in the interval of interest
- linearly independent
- a set of functions
for which there are no constants , such that for all in the interval of interest


