Take y′ + y = t². The simplest guess is the forcing itself, y = t². Its derivative is 2t, so the left side is 2t + t², and the equation wants t². The guess is wrong by exactly the leftover 2t, and that leftover is the whole lesson: the derivative creates a power of t that the forcing does not have, and something in the guess has to cancel it.
Definition · Undetermined coefficientsTo find a particular solution, write down a function with the shape of the forcing and unknown constants in place of its coefficients, substitute it into the left side, and match the coefficients of like terms on both sides.
Every unknown is then fixed by an exact linear equation, and the finished guess is checked by substituting it back.
Substituting a full quadratic
The forcing t² has degree two, so the guess is y_p = c₂·t² + c₁·t + c₀: the A and B of “Homogeneous Plus Particular”, renamed by the power each one multiplies so that the pattern can be written for any degree. Its derivative is 2c₂·t + c₁. Adding the two and collecting by powers of t gives the left side, and the right side is t² with no t and no constant.
y_p = c₂·t² + c₁·t + c₀
y_p′ = 2c₂·t + c₁
y_p′ + y_p = c₂·t² + (2c₂ + c₁)·t + (c₁ + c₀)
t²: c₂ = 1
t: 2c₂ + c₁ = 0, so c₁ = −2
1: c₁ + c₀ = 0, so c₀ = 2
So y_p = t² − 2t + 2. The check is exact and takes one line: y_p′ = 2t − 2, and adding y_p gives t² with nothing left over. The 2t that spoiled the first guess is cancelled by the −2t in the second power, and the −2 that produces is cancelled by the constant.
Theorem · One polynomial solutionIf a ≠ 0 and q is a polynomial of degree n, then y′ + a·y = q has exactly one polynomial solution, and its degree is n.
Write y = cₙ·tⁿ + ⋯ + c₀ with cₙ₊₁ = 0. The coefficient of tᵏ in y′ + a·y is a·cₖ + (k+1)·cₖ₊₁, and it must equal the coefficient of tᵏ in q. For k = n this fixes cₙ, because a ≠ 0; each lower k then fixes cₖ from the one above. There is no choice at any line, so there is exactly one solution.
Another polynomial solution would differ from this one by a solution of y′ + a·y = 0, which is C·e^(−a·t). That is a polynomial only when C = 0, so there is no other.
□
A negative a changes the signs and nothing else
Take y′ − 2y = 4t, so a = −2. The forcing has degree one, and the guess is c₁·t + c₀. Then c₁ − 2c₁·t − 2c₀ = 4t: the t terms give −2c₁ = 4, so c₁ = −2, and the constants give c₁ − 2c₀ = 0, so c₀ = −1. The particular solution is −2t − 1.
Example · Why the sign of a matters hereThe general solution is −2t − 1 + C·e^(2t). The exponential grows, so every solution except the one with C = 0 runs away exponentially, and the polynomial −2t − 1 is the single solution that does not.
Reading a as +2 instead gives the equations 2c₁ = 4 and c₁ + 2c₀ = 0, so c₁ = 2 and c₀ = −1; substituting 2t − 1 into the real left side y′ − 2y leaves 2 − 2·(2t − 1) = 4 − 4t, with the wrong sign on t and a constant the forcing does not have. The residual announces the slip at once.
A higher power follows the same pattern at greater length. For y′ + y = t³ the system is c₃ = 1, 3c₃ + c₂ = 0, 2c₂ + c₁ = 0 and c₁ + c₀ = 0, and the lab prints t³ − 3t² + 6t − 6. Each coefficient is minus the one before it times the exponent of that earlier power: −3·1, −2·(−3), −1·6.
The case a = 0 is not this method. The equation is then y′ = q, which is the antiderivative of Accumulation and the Integral, and the answer has degree one more than the forcing. Everything above assumed the term a·y is there to keep the degree.
The lab's parts view draws the homogeneous curve, the particular curve and their sum. For the first preset the initial value y(0) = 0 is fitted after the two parts are added, as always: 2 + C = 0, so C = −2.