Try: \(y = e^{rx}\text{.}\) We plug in and get
\begin{equation*}
\underbrace{r^3 e^{rx}}_{y'''} - 3 \underbrace{r^2 e^{rx}}_{y''} -
\underbrace{r e^{rx}}_{y'} + 3 \underbrace{e^{rx}}_{y} = 0 .
\end{equation*}
We divide through by \(e^{rx}\text{.}\) Then
\begin{equation*}
r^3 - 3 r^2 - r + 3 = 0 .
\end{equation*}
The trick now is to find the roots. There is a formula for the roots of degree 3 and 4 polynomials but it is very complicated. There is no formula for higher degree polynomials. That does not mean that the roots do not exist. There are always \(n\) roots for an \(n^{\text{th}}\) degree polynomial. They may be repeated and they may be complex. Computers are pretty good at finding roots approximately for reasonable size polynomials.
A good place to start is to plot the polynomial and check where it is zero. We can also simply try plugging in. We just start plugging in numbers
\(r=-2,-1,0,1,2,\ldots\) and see if we get a hit (we can also try complex numbers). Even if we do not get a hit, we may get an indication of where the root is. For example, we plug
\(r=-2\) into our polynomial and get
\(-15\text{;}\) we plug in
\(r=0\) and get 3. That means there is a root between
\(r=-2\) and
\(r=0\text{,}\) because the sign changed. If we find one root, say
\(r_1\text{,}\) then we know
\((r-r_1)\) is a factor of our polynomial. Polynomial long division can then be used.
Another technique for guessing roots of polynomials is the Rational Roots Theorem, which says that any rational root of the polynomial must be of the form
\(p/q\) where
\(p\) divides the constant term of the polynomial and
\(q\) divides the leading term, provided neither of them are zero. For more information on this see
SectionΒ A.1. In this case, we would know that
\(p\) must divide
\(3\text{,}\) and
\(q\) must divide
\(1\text{.}\) Therefore, the only possible options here are
\(\pm 1\) and
\(\pm 3\text{.}\) These would be good places to start to look for rational roots.
A good strategy is to begin with \(r=0\text{,}\) \(1\text{,}\) or \(-1\text{.}\) These are easy to compute. Our polynomial has two such roots, \(r_1 = -1\) and \(r_2 = 1\text{.}\) There should be 3 roots and the last root is reasonably easy to find. The constant term in a monic polynomial such as this is the multiple of the negations of all the roots because \(r^3 - 3 r^2 - r + 3 = (r-r_1)(r-r_2)(r-r_3)\text{.}\) So
\begin{equation*}
3 = (-r_1)(-r_2)(-r_3) = (1)(-1)(-r_3) = r_3 .
\end{equation*}
You should check that
\(r_3 = 3\) really is a root. Hence
\(e^{-x}\text{,}\) \(e^{x}\) and
\(e^{3x}\) are solutions to
(2.7.2). They are linearly independent as can easily be checked, and there are 3 of them, which happens to be exactly the number we need. So the general solution is
\begin{equation*}
y = C_1 e^{-x} + C_2 e^{x} + C_3 e^{3x} .
\end{equation*}
Another possible way to work out this general solution is by factoring the original polynomial. Since we want to solve
\begin{equation*}
r^3 - 3r^2 - r + 3 = 0,
\end{equation*}
we can rewrite the polynomial as
\begin{equation*}
r^2(r-3) -1(r-3) = 0
\end{equation*}
which factors as
\begin{equation*}
(r^2 - 1)(r-3) = 0.
\end{equation*}
Finally, using difference of two squares on the first factor gives
\begin{equation*}
(r-1)(r+1)(r-3) = 0 .
\end{equation*}
This gives roots of \(1\text{,}\) \(-1\text{,}\) and \(3\text{,}\) and so the same general solution as above.
Suppose we were given some initial conditions \(y(0) = 1\text{,}\) \(y'(0) = 2\text{,}\) and \(y''(0) = 3\text{.}\) Then
\begin{align*}
1 = y(0) \amp = C_1 + C_2 + C_3 , \\
2 = y'(0) \amp = -C_1 + C_2 + 3C_3 , \\
3 = y''(0) \amp = C_1 + C_2 + 9C_3 \text{.}
\end{align*}
It is possible to find the solution by high school algebra, but it would be a pain. The sensible way to solve a system of equations such as this is to use matrix algebra, see
SectionΒ 4.2 or
ChapterΒ 3. For now we note that the solution is
\(C_1 =
-\nicefrac{1}{4}\text{,}\) \(C_2 = 1\text{,}\) and
\(C_3 = \nicefrac{1}{4}\text{.}\) The specific solution to the ODE is
\begin{equation*}
y = \frac{-1}{4}\, e^{-x} + e^x + \frac{1}{4}\, e^{3x} .
\end{equation*}