Method of Undetermined Coefficients — Definition, Formula & Examples
The method of undetermined coefficients is a technique for finding a particular solution to a nonhomogeneous linear differential equation with constant coefficients. You guess the form of the solution based on the right-hand side of the equation, then solve for the unknown coefficients by substituting back in.
Given a linear constant-coefficient ODE of the form , where is a polynomial, exponential, sine, cosine, or a finite combination of such functions, the method of undetermined coefficients constructs a trial particular solution whose functional form mirrors . The unknown coefficients in are determined by substituting into the ODE and equating coefficients of like terms.
Key Formula
Where:
- = Constant coefficients of the differential equation
- = Nonhomogeneous forcing function (polynomial, exponential, sine/cosine, or combination)
- = Unknown function of t
How It Works
First, solve the associated homogeneous equation to find the complementary solution . Next, examine and write down a trial form for with undetermined coefficients. If any term in your trial solution duplicates a term in , multiply the trial by (or if needed) to ensure linear independence. Substitute into the original ODE, collect like terms, and set up a system of equations by matching coefficients on both sides. Solve that system to find the coefficients. The general solution is .
Worked Example
Problem: Find the general solution of y'' − 3y' − 4y = 3e^(2t).
Step 1: Solve the homogeneous equation: The characteristic equation is r² − 3r − 4 = 0, which factors as (r − 4)(r + 1) = 0. The roots are r = 4 and r = −1.
Step 2: Choose a trial particular solution: Since g(t) = 3e^(2t) and e^(2t) does not appear in y_c, guess:
Step 3: Substitute and solve for A: Compute y_p' = 2Ae^(2t) and y_p'' = 4Ae^(2t). Substitute into the ODE: 4A − 6A − 4A = 3, so −6A = 3, giving A = −1/2.
Answer: The general solution is .
Why It Matters
This method is a core tool in any introductory differential equations course and appears frequently in engineering and physics when modeling systems driven by external forces—spring-mass systems with sinusoidal forcing, RLC circuits with AC sources, and beam deflection problems. Mastering it also builds the algebraic instincts needed for more advanced techniques like variation of parameters.
Common Mistakes
Mistake: Using a trial solution that duplicates a term already in the complementary solution y_c.
Correction: If your guess for y_p contains a term that solves the homogeneous equation, multiply the entire trial by t (or t² for repeated roots) before proceeding.
