Steply

Solve dy/dx = 2xy^2

Step by step, with the reason for every step · Separable equations · Differential Equations

Step by step

The question

Question: solve dy/dx = 2xy².

dydx = 2xy2

The right side splits into an x part, 2x, times a y part, y².

That is a separable equation.

separable: 2x × y2

1 Separate x and y

Divide both sides by y², so y is only on the left.

1y2 × dydx = 2x
÷ y² both sides

Now multiply both sides by dx.

All the y parts are with dy, all the x parts with dx.

1y2 dy = 2x dx

2 Integrate both sides

Put an integral sign on both sides.

∫ 1y2 dy = ∫ 2x dx

On the left: −1 over y.

On the right: x².

One + C is enough: the two numbers join into one.

−1y = x2 + C

The power rule backwards, for y.

∫ y−2 dy = y−1−1 = −1y

3 Solve for y

Multiply both sides by y.

−1 = y(x2 + C)

Careful!

The C stays inside the bottom: it came with x².

Careful: not y = −1x2 + C ✗

Divide both sides by x² + C.

y = −1x2 + C

So y = −1/(x² + C).

y = −1x2 + C

4 Check

Let's check with a calculator.

Take C as 1, any number works.

At x = 1, our answer gives y ≈ −0.5.

C = 1, x = 1: y ≈ −0.5

The slope between two very close points: about 0.5.

slope: y(1.001) − y(0.999)0.002 ≈ 0.5

The right side at that point: about 0.5.

The same slope.

Right!

right side: 2xy² ≈ 0.5

Let's look back.

First: separate x and y.

Then: integrate both sides.

Then: solve for y.

Last: check.

Answer
y = −1x2 + C

Your turn

Try this one yourself, then check:

dydx = 4xy2
Show the answer
y = −12x2 + C

More from Separable equations

The whole lesson: Separable equations →