Skip to content

Undetermined coefficients

Solve ay'' + by' + cy = g(t) as y = yc + yp, guess the form of a particular solution yp for polynomial, exponential, sine and cosine forcing, and multiply by t when the guess already solves the homogeneous equation.

It opens on

Push a decaying spring with a steady force 4t. After the early wobble dies, what does the motion look like, and can we find it by a good guess?

Why it matters

A building shaken by wind, a circuit driven by a generator and a drug dosed on a schedule are all forced equations; the answer is a decaying transient plus a response that follows the forcing.

Good to know first

  • Constant coefficients: yc = c₁e−t + c₂e−2t solves y'' + 3y' + 2y = 0
  • the difference of two solutions of the forced equation solves the homogeneous one

Step by step

  1. General solution = yc + yp, with polynomial forcing

    Show that every solution of ay'' + by' + cy = g is yc + yp and find yp for g = 4t by guessing a polynomial.

    With yp = At + B: yp' = A and yp'' = 0, so y'' + 3y' + 2y = 3A + 2At + 2B = 4t.

    A common mix-up

    Only the forcing's own terms are needed in the guess.

    In fact: Derivatives mix the terms, so the guess needs the full polynomial of that degree, constant included.

  2. Trig forcing, the transient and the steady response

    Solve y'' + 3y' + 2y = 10 cos t with the guess A cos t + B sin t and compare the full solution with yp.

    yp' = −A sin t + B cos t and yp'' = −A cos t − B sin t, so y'' + 3y' + 2y = (A + 3B)cos t + (B − 3A)sin t.

    A common mix-up

    The initial conditions fix the constants in yp.

    In fact: The constants A and B are fixed by the forcing alone; the initial conditions fix c₁ and c₂ after yp is added.

  3. When the guess fails: multiply by t

    Recognise that a forcing which solves the homogeneous equation makes the plain guess fail, and use yp = Ate−t.

    For y'' + 3y' + 2y = 3e−t the guess Ae−t gives A(1 − 3 + 2)e−t = 0, never 3e−t.

    A common mix-up

    Matching the forcing's form always gives the right guess.

    In fact: If that form solves the homogeneous equation the guess must be multiplied by t.

Try it

Find a particular solution of y'' + 3y' + 2y = 6et.Answer

yp = et

Hint: Try Aet, so 1 + 3 + 2 = 6 gives A = 1

Find a particular solution of y'' + y = 3 cos 2t.Answer

yp = −cos 2t

Hint: Try A cos 2t, so −4A + A = 3 gives A = −1

What form do you guess for y'' + 3y' + 2y = 5te−2t, and why?Answer

yp = t(At + B)e−2t, because −2 is a root and the forcing is degree 1 times e−2t

Hint: e−2t is a homogeneous solution, so multiply the plain form by t

Why must the guess include the constant B even though the forcing 4t has no constant term?Answer

The derivative of At contributes a constant 3A, so the constant terms need B to cancel it.

At t = 5 the solution is −2.627 and yp is −2.593; what part of the solution has almost vanished?Answer

The transient −5e−t + 4e−2t, about −0.034.

Undetermined coefficients

30 minutes every month. No card.