5.2. Getting the General Solution When g(x) Is a Polynomial

Sometimes g(x) acts as a polynomial, like in the case of g(x) = axn + bxn − 1 + cxn − 2 (where a, b, and c are all constants). You need to know how to handle such situations so you can find the general solution to the nonhomogeneous second order differential equation in question.

NOTE

Here's how to solve a differential equation of this form, ay″ + by′ + cy = g(x), where a, b, and c are constants and g(x) is a polynomial of order n:

  1. If g(x) is a polynomial, you can assume the particular solution is of the same form, using coefficients whose values have yet to be determined.

    yp = Anxn + An − 1 xn − 1 + An − 2xn − 2 + ...+ A1x + A0

  2. If g(x) is the sum of terms, g1(x), g2(x), g3(x) and so on, then you can break the problem into various subproblems.

    ay″ + by′ + cy = g1(x)

    ay″ + by′ + cy = g2(x)

    ay″ + by′ + cy = g3(x)

    The particular solution is the sum of the solutions of these subproblems.

  3. Substitute yp into the differential equation and solve for the undetermined coefficients.

  4. Find the general solution, yh = c1y1 + c2y2, of the associated homogeneous differential equation.

  5. The general solution of the nonhomogeneous differential equation is the sum of yh and yp.

  6. Use the initial conditions to solve for c1 and c2, if the problem calls for that.

Take a look at the following example. Then, if you're game, try the following practice problems that ask you to solve for the general solution when g(x) is a polynomial.

NOTE

EXAMPLE

Q. Find the ...

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.