Interactive visualiser

Fermat’s theorem on stationary points

At an interior maximum or minimum, a differentiable function has a horizontal tangent. Drag the point along three curves and test the theorem — including the two ways its converse fails.

Διαβάστε το στα ελληνικά →

Loading the visualiser…

Works on a phone, tablet or computer — nothing to install, no account.

The theorem

If ff has a local extremum at an interior point x0x_0 of an interval and is differentiable at x0x_0, then f′(x0)=0f'(x_0) = 0.

What you are looking at

The yellow line is the tangent at PP, and the working gives f′(x0)f'(x_0) and whether PP is a local maximum, a local minimum or neither. On f(x)=x3−3xf(x) = x^3 - 3x the tangent flattens at x=−1x = -1 and x=1x = 1, exactly where the maximum and the minimum are: f′(x)=3x2−3=0f'(x) = 3x^2 - 3 = 0 there.

The theorem only works one way. On f(x)=x3f(x) = x^3 the tangent is horizontal at 00, but the graph keeps rising: f′(0)=0f'(0) = 0 without an extremum. On f(x)=∣x2−1∣f(x) = |x^2 - 1| there are minima at x=±1x = \pm 1 where the derivative does not exist — the one-sided derivatives are shown instead. Critical points are both kinds: where f′=0f' = 0, and where f′f' does not exist.

Try this

  1. 1On x3−3xx^3 - 3x, drag PP to x=−1x = -1 and then to x=1x = 1: f′(x0)=0f'(x_0) = 0 and the working names the extremum.
  2. 2Switch to x3x^3 and drag PP to 00: a horizontal tangent, and no extremum.
  3. 3Switch to ∣x2−1∣|x^2 - 1|: at x=1x = 1 there is a minimum but no tangent — the left and right derivatives are −2-2 and 22.
  4. 4Press Sweep and watch the tangent turn as PP travels: it is horizontal only at the critical points.

Mistakes students make

  • Using the converse: f′(x0)=0f'(x_0) = 0 does not mean an extremum (x3x^3 at 00). You still need a change of sign of f′f', or the second derivative.
  • Looking for extrema only where f′=0f' = 0: corners are candidates too (∣x∣|x| at 00), and so are the endpoints of a closed interval.
  • Applying it at an endpoint: at α\alpha or β\beta a maximum can have f′≠0f' \ne 0 — the point must be interior.

In the exam

  • The proof is short and worth knowing: at an interior local maximum, f(x)−f(x0)x−x0\dfrac{f(x) - f(x_0)}{x - x_0} is ≥0\ge 0 to the left of x0x_0 and ≤0\le 0 to the right, so f′(x0)f'(x_0), which exists, is both ≥0\ge 0 and ≤0\le 0.
  • AP defines critical points as the points where f′=0f' = 0 or f′f' does not exist — exactly the set this theorem points to.

Where it is taught

  • AP Calculus AB/BC · Unit 5 (5.2 critical points)
  • IB Maths AA SL/HL · 5.8 (local maxima and minima)
  • Edexcel A-Level Pure Year 1 · Differentiation (stationary points)
  • Greek Γ΄ Λυκείου · §2.7

Teaching this?

Put this visualiser on your lesson board with one tap. Your student sees every drag, live, on their own screen — and Owlileo marks the homework, runs the tests and keeps the parents informed.

Start free →