Steply

Derivative of x^3 from the definition

Step by step, with the reason for every step · The derivative from the definition · Calculus

Step by step

The question

Question: find f′(x) for f(x) = x³, from the definition.

f(x) = x3

1 The idea

Look at the curve y = x³.

Take a point P on it.

How steep is the curve at P?

Take a second point Q, a little to the right: x + h.

Here h = 1.

The line through P and Q has slope rise over run.

The run is h.

Move Q closer: h = ½.

The line turns.

It gets closer to the curve's own steepness.

When h goes to 0, the line just touches the curve at P.

It is called the tangent.

Its slope is the derivative.

Written as a rule: the rise is f(x + h) minus f(x).

The run is h.

Then h goes to 0.

f′(x) = lim h → 0 f(x + h) − f(x)h

2 Find f(x + h)

Put x + h in place of x, in brackets.

f(x + h) = (x + h)3

Open (x + h) cubed the same way: x³ + 3x²h + 3xh² + h³.

(x + h)3 = x3 + 3x2h + 3xh2 + h3

Careful!

The middle terms must not be lost.

Careful: not (x + h)3 = x³ + h³ ✗

Now we have x³ + 3x²h + 3xh² + h³.

= x3 + 3x2h + 3xh2 + h3

3 Take away f(x)

Now take away f(x).

It goes in brackets: − (x³).

f(x + h) − f(x) = x3 + 3x2h + 3xh2 + h3 − (x3)

A minus in front of a bracket changes the sign of every part inside.

= x3 + 3x2h + 3xh2 + h3 − x3

Every term of f(x) meets its opposite.

They make zero: cross them out.

Write what is left.

Every term left has an h.

= 3x2h + 3xh2 + h3

4 Divide by h

Divide by the run, h.

Every term on top has an h, so take it out: 3x²h + 3xh² + h³ is h(3x² + 3xh + h²).

f(x + h) − f(x)h = h(3x2 + 3xh + h2)h

h is close to 0, but not 0.

So h/h is 1.

Cross them out.

Write what is left.

= 3x2 + 3xh + h2

5 Let h go to 0

Now let h go to 0.

f′(x) = lim h → 0 (3x2 + 3xh + h2)

Every term with an h becomes 0.

Cross them out.

So the derivative is f′(x) = 3x².

= 3x2

6 Check

Let's check on the picture.

P is at x = 1.

The rule gives f′(1) = 3.

f′(1) = 3(1)2 = 3

From P, go right 1.

Then up 3.

We land on the tangent.

Right!

Let's look back.

First: the idea.

Then: find f(x + h).

Then: take away f(x).

Then: divide by h.

Then: let h go to 0.

Last: check.

Answer
= 3x2

Your turn

Try this one yourself, then check:

Find f′(x) for f(x) = 3x3
Show the answer
f′(x) = 9x2

More from The derivative from the definition

The whole lesson: The derivative from the definition →