Processing math: 82%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

5.2: Constant Coefficient Homogeneous Equations

( \newcommand{\kernel}{\mathrm{null}\,}\)

This section deals with homogeneous equations of the special form ay+by+cy=0, where a, b, and c are constant (a0). When you've completed this section you'll know everything there is to know about solving such equations.

If a,b, and c are real constants and a0, then

ay+by+cy=F(x)

is said to be a constant coefficient equation. In this section we consider the homogeneous constant coefficient equation

ay+by+cy=0.

As we’ll see, all solutions of Equation ??? are defined on (,). This being the case, we’ll omit references to the interval on which solutions are defined, or on which a given set of solutions is a fundamental set, etc., since the interval will always be (,).

The key to solving Equation ??? is that if y=erx where r is a constant then the left side of Equation ??? is a multiple of erx; thus, if y=erx then y=rerx and y=r2erx, so

ay+by+cy=ar2erx+brerx+cerx=(ar2+br+c)erx.

The quadratic polynomial

p(r)=ar2+br+c

is the characteristic polynomial of Equation ???, and p(r)=0 is the characteristic equation. From Equation ??? we can see that y=erx is a solution of Equation ??? if and only if p(r)=0.

The roots of the characteristic equation are given by the quadratic formula

r=b±b24ac2a.

Consider Three Cases
  • Case 1: b24ac>0, so the characteristic equation has two distinct real roots.
  • Case 2: b24ac=0, so the characteristic equation has a repeated real root.
  • Case 3: b24ac<0, so the characteristic equation has complex roots.

In each case we’ll start with an example.

Case 1: Distinct Real Roots

Example 5.2.1
  1. Find the general solution of y+6y+5y=0.
  2. Solve the initial value problem y+6y+5y=0,y(0)=3,y(0)=1.
Solution

a. The characteristic polynomial of Equation ??? is

p(r)=r2+6r+5=(r+1)(r+5).

Since p(1)=p(5)=0, y1=ex and y2=e5x are solutions of Equation ???. Since y2/y1=e4x is nonconstant, Theorem 5.1.6 implies that the general solution of Equation ??? is

y=c1ex+c2e5x.

b. We must determine c1 and c2 in Equation ??? so that y satisfies the initial conditions in Equation ???. Differentiating Equation ??? yields

y=c1ex5c2e5x.

Imposing the initial conditions y(0)=3,y(0)=1 in Equation ??? and Equation ??? yields

c1+5c2=3.c15c2=1.

The solution of this system is c1=7/2,c2=1/2. Therefore the solution of Equation ??? is

y=72ex12e5x.

Figure 5.2.1 is a graph of this solution.

If the characteristic equation has arbitrary distinct real roots r1 and r2, then y1=er1x and y2=er2x are solutions of ay+by+cy=0. Since y2/y1=e(r2r1)x is nonconstant, Theorem 5.1.6 implies that {y1,y2} is a fundamental set of solutions of ay+by+cy=0.

fig050201.svg
Figure 5.2.1 : y=72ex12e5x

Case 2: A Repeated Real Root

Example 5.2.2
  1. Find the general solution of y+6y+9y=0.
  2. Solve the initial value problem y+6y+9y=0,y(0)=3,y(0)=1.
Solution

a. The characteristic polynomial of Equation ??? is

p(r)=r2+6r+9=(r+3)2,

