KS Maths
AA Topic 5.12 · Analysis and Approaches HL

The derivative from first principles

Cancel the h, then let it go

The limit definition done with algebra rather than a table, and what higher derivatives are for.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

derivative
A function that gives the gradient of a curve at each point.The derivative of x squared is 2x.
limit
The value that something gets closer and closer to.The limit of 1 over n is zero.
term
One part of an expression, separated by plus or minus signs. Also, one number in a sequence.3x plus 2 has two terms.
chord
A straight line joining two points on a circle.A diameter is the longest chord.
zero
The number 0. It is neither positive nor negative.5 minus 5 is zero.
exact
Not rounded. Completely correct.The exact answer is one third, not 0.33.
quotient
The answer when you divide.The quotient of 12 and 4 is 3.
expand
Multiply out brackets.Expand 2(x plus 3) to get 2x plus 6.
write down
Give the answer with little or no working.Write down the median.
divide
Share into equal parts, or find how many times one number fits in another.12 divided by 4 is 3.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer.

  1. Expand the bracket (x + h)³.
    Answer

    x³ + 3x²h + 3xh² + h³. Every term except x³ has an h in it, which is what makes the cancelling in a first-principles proof possible.

  2. Simplify (3x²h + 2h²)/h for h ≠ 0.
    Answer

    3x² + 2h. Factor h out of the top and cancel: each term is divided by h, not just the first.

  3. The curve y = x² passes through (1, 1) and (1.5, 2.25). Find the gradient of the chord between them.
    Answer

    (2.25 − 1)/(1.5 − 1) = 1.25/0.5 = 2.5. A chord gradient is change in y over change in x; the derivative is what this becomes as the two points come together.

  4. A common slip is to write (x + h)² as x² + h². Test it with x = 3 and h = 1. What is missing?
    Answer

    (3 + 1)² = 16 but 3² + 1² = 10. The 6 that is missing is 2xh = 2 × 3 × 1. That middle term is the whole derivative.

Words used in this lesson
derivative
the gradient of a curve at a point, found as a limit. For example: the derivative of x² is 2x.
limit
the value an expression gets closer and closer to. For example: as h gets closer to 0, 5 + h gets closer to 5, so the limit is 5.
tends to (→)
gets closer and closer to. For example: h → 0 means h gets closer to zero.
chord
a straight line joining two points on a curve. For example: the chord from (1, 1) to (2, 4) on y = x².
expand
multiply out the brackets. For example: expanding (x + 2)² gives x² + 4x + 4.
cancel
remove a factor that is on the top and the bottom. For example: 6h/(2h) cancels to 3.
from first principles
using only the limit definition, with no rules. For example: “differentiate from first principles” bans the power rule.
differentiable
having a derivative at a point: a smooth curve with no corner there. For example: |x| is not differentiable at 0.
higher derivative
the derivative of a derivative. For example: the second derivative of x³ is 6x.
show that
give every step so the result is proved, not just reached. For example: show that 3(x + 2) = 3x + 6.

Predict first. The figure's limit readout says 4.00, and the limit is 2x, so the point is x = 2. When the gap h is 0.5, what will the “quotient” readout say? Work it out before you move the slider.

Then check

Set the slider close to 0.50 and read the quotient. Then compare it with the “2x + h” readout. If your number was different, find the line of your working that went wrong before you carry on.

Higher Level

At 5.1 you estimated this limit from a table, because that was all that was asked. Now you do it exactly. Shrink h and watch the chord, then read the algebra underneath that explains why the answer is exactly 2x.

the chord, exactly as in 5.1y = x², at x = 212324681012(2, 4)h = 1.20
5.200the quotient
5.2002x + h
4.00the limit, 2x

Both readouts are the same number, which is the whole point: the quotient is 2x + h, exactly, for every h that is not zero.

The definition

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

Letting h be zero straight away gives 0⁄0, which means nothing. So you do the algebra first, cancel the h, and only then let it go.

f(x+h) − f(x)= (x+h)² − x² Substitute. Nothing clever yet.
expand= 2xh + h² The x² terms cancel, which is what makes this work.
divide by h= 2x + h Every term had an h in it, so the division is exact. This is the step that removes the 0/0 problem.
let h → 0= 2x Now it is safe: there is no h in the denominator any more.
so f(x) = x² has f′(x) = 2x

The same for a cubic

(x+h)³ − x³= 3x²h + 3xh² + h³ ÷ h= 3x² + 3xh + h² h → 0= 3x² the power rule for x³, now proved rather than stated

Write "lim" on every line until you take it. Dropping the limit symbol and bringing it back at the end is a standard way to lose a mark in a "from first principles" question, because the expression genuinely is not equal to the derivative until h goes to zero.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AA HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AA HL Mock Exam Pack, $25BuyPlan $99