Optimization: Square and Circle

Four feet of wire is to be used to form 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 least, respectively the greatest, total area?

More Optimization Questions: