Rules of Differentiation

Stage 19 of 23 Strand 1 of 5 19 lessons

19 illustrated lessons, each teaching the why before the how.

Start with The Derivative As a Limit in the app →
Revise Rules of Differentiation with flashcards →

Jump to a lesson

The Derivative As a Limit

Where the chord gradient settles.

The derivative is defined as a limit, not as an approximation to one

Read the full lesson →

xy

A chord through two points has an ordinary rise-over-run gradient.

xy

Slide one end closer to the other and the chord swings toward the tangent.

hrise

The derivative is where that swinging settles: a limit, not an approximation.

Now you

xy

For y = x², what is the chord gradient from 6 to 7?

xy

For y = x², what is the chord gradient from 4 to 5?

Derivative Notation

Three ways to write one idea.

One gradient function, three ways to write it — f'(x), dy/dx and d/dx

Read the full lesson →

xy

The gradient of y = x² is itself a function, 2x. That function needs a name.

the dash marks the derivative of f
f′(x) = 2x

Lagrange’s mark: f'(x), read f prime — the derivative of the function f.

the steps shrink until the chord becomes the tangent

Leibniz’s fraction: dy/dx — a tiny rise over a tiny run, the limit the chords reached.

2xan instruction: differentiate what follows

And d/dx on its own is an instruction: differentiate whatever follows it.

f′(x) = 2xdifferentiate the derivative itselff′′(x) = 2the same thing in Leibniz’s style

Differentiate twice and each style keeps count: f''(x), or d²y/dx².

Now you

xy

The second derivative in Leibniz's style is

xy

Which symbol means the derivative of f?

Differentiating From First Principles

Expand, divide by h, then let h vanish.

Expanding the difference quotient and letting h vanish gives the derivative

Read the full lesson →

f(x) and f(x + h)the rise across a step of width hf(x + h) − f(x)rise over run — the difference quotient

Every first-principles derivation starts here: the rise over a step h, divided by h.

expand; the x² cancels
divide through by h
2x + h

Write the difference out in full before dividing by anything.

Only now let h vanish. Dividing by h first, then letting h go to 0, is the method.

Now you

through the difference quotient

From first principles, differentiate x³

through the difference quotient

From first principles, differentiate x²

Where a Derivative Fails to Exist

A corner, a cusp, a vertical tangent, a break.

A derivative needs a smooth unbroken point, so differentiable forces continuous

Read the full lesson →

xy

The two sides of this corner have gradients −1 and +1, so no single value fits.

xy

A cusp is sharper still: the gradients on the two sides run to −∞ and +∞.

xy

y = ∛x stands vertical at 0, and a vertical tangent has no gradient value.

xy

Across a jump, the chords grow steeper without limit as they shrink, so no derivative exists.

f is differentiable at athe curve must be unbroken at af is continuous at a

So differentiating needs an unbroken curve: differentiable forces continuous.

f is continuous at ay = |x| at 0 is exactly thatf may still have no derivative

The reverse fails — a corner is unbroken and still has no gradient there.

Now you

f′(3) existswhat does that force?

f is differentiable at 3. Must f be continuous at 3?

f is continuous at 3what does that force?

f is continuous at 3. Must f be differentiable at 3?

Differentiating Linear Functions

A straight line has one gradient everywhere.

A straight line has one gradient everywhere, so its derivative is a constant

Read the full lesson →

xy

y = 3x + 1 climbs 3 for every 1 across, at every single point along it.

xy

Its derivative is 3: the constant lifts the line without tilting it.

xy

A flat line has gradient 0, which is why the derivative of a constant is 0.

Now you

xy

Differentiate 9x + 2

xy

Differentiate 4x + 1

The Power Rule

Multiply by the power and drop the power by one.

The same two moves carry the power rule to negative powers and to roots

Read the full lesson →

from first principles
the same working, one power higher
the power came down, then dropped by one

First principles gave 2x and 3x². Both times the power came down, then dropped.

x3
the power comes down to the front

The power comes down to the front and multiplies. The exponent has not changed yet.

3x23
and only now does the power drop by one

Now the power itself drops by one. Two moves, in that order: 3x squared.

common denominator, then divide by h
let h vanish

Test a negative power: first principles takes x⁻¹ to −x⁻², by the same two moves.

x⁻²
same two moves, negative power

So negative powers take the same two moves: the power comes down to the front, then drops by one.

the power comes down, then drops by one
written back with the root

Roots are powers in disguise: √x is x to the half, and the same two moves run.

Now you

differentiate it

Differentiate 6x^2

differentiate it

Differentiate √x

The Constant Multiple and Sum Rules

Term by term, with constants along for the ride.

Differentiate a sum term by term, and a constant coefficient is left untouched

Read the full lesson →

5waitsx3
the coefficient 5 is untouched — differentiate

The constant multiple rule: differentiate x³, then multiply by the coefficient.

waits
differentiate each term separately

