Interactive visualiser

Extreme value theorem

On a closed interval a continuous function always reaches a highest and a lowest value. Switch between [α,β][\alpha, \beta] and (α,β)(\alpha, \beta) and see exactly when that guarantee is lost.

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

Loading the visualiser…

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

The theorem

If ff is continuous on a closed interval [α,β][\alpha, \beta], then it attains a maximum value MM and a minimum value mm, and f([α,β])=[m,M]f([\alpha, \beta]) = [m, M].

What you are looking at

The working gives MM and mm, where they occur, and the range f([α,β])=[m,M]f([\alpha, \beta]) = [m, M], drawn as a green bar on the yy-axis. The maximum and minimum can sit inside the interval, at a turning point, or at an endpoint — drag α\alpha and β\beta and watch them move from one to the other.

Choose Open and the endpoints are removed. If the largest value was at an endpoint it is no longer attained: the values get as close to it as you like but never reach it, so there is a supremum but no maximum, and the range becomes half-open. Continuity alone is not enough; the interval has to be closed and bounded.

Try this

  1. 1On f(x)=2sin⁡x+cos⁡2xf(x) = 2\sin x + \cos 2x over [−2,3][-2, 3], the maximum 1.51.5 is attained twice, at x=π6x = \dfrac{\pi}{6} and x=5π6x = \dfrac{5\pi}{6}: the maximum value is unique, the points where it happens need not be.
  2. 2Move the interval to [−1,0][-1, 0], where ff is increasing: the minimum is at α\alpha and the maximum at β\beta.
  3. 3Now choose Open (α,β)(\alpha, \beta): both extremes were at the endpoints, so neither is attained any more.
  4. 4Switch to x3−3x+1x^3 - 3x + 1 on [−1.5,2][-1.5, 2]: the maximum 33 is reached both at the turning point x=−1x = -1 and at the endpoint x=2x = 2.

Mistakes students make

  • Checking only the turning points. A maximum or minimum can be at an endpoint — always compare the critical values with f(α)f(\alpha) and f(β)f(\beta).
  • Using it on an open interval or across a discontinuity: f(x)=xf(x) = x on (0,1)(0, 1) has no maximum, and 1x\dfrac{1}{x} on (0,1](0, 1] has none either.
  • Confusing the maximum value with where it happens: the value MM is unique, the points xx with f(x)=Mf(x) = M need not be.

In the exam

  • AP’s candidates test: find the critical points, evaluate ff there and at both endpoints, and justify the absolute maximum by comparing the values. The theorem is why a closed interval always has an answer.
  • Optimisation on a closed domain, at any level, needs the endpoint check for the same reason.

Where it is taught

  • AP Calculus AB/BC · Unit 5 (5.2 Extreme Value Theorem, 5.5 candidates test)
  • IB Maths AA SL/HL · 5.8 (local and global extrema, optimisation)
  • Greek Γ΄ Λυκείου · §1.8

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 →