Nonhomogeneous Equations: Undetermined Coefficients
The general solution of a nonhomogeneous linear equation is a complementary solution plus any one particular solution. When the forcing term is a polynomial, exponential, sine, or cosine, a particular solution can be found by assuming a trial form of the same shape with unknown coefficients and solving for them.
╌╌╌╌
Adding a forcing term to the homogeneous equation gives the nonhomogeneous equation
Physically is an external input: a driving force on a spring, an applied voltage on a circuit. The problem splits into two parts. One is the general solution of the homogeneous version. The other is a single particular solution of (N), and for a useful class of forcing functions it comes from an educated guess — the method of undetermined coefficients — together with one correction for when the guess collides with the homogeneous solution.
The structure of the general solution
Two solutions of (N) differ by a solution of the homogeneous equation, because is linear: . That observation determines the entire solution set.
Fix one particular solution . Any other solution satisfies , so . This is the general solution.
The two pieces have names.
- Complementary solution : the general homogeneous solution, carrying both arbitrary constants and therefore all the freedom to meet initial conditions.
- Particular solution : one specific solution of the full equation (N), with no free constants.
Solving (N) therefore takes three steps: find , find any , and add them. Initial conditions are applied only at the very end, to the sum, because carries the adjustable constants. Applying them to alone or to alone is a common error.
The trial-form guess
The method of undetermined coefficients finds by assuming it has the same functional shape as , with unknown coefficients, then substituting to pin the coefficients down. It works because the derivatives of exponentials, sines, cosines, and polynomials stay within the same small families, so has the same shape as and matching it to gives linear equations for the unknowns. The method is limited to constant-coefficient equations and to forcing terms of these types, but that covers a large share of applications.
Closure under differentiation determines every trial form. A polynomial of degree needs a full degree- trial (all lower terms, since differentiation feeds them back), and a product such as needs both and .
Sums and products of forcing terms
If the forcing is a sum , solve one equation per term and add the particular solutions. This follows from linearity: if and , then .
A product of types, by contrast, stays together: is one term needing the trial , not a sum of separate guesses. A product with a trigonometric factor needs both the sine and cosine versions.
Resonance and the multiplicity correction
The method has one failure mode, and it is physically important.
This is resonance: when the forcing frequency matches a natural mode of the system, the response grows with instead of staying bounded, and the trial solution must carry an explicit factor of to reflect it. The general rule:
The correction tracks the multiplicity of the offending root. If is a simple root of the characteristic equation, one factor of suffices; if it is a double root (so both and solve the homogeneous equation), two are needed.
When the complementary and particular parts are plotted together, the resonant particular solution is visibly the growing one: the complementary exponential decays while first rises.
Trial-solution reference
The table collects the standard trials, before any multiplicity correction. denotes a general polynomial of degree , and the general polynomial trial of the same degree.
| Forcing term | Trial solution |
|---|---|
| or | |
| or | |
In every row: if a term of the trial already solves the homogeneous equation, multiply the row's trial by (or for a double root) before solving for the coefficients.
The method is fast when the trial form is easy to write down, but it fails when falls outside these families, for instance or . The variation of parameters method removes that restriction at the cost of evaluating two integrals.12
Footnotes
- Boyce, Elementary Differential Equations, §3.5 — Nonhomogeneous Equations; Method of Undetermined Coefficients: the complementary-plus-particular structure (Theorems 3.5.1–3.5.2), the trial-form guesses for polynomial/exponential/trigonometric forcing, sums of forcing terms, and the multiply-by- resonance correction. ↩
- Simmons, Differential Equations with Applications and Historical Notes, §18 — The Method of Undetermined Coefficients: assuming a particular solution of the same form as the forcing term and determining its coefficients by substitution. ↩
╌╌ END ╌╌