Steply

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

Step by step, with the reason for every step · Integrals as solutions · Differential Equations

Step by step

The question

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

dydx = 3x2 + 2x

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

y(2) = 10

1 The idea

dy/dx is only about x.

So y is a function whose derivative is 3x² + 2x: an antiderivative.

y′ = 3x2 + 2x: y is a function whose derivative is 3x2 + 2x

2 Integrate both sides

Integrate both sides.

The left side, the integral of dy/dx, is just y.

y = ∫ (3x2 + 2x) dx

The power rule backwards: add 1 to the power, divide by the new power.

∫ xn dx = xn + 1n + 1

Each term by its rule, and one + C: the number we cannot see after a derivative.

y = 3 × x33 + 2 × x22 + C

Tidy the numbers: y = x³ + x² + C.

y = x3 + x2 + C

Careful!

Don't forget + C.

Every number C gives another solution, and we need C to use the starting value.

Careful: not y = x3 + x2 ✗

3 Use the starting value

Put in x = 2 and y = 10.

10 = (2)3 + (2)2 + C

Work out the numbers: 12.

10 = 12 + C

To get C alone, take away 12 on both sides.

10 − 12 = C

So C = −2.

C = −2

Put C back.

The answer: y = x³ + x² − 2.

y = x3 + x2 − 2

4 Check

Let's check: the derivative of our answer is 3x² + 2x.

The right side again.

Right!

y′ = 3x2 + 2x

And at x = 2, y is 10: the starting value.

Right!

y(2) = 10

Let's look back.

First: the idea.

Then: integrate both sides.

Then: use the starting value.

Last: check.

Answer
y = x3 + x2 − 2

Your turn

Try this one yourself, then check:

dydx = 6x2 + 2x
Show the answer
y = 2x3 + x2 − 8

More from Integrals as solutions

The whole lesson: Integrals as solutions →