Worked Example · Calculus · Paper 1 · 6 marks

Greatest and Least Values on a Closed Interval

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 19 August 2026

On a closed interval, the greatest or least value can occur at a stationary point or at an endpoint. So find the stationary points inside the interval, then compare their yy-values with the values at both ends.

Find the greatest and least values of y=x33x+2y = x^3 - 3x + 2 for 2x2-2 \le x \le 2. [6]

The working

Step 1, find the stationary points: dydx=3x23=3(x21)=0    x=1 or x=1(M1, A1)\frac{dy}{dx} = 3x^2 - 3 = 3(x^2 - 1) = 0 \implies x = -1 \ \text{or} \ x = 1 \quad \text{(M1, A1)}

Both lie inside [2,2][-2, 2], so both count.

Step 2, evaluate yy at the stationary points:

  • x=1x = -1:  y=(1)33(1)+2=1+3+2=4\ y = (-1)^3 - 3(-1) + 2 = -1 + 3 + 2 = 4
  • x=1x = 1:  y=13+2=0\ y = 1 - 3 + 2 = 0 (M1)

Step 3, evaluate yy at the endpoints:

  • x=2x = -2:  y=8+6+2=0\ y = -8 + 6 + 2 = 0
  • x=2x = 2:  y=86+2=4\ y = 8 - 6 + 2 = 4 (M1)

Step 4, compare all four values {4,0,0,4}\{4, 0, 0, 4\}: greatest value=4,least value=0.(A1, A1)\text{greatest value} = 4, \qquad \text{least value} = 0. \quad \text{(A1, A1)}

Where the marks are won and lost

  • Check the endpoints, not just the turning points. Here the endpoint x=2x = 2 ties for the greatest value.
  • Only stationary points inside the interval count; discard any that fall outside [2,2][-2, 2].
  • Compare the actual yy-values, then state which is greatest and which least.

Common mistakes

  • Reporting only the turning-point values and missing that an endpoint is just as high.
  • Giving the xx-values instead of the yy-values as the “greatest/least value”.
  • Including a stationary point that lies outside the interval.

Topic home: Calculus pillar. More: Worked examples.

Common questions

Why do you check the endpoints as well as the stationary points?
Because on a closed interval the largest or smallest value can occur at an endpoint, not only at a turning point. The stationary points give the local peaks and valleys inside the interval, but the ends of the interval are candidates too, since the curve is cut off there. So you evaluate the function at every stationary point that lies in the interval and at both endpoints, then compare all those values. The greatest of them is the maximum and the least is the minimum. Forgetting the endpoints is the usual reason an answer is wrong.

Keep going

See the teaching work on your own child. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.