General Solution to a Inhomogeneous Linear ODE
Let be a solution, aka the particular integral, of the inhomogeneous ODE
Such that satisfies the equation above
Then a function is a solution fo the inhomogeneous linear ODE
If and only if is in the form ofWhere is a solution to the corresponding homogenous linear ODE, that is
With being known as the complementary function
Proof
If is a solution to the ODE then
Hence
As the second bracket equals as is a solution to the ODE then
The first bracket must equal henceNote that the particular integral is found via guess work (generally similar to