To start, we find the first solution using our original method. The characteristic equation here is
\(r^2 + 2r + 1 = 0\text{,}\) which is
\((r+1)^2\text{.}\) Therefore, we have a double root at
\(r=-1\text{,}\) so that
\(y_1(x) = e^{-x}\) is a solution.
To find a second solution, the reduction of order method suggests that we try to plug in \(y = v(x)e^{-x}\) for an unknown function \(v(x)\text{.}\) The goal is to figure out an equation that \(v\) must satisfy to see if this leads us to a second solution to the original equation. We can compute the first two derivatives of \(y = v(x) e^{-x}\)
\begin{align*}
y(x) \amp= v(x)e^{-x} \\
y'(x) \amp= v'(x)e^{-x} - v(x)e^{-x} \\
y''(x) \amp= v''(x)e^{-x} - 2v'(x)e^{-x} + v(x)e^{-x}
\end{align*}
and then plug them into the original differential equation
\begin{align*}
0 \amp= y'' + 2y' + y \\
\amp= (v''(x)e^{-x} - 2v'(x)e^{-x} + v(x)e^{-x}) + 2(v'(x)e^{-x} - v(x)e^{-x}) + v(x)e^{-x} \\
\amp= v''(x)e^{-x} + v'(x)(-2e^{-x}+2e^{-x}) + v(x)(e^{-x} - 2e^{-x} + e^{-x}) \\
\amp= v''(x)e^{-x}
\end{align*}
Since \(e^{-x}\) is never zero, this means we must have \(v''(x) = 0\text{.}\) This is still a second order equation, but we know how to solve it. We can integrate both sides twice to get that \(v(x) = Ax + B\) for any constants \(A\) and \(B\text{.}\)
Our goal with all of this was to find a solution
\(y\) of the form
\(v(x)e^{-x}\text{.}\) The set up here means that
\(y = (Ax + B)e^{-x}\) will solve the differential equation. Since we already knew that
\(Be^{-x}\) was a solution, the new information we gained here was that
\(Axe^{-x}\text{,}\) or in particular,
\(xe^{-x}\) is a solution to the differential equation. Thus, our two solutions are
\(y_1(x) = e^{-x}\) and
\(y_2(x) = xe^{-x}\text{.}\)