Example 13.1.
Find the general solution to the DE
\begin{equation*}
y'-y=x
\end{equation*}
Answer.
\(y(x)=Ae^x-x-1\)
Solution.
Multiplying both sides of this DE via the integrating factor \(I(x)=e^{\int -1\hspace{2mm}dx}=e^{-x}\) gives
\begin{equation*}
\frac{d}{dx}(e^{-x}y)=xe^{-x}
\end{equation*}
Using integration by parts gives the general solution as
\begin{equation*}
y(x)=Ae^x-x-1
\end{equation*}
There are two interesting facts about this general solution. To discuss these facts write the solution as
\begin{equation*}
y(x)=y_c(x)+y_p(x)
\end{equation*}
where
\begin{equation*}
y_c(x)=Ae^x \textrm{ and } y_p(x)=-x-1
\end{equation*}
The first fact to note is that \(y_c(x)\) is the general solution to the homogeneous equation
\begin{equation*}
y'-y=0
\end{equation*}
and \(y_p(x)\) is one particular solution to the original non-homogeneous DE. The second fact to note is that the form of the particular solution \(y_p(x)=-x-1\) is the same as that of the non-homogeneous term \(f(x)=x\text{,}\) that is they are both polynomials of degree \(1\text{.}\)