To solve higher-order ODEs, we’re motivated by the limitations of the method of undetermined coefficients to find a more systematic approach to find the particular solution. We use variation of parameters to do so.

The good thing with variation of parameters is that it works in principle for any forcing function input. The not so good thing is that it’s a bit more complicated as it requires integration. We may hypothetically get an unsolvable indefinite integral.

We must get our ODE in standard form:

We have no difficulty obtaining the complementary function. We assume a solution of the form, where and are the solutions to the complementary solution:

After doing some tedious algebra, we get a system of equations:

By Cramer’s rule, we get:

Our resulting and can be integrated. From the assumption above, we get the particular solution. Observe that for a higher-order equation we get a much larger Wronskian determinant to evaluate. This is life, I suppose.

Addendums

As mentioned above, we may not get a function that is integrable (it is non-elementary). In this case, our function must be integral-defined (there’s not much we can do about it).