Optimization

End-point problem

A wire with length 4m is to be used to make a square and a circle. How much wire should be used for the square and how much for the circle in order to enclose the great amount of area?