Skip to main content

Global maxima and minima and optimisation on restricted domains: the closed interval method, endpoints and discontinuities as candidates, domain restrictions in modelling problems and writing a contextual conclusion (local and global extrema and endpoint checks carry over from 2017; formal definitions and discontinuity checks are added in 2024)

Syllabus dot point

“Distinguish local from global maximum and minimum values, find global extrema of a function on a given domain by comparing stationary points, endpoints and discontinuities, and justify an optimisation answer against the domain of the model”

HSCMaths AdvancedYear 12: Calculus13 min read

Quick answer

The global maximum or minimum of a function on a domain is found by comparing ff at stationary points inside the domain, at the endpoints and at any discontinuity or point of non-differentiability. Reject candidates outside the domain, justify your choice, and write a conclusion in context with units. A local extremum is only extreme near itself. The 2017 course already distinguished local from global extrema and checked endpoints; the 2024 Mathematics Advanced syllabus adds formal definitions of global extrema and names discontinuities of ff and f′f' as places to check.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions
  4. Practice questions

What this dot point is asking

Optimisation is not new to Mathematics Advanced: the 2017 course had maximum and minimum problems. The 2017 course already distinguished local from global extrema and checked endpoints. The Mathematics Advanced 11-12 Syllabus (2024) adds more precise language and a more careful method. Under Applications of calculus, NESA gives formal definitions of a global maximum and minimum, names discontinuities of ff and f′f' as places to check alongside the endpoints of the domain, and asks you to model a real situation with a function with an appropriate domain restriction, then interpret the answer in context.

So an optimisation answer has three stages: build the function and its domain, find all the candidates, and write a conclusion that respects the domain.

Note

Think of walking over a hilly path that starts at one gate and ends at another. The highest point you stand on might be a hilltop on the way, but it might simply be the gate you finish at, if the path climbs steadily all the way. A local peak is only higher than its neighbours. The global highest point is the highest anywhere on the path, so you must compare the hilltops with both gates.

The answer

Key fact
  • Global (absolute) maximum of ff on a domain: the greatest value ff takes on that domain. Global minimum: the least value.
  • Local maximum or minimum: greatest or least in a small neighbourhood only.
  • On a closed interval [a,b][a, b], compare ff at: the stationary points in (a,b)(a, b), the endpoints aa and bb, and any points where ff is discontinuous or not differentiable. The largest value is the global maximum and the smallest is the global minimum.

The closed interval method

For a continuous function ff on [a,b][a, b]:

  1. Differentiate and solve f′(x)=0f^\prime(x) = 0. Keep only the solutions inside [a,b][a, b].
  2. List points in the domain where f′f^\prime does not exist (see differentiability).
  3. Evaluate ff at every candidate and at both endpoints.
  4. State the largest and smallest values and where they occur.

A continuous function on a closed interval always has a global maximum and a global minimum. If the interval is open, or the function has a break, one of them may fail to exist. For example f(x)=x2f(x) = x^2 on 0<x<20 < x < 2 has no global maximum or minimum, since 00 and 44 are never reached.

Why endpoints matter

An endpoint of the domain is a boundary where the function simply stops, so it can have the greatest or least value even though the gradient there is not zero. In the first question above, f(x)=x2−4x+1f(x) = x^2 - 4x + 1 on [0,5][0, 5] has its global maximum at the endpoint x=5x = 5, not at the turning point.

Discontinuities

If ff has a jump, check the value at the jump and the values approached on each side. A global extremum must be a value the function actually takes. When one side approaches a number without reaching it, that number is not attained.

Modelling with a restricted domain

In a practical problem the variable is limited by the situation: lengths are positive, a wall may be a fixed length, a box cannot have a negative base. Write down the domain when you write the function. Then:

  • Use calculus on the function to find stationary points.
  • Reject any stationary point that falls outside the domain, with a reason.
  • Compare the remaining stationary points and the domain endpoints.
  • Finish with a sentence in context, with units.
Worked examples

Maximise a product with a constraint

Two positive numbers have a sum of 2020. Find the maximum value of their product.

Build the model

Let the numbers be xx and 20−x20 - x with 0≤x≤200 \leq x \leq 20. The product is P=x(20−x)=20x−x2P = x(20 - x) = 20x - x^2.

Differentiate and test

P′=20−2x=0P^\prime = 20 - 2x = 0 gives x=10x = 10, and P′′=−2<0P^{\prime\prime} = -2 < 0, so it is a maximum. P(10)=100P(10) = 100. The endpoints give P(0)=P(20)=0P(0) = P(20) = 0.

Conclude

The maximum product is 100100, when both numbers equal 1010.

Minimise a cost on a restricted domain

The cost, in dollars, of running a machine for tt hours is C(t)=t2−6t+15C(t) = t^2 - 6t + 15 for 1≤t≤21 \leq t \leq 2. Find the minimum cost.

Locate the vertex

C′(t)=2t−6=0C^\prime(t) = 2t - 6 = 0 at t=3t = 3, which is outside 1≤t≤21 \leq t \leq 2.

Check the endpoints

