🏠 Home › ♾️ Calculus › Lesson 4

🔍 The Derivative — Defined and Derived

📖 Lesson 4 of 12

📌 Key idea of this section

f'(x) = lim (h → 0) of  [ f(x + h) − f(x) ] ÷ h
The derivative is the slope of the tangent line —
the secant slope after the window shrinks to nothing.

The definition

Here is the machine the whole course runs on. To find the slope of a curve at the point x, look at a nearby point x + h (h is the window width — a small step forward). The slope of the secant line between them is:

[ f(x + h) − f(x) ] ÷ h        ← the difference quotient (rise ÷ run)

Now shrink the window: let h → 0. The secants pivot toward the tangent line, and the quotient creeps toward one exact number — the derivative of f at x, written f'(x) (read "f prime of x"):

f'(x) = lim (h → 0) of  [ f(x + h) − f(x) ] ÷ h

That one line is three ideas fused: Lesson 2's average rate, Lesson 3's limit, and the tangent slope. Now let's run the machine — slowly, with every step.

Derivation 1 — the derivative of x². Let f(x) = x²:

Step 1: f(x + h) = (x + h)² = x² + 2xh + h²     (expand the square)
Step 2: f(x + h) − f(x) = 2xh + h²              (subtract x² — it cancels!)
Step 3: divide by h: (2xh + h²) ÷ h = 2x + h    (every term has an h to give)
Step 4: take the limit as h → 0: 2x + h → 2x    (the lone h dies)
So the derivative of x² is 2x.  f'(x) = 2x.

Read what this says: the slope of y = x² at any point x is exactly 2x. At x = 1 the slope is 2; at x = 3 the slope is 6; at x = 0 the slope is 0 — the curve is perfectly level at the bottom of its bowl. All from four lines of algebra.

Derivation 2 — the derivative of x³. Let f(x) = x³. We need (x + h)³, which Pascal's Triangle row "1 3 3 1" hands us:

Step 1: (x + h)³ = x³ + 3x²h + 3xh² + h³
Step 2: f(x + h) − f(x) = 3x²h + 3xh² + h³      (the x³ cancels)
Step 3: divide by h: 3x² + 3xh + h²             (each term gives up one h)
Step 4: limit as h → 0: the terms 3xh and h² die → 3x²
So the derivative of x³ is 3x².  f'(x) = 3x².

The pattern — and why it always works

Look at the trophies: x² → 2x and x³ → 3x². The exponent hops down in front, and the power drops by one. This is the power rule:

d/dx of xⁿ = n·xⁿ⁻¹

Why does it hold for EVERY n? Run the same four steps on xⁿ. The binomial expansion (Pascal's Triangle again — row n starts 1, n, ...) says:

(x + h)ⁿ = xⁿ + n·xⁿ⁻¹h + (terms with h², h³, ..., hⁿ)
Step 2: subtract xⁿ:   n·xⁿ⁻¹h + (terms with h² or higher)
Step 3: divide by h:   n·xⁿ⁻¹ + (terms that still contain h)
Step 4: limit as h → 0: every leftover term has an h, so they ALL die → n·xⁿ⁻¹

That is the whole secret: the xⁿ cancels, the second term survives the division, and everything from h² upward is washed away by the limit. The rule is not a coincidence — it is the shape of the binomial expansion.

Three more rules, all derivable in one breath

Constant rule: if f(x) = c (a flat line), then
f(x + h) − f(x) = c − c = 0, so f'(x) = 0. Flat graph, zero slope. ✅
Constant multiple rule: (c·f)' = c·f'. The difference quotient for c·f is
c·[f(x + h) − f(x)] ÷ h — the c just rides along and out the limit.
Sum rule: (f + g)' = f' + g'. Split the difference quotient into two
fractions, one for f and one for g, and each becomes its own derivative.

Worked example — a full polynomial. Differentiate f(x) = 4x³ − 5x² + 7x − 2, term by term:

4x³  →  4 × 3x²  = 12x²     (power rule, then the 4 rides along)
−5x² →  −5 × 2x  = −10x     (same idea)
7x   →  7 × 1    = 7        (x is x¹, and 1 × x⁰ = 1)
−2   →  0                   (a constant has no slope)
f'(x) = 12x² − 10x + 7

And we can evaluate the slope anywhere. At x = 2: f'(2) = 12×4 − 10×2 + 7 = 48 − 20 + 7 = 35. The curve is climbing 35 units of height per unit of forward at that spot — steep!

A second notation worth knowing: Leibniz wrote the derivative as dy/dx — a fossil of Δy/Δx after the window shrank to nothing. When you see d/dx in front of a function (like d/dx of xⁿ above), read it as "take the derivative of what comes next."

✏️ Your Turn!

Differentiate f(x) = 2x³ + 5x² − 4x + 9, then find f'(1).

👀 Show the answers

Answer: 2x³ → 6x²; 5x² → 10x; −4x → −4; 9 → 0. So f'(x) = 6x² + 10x − 4. Then f'(1) = 6 + 10 − 4 = 12.

V.3.1