The sum rule: differentiate each term separately; the terms do not affect each other.

0 − 7
a constant term has gradient zero

A constant term differentiates to zero: its graph is horizontal.

Now you

differentiate it

Differentiate 6x² + 6x + 7

differentiate it

Differentiate 4x² + 2x + 5

The Product Rule

Differentiate each factor in turn, then add.

Differentiate each factor in turn and add the two results

Read the full lesson →

uvdu·vu·dvvanishesuv

Grow a u by v rectangle a little and it gains a strip along each side.

(u + du)(v + dv)the two strips, and the corneruv + du·v + u·dv + du·dvthe corner is too small to countgrowth = du·v + u·dvdivide the growth by dx(uv)′ = u′v + uv'

Multiply out: two strips and a corner. The corner vanishes, leaving two terms.

x²sin xdx²·sin xx²·dsin xx²sin x

The derivative of a product is never just the product of the two derivatives.

Now you

what does this come to?

d/dx of x·x³

what does this come to?

d/dx of x·x², using the product rule

The Quotient Rule

The same idea, over the denominator squared.

The product rule with a subtraction, all over the denominator squared

Read the full lesson →

u ÷ v
the divisor moves up as a reciprocal

It is the product rule in disguise: write u over v as u times 1 over v.

over the common denominator v · V
divide by h for the difference quotient
as h → 0, (V − v) ÷ h → v′ and V → v

The product rule needs the derivative of 1 / v. Write V for v(x + h) and take the difference quotient as h → 0.

put that back into the product rule
over the common denominator v²

Over the common denominator v² that reads u'v − uv', all over the denominator squared.

the order mattersswap the two terms and the sign of the answer flipssubtraction, not addition

Unlike the product rule, swapping the two terms changes the sign of the answer.

Now you

what does this come to?

The quotient rule denominator is

what does this come to?

The quotient rule numerator is

The Chain Rule

A function inside a function multiplies rates.

A function inside a function multiplies the two rates of change together

Read the full lesson →

(3x + 1)5the bracket is a single object — call it u

Read the bracket as a single expression: everything inside travels together.

(3x + 1)5
now the power rule, on that one object

Now the power rule runs on that object: the power comes down to the front, then drops by one.

u = 3x + 1, so
the gradient in u, times the rate at which u changes

The inside changes 3 times as fast as x, so a gradient in u is 3 times steeper in x.

× 3
finally, times the derivative of the inside

Finally multiply by the inside’s own derivative, which is 3. That gives 15.

Now you

sin(3x)differentiate it

Differentiate sin(3x)

differentiate it

Differentiate (3x + 1)^3

Differentiating Trigonometric Functions

Sine to cosine, and round again in four.

Sine differentiates to cosine, and the pattern repeats after four steps

Read the full lesson →

xy

Where sine is steepest cosine peaks, and where sine peaks cosine crosses zero.

sin xcos x−sin x−cos x

Four differentiations bring you back to where you started: one closed cycle.

h measured in radians
h measured in degrees

The cycle needs radians: in degrees every derivative picks up a factor of 0.0175.

Now you

xy

Differentiate −sin x

xy

Differentiate sin x

Differentiating tan x and the Reciprocal Ratios

The quotient rule turns sin over cos into sec².

The quotient rule turns tan into sec squared, and the same moves cover the reciprocal ratios

Read the full lesson →

tan xa quotient of two known derivatives

tan x is sin x over cos x — a quotient, so the quotient rule runs on it.

the quotient rule, written out
the double minus turns to plus

The quotient rule leaves cos²x + sin²x as the numerator, over cos²x.

sin² + cos² = 1
the reciprocal of cosine, squared

The numerator is 1 by Pythagoras, and 1 over cos²x has a name: sec²x.

chain rule: the −1 power, times −sin x
split as 1/cos times sin/cos
sec x tan x

sec x is cos x to the −1, so the chain rule gives sin over cos² — sec x tan x.

the same chain-rule move on 1/sin
the quotient rule on cos over sin

The same moves run for cosec and cot, and each co-function carries a minus.

Now you

cot xdifferentiate it

Differentiate cot x

cosec xdifferentiate it

Differentiate cosec x

The Number E

The one base whose curve is its own gradient.

e is the one base whose exponential curve has a gradient equal to its own height

Read the full lesson →

xy

y = 2ˣ climbs, but its gradient is a little less than its height at every point.

xy

y = 3ˣ overshoots: its gradient is greater than its height. So try a base between 2 and 3.

xy

Somewhere near 2.718 the two match exactly. That number is called e.

Now you

xy

The gradient of eˣ at any point equals

xy

Differentiate eˣ

Differentiating Exponentials and Logarithms

E to the x differentiates to itself.

e to the x differentiates to itself, and the natural log differentiates to one over x

Read the full lesson →

xy

By the definition of e, eˣ is its own derivative — only eˣ and its multiples are.