C(1)=1−6+15=10C(1) = 1 - 6 + 15 = 10 and C(2)=4−12+15=7C(2) = 4 - 12 + 15 = 7. On the domain C′<0C^\prime < 0, so CC is decreasing and the minimum is at t=2t = 2.

Conclude

The minimum cost is $7, at t=2t = 2 hours.

Common traps
Forgetting the endpoints
A stationary point is not automatically the global maximum or minimum.
Keeping a stationary point outside the domain
If the algebra gives x=25x = 25 but the domain is 35≤x≤5035 \leq x \leq 50, the point is rejected, and the answer is at an endpoint.
Calling a local extremum global
Compare values at all candidates before you use the word "greatest".
Missing the domain
Write the restriction when you build the function, or you lose the mark for justification.
No conclusion in context
A bare "x=2x = 2" is incomplete. State "the maximum volume is 128128 cm3^3 when the cut is 22 cm".
Exam technique

Make a small two-column table of candidate xx values and the matching f(x)f(x) values. It makes the comparison visible to the marker and stops you skipping an endpoint. In a "show that" model question, show the substitution that eliminates the second variable. Finish every modelling answer with a sentence, including units.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style4 marks
A closed rectangular box has a square base of side xx cm and a total surface area of 600600 cm2^2. Show that its volume is V=150x−x32V = 150x - \dfrac{x^3}{2} and find the maximum volume.
Show worked answer →

Let the height be hh. Surface area 2x2+4xh=6002x^2 + 4xh = 600, so h=300−x22xh = \frac{300 - x^2}{2x}. Then V=x2h=x(300−x2)2=150x−x32V = x^2 h = \frac{x(300 - x^2)}{2} = 150x - \frac{x^3}{2}.

V′=150−3x22=0V^\prime = 150 - \frac{3x^2}{2} = 0 gives x2=100x^2 = 100, so x=10x = 10 (the positive root). V′′=−3x<0V^{\prime\prime} = -3x < 0, so this is a maximum. V(10)=1500−500=1000V(10) = 1500 - 500 = 1000 cm3^3.

Markers award one mark for the height in terms of xx, one for VV, one for x=10x = 10 with a reason for the root chosen and one for the volume with the nature established.

HSC-style3 marks
Find the global maximum and minimum of f(x)=2x3−9x2+12xf(x) = 2x^3 - 9x^2 + 12x on 0≤x≤30 \leq x \leq 3.
Show worked answer →

f′(x)=6x2−18x+12=6(x−1)(x−2)f^\prime(x) = 6x^2 - 18x + 12 = 6(x - 1)(x - 2), so x=1x = 1 and x=2x = 2. Then f(1)=2−9+12=5f(1) = 2 - 9 + 12 = 5 and f(2)=16−36+24=4f(2) = 16 - 36 + 24 = 4. Endpoints: f(0)=0f(0) = 0 and f(3)=54−81+36=9f(3) = 54 - 81 + 36 = 9.

The global maximum is 99 at x=3x = 3 and the global minimum is 00 at x=0x = 0. The local maximum 55 at x=1x = 1 and the local minimum 44 at x=2x = 2 are neither. Markers reward the full list of candidates and the correct comparison.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation3 marks
Find the global maximum and global minimum values of f(x)=x2−4x+1f(x) = x^2 - 4x + 1 on the interval 0≤x≤50 \leq x \leq 5.
Show worked solution →
Stationary point
f′(x)=2x−4=0f^\prime(x) = 2x - 4 = 0 gives x=2x = 2, which lies in the interval, and f(2)=4−8+1=−3f(2) = 4 - 8 + 1 = -3.
Endpoints
f(0)=1f(0) = 1 and f(5)=25−20+1=6f(5) = 25 - 20 + 1 = 6.
Compare
The values are −3-3, 11 and 66. The global maximum is 66 (at x=5x = 5) and the global minimum is −3-3 (at x=2x = 2).

Marker's note: one mark for the stationary point, one for both endpoint values and one for the correct comparison.

core3 marks
Find the global maximum and global minimum of f(x)=x3−3xf(x) = x^3 - 3x on −2≤x≤3-2 \leq x \leq 3.
Show worked solution →

Stationary points. f′(x)=3x2−3=3(x−1)(x+1)=0f^\prime(x) = 3x^2 - 3 = 3(x - 1)(x + 1) = 0 gives x=±1x = \pm 1. Then f(−1)=−1+3=2f(-1) = -1 + 3 = 2 and f(1)=1−3=−2f(1) = 1 - 3 = -2.

Endpoints. f(−2)=−8+6=−2f(-2) = -8 + 6 = -2 and f(3)=27−9=18f(3) = 27 - 9 = 18.

Compare 22, −2-2, −2-2 and 1818. The global maximum is 1818 at x=3x = 3. The global minimum is −2-2, reached at both x=1x = 1 and x=−2x = -2.

Marker's note: the local maximum f(−1)=2f(-1) = 2 is not the global maximum. The function takes the same minimum value at two different xx-values.

