Homogeneous linear differential equations are solvable since they are separable. I did this above. With the understanding of superposition, then, to solve a non-homogeneous linear differential equation, I just need to find one particular solution. To do this, I need a new technique.
Let \(L = \frac{d}{dt} + Q(t)\) be as before, and let \(y_h\) be a homogeneous solution (a solution to \(Ly =
0\)). The technique I will use is called variation of parameters. This technique says I should look for a particular solution of the type \(y_p = g(t) y_h\text{.}\) (This is part of a very general strategy in solving differential equations: make some kind of reasonable guess for what form the solution should take then investigate that form.) Using this assuming, I have to try to find the new function \(g(t)\text{.}\) In order to do that, I put my assumed solution \(g(t) y_h\) into the equation and do some manipulations. I’m going to drop the \((t)\) in most of these functions, to make it all a bit more readable. It’s up to the reader to remember that these symbols stand for functions.
\begin{equation*}
Ly_p= L gy_h= Q
\end{equation*}
I need to use the product rule to differentiate \(gy_h\) when I apply the differential operator to the left side
\begin{equation*}
g^\prime y_h + g y_h^\prime + g P y_h = Q
\end{equation*}
I can factor \(g\) out of two terms.
\begin{equation*}
g^\prime y_h + g \Big( y_h^\prime + P y_h \Big) = Q
\end{equation*}
The expression inside the brackets is precisely the differential operator \(L\) applied to \(y_h\text{.}\)
\begin{equation*}
g^\prime y_h + g L y_h = Q
\end{equation*}
Since \(y_h\) is the homogeneous solution, \(L y_h = 0\text{.}\)
\begin{equation*}
g^\prime y_h + g 0 = Q
\end{equation*}
Now I can solve for \(g^\prime\text{.}\)
\begin{equation*}
g^\prime = \frac{Q}{y_h}
\end{equation*}
Then I can integrate to find \(g\text{.}\)
\begin{equation*}
g = \int \frac{Q}{y_h}
\end{equation*}
Now I have an expression for \(g\text{.}\) Let me write \(y_p\) using this \(g\text{.}\)
\begin{equation*}
y_p = g y_h = \left( \int \frac{Q}{e^{-\int P dt}}
dt \right) y_h
\end{equation*}
If I want, I can use the fact that the homogeneous solution is \(y = e^{-\int Pdt}\) to write all of \(y_p\) in terms of \(Q\) and \(P\text{.}\)
\begin{equation*}
y_p = \left( \int \frac{Q}{e^{-\int P dt}} dt \right)
e^{-\int P dt } = e^{-\int P dt} \int e^{\int P dt}
Q dt
\end{equation*}
This is a complete solution, and the presentation I’ve given is the most general presentation and introduces the useful idea of variation of parameters. However, there is a slightly different presentation of the same solution which is common is the literature and turns out to be more efficient for actually solving these DEs. It involves the following definition.
Let me do some algebra again with this new definition. First, I’ll take the full expression for \(y_p\) I ended with above and move the first exponential to the right side. Then I can differentiate both sides and replace the integrating factor with the notation I just introduced.
\begin{align*}
e^{\int P y} y_p \amp = \int e^{\int P dt} Q dt\\
\frac{d}{dt} \left( e^{\int P dt} y_p \right) \amp =
e^{\int P dt} Q\\
\frac{d}{dt} (\mu y_p) \amp = \mu Q\\
y_p \amp = \frac{\int \mu Q dt + c}{\mu }
\end{align*}
Let me emphasize what has happened here: multiplying by the integrating factor turns the expression \(y_p^\prime + P
y_p\) into something that looks like the result of a a product rule derivative. Since it is the result of a derivative, it can be easily integrated. This explain the name: the integrating factor is something I multiply by to allow the DE to be directly integrated. It is best to remember the process this way: the original DE becomes a product rule derivative problem by multiplying both sides of the original DE by the integrating factor and then isolating \(y_p\text{.}\) In practice, this is often the most efficient way to actually go about solving a linear DE; it is the method I will use in the examples and my solutions to the activities.