In the previous section, we saw that the method of undetermined coefficients is a delicate method. In this section, we consider second-order linear nonhomogeneous ODEs of the form
where \(g\) is a continuous function of \(t\text{.}\) While the method of undetermined coefficients was an algebra ("bookkeeping") method, we now introduce a calculus method that applies to a wider range of linear nonohomogeneous ODEs.
If \(ad-bc \neq 0\text{,}\) then the system has a unique solution given by
\begin{equation*}
x = \dfrac{\mathrm{det}\begin{bmatrix} s&b\\ t&d\end{bmatrix}}{\mathrm{det}\begin{bmatrix}a&b \\ c&d\end{bmatrix}} \text{ and } y=\dfrac{\mathrm{det}\begin{bmatrix} a& s \\ c& t \end{bmatrix}}{\mathrm{det}\begin{bmatrix} a& b \\ c& d \end{bmatrix}}
\end{equation*}
Recall from the superposition principle (Theorem TheoremΒ 2.1.9) that any scalar multiple of a homogeneous solution to (2.6.1) on an interval \(I\) is also a solution on \(I\text{.}\) For (2.6.1), a homogeneous solution on \(I\) can be written as
on some interval \(I\text{.}\) Then the particular solution to (2.6.3) is of the form (2.6.2), where \(u_1(t)=-\displaystyle\int \dfrac{y_2(t)f(t)}{W\{y_1,y_2\}(t)} \mathrm{d}t\) and \(u_2(t)=\displaystyle\int \dfrac{y_1(t)f(t)}{W\{y_1,y_2\}(t)} \mathrm{d}t\text{.}\)
Let \(y''+y=f(t)\text{,}\) where \(f\) is a continuous function on \((-\infty,\infty)\text{.}\) Show that a general solution is of the form \(y(t)=c_1\cos(t)+c_2\sin(t)+\displaystyle\int_0^t f(s)\sin(t-s)\mathrm{d}s\text{.}\)