All courses › Mathematics R1 › A fence against a wall

A fence against a wall

When a wall is one side, the fence is used only on the other three. With a fixed length of fence the width can be chosen freely, and the length is whatever remains. The area then becomes a function of one variable. You differentiate, set the derivative equal to zero and check that it is a maximum. The endpoints give zero area, so the interior point is the largest.

A(x)=x(L−2x)A(x) = x(L - 2x)area against a wall
A′(x)=L−4xA'(x) = L - 4xthe derivative

Symbols

LLthe length of fencem
xxthe width out from the wallm
AAthe aream^2

Example

With 4040 m of fence, A(x)=x(40−2x)A(x) = x(40 - 2x). A′(x)=40−4x=0A'(x) = 40 - 4x = 0 gives x=10x = 10 m. The length is 2020 m and the area is 200200 m2^2.

The wall is one long side. Then there are two widths and only one length that uses fence.
Practise optimisation for free →

← The quotient rule · A box from a sheet →

Part of Mathematics R1: Optimisation.