Steply

Solve xy' + 3y = 10x^2, y(1) = 3

Step by step, with the reason for every step · The integrating factor · Differential Equations

Step by step

The question

Question: solve xy′ + 3y = 10x², with y(1) = 3.

xy′ + 3y = 10x2

y(1) = 3 is the starting value.

y(1) = 3

1 Standard form

Linear means this form: y′ + P y = Q.

P and Q have only x.

linear: y′ + P(x) y = Q(x)

Divide everything by x, so y′ is alone at the front.

y′ + 3xy = 10x
÷ x

Here P = 3/x and Q = 10x.

P = 3x, Q = 10x

2 The integrating factor

The integrating factor is e to the integral of P.

Multiplying by it makes the left side one derivative.

integrating factor: μ = e^(∫P dx)

First the integral of P: the integral of 3/x is 3 ln x.

Take x > 0.

∫ 3x dx = 3 ln x

So the integrating factor is e to that power.

μ = e^(3 ln x)

A number in front of ln goes up as a power: 3 ln x = ln x³.

μ = e^(ln x³)

And e to the ln of something is just that something.

So the integrating factor is x³.

μ = x3
e^(ln a) = a

3 Multiply both sides

Multiply both sides by x³.

Every term, on both sides.

x3y′ + 3x2y = 10x4

Careful!

The right side is multiplied by x³ too.

Both sides, always.

Careful: not (x3y)′ = 10x ✗

4 One derivative on the left

By the product rule, the derivative of x³ × y is exactly our left side.

(μy)′ = μy′ + μ′y
μ′ = 3x2

So the left side is just (x³y)′: one derivative.

(x3y)′ = 10x4

5 Integrate both sides

Integrate both sides.

The integral of a derivative is the function itself.

x3y = ∫ (10x4) dx

On the right: 2x⁵, and + C.

x3y = 2x5 + C

6 Solve for y

Divide both sides by x³.

y = 2x5 + Cx3

Divide each term.

x to a power over x³: take away the powers.

y = 2x2 + Cx3

7 Use the starting value

Put in x = 1 and y = 3.

1 to any power is 1.

3 = 2 + C × 1

So C = 1.

C = 1

So y = 2x² + 1/x³.

y = 2x2 + 1x3

8 Check

Let's check: put y back in.

First y′ is 4x − 3/x⁴.

y′ = 4x − 3x4

Then y′ + (3/x) × y.

y′ + 3xy = 4x − 3x4 + 3x(2x2 + 1x3)

The e parts cancel, and we get 10x: Q again.

Right!

= 10x

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.

Then: use the starting value.

Last: check.

Answer
y = 2x2 + 1x3

Your turn

Try this one yourself, then check:

Solve xy′ + 2y = 8x2
Show the answer
y = 2x2 + 2x2

More from The integrating factor

The whole lesson: The integrating factor →