5.4. Answers to Nonhomogeneous Linear Second Order Differential Equation Problems

Following are the answers to the practice questions presented throughout this chapter. Each one is worked out step by step so that if you messed one up along the way, you can more easily see where you took a wrong turn.

1 What's the general solution to this nonhomogeneous second order differential equation?

y″ + 3y′ + 2y = 6ex

Solution: y = c1e−x + c2e−2x + ex

  1. First, find the homogeneous version of the original equation:

    y″ + 3y′ + 2y = 0

  2. Assume that the solution to the homogeneous differential equation is of the form y = erx. When you substitute that solution into the equation, you get the characteristic equation

    r2 + 3r + 2 = 0

  3. Go ahead and factor that out as follows:

    (r + 1)(r + 2) = 0

  4. If you determine that the roots, r1 and r2, of the characteristic equation are −1 and −2, you know that

    y1 = e−x and y2 = e−2x

  5. Thus, the solution to the homogeneous differential equation is given by

    y = c1e−x + c2e−2x

  6. Now you need a particular solution to the differential equation:

    y″ + 3y′ + 2y = 6ex

    Note that g(x) has the form ex here, so assume that the particular solution has the form

    yp(x) = Aex

  7. Substitute yp(x) into the equation:

    Aex + 3Aex + 2Aex = 6ex

  8. Cancel out the ex term:

    A + 3A + 2A = 6

    or 6A = 6, so A = 1.

  9. Your particular solution is

    yp(x) = ex

  10. Because the general solution of the nonhomogeneous equation that you started with is the sum of the corresponding homogeneous equation's general solution and a particular solution ...

Get Differential Equations Workbook For Dummies® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.