3.3 Linear Equations with Constant Coefficients

INTRODUCTION

We have seen that the linear first-order DE y′ + ay = 0, where a is a constant, possesses the exponential solution y = c1eax on the interval (−∞, ∞). Therefore, it is natural to ask whether exponential solutions exist for homogeneous linear higher-order DEs

any(n) + an−1y(n−1) + … + a1y′ + a0y = 0, (1)

where the coefficients ai, i = 0, 1, …, n are real constants and an ≠ 0. The surprising fact is that all solutions of these higher-order equations are either exponential functions or are constructed out of exponential functions.

Auxiliary Equation

We begin by considering the special case of a homogeneous linear second-order equation

ay″ + by′ + cy = 0. (2)

If we try a solution of the form y = emx, then after substituting y′ = memx and y″ = m2emx equation (2) becomes

am2emx + bmemx + cemx = 0 or emx(am2 + bm + c) = 0.

Since emx is never zero for real values of x, it is apparent that the only way that this exponential function can satisfy the differential equation (2) is to choose m as a root of the quadratic equation

am2 + bm + c = 0. (3)

This last equation is called the auxiliary equation of the differential equation (2). Since the two roots of (3) are m1 = (− b + and m2 = (− b, there will be three forms of the general solution of (1) corresponding to the three cases:

  • m1 and m2 are real and distinct (b2 − 4ac > 0),
  • m1 and m2 are real and equal (b2 − 4ac = 0), and
  • m1 and m2 are conjugate complex numbers (b2 − 4ac < 0).

We discuss each of these cases in turn.

Case I: Distinct Real Roots Under the assumption that the auxiliary equation (3) has two unequal real roots m1 and m2, we find two solutions, y1 = and y2 = , respectively. We see that these functions are linearly independent on (−∞, ∞) and hence form a fundamental set. It follows that the general solution of (2) on this interval is

y = c1 + c2. (4)

Case II: Repeated Real Roots When m1 = m2 we necessarily obtain only one exponential solution, y1 = . From the quadratic formula we find that m1 = −b/2a since the only way to have m1 = m2 is to have b2 − 4ac = 0. It follows from the discussion in Section 3.2 that a second solution of the equation is

(5)

In (5) we have used the fact that − b/a = 2m1. The general solution is then

y = c1 + c2x. (6)

Case III: Conjugate Complex Roots If m1 and m2 are complex, then we can write m1 = α + and m2 = α, where α and β > 0 are real and i2 = −1. Formally, there is no difference between this case and Case I, hence

y = C1e(α + )x + C2e(αiβ)x.

However, in practice we prefer to work with real functions instead of complex exponentials. To this end we use Euler’s formula:

e = cos θ + i sin θ,

where θ is any real number.* It follows from this formula that

eiβx = cos βx + i sin βx and eiβx = cos βxi sin βx, (7)

where we have used cos(−βx) = cos βx and sin(−βx) = −sin βx. Note that by first adding and then subtracting the two equations in (7), we obtain, respectively,

eiβx + eiβx = 2 cos βx and eiβxeiβx = 2i sin βx.

Since y = C1e(α+iβ)x + C2e(α−iβ)x is a solution of (2) for any choice of the constants C1 and C2, the choices C1 = C2 = 1 and C1 = 1, C2 = −1 give, in turn, two solutions:

Hence from Corollary (a) of Theorem 3.1.2 the last two results show that eαx cos βx and eαx sin βx are real solutions of (2). Moreover, these solutions form a fundamental set on (−∞, ∞). Consequently, the general solution of (2) on (−∞, ∞) is

y = c1eαx cos βx + c2eαx sin βx = eαx(c1 cos βx + c2 sin βx). (8)

EXAMPLE 1 Second-Order DEs

Solve the following differential equations.

  1. 2y″ − 5y′ − 3y = 0
  2. y″ − 10y′ + 25y = 0
  3. y″ + 4y′ + 7y = 0
SOLUTION

We give the auxiliary equations, the roots, and the corresponding general solutions.

  1. 2m2 − 5m − 3 = (2m + 1)(m − 3) = 0, m1 = −, m2 = 3. From (4),

    y = c1ex/2 + c2e3x.

  2. m2 − 10m + 25 = (m − 5)2 = 0, m1 = m2 = 5. From (6),

    y = c1e5x + c2xe5x.

  3. m2 + 4m + 7 = 0, m1 = −2 + i, m2 = −2 −i. From (8) with α = −2, β = , we have

    y = e−2x(c1 cos x + c2 ).

EXAMPLE 2 An Initial-Value Problem

Solve the initial-value problem 4y″ + 4y′ + 17y = 0, y(0) = −1, y′(0) = 2.

SOLUTION

By the quadratic formula we find that the roots of the auxiliary equation 4m2 + 4m + 17 = 0 are m1 = − + 2i and m2 = − − 2i. Thus from (8) we have y = ex/2(c1 cos 2x + c2 sin 2x). Applying the condition y(0) = −1, we see from e0(c1 cos 0 + c2 sin 0) = −1 that c1 = −1. Differentiating y = ex/2(−cos 2x + c2 sin 2x) and then using y′(0) = 2 gives 2c2 + = 2 or c2 = . Hence the solution of the IVP is y = ex/2(−cos 2x + sin 2x). In FIGURE 3.3.1 we see that the solution is oscillatory but y → 0 as x → ∞.

The curve is graphed on an x y coordinate plane. It follows a decaying oscillatory pattern. It enters the bottom left in the third quadrant, goes up and slightly to the right, and reaches a high point in the second quadrant. Then, it goes down to the right to a point in the third quadrant, again goes up and to the right through (negative 1, 0), and reaches a point in the first quadrant. It goes down and to the right to a point in the fourth quadrant, goes up and to the right to a point in the first quadrant, goes down to the right, and ends at a point on the positive x axis.

FIGURE 3.3.1 Graph of solution of IVP in Example 2

Two Equations Worth Knowing

The two linear differential equations

y″ + k2y = 0 and y″k2y = 0,

k real, are important in applied mathematics. For y″ + k2y = 0, the auxiliary equation m2 + k2 = 0 has imaginary roots m1 = ki and m2 = − ki. With α = 0 and β = k in (8), the general solution of the DE is seen to be

y = c1 cos kx + c2 sin kx. (9)

On the other hand, the auxiliary equation m2k2 = 0 for y″k2y = 0 has distinct real roots m1 = k and m2 = − k and so by (4) the general solution of the DE is

y = c1ekx + c2ekx. (10)

Notice that if we choose c1 = c2 = and c1 = , c2 = − in (10), we get the particular solutions y = (ekx + ekx) = cosh kx and y = (ekxekx) = sinh kx. Since cosh kx and sinh kx are linearly independent on any interval of the x-axis, an alternative form for the general solution of y″k2y = 0 is

y = c1 cosh kx + c2 sinh kx. (11)

See Problems 43, 44, and 66 in Exercises 3.3.

Higher-Order Equations

In general, to solve an nth-order differential equation

an y(n) + an−1 y(n−1) + … + a2 y″ + a1 y′ + a0 y = 0, (12)

where the ai, i = 0, 1, …, n are real constants, we must solve an nth-degree polynomial equation

anmn + an−1mn−1 + … + a2m2 + a1m + a0 = 0. (13)

If all the roots of (13) are real and distinct, then the general solution of (12) is

It is somewhat harder to summarize the analogues of Cases II and III because the roots of an auxiliary equation of degree greater than two can occur in many combinations. For example, a fifth-degree equation could have five distinct real roots, or three distinct real and two complex roots, or one real and four complex roots, or five real but equal roots, or five real roots but with two of them equal, and so on. When m1 is a root of multiplicity k of an nth-degree auxiliary equation (that is, k roots are equal to m1), it can be shown that the linearly independent solutions are

, …,

and the general solution must contain the linear combination

Lastly, it should be remembered that when the coefficients are real, complex roots of an auxiliary equation always appear in conjugate pairs. Thus, for example, a cubic polynomial equation can have at most two complex roots.

EXAMPLE 3 Third-Order DE

Solve y‴ + 3y″ − 4y = 0.

SOLUTION

It should be apparent from inspection of m3 + 3m2 − 4 = 0 that one root is m1 = 1 and so m − 1 is a factor of m3 + 3m2 − 4. By division we find

m3 + 3m2 − 4 = (m − 1)(m2 + 4m + 4) = (m − 1)(m + 2)2,

and so the other roots are m2 = m3 = −2. Thus the general solution of the DE is

y = c1ex + c2e−2x + c3xe−2x.

EXAMPLE 4 Fourth-Order DE

Solve

SOLUTION

The auxiliary equation m4 + 2m2 + 1 = (m2 + 1)2 = 0 has roots m1 = m3 = i and m2 = m4 = − i. Thus from Case II the solution is

y = C1eix + C2eix + C3xeix + C4xeix.

By Euler’s formula the grouping C1eix + C2eix can be rewritten as c1 cos x + c2 sin x after a relabeling of constants. Similarly, x(C3eix + C4eix) can be expressed as x(c3 cos x + c4 sin x). Hence the general solution is y = c1 cos x + c2 sin x + c3x cos x + c4x sin x.

Repeated Complex Roots

Example 4 illustrates a special case when the auxiliary equation has repeated complex roots. In general, if m1 = α + iβ, β > 0, is a complex root of multiplicity k of an auxiliary equation with real coefficients, then its conjugate m2 = α is also a root of multiplicity k. From the 2k complex-valued solutions

we conclude, with the aid of Euler’s formula, that the general solution of the corresponding differential equation must then contain a linear combination of the 2k real linearly independent solutions

In Example 4 we identify k = 2, α = 0, and β = 1.

Rational Roots

Of course the most difficult aspect of solving constant-coefficient differential equations is finding roots of auxiliary equations of degree greater than two. Something we can try is to test the auxiliary equation for rational roots. Recall from precalculus mathematics, if m1 = p/q is a rational root (expressed in lowest terms) of a polynomial equation anmn + . . . + a1m + a0 = 0 with integer coefficients, then the integer p is a factor of the constant term a0 and the integer q is a factor of the leading coefficient an.

EXAMPLE 5 Finding Rational Roots

Solve 3y″′ + 5y″ + 10y′ − 4y = 0.

SOLUTION

To solve the equation we must solve the cubic polynomial auxiliary equation 3m3 + 5m2 + 10m − 4 = 0. With the identifications a0 = −4 and a3 = 3 then the integer factors of a0 and a3 are, respectively, p: ±1, ±2, ±4 and q: ±1, ±3. So the possible rational roots of the cubic equation are

Each of these numbers can then be tested—say, by synthetic division. In this way we discover both the root and the factorization

3m3 + 5m2 + 10m − 4 = (m)(3m2 + 6m + 12).

The quadratic formula applied to 3m2 + 6m + 12 = 0 then yields the remaining two roots and Therefore the general solution of the given differential equation is

Use of Computers

Finding roots or approximations of roots of polynomial equations is a routine problem with an appropriate calculator or computer software. The computer algebra systems Mathematica and Maple can solve polynomial equations (in one variable) of degree less than five in terms of algebraic formulas. For the auxiliary equation in the preceding paragraph, the commands

yield immediately their representations of the roots . For auxiliary equations of higher degree it may be necessary to resort to numerical commands such as NSolve and FindRoot in Mathematica. Because of their capability of solving polynomial equations, it is not surprising that some computer algebra systems are also able to give explicit solutions of homogeneous linear constant-coefficient differential equations. For example, the inputs

give, respectively,

(14)

and

Translated, this means y = c2ex cos x + c1ex sin x is a solution of y″ + 2y′ + 2y = 0.

In the classic text Differential Equations by Ralph Palmer Agnew* (used by the author as a student), the following statement is made:

It is not reasonable to expect students in this course to have computing skills and equipment necessary for efficient solving of equations such as

(15)

Although it is debatable whether computing skills have improved in the intervening years, it is a certainty that technology has. If one has access to a computer algebra system, equation (15) could be considered reasonable. After simplification and some relabeling of the output, Mathematica yields the (approximate) general solution

We note in passing that the DSolve and dsolve commands in Mathematica and Maple, like most aspects of any CAS, have their limitations.

Finally, if we are faced with an initial-value problem consisting of, say, a fourth-order differential equation, then to fit the general solution of the DE to the four initial conditions we must solve a system of four linear equations in four unknowns (the c1, c2, c3, c4 in the general solution). Using a CAS to solve the system can save lots of time. See Problems 37, 38, 75, and 76 in Exercises 3.3.

REMARKS

In case you are wondering, the method of this section also works for homogeneous linear first-order differential equations ay′ + by = 0 with constant coefficients. For example, to solve, say, 2y′ + 7y = 0, we substitute y = emx into the DE to obtain the auxiliary equation 2m + 7 = 0. Using m = , the general solution of the DE is then y = c1e−7x/2.

3.3 Exercises Answers to selected odd-numbered problems begin on page ANS-5.

In Problems 1–14, find the general solution of the given second-order differential equation.

  1. 4y″ + y′ = 0
  2. y″ − 36y = 0
  3. y″y′ − 6y = 0
  4. y″ − 3y′ + 2y = 0
  5. y″ + 8y′ + 16y = 0
  6. y″ − 10y′ + 25y = 0
  7. 12y″ − 5y′ − 2y = 0
  8. y″ + 4y′y = 0
  9. y″ + 9y = 0
  10. 3y″ + y = 0
  11. y″ − 4y′ + 5y = 0
  12. 2y″ + 2y′ + y = 0
  13. 3y″ + 2y′ + y = 0
  14. 2y″ − 3y′ + 4y = 0

In Problems 15–30, find the general solution of the given higher-order differential equation.

  1. y‴ − 4y″ − 5y′ = 0
  2. y‴ − y = 0
  3. y‴ − 5y″ + 3y′ + 9y = 0
  4. y‴ + 3y″ − 4y′ − 12y = 0
  5. y‴ + 3y″ + 3y′ + y = 0
  6. y‴ − 6y″ + 12y′ − 8y = 0
  7. y(4) + y‴ + y″ = 0
  8. y(4) − 2y″ + y = 0

In Problems 31–38, solve the given initial-value problem.

  1. y″ + 16y = 0, y(0) = 2, y′(0) = −2
  2. ,
  3. ,
  4. 4y″ − 4y′ − 3y = 0, y(0) = 1, y′(0) = 5
  5. y″ + y′ + 2y = 0, y(0) = y′(0) = 0
  6. y″ − 2y′ + y = 0, y(0) = 5, y′(0) = 10
  7. y‴ + 12y″ + 36y′ = 0, y(0) = 0, y′(0) = 1, y″(0) = −7
  8. y‴ + 2y″ − 5y′ − 6y = 0, y(0) = y′(0) = 0, y″(0) = 1

In Problems 39−42, solve the given boundary-value problem.

  1. y″ − 10y′ + 25y = 0, y(0) = 1, y(1) = 0
  2. y″ + 4y = 0, y(0) = 0, y(π) = 0
  3. y″ + y = 0, y′(0) = 0, y′(π/2) = 0
  4. y″ − 2y′ + 2y = 0, y(0) = 1, y(π) = 1

In Problems 43 and 44, solve the given problem first using the form of the general solution given in (10). Solve again, this time using the form given in (11).

  1. y″ − 3y = 0, y(0) = 1, y′(0) = 5
  2. y″y = 0, y(0) = 1, y′(1) = 0

In Problems 45 and 46, find all numbers α > 0 so that the given boundary-value problem possesses nontrivial (that is, nonzero) solutions.

  1. y″ + α2y = 0, y(0) = 0, y(2) = 0
  2. y″ + α2y = 0, y′(0) = 0, y(4) = 0

In Problems 47–52, each figure represents the graph of a particular solution of one of the following differential equations:

  1. y″ − 3y′ − 4y = 0
  2. y″ + 4y = 0
  3. y″ + 2y′ + y = 0
  4. y″ + y = 0
  5. y″ + 2y′ + 2y = 0
  6. y″ − 3y′ + 2y = 0

Match a solution curve with one of the differential equations. Explain your reasoning.

  1. The curve is graphed on an x y coordinate plane. It is a convex curve. It enters the left of the viewing window in the second quadrant on the negative x axis, goes up and to the right through the positive y axis, and exits the top of the viewing window in the first quadrant.

    FIGURE 3.3.2 Graph for Problem 47

  2. The curve is graphed on an x y coordinate plane. It is a convex curve. It enters the top left of the viewing window in the second quadrant, goes down and to the right, and reaches a low point in the second quadrant. Then, it goes up and to the right through the positive y axis, and exits the top of the viewing window in the first quadrant.

    FIGURE 3.3.3 Graph for Problem 48

  3. The curve is graphed on an x y coordinate plane. It follows a decaying oscillatory pattern. It enters the top left in the second quadrant, goes down and to the right, and reaches a low point in the third quadrant. Then, it goes up to the right to a point in the second quadrant, again goes down and to the right to a point in the third quadrant. It goes up and to the right through the origin to a point in the first quadrant, goes down and to the right to a point in the fourth quadrant, again goes up and to the right to a point in the first quadrant, goes down to the right, and ends on the positive x axis.

    FIGURE 3.3.4 Graph for Problem 49

  4. The curve is graphed on an x y coordinate plane. It enters the bottom of the viewing window in the third quadrant, goes up and to the right through the origin, and reaches a high point in the first quadrant. Then, it goes down and to the right gradually and exits the right of the viewing window in the first quadrant just above the positive x axis.

    FIGURE 3.3.5 Graph for Problem 50

  5. The curve is graphed on an x y coordinate plane. It follows a wave pattern. It enters the left of the viewing window in the third quadrant, goes up and to the right through the point (negative pi, 0), and reaches a point in the second quadrant. Then, it goes down and to the right through the origin, reaches a point in the fourth quadrant, again goes up and to the right through the point (pi, 0), and exits the right of the viewing window in the first quadrant.

    FIGURE 3.3.6 Graph for Problem 51

  6. The curve is graphed on an x y coordinate plane. It follows a constant-amplitude wave pattern. It enters the bottom left of the viewing window in the third quadrant, goes up and to the right through the point (negative pi, 0), and reaches a point in the second quadrant. Then, it goes down and to the right to a point in the third quadrant, again goes up and to the right through the origin, and reaches a point in the first quadrant. It goes down and to the right to a point in the fourth quadrant, again goes up and to the right through the point (pi, 0), and exits the top right of the viewing window in the first quadrant.

    FIGURE 3.3.7 Graph for Problem 52

In Problems 53–62, find a homogeneous linear differential equation with constant coefficients whose general solution is given.

Discussion Problems

  1. Two roots of a cubic auxiliary equation with real coefficients are m1 = − and m2 = 3 + i. What is the corresponding homogeneous linear differential equation?
  2. Find the general solution of y‴ + 6y″ + y′ − 34y = 0 if it is known that y1 = e−4x cos x is one solution.
  3. To solve y(4) + y = 0 we must find the roots of m4 + 1 = 0. This is a trivial problem using a CAS, but it can also be done by hand working with complex numbers. Observe that m4 + 1 = (m2 + 1)2 − 2m2. How does this help? Solve the differential equation.
  4. Verify that y = sinh x − 2 cos (x + π/6) is a particular solution of y(4)y = 0. Reconcile this particular solution with the general solution of the DE.
  5. The complex number 3 + 2i is a root of multiplicity 3 of the auxiliary equation of a homogeneous linear sixth-order differential equation with real constant coefficients. Find the general solution of the differential equation.
  6. Find the general solution of the differential equation

    if the auxiliary equation is

  7. Consider the boundary-value problem y″ + λy = 0, y(0) = 0, y(π/2) = 0. Discuss: Is it possible to determine real values of λ so that the problem possesses (a) trivial solutions? (b) nontrivial solutions?
  8. In the study of techniques of integration in calculus, certain indefinite integrals of the form ∫ eax f(x) dx could be evaluated by applying integration by parts twice, recovering the original integral on the right-hand side, solving for the original integral, and obtaining a constant multiple keax f(x) dx on the left-hand side. Then the value of the integral is found by dividing by k. Discuss: For what kinds of functions f does the described procedure work? Your solution should lead to a differential equation. Carefully analyze this equation and solve for f.

Computer Lab Assignments

In Problems 71–74, use a computer either as an aid in solving the auxiliary equation or as a means of directly obtaining the general solution of the given differential equation. If you use a CAS to obtain the general solution, simplify the output and, if necessary, write the solution in terms of real functions.

  1. y‴ − 6y″ + 2y′ + y = 0
  2. 6.11y‴ + 8.59y″ + 7.93y′ + 0.778y = 0
  3. 3.15y(4) − 5.34y″ + 6.33y′ − 2.03y = 0
  4. y(4) + 2y″y′ + 2y = 0

In Problems 75 and 76, use a CAS as an aid in solving the auxiliary equation. Form the general solution of the differential equation. Then use a CAS as an aid in solving the system of equations for the coefficients ci, i = 1, 2, 3, 4 that result when the initial conditions are applied to the general solution.

  1. 2y(4) + 3y‴ − 16y″ + 15y′ − 4y = 0,

    y(0) = −2, y′(0) = 6, y″(0) = 3, y‴(0) =

  2. y(4) − 3y‴ + 3y″y′ = 0,

    y(0) = y′(0) = 0, y″(0) = y‴(0) = 1

 

* A formal derivation of Euler’s formula can be obtained from the Maclaurin series by substituting x = , using i2 = −1, i3 = − i, . . ., and then separating the series into real and imaginary parts. The plausibility thus established, we can adopt cos θ + i sin θ as the definition of e.

*McGraw-Hill, New York, 1960.