Worked Example · Quadratic Functions · Paper 2 · 6 marks
Maximum Area with Completing the Square
Written by Rig, our founder
8 years teaching IGCSE & SPM maths · Updated 16 August 2026
You don’t always need calculus to optimise, completing the square finds the maximum or minimum of a quadratic directly. This is the intended method when the quantity to optimise is a quadratic and calculus hasn’t been assumed.
A rectangular pen is built against a straight wall, so only three sides need fencing. There are m of fencing available. Show that the area enclosed is , where is the width, and find the maximum possible area. [6]
The working
Step 1, form the area function. Two widths ( each) and one length use the fencing: , so length . Then:
Step 2, complete the square to find the maximum. Factor out :
Step 3, read the maximum. Since , the area is largest when the bracket is zero, at :
Where the marks are won and lost
- Building the area function from the fencing constraint is the first work: length (one length, two widths), not .
- The coefficient of is negative, so the vertex is a maximum, exactly what’s wanted.
- Completing the square with a factored needs care: . Forgetting to multiply the by is the usual slip.
Common mistakes
- Using for the length (forgetting only three sides are fenced, so it’s ).
- Reading the vertex as a minimum.
- Arithmetic in completing the square (the ).
Full method: Maximum/Minimum & the Vertex notes. Topic home: Quadratic Functions pillar.