7. Undetermined coefficients

We now tackle the ODE

(7.3)\[x'' + bx' + cx = f(t),\]

where \(f(t)\) is a nonzero forcing function. The first step is to find the general homogeneous solution \(x_h(t)\). To finish the problem we must find a particular solution \(x_p(t)\) in the forced case. The method of undetermined coefficients is the simplest strategy, when it is applicable: forcing in the form of a polynomial, exponential, or sin/cos.

The procedure is the same as for first-order problems. Using our earlier table, we make an educated guess at \(x_p\) with some unknown coefficients that are determined through substitution into (7.3).

Example

Find a particular solution of \(x'' +4x'+4x=8t^2\).

Example

Find a particular solution of \(x'' - 2x'-3x=10e^{4t}\).

Example

Find the general solution of \(x''+x'=\sin(2t)\).

The examples above are the fundamental ones. There are rules for more intricate combinations of the same functions, but we won’t go into them here.

We have to repeat the warning from the first time we saw this method: we have only used a subset of the complete rules, and thus occasionally it fails.

Example

The equation \(x''+x=\cos(\omega t)\) suggests the particular solution \(x_p(t)=A\cos(\omega t)+B\sin(\omega t)\). Upon substitution,

\[ [-\omega^2 A\cos(\omega t) - \omega^2 B\sin(\omega t) ] + [ A\cos(\omega t) + B\sin(\omega t)] =\cos(\omega t), \]

which leads to the conclusion that \(B=0\) and, if \(\omega^2 \neq 1\), \(A=1/(1-\omega^2)\). However, if \(\omega = 1\), the substitution would leave us with \(0=\cos(t)\), which is impossible to satisfy for all \(t\).

The failure of the example above at \(\omega = 1\) was due to the fact that the \(x_p\) we picked is actually a homogeneous solution. There are additional rules to cover this case, but we will resort to alternatives instead.

Example (continued)

Here is one interesting workaround. Since the method works for all \(\omega\neq 1\), we try taking a limiting value as \(\omega\to 1\).

That won’t work for the \(x_p\) above, but we can subtract a homogeneous solution and still have a particular solution:

\[\frac{ \cos(\omega t) - \cos(t) } {1-\omega^2}.\]

Then L’Hôpital applies in the limit to give us

(7.4)\[x_p(t) = \frac{ -t \sin(\omega t) }{ -2 \omega } = \frac{1}{2}t\sin(t). \]

This is easy to verify as a particular solution for \(\omega=1\):

\[\begin{align*} x_p & = \frac{1}{2}t\sin(t), \\ x_p' & = \frac{1}{2}[\sin(t)+t\cos(t)], \\ x_p'' & = \frac{1}{2}[\cos(t) + \cos(t) - t\sin(t)], \end{align*}\]

so that \(x_p''+x_p=\cos(t)\) as required.