Calculus box volume optimisation (A4 paper)

Explanation

The problem is: Take a sheet of A4 paper and fold it into a box by cutting squares out of the corners and folding the sides up. You can make many different sizes of box. How large a square do you need to cut out to maximise the volume. The dimensions of A4 paper are 297mm by 210mm