Step by step
The question
Question: solve y″ − 3y′ = 6.
The answer has two parts: the plain part, which solves the equation with 0 on the right, plus one extra solution that makes 6.
1 Solve with 0 on the right
Try y = e^(rx): the characteristic equation is r² − 3r = 0.
Every term has an r: take it out.
A product is 0 when one part is 0: r = 0 or r = 3.
Each root gives a solution e^(rx).
Any mix of the two works, so we add them with two numbers, C₁ and C₂.
So the plain part is C₁ + C₂e^(3x).
2 Guess the extra part
The extra part has the same shape as the right side: just a number.
But 1 is already in the plain part: it gives 0 on the left.
So we multiply it by x.
Careful!
That one is already in the plain part, so it can only give 0.
Times x.
So we guess Ax for the extra part.
A is the numbers we must find.
3 Put the guess in
Its derivative.
And once more.
Put them into the left side.
Multiply out and put like parts together.
4 Match the parts
The two sides must match, part by part: the same amount of each shape.
So A = −2.
So the extra part is −2x.
5 Add the parts
Add the parts: y = C₁ + C₂e^(3x) − 2x.
6 Check
Let's check the extra part: put −2x into the left side.
It gives 6: the right side.
Right!
Let's look back.
First: solve with 0 on the right.
Then: guess the extra part.
Then: put the guess in.
Then: match the parts.
Then: add the parts.
Last: check.