Characteristic Polynomial of a Differential Equation
Given a linear differential equation with constant coefficients and a right hand side of zero, the roots of the characteristic polynomial correspond to solutions of the equation.
This post is part of the book Justin Math: Calculus. Suggested citation: Skycak, J. (2019). Characteristic Polynomial of a Differential Equation. In Justin Math: Calculus. https://justinmath.com/characteristic-polynomial-of-a-differential-equation/
Want to get notified about new posts? Join the mailing list.
In this chapter, we learn a technique for solving differential equations of the form
where $a_n, a_{n-1}, \ldots, a_2, a_1, a_0$ are constant coefficients, and $y^{(n)}$ denotes the $\text{n}^\text{th}$ derivative of $y$.
The characteristic polynomial of the differential equation above is given by
Each root of the characteristic polynomial corresponds to a solution $(C_{r,1}+C_{r,2}x+C_{r,3}x^2+\ldots+C_{r,m}x^{m-1})e^{rx}$ of the original equation, where $m$ is the multiplicity of the root and $C_{r,1}, C_{r,2}, C_{r,3}, \ldots, C_{r,m}$ are unknown constants of integration.
The constants of integration are labeled intricately, each with two subscripts, so that we can stay organized, in case we have to deal with multiple roots.
Demonstration
For example, the differential equation $y’^\prime-3y’+2y=0$ has the characteristic polynomial $r^2-3r+2$, which factors to $(r-2)(r-1)$ and has roots $r=1,2$.
The root $r=1$ has multiplicity $1$, which corresponds to a solution $C_{1,1} e^{1x}$ or more simply $C_{1,1} e^x$.
The root $r=2$ also has multiplicity $1$, which corresponds to a solution of $C_{2,1}e^{2x}$.
The full solution of the equation, then, is $y=C_{1,1}e^x + C_{2,1}e^{2x}$.
Another Demonstration
Next, consider the differential equation $y’^\prime-6y’+9y=0$.
This differential equation has the characteristic polynomial $r^2-6r+9$, which factors to $(r-3)^2$ and has a single root $r=3$ with multiplicity $2$.
The solution of the equation, then, is $y=(C_{3,1}+C_{3,2}x)e^{3x}$.
Case of Imaginary Roots
Sometimes, the characteristic polynomial of a differential equation may have imaginary roots.
For example, the differential equation $y’^\prime+4y=0$ has the characteristic polynomial $r^2+4$, which has roots $r=2i,-2i$. In these cases, we apply the same procedure as before, but we take it a step further. We use Euler’s formula
to evaluate any exponentials with imaginary powers, and then we remove any $i$’s from the solution. We can remove the $i$’s because in general, if $f(x)i$ is a solution, then so is $f(x)$. This is true because the $i$ can be factored out:
Continuing the example, the root $r=2i$ corresponds to a solution $C_{2i,1}e^{2ix}$, which simplifies to $C_{2i,1}(\cos 2x + i\sin 2x)$. Removing the $i$ from this solution yields $C_{2i,1}(\cos 2i + \sin 2x)$.
By the same reasoning, the root $r=-2i$ corresponds to a solution $C_{-2i,1}( \cos(-2x) + \sin(-2x) )$. Since $\cos(-\theta)=\cos \theta)$ and $\sin(-\theta)=-\sin \theta$ for all inputs $\theta$, this solution simplifies further to $C_{-2i,1}(\cos 2x - \sin 2x)$.
The full solution, then, is
which simplifies to
It is redundant to use four constants in this solution, though, since $C_{2i,1}+C_{-2i,1}$ represents a single constant and $C_{2i,1}-C_{-2i,1}$ represents another single constant.
For example, if $C_{2i,1}=1$ and $C_{-2i,1}=2$, then the solution is just $3 \cos 2x - \sin 2x$. We can make $C_{2i,1}+C_{-2i,1}$ and $C_{2i,1}-C_{-2i,1}$ come out to anything we want, by choosing $C_{2i,1}$ and $C_{-2i,1}$ accordingly.
Therefore, to avoid redundancy in the full solution, we replace the expression $C_{2i,1}+C_{-2i,1}$ with a single constant $C_1$, and the expression $C_{2i,1}-C_{-2i,1}$ with a single constant $C_2$.
Case of Complex Roots
When the characteristic polynomial has complex roots, the solutions will contain exponentials and trig functions.
For example, the differential equation $y’^\prime-4y’+12y=0$ has characteristic polynomial $r^2-4r+13$, whose roots are given by the quadratic equation.
The root $r=2+3i$ corresponds to the following solution:
Likewise, the root $r=2-3i$ corresponds to the following solution:
Assigning new constants $C_1 = C_{2+3i,1}+C_{2-3i,1}$ and $C_2 = C_{2+3i,1} - C_{2-3i,1}$, the full solution becomes the following:
Repeated Imaginary Roots
Repeated imaginary and complex roots are treated just like we treated repeated real roots.
For example, the equation $y^{(6)}+3y^{(4)}+3y^{(2)}+1=0$ has characteristic polynomial $r^6+3r^4+3r^2+1$, which factors to $(r^2+1)^3$, and thus has roots $r=\pm i$, each with multiplicity $3$. The solution to this differential equation is then
After removing the $i$ and grouping the constants, the solution simplifies to
Derivation of the Characteristic Polynomial
Lastly, let’s gain a better understanding of why the characteristic polynomial method works. The characteristic polynomial really just comes from guessing a solution $y=Ce^{rx}$. The derivatives for this guess are listed below.
We substitute the derivatives in the differential equation, and simplify.
We see that $y=Ce^{rx}$ is a solution whenever $r$ is a root of the characteristic polynomial.
Exercises
Use the characteristic polynomial to solve the following differential equations. (You can view the solution by clicking on the problem.)
$\begin{align*} 1) \hspace{.5cm} y''+y'-12y=0 \end{align*}$
Solution:
$\begin{align*} y=C_1 e^{-4x} + C_2 e^{3x} \end{align*}$
$\begin{align*} 2) \hspace{.5cm} 2y''+16y'+3-y=0 \end{align*}$
Solution:
$\begin{align*} y= C_1 e^{-5x} + C_2 e^{-3x} \end{align*}$
$\begin{align*} 3) \hspace{.5cm} y''+16y=0 \end{align*}$
Solution:
$\begin{align*} y= C_1 \cos 4x + C_2 \sin 4x \end{align*}$
$\begin{align*} 4) \hspace{.5cm} y'''-y''+2y'-2y=0 \end{align*}$
Solution:
$\begin{align*} y= C_1 e^x + C_2 \cos \left( \sqrt{2} x \right) + C_3 \sin \left( \sqrt{2} x \right) \end{align*}$
$\begin{align*} 5) \hspace{.5cm} y''-4y'+5y=0 \end{align*}$
Solution:
$\begin{align*} y= \left( C_1 \cos x + C_2 \sin x \right) e^{2x} \end{align*}$
$\begin{align*} 6) \hspace{.5cm} y''+2y'+17y=0 \end{align*}$
Solution:
$\begin{align*} y= \left( C_1 \cos 4x + C_2 \sin 4x \right) e^{-x} \end{align*}$
$\begin{align*} 7) \hspace{.5cm} y''-4y'+4y=0 \end{align*}$
Solution:
$\begin{align*} y= \left( C_1 + C_2 x \right) e^{2x} \end{align*}$
$\begin{align*} 8) \hspace{.5cm} y^{(6)}-y^{(4)}=0 \end{align*}$
Solution:
$\begin{align*} y= C_1 + C_2 x + C_3x^2 + C_4x^3 + C_5 e^x + C_6 e^{-x} \end{align*}$
$\begin{align*} 9) \hspace{.5cm} y^{(5)}+y^{(3)}=0 \end{align*}$
Solution:
$\begin{align*} y= C_1 + C_2 x + C_3 x^2 + C_4 \cos x + C_5 \sin x \end{align*}$
$\begin{align*} 10) \hspace{.5cm} y^{(5)}+y^{(4)}-2y^{(3)}=0 \end{align*}$
Solution:
$\begin{align*} y= C_1 + C_2 x + C_3 x^2 + C_4 e^x + C_5 e^{-2x} \end{align*}$
This post is part of the book Justin Math: Calculus. Suggested citation: Skycak, J. (2019). Characteristic Polynomial of a Differential Equation. In Justin Math: Calculus. https://justinmath.com/characteristic-polynomial-of-a-differential-equation/
Want to get notified about new posts? Join the mailing list.