Learning Objectives
- Use the roots of the characteristic equation to find the solution to a homogeneous linear equation.
Now that we have a better feel for linear differential equations, we are going to concentrate on solving second-order equations of the form
[latex]\large{ay^{\prime\prime}+by^\prime+cy=0}[/latex]
where [latex]a[/latex], [latex]b[/latex], and [latex]c[/latex] are constants.
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 [latex]y(x)=e^{\lambda x}[/latex], where [latex]\lambda[/latex] (the lowercase Greek letter lambda) is some constant.
If [latex]y(x)=e^{\lambda x}[/latex], then [latex]y^\prime(x)=\lambda e^{\lambda x}[/latex] and [latex]y^{\prime\prime}(x)=\lambda^2e^{\lambda x}[/latex]. Substituting these expressions into a linear second-order differential equation, we get
[latex]\begin{aligned} ay^{\prime\prime}+by^\prime+cy&=a(\lambda^2e^{\lambda x})+b(\lambda e^{\lambda x})+ce^{\lambda x} \\ &=e^{\lambda x}(a\lambda^2+b\lambda+c) \end{aligned}[/latex].
Since [latex]e^{\lambda x}[/latex] is never zero, this expression can be equal to zero for all [latex]x[/latex] only if
[latex]\large{a\lambda^1+b\lambda+c=0}[/latex].
We call this the characteristic equation of the differential equation.
definition
The characteristic equation of the differential equation [latex]ay^{\prime\prime}+by^\prime+cy=0[/latex] is [latex]a\lambda^2+b\lambda+c+0[/latex].
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
[latex]\large{\lambda=\frac{-b\pm\sqrt{b^2-4ac}}{2a}}[/latex].
This gives three cases. The characteristic equation has (1) distinct real roots; (2) a single, repeated real root; or (3) complex conjugate roots. We consider each of these cases separately.
Distinct Real Roots
If the characteristic equation has distinct real roots [latex]\lambda_1[/latex] and [latex]\lambda_2[/latex], then [latex]e^{\lambda_1 x}[/latex] and [latex]e^{\lambda_2 x}[/latex] are linearly independent solutions to Example “Classifying Second-Order Equations”, and the general solution is given by
[latex]\large{y(x)=c_1e^{\lambda_1 x}+c_2e^{\lambda_2 x}}[/latex],
where [latex]c_1[/latex] and [latex]c_2[/latex] are constants.
For example, the differential equation [latex]y^{\prime\prime}9y^\prime+14y=0[/latex] has the associated characteristic equation [latex]\lambda^2+9\lambda+14=0[/latex]. This factors into [latex](\lambda+2)(\lambda+7)=0[/latex], which has roots [latex]\lambda_1=-2[/latex] and [latex]\lambda_2=-7[/latex]. Therefore, the general solution to this differential equation is
[latex]\large{y(x)=c_1e^{-2}+c_2e^{-7x}}[/latex].
Single Repeated Real Root
Things are a little more complicated if the characteristic equation has a repeated real root, [latex]\lambda[/latex]. In this case, we know [latex]e^{\lambda x}[/latex] is a solution to Example “Classifying Second-Order Equations”, but it is only one solution and we need two linearly independent solutions to determine the general solution. We might be tempted to try a function of the form [latex]ke^{\lambda x}[/latex], where [latex]k[/latex] is some constant, but it would not be linearly independent of [latex]e^{\lambda x}[/latex]. Therefore, let’s try [latex]xe^{\lambda x}[/latex] as the second solution. First, note that by the quadratic formula,
[latex]\large{\lambda=\frac{-b\pm\sqrt{b^2-4ac}}{2a}}[/latex].
But, [latex]\lambda[/latex] is a repeated root, so [latex]b^2-4ac=0[/latex] and [latex]\lambda=\frac{-b}{2a}[/latex]. Thus, if [latex]y=xe^{\lambda x}[/latex], we have
[latex]\large{y^\prime=e^{\lambda x}+\lambda xe^{\lambda x}\text{ and }y^{\prime\prime}=2\lambda e^{\lambda x}+\lambda^2xe^{\lambda x}}[/latex].
Substituting these expressions into a linear second-order differential equation, we see that
[latex]\begin{aligned} ay^{\prime\prime}+by^\prime+cy&=a(2\lambda e^{\lambda x}+\lambda^2e^{\lambda x})+b(e^{\lambda x}+\lambda xe^{\lambda x})+cxe^{\lambda x} \\ &=xe^{\lambda x}(a\lambda^2+b\lambda+c)+e^{\lambda x}(2a\lambda+b) \\ &=xe^{\lambda x}(0)+e^{\lambda x}\left(2\left(\frac{-b}{2a}\right)+b\right) \\ &=0+e^{\lambda x}(0) \\ =0 \end{aligned}[/latex].
This shows that [latex]xe^{\lambda x}[/latex] is a solution to a linear second-order differential equation. Since [latex]e^{\lambda x}[/latex] and [latex]xe^{\lambda x}[/latex] are linearly independent, when the characteristic equation has a repeated root [latex]\lambda[/latex], the general solution to a linear second-order differential equation is given by
[latex]\large{y(x)=c_1e^{\lambda x}+c_2xe^{\lambda x}}[/latex],
where [latex]c_1[/latex] and [latex]c_2[/latex] are constants.
For example, the differential equation [latex]y^{\prime\prime}+12y^\prime+36y=0[/latex] has the associated characteristic equation [latex]\lambda^2+12\lambda+36=0[/latex]. This factors into [latex](\lambda+6)^2[/latex], which has a repeated root [latex]\lambda=-6[/latex]. Therefore, the general solution to this differential equation is
Complex Conjugate Roots
The third case we must consider is when [latex]b^2-4ac<0[/latex]. In this case, when we apply the quadratic formula, we are taking the square root of a negative number. We must use the imaginary number [latex]i=\sqrt{-1}[/latex] to find the roots, which take the form [latex]\lambda_1=\alpha+\beta i[/latex] and [latex]\lambda_2=\alpha-\beta i[/latex]. The complex number [latex]\alpha+\beta i[/latex] is called the conjugate of [latex]\alpha-\beta i[/latex]. Thus, we see that when [latex]b^2-4ac<0[/latex], the roots of our characteristic equation are always complex conjugates.
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 [latex]e^{(\alpha+\beta i)x}[/latex] and [latex]e^{(\alpha-\beta i)x}[/latex] as our solutions. However, there are problems with this approach. First, these functions take on complex (imaginary) values, and a complete discussion of such functions is beyond the scope of this text. Second, even if we were comfortable with complex-value functions, in this course we do not address the idea of a derivative for such functions. So, if possible, we’d like to find two linearly independent real-value solutions to the differential equation. For purposes of this development, we are going to manipulate and differentiate the functions [latex]e^{(\alpha+\beta i)x}[/latex] and [latex]e^{(\alpha-\beta i)x}[/latex] as if they were real-value functions. For these particular functions, this approach is valid mathematically, but be aware that there are other instances when complex-value functions do not follow the same rules as real-value functions. Those of you interested in a more in-depth discussion of complex-value functions should consult a complex analysis text.
Based on the roots [latex]\alpha\pm\beta i[/latex] of the characteristic equation, the functions [latex]e^{(\alpha+\beta i)x}[/latex] and [latex]e^{(\alpha-\beta i)x}[/latex] are linearly independent solutions to the differential equation. and the general solution is given by
[latex]\large{y(x)=c_1e^{(\alpha+\beta i)x}+c_2e^{(\alpha-\beta i)x}}[/latex].
Using some smart choices for [latex]c_1[/latex] and [latex]c_2[/latex], and a little bit of algebraic manipulation, we can find two linearly independent, real-value solutions to a linear second-order differential equation and express our general solution in those terms.
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
[latex]\large{e^{i\theta}=\cos\theta+i\sin\theta}[/latex]
for all real numbers [latex]\theta[/latex].
Going back to the general solution, we have
[latex]\large{\begin{aligned} y(x)&=c_1e^{(\alpha+\beta i)x}+c_2e^{(\alpha-\beta i)x} \\ &=c_1e^{\alpha x}e^{\beta ix}+c_2e^{\alpha x}e^{-\beta ix} \\ &=e^{\alpha x}\left(c_1e^{\beta ix}+c_2e^{-\beta ix}\right) \end{aligned}}[/latex].
Applying Euler’s formula together with the identities [latex]\cos(-x)=\cos x[/latex] and [latex]\sin(-x)=-\sin x[/latex], we get
[latex]\large{\begin{aligned} y(x)&=e^{\alpha x}[c_1(\cos\beta x+i\sin\beta x)+c_2(\cos(-\beta x)+i\sin(-\beta x))] \\ &=e^{\alpha x}[(c_1+c_2)\cos\beta x+(c_1-c_2)i\sin\beta x] \end{aligned}}[/latex].
Now, if we choose [latex]c_1=c_2=\frac{1}{2}[/latex], the second term is zero and we get
[latex]\large{y(x)=e^{\alpha x}\cos\beta x}[/latex]
as a real-value solution to a linear second-order differential equation. Similarly, if we choose [latex]c_1=-\frac{i}2[/latex] and [latex]c_2=\frac{i}2[/latex], the first term is zero and we get
[latex]\large{y(x)=e^{\alpha x}\sin\beta x}[/latex]
as a second, linearly independent, real-value solution to a linear second-order differential equation.
Based on this, we see that if the characteristic equation has complex conjugate roots [latex]\alpha\pm\beta i[/latex], then the general solution to a linear second-order differential equation is given by
[latex]\large{\begin{aligned} y(x)&=c_1e^{\alpha x}\cos\beta x+c_2e^{\alpha x}\cos\sin\beta x \\ &=e^{\alpha x}(c_1\cos\beta x+c_2\sin\beta x) \end{aligned}}[/latex].
where [latex]c_1[/latex] and [latex]c_2[/latex] are constants.
For example, the differential equation [latex]y^{\prime\prime}-2y^\prime+5y=0[/latex] has the associated characteristic equation [latex]\lambda^2-2\lambda+5=0[/latex]. By the quadratic formula, the roots of the characteristic equation are [latex]1\pm2i[/latex]. Therefore, the general solution to this differential equation is
[latex]\large{y(x)=e^x(c_1\cos2x+c_2\sin2x)}[/latex].
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 7.1 Summary of Characteristic Equation Cases below.
Characteristic Equation Roots | General Solution to the Differential Equation |
---|---|
Distinct real roots, [latex]\lambda_1[/latex] and [latex]\lambda_2[/latex] | [latex]y(x)=c_1e^{\lambda_1x}+c_2e^{\lambda_2x}[/latex] |
A repeated real root, [latex]\lambda[/latex] | [latex]y(x)=c_1e^{\lambda x}+c_2xe^{\lambda x}[/latex] |
Complex conjugate roots [latex]\alpha\pm\beta i[/latex] | [latex]y(x)=e^{\lambda x}(c_1\cos\beta x+c_2\sin\beta x)[/latex] |
problem-solving strategy using the characteristic equation to solve second order differential equations with constant coefficients
- Write the differential equation in the form [latex]ay''+by'+cy=0[/latex].
- Find the corresponding characteristic equation [latex]a\lambda^2+b\lambda+c=0[/latex].
- 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.
Example: solving second-order equations with constant coefficients
Find the general solution to the following differential equations. Give your answers as functions of [latex]x[/latex].
- [latex]y''+3y'-4y=0[/latex]
- [latex]y''+6y'+13y=0[/latex]
- [latex]y''+2y'+y=0[/latex]
- [latex]y''-5y'=0[/latex]
- [latex]y''-16y=0[/latex]
- [latex]y''+16y=0[/latex]
try it
Find the general solution to the following differential equations:
- [latex]y''-2y'+10y=0[/latex]
- [latex]y''+14y'+49y=0[/latex]
Watch the following video to see the worked solution to the above Try It