With a wire mesh of 1000 mts divided into two parts , we want to fence a circular land and a square land.
a)Calculate the lengths of each of the parties such that the total area enclosed is maximum. b)Calculate the lengths of each of the parties such that the total area enclosed is minimal.
Here is my work:

I don´t understand why i only got a minimum some help please to solve this problem please.
Your calculation is fine. So the only local extremum in the interior of the valid range for $r$ is a minimum. Then where in that closed interval lies the maximum?