Particular Solutions for Polynomial Right-Hand Sides
What You'll Learn
You'll learn how to find particular solutions to non-homogeneous ODEs when the forcing function is a polynomial by assuming a polynomial form of the same degree.
The Core Idea
When solving a non-homogeneous second-order linear ODE like:
y'' + p(x)y' + q(x)y = f(x)
and the right-hand side f(x) is a polynomial, we use the Method of Undetermined Coefficients with a smart guess: assume the particular solution is also a polynomial.
The strategy: If f(x) is a polynomial of degree n, assume your particular solution has the form:
y_p = A_n x^n + A_{n-1} x^{n-1} + ... + A_1 x + A_0
Then substitute this assumed form into the ODE, collect like terms, and match coefficients on both sides to solve for the unknown constants A_n, A_{n-1}, etc.
Example Setup
For y'' - 3y' + 2y = 4x², the right side is a degree-2 polynomial, so assume:
y_p = Ax² + Bx + C
Compute derivatives:
- y_p' = 2Ax + B
- y_p'' = 2A
Substitute into the ODE and equate coefficients of x², x, and the constant term. This gives you a system of algebraic equations to solve for A, B, and C.
Important Exception
If any term in your assumed polynomial happens to solve the homogeneous equation (overlaps with the complementary solution), multiply your entire guess by x until there's no overlap.
Key Takeaway: When the forcing function is a polynomial of degree n, assume a particular solution of the same polynomial form with undetermined coefficients, substitute into the ODE, and match coefficients to find the unique particular solution.