Skip to content

The method of undetermined coefficients

6 min read

Short answer

The general solution is y=yh+ypy=y_h+y_p: the solution of the homogeneous equation added to any single solution of the full equation. For forcing terms like polynomials, exponentials and sines, guess ypy_p with the same form and unknown coefficients, substitute, and solve for them. If the guess already solves the homogeneous equation, multiply it by xx.

Forcing g(x) compared with Guess for y_pForcing g(x)polynomial of degree ne^(kx)cos(ωx) or sin(ωx)Guess for y_pfull polynomial ofdegree nA e^(kx)A cos(ωx) + B sin(ωx)
Include every term of the family, even if g has only one.

The procedure

  1. Solve the homogeneous equation for yhy_h.
  2. Guess ypy_p from the table (using both cos⁡\cos and sin⁡\sin together).
  3. If any piece of the guess appears in yhy_h, multiply the guess by xx (or x2x^2 for a double root).
  4. Substitute into the equation and match coefficients.
  5. Add yh+ypy_h+y_p, then use initial conditions.

Resonance

Forcing at a natural frequency of the system matches yhy_h, and the multiplication by xx produces solutions that grow linearly in amplitude. This is mathematical resonance.

Worked example

Find a particular solution of y′′−3y′+2y=4e3xy''-3y'+2y=4e^{3x}.

Homogeneous roots are 11 and 22, so e3xe^{3x} is not a solution of the homogeneous equation. Try yp=Ae3xy_p=Ae^{3x}: 9A−9A+2A=2A=49A-9A+2A=2A=4, so A=2A=2 and yp=2e3xy_p=2e^{3x}.

Try it yourself

Find a particular solution of y′′+y=2xy''+y=2x.

Show the answer

Try yp=Ax+By_p=Ax+B: yp′′+yp=Ax+B=2xy_p''+y_p=Ax+B=2x, so A=2A=2, B=0B=0, and yp=2xy_p=2x.

Keep going with practice

Vidi's forced-oscillation lessons apply this method to a driven spring.