core3 marks
Find the global maximum and minimum of f(x)=x+4xf(x) = x + \dfrac{4}{x} on 1≤x≤41 \leq x \leq 4.
Show worked solution →
Stationary point
f′(x)=1−4x2=0f^\prime(x) = 1 - \dfrac{4}{x^2} = 0 gives x2=4x^2 = 4, so x=2x = 2 (the root x=−2x = -2 is outside the interval). f(2)=2+2=4f(2) = 2 + 2 = 4.
Endpoints
f(1)=1+4=5f(1) = 1 + 4 = 5 and f(4)=4+1=5f(4) = 4 + 1 = 5.
Compare
The global minimum is 44 at x=2x = 2. The global maximum is 55, and it occurs at both endpoints x=1x = 1 and x=4x = 4.

Marker's note: one mark for the derivative and root inside the domain, one for both endpoints, one for the conclusion.

exam5 marks
A square sheet of card of side 1212 cm has a square of side xx cm cut from each corner, and the sides are folded up to make an open box. (a) Show that the volume is V=x(12−2x)2V = x(12 - 2x)^2 and state the domain. (b) Find the value of xx that gives the maximum volume, and that volume.
Show worked solution →

(a) Build the model. The base is a square of side 12−2x12 - 2x and the height is xx, so V=x(12−2x)2V = x(12 - 2x)^2. The base side must be positive and xx must be positive, so the domain is 0<x<60 < x < 6; the closed interval 0≤x≤60 \leq x \leq 6 is used when checking endpoints, where the volume is 00.

(b) Differentiate. Expanding, V=4x3−48x2+144xV = 4x^3 - 48x^2 + 144x, so

V′=12x2−96x+144=12(x−2)(x−6).V^\prime = 12x^2 - 96x + 144 = 12(x - 2)(x - 6).

Stationary points are x=2x = 2 and x=6x = 6. Only x=2x = 2 is inside the open domain.

Evaluate. V(2)=2×82=128V(2) = 2 \times 8^2 = 128. At the endpoints V(0)=0V(0) = 0 and V(6)=0V(6) = 0. So the global maximum volume is 128128 cm3^3 when x=2x = 2 cm.

Marker's note: one mark for the model, one for the domain, one for the derivative, one for rejecting x=6x = 6 with a reason and one for the volume with units.

exam4 marks
The function ff is defined on 0≤x≤50 \leq x \leq 5 by f(x)=x2f(x) = x^2 for 0≤x<20 \leq x < 2 and f(x)=7−xf(x) = 7 - x for 2≤x≤52 \leq x \leq 5. Find the global maximum and global minimum values of ff and say where each occurs.
Show worked solution →

Examine each piece. On 0≤x<20 \leq x < 2, f(x)=x2f(x) = x^2 is increasing, from f(0)=0f(0) = 0 and approaching 44 as x→2x \to 2 from the left. The value 44 is not attained by this piece.

On 2≤x≤52 \leq x \leq 5, f(x)=7−xf(x) = 7 - x is decreasing, from f(2)=5f(2) = 5 to f(5)=2f(5) = 2.

Compare. The function is discontinuous at x=2x = 2 (the left piece approaches 44 but f(2)=5f(2) = 5). The largest value actually reached is f(2)=5f(2) = 5, so the global maximum is 55 at x=2x = 2. The smallest value is f(0)=0f(0) = 0, the global minimum at x=0x = 0.

Marker's note: one mark for each piece analysed, one for recognising the jump at x=2x = 2 and one for the correct extrema. There are no stationary points to find here.

exam5 marks
A farmer has 100100 m of fencing to enclose a rectangular paddock using an existing straight wall as one side, so only three sides need fencing. The wall is 3030 m long, so the side parallel to it can be at most 3030 m. Let xx metres be the length of each of the two sides perpendicular to the wall. (a) Show that the area is A=x(100−2x)A = x(100 - 2x) and state the domain of xx. (b) Find the maximum area and the value of xx that gives it.
Show worked solution →
(a) Model
The side parallel to the wall is 100−2x100 - 2x, so A=x(100−2x)=100x−2x2A = x(100 - 2x) = 100x - 2x^2. The parallel side must satisfy 100−2x≤30100 - 2x \leq 30, giving x≥35x \geq 35, and it must be non-negative, giving x≤50x \leq 50. So the domain is 35≤x≤5035 \leq x \leq 50.
(b) Differentiate
A′=100−4xA^\prime = 100 - 4x, which is zero at x=25x = 25. But x=25x = 25 is outside the domain, so there is no stationary point to consider.
Check the endpoints
On 35≤x≤5035 \leq x \leq 50, A′=100−4x<0A^\prime = 100 - 4x < 0, so AA is decreasing and the maximum is at the left endpoint:

A(35)=35×30=1050,A(50)=50×0=0.A(35) = 35 \times 30 = 1050, \qquad A(50) = 50 \times 0 = 0.

The maximum area is 10501050 m2^2 when x=35x = 35 m (so the parallel side is 3030 m).

Marker's note: one mark for the model, one for the domain, one for rejecting x=25x = 25, one for the endpoint comparison and one for the contextual conclusion. Without the wall limit, the unrestricted maximum would be A(25)=1250A(25) = 1250 m2^2, which is not allowed here.

Practise this

Sources & how we know this

ExamExplained