Differentiation
What a derivative really is, every rule you need (power, chain, product, quotient), tangents and normals, stationary points, concavity, optimisation, and the HL extras: first principles, implicit differentiation, related rates and l'Hôpital's rule.
mentorriyaz.in
In 30 seconds
- The derivative f′(x) gives the gradient of the curve and the rate of change of y with respect to x. It is the limit of chord gradients as the chord shrinks to a point.
- Four rules do almost everything: the power rule (rewrite roots and fractions as powers first), the chain rule for a function inside a function, the product rule and the quotient rule. All four are in the formula booklet.
- f′ = 0 finds stationary points, the sign of f″ classifies them, and f″ = 0 with a change of sign finds points of inflection. Optimisation is the same idea applied to a real quantity.
- HL: first principles, continuity and differentiability, implicit differentiation, related rates, l'Hôpital's rule and the derivatives of tan, sec, ax, loga x and the inverse trig functions.
- 2029 syllabus: nothing in this topic changes. These notes work for exams up to November 2028 and from May 2029.
By the end you can
- Explain the derivative as a gradient and as a rate of change, with correct notation.
- Differentiate powers, sin, cos, ex, ln x and combinations using the chain, product and quotient rules.
- Find equations of tangents and normals, with and without a GDC.
- Find and classify stationary points, and find points of inflection.
- Link the graphs of f, f′ and f″, and solve optimisation problems with full justification.
- Differentiate from first principles and decide whether a function is differentiable. HL
- Differentiate implicitly, solve related-rates problems and evaluate limits with l'Hôpital's rule. HL
1What the derivative means
Gradient of a curve, rate of change
Derivative — the gradient of the tangent to y = f(x) at a point, which is also the instantaneous rate of change of y with respect to x.
Notation — dy/dx (Leibniz) and f′(x) (Lagrange) mean the same thing. The second derivative is d2y/dx2 or f″(x).
- Units tell the story: if V is in cm3 and t in seconds, dV/dt is in cm3 s−1. A question that says "rate of change" is asking for a derivative.
- Sign matters: dy/dx > 0 means y increases as x increases; dy/dx < 0 means it decreases.
Differentiation from first principlesHL ONLY
- Method: (1) write f(x + h) and expand it; (2) subtract f(x), so every term left has a factor h; (3) divide by h; (4) only now let h → 0.
Differentiate f(x) = x3 from first principles.
- f′(x) = limh→0 (x + h)3 − x3h M1
- = limh→0 x3 + 3x2h + 3xh2 + h3 − x3h A1
- = limh→0 (3x2 + 3xh + h2) A1
- = 3x2 AG
Continuity, differentiability, higher derivativesHL ONLY
Continuous at x = a — limx→a f(x) exists and equals f(a): no jump, gap or asymptote there.
Differentiable at x = a — the left-hand and right-hand limits of the chord gradient exist and are equal. Graphically: one smooth tangent.
- Higher derivatives: f(n)(x) or dny/dxn means differentiate n times. A pattern in f′, f″, f‴ often leads to a proof by induction (Topic 1).
Find a formula for the nth derivative of y = e2x.
- dy/dx = 2e2x, d2y/dx2 = 4e2x, d3y/dx3 = 8e2x M1
- each derivative multiplies by 2
- dny/dxn = 2ne2x A1
2Differentiation rules
Powers of x
- Rewrite first, then differentiate. √x = x½, 1/x3 = x−3, 5/(2√x) = (5/2)x−½. Split a fraction over a single term: (x2 + 1)/x = x + x−1.
- Constants: the derivative of a constant is 0, and a constant multiplier stays: d/dx (7x4) = 28x3.
Differentiate y = 3x2 − 4√x.
- rewrite: y = 3x3/2 − 4x−1/2 M1
- dy/dx = 92x1/2 + 2x−3/2 A1A1
- = 9√x2 + 2x√x
Standard derivatives FORMULA BOOKLET
| f(x) | f′(x) | note |
|---|---|---|
| xn | nxn−1 | any rational n at SL |
| sin x | cos x | x in radians |
| cos x | −sin x | note the minus sign |
| ex | ex | its own derivative |
| ln x | 1/x | x > 0 |
- Linear inside: d/dx f(ax + b) = a f′(ax + b). So d/dx sin(3x) = 3cos(3x), d/dx e5x − 1 = 5e5x − 1 and d/dx ln(2x) = 2/(2x) = 1/x.
Choosing the rule
Chain rule
Differentiate y = (2x3 − 5)4.
- let u = 2x3 − 5, so y = u4 M1
- dy/du = 4u3 and du/dx = 6x2
- dy/dx = 4(2x3 − 5)3 × 6x2 A1
- = 24x2(2x3 − 5)3
Differentiate y = esin x and y = ln(3x2 + 1).
- esin x: outside eu, inside sin x
- dy/dx = cos x · esin x A1
- ln(u): derivative is u′/u
- dy/dx = 6x3x2 + 1 A1
Product rule
Differentiate y = x2e3x.
- u = x2, v = e3x; u′ = 2x, v′ = 3e3x M1
- dy/dx = x2 · 3e3x + e3x · 2x A1
- = xe3x(3x + 2), factorised
Quotient rule
Find the coordinates of the stationary point of y = ln xx, x > 0.
- u = ln x, v = x; u′ = 1/x, v′ = 1 M1
- dy/dx = x · (1/x) − ln x · 1x2 = 1 − ln xx2 A1
- dy/dx = 0 ⇒ ln x = 1 ⇒ x = e M1
- y = 1/e, so the point is (e, 1/e) A1
More standard derivativesHL ONLY
| f(x) | f′(x) |
|---|---|
| tan x | sec2 x |
| sec x | sec x tan x |
| cosec x | −cosec x cot x |
| cot x | −cosec2 x |
| ax | ax ln a |
| loga x | 1/(x ln a) |
| arcsin x | 1/√(1 − x2) |
| arccos x | −1/√(1 − x2) |
| arctan x | 1/(1 + x2) |
- All of these are in the formula booklet FORMULA BOOKLET, but you can be asked to prove one. tan x = sin x/cos x by the quotient rule gives (cos2 x + sin2 x)/cos2 x = 1/cos2 x = sec2 x.
Differentiate y = arctan(2x) and y = 3x^{2}.
- arctan(u) with u = 2x: dy/dx = 11 + (2x)2 × 2 = 21 + 4x2 A1
- au with u = x2: dy/dx = 3x^{2} ln 3 × 2x = 2x ln 3 · 3x^{2} A1
3Tangents and normals
- Method: (1) find the point (a, f(a)); (2) find the gradient m = f′(a); (3) tangent: y − f(a) = m(x − a); (4) normal: gradient −1/m, same point.
Find the equation of the normal to y = x3 − 2x at x = 1.
- point: y = 1 − 2 = −1, so (1, −1) A1
- dy/dx = 3x2 − 2, at x = 1 it is 1 M1A1
- normal gradient = −1 M1
- y + 1 = −(x − 1), so y = −x A1
4Stationary points and the shape of a graph
Increasing and decreasing
- f′(x) > 0 on an interval: f is increasing there. f′(x) < 0: decreasing. Answer with an interval, such as 1 < x < 3.
Find where f(x) = x3 − 6x2 + 9x + 1 is decreasing.
- f′(x) = 3x2 − 12x + 9 = 3(x − 1)(x − 3) M1
- f′(x) < 0 between the roots R1
- 1 < x < 3 A1
Concavity and the second derivative
Classifying stationary points
- Second derivative test: at a stationary point, f″(a) < 0 ⇒ local maximum; f″(a) > 0 ⇒ local minimum; f″(a) = 0 ⇒ the test fails, so check the sign of f′ either side.
Find and classify the stationary points of f(x) = x4 − 4x3, and find any points of inflection.
- f′(x) = 4x3 − 12x2 = 4x2(x − 3) = 0 ⇒ x = 0 or x = 3 M1A1
- f″(x) = 12x2 − 24x = 12x(x − 2) A1
- x = 3: f″(3) = 36 > 0, so (3, −27) is a minimum R1
- x = 0: f″(0) = 0, so test the sign of f′: negative just left and just right of 0 M1
- so (0, 0) is a stationary point of inflection A1
- f″ = 0 at x = 2 and changes sign there, so (2, −16) is a non-stationary point of inflection A1
Graphs of f, f′ and f″
| On the graph of f | On the graph of f′ |
|---|---|
| local maximum | crosses the x-axis from + to − |
| local minimum | crosses the x-axis from − to + |
| increasing | above the x-axis |
| point of inflection | a turning point |
| stationary inflection | touches the x-axis without crossing |
5Optimisation
- Method: (1) name the variable and write the quantity to optimise; (2) use the constraint to get one variable; (3) state the domain; (4) solve dQ/dx = 0; (5) justify max or min; (6) answer in context, with units.
Find the maximum volume of the open box.
- V = x(30 − 2x)2 = 4x3 − 120x2 + 900x, for 0 < x < 15 M1A1
- dV/dx = 12x2 − 240x + 900 = 12(x − 5)(x − 15) = 0 M1
- x = 15 gives no box, so x = 5 R1
- d2V/dx2 = 24x − 240 = −120 < 0 at x = 5, so a maximum R1
- V = 5 × 202 = 2000 cm3 A1
A closed cylinder holds 500 cm3. Find the radius that uses the least metal.
- πr2h = 500, so h = 500/(πr2) M1
- A = 2πr2 + 2πrh = 2πr2 + 1000/r A1
- dA/dr = 4πr − 1000/r2 = 0 ⇒ r3 = 250/π M1
- r = 4.30 cm (3 s.f.), and then h = 8.60 cm = 2r A1
- d2A/dr2 = 4π + 2000/r3 > 0, so a minimum R1
6Implicit differentiation and related rates HL
Implicit differentiationHL ONLY
- Products: d/dx (xy) = xdydx + y. Then collect the dy/dx terms on one side and factorise.
Find the gradient of x2 + xy + y2 = 7 at (1, 2).
- 2x + (xdydx + y) + 2ydydx = 0 M1A1
- dydx(x + 2y) = −(2x + y) M1
- dydx = −2x + yx + 2y = −45 at (1, 2) A1
Show that d/dx (arcsin x) = 1√(1 − x2).
- y = arcsin x, so sin y = x M1
- cos y dydx = 1, so dydx = 1cos y A1
- cos y = √(1 − sin2 y) = √(1 − x2), positive because −π/2 ≤ y ≤ π/2 R1
- dydx = 1√(1 − x2) AG
Related rates of changeHL ONLY
- Method: (1) write an equation linking the variables; (2) differentiate it with respect to t; (3) substitute the numbers last.
A 5 m ladder leans on a wall. Its foot slides away at 0.4 m s−1. How fast is the top sliding down when the foot is 3 m from the wall?
- x2 + y2 = 25 M1
- 2x dxdt + 2y dydt = 0 M1A1
- when x = 3, y = 4: 2(3)(0.4) + 2(4)dydt = 0 M1
- dydt = −0.3, so the top slides down at 0.3 m s−1 A1
7Limits and l'Hôpital's rule HL
- Differentiate the top and the bottom separately. This is not the quotient rule.
Evaluate limx→0 1 − cos xx2.
- substituting gives 0/0 R1
- = limx→0 sin x2x, still 0/0 M1
- = limx→0 cos x2 M1
- = 12 A1
Evaluate limx→∞ x2ex.
- ∞/∞, so l'Hôpital: lim 2xex M1
- still ∞/∞: lim 2ex M1
- = 0, so ex grows faster than any power A1
- Maclaurin series give another route to the same limits. They have their own HL note.
8Exam technique
Paper 1, Paper 2 and command terms
- Paper 1 (no calculator): exact answers such as 1/e, ln 3 or π/6. Factorise derivatives so f′ = 0 solves by hand.
- Paper 2 (calculator): use the GDC to evaluate f′(a), find roots of f′(x) = 0 and find maxima, but write the equation you solved. "Correct answer, no working" earns little if the answer is wrong.
- "Show that": every step on the page, ending exactly at the given result. Marked AG: no marks for the final line itself.
- "Hence": use the result you just found. Starting again from scratch can score zero.
- "Justify": a reason earns the R1 mark, for example "f″(5) = −120 < 0, so it is a maximum" or "f′ changes from positive to negative".
Test yourself — cover the answers first
Quick check
- Differentiate y = 4x3 − 2x.
- Find f′(4) for f(x) = √x.
- Differentiate sin(3x) and e−2x.
- Differentiate y = xex.
- Differentiate y = ln(x2 + 1).
- The tangent at P has gradient −2/3. What is the gradient of the normal?
- If f″(a) = 0, must x = a be a point of inflection?
- HL Differentiate tan(2x).
- HL Find the gradient of y = arctan x at x = 1.
Exam-style
- A farmer fences three sides of a rectangle with 120 m of fence; a river forms the fourth side. Find the maximum area.
- Let f(x) = xe−x. (a) Find f′(x). (b) Find the coordinates of the maximum and justify it. (c) Find the point of inflection.
- HL Find the equation of the tangent to x3 + y3 = 9xy at (2, 4).
- HL Evaluate limx→0 ex − 1 − xx2.
- HL Air is pumped into a spherical balloon at 100 cm3 s−1. How fast is the radius increasing when r = 5 cm?
Show answers
- 12x2 + 2x2
- f′(x) = 12√x, so f′(4) = 14
- 3cos(3x) and −2e−2x
- ex(x + 1), by the product rule
- 2xx2 + 1
- 32
- No. f″ must also change sign (y = x4 has a minimum at 0).
- 2sec2(2x)
- 11 + 1 = 12
- two sides x and one side 120 − 2x, so A = x(120 − 2x)
A′(x) = 120 − 4x = 0 ⇒ x = 30
A″ = −4 < 0, so a maximum
maximum area = 30 × 60 = 1800 m2 - (a) f′(x) = e−x(1 − x)
(b) f′ = 0 ⇒ x = 1; f″(x) = e−x(x − 2), f″(1) = −1/e < 0, so a maximum at (1, 1/e)
(c) f″ = 0 at x = 2 and changes sign there: (2, 2/e2) - 3x2 + 3y2 y′ = 9y + 9xy′
y′ = (9y − 3x2)/(3y2 − 9x) = 24/30 = 4/5
y − 4 = 45(x − 2), that is 4x − 5y + 12 = 0 - 0/0: lim (ex − 1)/(2x), still 0/0
lim ex/2 = 12 - V = 43πr3, so dV/dt = 4πr2 dr/dt
100 = 4π(25) dr/dt
dr/dt = 1π ≈ 0.318 cm s−1
Send it to me on WhatsApp. I read every message.
Want regular help? Send this to your parent →