Lesson 8: Modelling with quadratic functions
The largest pen against a wall
SkillsModelling with quadraticsCompleting the square
Worked example
A farmer has 60 m of fencing to build a rectangular pen against a long straight wall, so only three sides need fencing. Find the dimensions that give the largest possible area, and that area.
Step 1: Define a variable
Let metres be the length of each side perpendicular to the wall. The side parallel to the wall uses the rest of the fencing: metres.
Writing every length in terms of one variable turns the area into a function of that variable.
Step 2: Write the area as a quadratic
, where so that every side has positive length.
Step 3: Complete the square
Turning point form shows the maximum directly: , so is a maximum.
Step 4: Interpret the turning point
The maximum area is 450 m² when . The side parallel to the wall is then m.
Step 5: Check
m of fencing, and m².
Answer
The pen should be 15 m out from the wall and 30 m along it, giving a greatest area of 450 m².
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
Method
Define one length as the variable and write the others in terms of it.
Multiply to get the area as a quadratic, and note the values of that make sense.
Find the turning point by completing the square, or as the midpoint of the zeros.
Answer with every dimension asked for, with units.
Watch out for
Using , as if all four sides were fenced.
Stopping at without giving the other dimension or the area.