Steply

Solve dy/dx = 3x^2/y^2, y(0) = 2

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

Step by step

The question

Question: solve dy/dx = 3x² over y², with y(0) = 2.

dydx = 3x2y2

y(0) = 2 is the starting value: when x is 0, y is 2.

y(0) = 2

The right side splits into an x part, 3x², times a y part, 1/y².

That is a separable equation.

separable: 3x2 × 1y2

1 Separate x and y

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

y2 × dydx = 3x2
× y² both sides

Now multiply both sides by dx.

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

y2 dy = 3x2 dx

2 Integrate both sides

Put an integral sign on both sides.

∫ y2 dy = ∫ 3x2 dx

On the left: y³ over 3.

On the right: x³.

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

y33 = x3 + C

The power rule backwards, for y.

∫ y2 dy = y33

3 Use the starting value

Put in x = 0 and y = 2.

The x side gives 0.

233 = 0 + C

So C = 8/3.

C = 83

4 Solve for y

Multiply both sides by 3.

y3 = 3x3 + 8

Careful!

C was found with the equation it came in.

Keep it inside the cube root.

Careful: not C added at the end ✗

Take the cube root: y = ∛(3x³ + 8).

y = 3√3x3 + 8

5 Check

Let's check with a calculator.

At x = 1, our answer gives y ≈ 2.224.

x = 1: y ≈ 2.224

The slope between two very close points: about 0.61.

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

The right side at that point: about 0.61.

The same slope.

Right!

right side: 3x²/y² ≈ 0.61

Let's look back.

First: separate x and y.

Then: integrate both sides.

Then: use the starting value.

Then: solve for y.

Last: check.

Answer
y = 3√3x3 + 8

Your turn

Try this one yourself, then check:

dydx = 3x2y2
Show the answer
y = 3√3x3 + 1

More from Separable equations

The whole lesson: Separable equations →