Step by step
The question
Question: solve xy′ + y = 3x².
1 Standard form
Linear means this form: y′ + P y = Q.
P and Q have only x.
Divide everything by x, so y′ is alone at the front.
Here P = 1/x and Q = 3x.
2 The integrating factor
The integrating factor is e to the integral of P.
Multiplying by it makes the left side one derivative.
First the integral of P: the integral of 1/x is ln x.
Take x > 0.
So the integrating factor is e to that power.
And e to the ln of something is just that something.
So the integrating factor is x.
3 Multiply both sides
Multiply both sides by x.
Every term, on both sides.
Careful!
The right side is multiplied by x too.
Both sides, always.
4 One derivative on the left
By the product rule, the derivative of x × y is exactly our left side.
So the left side is just (xy)′: one derivative.
5 Integrate both sides
Integrate both sides.
The integral of a derivative is the function itself.
On the right: x³, and + C.
6 Solve for y
Divide both sides by x.
Divide each term.
x to a power over x: take away the powers.
7 Check
Let's check: put y back in.
First y′ is 2x − C over x².
Then y′ + (1/x) × y.
The C parts cancel, and we get 3x: Q again.
Right!
Let's look back.
First: standard form.
Then: the integrating factor.
Then: multiply both sides.
Then: one derivative on the left.
Then: integrate both sides.
Then: solve for y.
Last: check.