so the characteristic equation has the repeated real root r1=3. Therefore y1=e3x is a solution of Equation ???. Since the characteristic equation has no other roots, Equation ??? has no other solutions of the form erx. We look for solutions of the form y=uy1=ue3x, where u is a function that we’ll now determine. (This should remind you of the method of variation of parameters used in Section 2.1 to solve the nonhomogeneous equation y+p(x)y=f(x), given a solution y1 of the complementary equation y+p(x)y=0. It’s also a special case of a method called reduction of order that we’ll study in Section 5.6. For other ways to obtain a second solution of Equation ??? that’s not a multiple of e3x, see Exercises 5.1.9, 5.1.12, and 5.1.33.

If y=ue3x, then

y=ue3x3ue3xandy=ue3x6ue3x+9ue3x,

so

y+6y+9y=e3x[(u6u+9u)+6(u3u)+9u]=e3x[u(66)u+(918+9)u]=ue3x.

Therefore y=ue3x is a solution of Equation ??? if and only if u=0, which is equivalent to u=c1+c2x, where c1 and c2 are constants. Therefore any function of the form

y=e3x(c1+c2x)

is a solution of Equation ???. Letting c1=1 and c2=0 yields the solution y1=e3x that we already knew. Letting c1=0 and c2=1 yields the second solution y2=xe3x. Since y2/y1=x is nonconstant, Theorem 5.1.6 implies that {y1,y2} is fundamental set of solutions of Equation ???, and Equation ??? is the general solution.

b. Differentiating Equation ??? yields

y=3e3x(c1+c2x)+c2e3x.

Imposing the initial conditions y(0)=3,y(0)=1 in Equation ??? and Equation ??? yields c1=3 and 3c1+c2=1, so c2=8. Therefore the solution of Equation ??? is

y=e3x(3+8x).

Figure 5.2.2 is a graph of this solution.

fig050202.svg
Figure 5.2.2 : y=e3x(3+8x)

If the characteristic equation of ay+by+cy=0 has an arbitrary repeated root r1, the characteristic polynomial must be

p(r)=a(rr1)2=a(r22r1r+r21).

Therefore

ar2+br+c=ar2(2ar1)r+ar21,

which implies that b=2ar1 and c=ar21. Therefore ay+by+cy=0 can be written as a(y2r1y+r21y)=0. Since a0 this equation has the same solutions as

y2r1y+r21y=0.

Since p(r1)=0, t y1=er1x is a solution of ay+by+cy=0, and therefore of Equation ???. Proceeding as in Example 5.2.1 , we look for other solutions of Equation ??? of the form y=uer1x; then

y=uer1x+ruer1xandy=uer1x+2r1uer1x+r21uer1x,

so

y2r1y+r21y=erx[(u+2r1u+r21u)2r1(u+r1u)+r21u]=er1x[u+(2r12r1)u+(r212r21+r21)u]=uer1x.

Therefore y=uer1x is a solution of Equation ??? if and only if u=0, which is equivalent to u=c1+c2x, where c1 and c2 are constants. Hence, any function of the form

y=er1x(c1+c2x)

is a solution of Equation ???. Letting c1=1 and c2=0 here yields the solution y1=er1x that we already knew. Letting c1=0 and c2=1 yields the second solution y2=xer1x. Since y2/y1=x is nonconstant, Theorem 5.1.6 implies that {y1,y2} is a fundamental set of solutions of Equation ???, and Equation ??? is the general solution.

Case 3: Complex Conjugate Roots

Example 5.2.3
  1. Find the general solution of y+4y+13y=0.
  2. Solve the initial value problem y+4y+13y=0,y(0)=2,y(0)=3.
Solution

a. The characteristic polynomial of Equation ??? is

p(r)=r2+4r+13=r2+4r+4+9=(r+2)2+9.

The roots of the characteristic equation are r1=2+3i and r2=23i. By analogy with Case 1, it is reasonable to expect that e(2+3i)x and e(23i)x are solutions of Equation ???. This is true (see Exercise 5.2.34); however, there are difficulties here, since you are probably not familiar with exponential functions with complex arguments, and even if you are, it is inconvenient to work with them, since they are complex–valued. We’ll take a simpler approach, which we motivate as follows: the exponential notation suggests that

e(2+3i)x=e2xe3ixande(23i)x=e2xe3ix,

so even though we haven’t defined e3ix and e3ix, it is reasonable to expect that every linear combination of e(2+3i)x and e(23i)x can be written as y=ue2x, where u depends upon x. To determine u, we note that if y=ue2x then

y=ue2x2ue2xandy=ue2x4ue2x+4ue2x,

so

y+4y+13y=e2x[(u4u+4u)+4(u2u)+13u]=e2x[u(44)u+(48+13)u]=e2x(u+9u).

Therefore y=ue2x is a solution of Equation ??? if and only if

u+9u=0.

From Example 5.1.2, the general solution of this equation is

u=c1cos3x+c2sin3x.

Therefore any function of the form

y=e2x(c1cos3x+c2sin3x)

is a solution of Equation ???. Letting c1=1 and c2=0 yields the solution y1=e2xcos3x. Letting c1=0 and c2=1 yields the second solution y2=e2xsin3x. Since y2/y1=tan3x is nonconstant, Theorem 5.1.6 implies that {y1,y2} is a fundamental set of solutions of Equation ???, and Equation ??? is the general solution.

b. Imposing the condition y(0)=2 in Equation ??? shows that c1=2. Differentiating Equation ??? yields

y=2e2x(c1cos3x+c2sin3x)+3e2x(c1sin3x+c2cos3x),

and imposing the initial condition y(0)=3 here yields 3=2c1+3c2=4+3c2, so c2=1/3. Therefore the solution of Equation ??? is

y=e2x(2cos3x+13sin3x).

Figure 5.2.3 is a graph of this function.

Now suppose the characteristic equation of ay+by+cy=0 has arbitrary complex roots; thus, b24ac<0 and, from Equation ???, the roots are

r1=b+i4acb22a,r2=bi4acb22a,

which we rewrite as
r1=λ+iω,r2=λiω,

with

λ=b2a,ω=4acb22a.

Don’t memorize these formulas. Just remember that r1 and r2 are of the form Equation ???, where λ is an arbitrary real number and ω is positive; λ and ω are the real and imaginary parts, respectively, of r1. Similarly, λ and ω are the real and imaginary parts of r2. We say that r1 and r2 are complex conjugates,

fig050203.svg
Figure 5.2.3 : y=e2x(2cos3x+13sin3x)

which means that they have the same real part and their imaginary parts have the same absolute values, but opposite signs.

As in Example 5.2.3 , it is reasonable to to expect that the solutions of ay''+by'+cy=0 are linear combinations of e^{(\lambda+i\omega)x} and e^{(\lambda-i\omega)x}. Again, the exponential notation suggests that

e^{(\lambda+i\omega)x}=e^{\lambda x}e^{i\omega x}\quad \text{and} \quad e^{(\lambda-i\omega)x}=e^{\lambda x}e^{-i\omega x},\nonumber

so even though we haven’t defined e^{i\omega x} and e^{-i\omega x}, it is reasonable to expect that every linear combination of e^{(\lambda+i\omega)x} and e^{(\lambda-i\omega)x} can be written as y=ue^{\lambda x}, where u depends upon x. To determine u we first observe that since r_1=\lambda+i\omega and r_2=\lambda-i\omega are the roots of the characteristic equation, p must be of the form

\begin{align*} p(r)&=a(r-r_1)(r-r_2)\\[4pt] &=a(r-\lambda-i\omega)(r-\lambda+i\omega) \\[4pt] &= a \left[(r-\lambda)^2+\omega^2\right] \\[4pt] &=a(r^2-2\lambda r +\lambda^2+\omega^2). \end{align*} \nonumber

Therefore ay''+by'+cy=0 can be written as

a\left[y''-2\lambda y'+(\lambda^2+\omega^2)y\right]=0.\nonumber

Since a\ne0 this equation has the same solutions as

\label{eq:5.2.18} y''-2\lambda y'+(\lambda^2+\omega^2)y=0.

To determine u we note that if y=ue^{\lambda x} then

y'=u'e^{\lambda x}+\lambda ue^{\lambda x}\quad \text{and} \quad y''=u''e^{\lambda x}+2\lambda u'e^{\lambda x}+\lambda^2ue^{\lambda x}.\nonumber

Substituting these expressions into Equation \ref{eq:5.2.18} and dropping the common factor e^{\lambda x} yields

(u''+2\lambda u'+\lambda^2 u)-2\lambda(u'+\lambda u) +(\lambda^2+\omega^2)u=0,\nonumber

which simplifies to

u''+\omega^2 u=0.\nonumber

From Example 5.1.2, the general solution of this equation is

u=c_1\cos\omega x +c_2\sin\omega x.\nonumber

Therefore any function of the form

\label{eq:5.2.19} y=e^{\lambda x}(c_1\cos\omega x+c_2\sin\omega x)

is a solution of Equation \ref{eq:5.2.18}. Letting c_1=1 and c_2=0 here yields the solution y_1=e^{\lambda x}\cos\omega x. Letting c_1=0 and c_2=1 yields a second solution y_2=e^{\lambda x}\sin\omega x. Since y_2/y_1=\tan\omega x is nonconstant, so Theorem 5.1.6 implies that \{y_1,y_2\} is a fundamental set of solutions of Equation \ref{eq:5.2.18}, and Equation \ref{eq:5.2.19} is the general solution.

Summary

The next theorem summarizes the results of this section.

Theorem 5.2.1

Let p(r)=ar^2+br+c be the characteristic polynomial of

\label{eq:5.2.20} ay''+by'+cy=0.

Then:
  1. If p(r)=0 has distinct real roots r_1 and r_2, then the general solution of Equation \ref{eq:5.2.20} is y=c_1e^{r_1x}+c_2e^{r_2x}.\nonumber
  2. If p(r)=0 has a repeated root r_1, then the general solution of Equation \ref{eq:5.2.20} is y=e^{r_1x}(c_1+c_2x).\nonumber
  3. If p(r)=0 has complex conjugate roots r_1=\lambda+i\omega and r_2=\lambda-i\omega (where \omega>0), then the general solution of Equation \ref{eq:5.2.20} is y=e^{\lambda x}(c_1\cos\omega x+c_2\sin\omega x).\nonumber

This page titled 5.2: Constant Coefficient Homogeneous Equations is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by William F. Trench via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?