Worked Example · Quadratic Functions · Paper 2 · 6 marks

Range of a Quadratic on a Restricted Domain

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

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

Range questions look simple until the domain is restricted. On the whole real line an upward parabola just needs its vertex. On a closed interval you must weigh the vertex against both endpoints, because the highest value now lives at an end.

A function is defined by f(x)=x24x+7f(x) = x^2 - 4x + 7. (i) Express f(x)f(x) in completed-square form and hence state the range of ff for xRx \in \mathbb{R}. [3] (ii) State the range of ff for the restricted domain 0x30 \le x \le 3. [3]

The working

(i) Complete the square (half of 4-4 is 2-2): f(x)=x24x+7=(x2)24+7=(x2)2+3(M1, A1)f(x) = x^2 - 4x + 7 = (x - 2)^2 - 4 + 7 = (x - 2)^2 + 3 \quad \text{(M1, A1)}

Since (x2)20(x - 2)^2 \ge 0, the smallest value is 33 (at x=2x = 2), with no upper bound over all reals: range: f(x)3(A1)\text{range: } f(x) \ge 3 \quad \text{(A1)}

(ii) The vertex sits at x=2x = 2, which is inside [0,3][0, 3], so the minimum still occurs there: f(2)=3(minimum on the interval)f(2) = 3 \quad (\text{minimum on the interval})

For the maximum, test both endpoints (M1 for evaluating endpoints): f(0)=00+7=7,f(3)=912+7=4f(0) = 0 - 0 + 7 = 7, \qquad f(3) = 9 - 12 + 7 = 4

The larger endpoint value is f(0)=7f(0) = 7, so on this interval: 3f(x)7(A1, A1)3 \le f(x) \le 7 \quad \text{(A1, A1)}

Where the marks are won and lost

  • Deciding whether the vertex lies inside the interval is the key judgement. Here x=2[0,3]x = 2 \in [0, 3], so it supplies the minimum. If the vertex were outside, the minimum would move to the nearer endpoint.
  • The maximum needs both endpoints checked. Testing only x=3x = 3 gives 44 and misses the true maximum of 77 at x=0x = 0.
  • The full-domain range is one-sided (f(x)3f(x) \ge 3); the restricted-domain range is a closed interval 3f(x)73 \le f(x) \le 7. Do not carry the “no upper bound” answer into part (ii).

Common mistakes

  • Quoting f(x)3f(x) \ge 3 for the restricted domain too (forgetting the interval caps it above).
  • Checking only one endpoint, or neither.
  • Assuming the maximum is at the right-hand endpoint x=3x = 3; here it is at the left, x=0x = 0.

Full method: Range of a Quadratic notes. Topic home: Quadratic Functions pillar.

Common questions

Why do I have to check the endpoints as well as the vertex?
On the full real line a upward parabola has a minimum at its vertex and no maximum. But on a closed interval the range is bounded at both ends. The smallest value is at the vertex only if the vertex lies inside the interval; otherwise it is at the nearer endpoint. The largest value on a closed interval is always at one of the endpoints. So you evaluate the function at the vertex and at both endpoints, then pick the lowest and highest of those. Checking only the vertex misses the maximum entirely.

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.