y = ln x, so
differentiate both sides; chain rule on the left
and e^y is x again

Undo the log: e to the y is x, so differentiating both sides gives 1 over x.

x

The graphs agree: ln x flattens as x grows, and 1 over x falls toward 0 with it.

× k
the inside derivative multiplies in

With the chain rule, the k inside the exponent comes out to the front as a factor.

Now you

ln xits derivative?

Differentiate ln x

its derivative?

Differentiate eˣ

Differentiating aˣ and logₐ x

Every base is e in disguise.

Any exponential differentiates to itself times the log of its base

Read the full lesson →

a > 0ln a is the power that makes e into a
raise both sides to the x

Any positive base is e in disguise: aˣ is e to the x ln a.

× ln a
the chain rule: the inside derivative is ln a

Differentiate as a chain: the inside x ln a changes at rate ln a.

e^(x ln a) written back as aˣ

Write it back with base a: the derivative of aˣ is aˣ times ln a.

xy

ln 2 is less than 1, so the gradient of 2ˣ is less than its height — 2ˣ climbs more slowly than eˣ.

a = e:
ln e = 1

Check with a = e: ln e is 1, and eˣ being its own derivative comes back.

change of base
ln a is a constant divisor

Change of base turns logₐ x into a multiple of ln x: its gradient is 1 over x ln a.

Now you

the base rewritten, then the chain rule

Differentiate log₂ x

the base rewritten, then the chain rule

Differentiate 5ˣ

Implicit Differentiation

Differentiate both sides and attach dy/dx.

Implicit differentiation differentiates both sides, attaching dy/dx to every y

Read the full lesson →

r

x² + y² = 25 is a circle, and no rearranging writes y as a single function of x.

y2
power rule on y — then the inside derivative arrives

Differentiate y-terms as usual, then multiply by dy/dx — that is the chain rule.

take 2x from both sides
divide both sides by 2y

Now collect the dy/dx terms and solve for it like any other unknown.

Now you

differentiate both sides, then solve for

3x² + y² = 4. What is dy/dx?

differentiate both sides, then solve for

4x² + y² = 7. What is dy/dx?

The Derivative of an Inverse Function

Reflect in y = x and the gradient turns over.

Reflecting a graph in y = x turns each gradient into its reciprocal

Read the full lesson →

xyy = x

Start with y = x²/2, and put the mirror line y = x beside it.

xyy = x

Reflect in that line and the inverse appears: the same curve with x and y swapped.

rise / runreflecting swaps the rise with the runrun / rise

The reflection swaps the rise with the run, so every gradient becomes its reciprocal.

f(a) = bthe two points are mirror images

So when f(a) = b, (f⁻¹)'(b) is 1 / f'(a) — read f' at a, never at b.

differentiate both sides by the chain rule

It follows from the chain rule: undoing then doing returns x, whose derivative is 1.

f(3) = 7 and f′(3) = 5evaluate f′ at 3, the input that gave 7

With f(3) = 7 and f'(3) = 5, the inverse has gradient 1/5 at the point 7.

Now you

how are a and b paired?

(f⁻¹)'(b) = 1 / f'(a) holds when

which identity?then apply the chain rule

The inverse-derivative rule comes from differentiating

Differentiating sin⁻¹ x and tan⁻¹ x

Undo the inverse, then differentiate both sides.

Undoing the inverse and differentiating both sides gives the inverse trig derivatives

Read the full lesson →

the same fact, inverse undone
sin y = x

Undo the inverse first: y = sin⁻¹ x says exactly that sin y = x.

sin y = xdifferentiate both sides; chain rule on the left

Differentiate both sides: cos y times dy/dx equals 1. Divide both sides by cos y.

sin y = xfrom sin²y + cos²y = 1
sin y is x

The answer should be in terms of x: Pythagoras replaces cos y with √(1 − x²).

tan y = xthe tan derivative from this stage
sec²y = 1 + tan²y = 1 + x²

The same three moves on tan y = x give 1 over 1 + x², using 1 + tan²y = sec²y.

xy

The graphs agree: tan⁻¹ x flattens as x grows, and 1 over 1 + x² falls toward 0.

Now you

tan y = xdifferentiate both sides

Differentiate tan⁻¹ x

tan y = xdifferentiate both sides

For y = tan⁻¹ x, sec²y equals

Higher Derivatives

How fast the gradient itself is changing.

Differentiating a derivative measures how fast the gradient itself is changing

Read the full lesson →

xy

The gradient of this curve is 2x, which is itself changing as you move along.

2x1
2apply the power rule again, to 2x

Differentiating again gives 2: the gradient grows at a steady rate.

positive second derivativethe gradient is increasing, so the curve bends upwardscurving upwards

A positive second derivative means the curve bends upwards, like a bowl.

Now you

differentiate it twice

Differentiate 2x³ twice

differentiate it twice

Differentiate 5x³ twice

Continue your journey in the app — save your progress