
Adam M. answered 11/22/19
PhD Mathematician with a Wealth of Teaching Experience
The rope of length x will form the circumference of a circle, while the rope of length y=30-x will form the perimeter of a square. If the circle has radius r, we can use that the circumference of a circle is 2πr=x, which gives that r=x/(2π). Since the area of the circle is πr2, we have that the area of the circle is equal to π(x/(2π))2=x2/(4π).
If the square (whose perimeter is y=30-x) has side length s, we can use that the perimeter of a square is 4s=30-x, which gives that s=(30-x)/4. Since the area of the square is s2, we have that the area of the square is equal to [(30-x)/4]2=(30-x)2/16.
Thus the function f(x) = x2/(4π) + (30-x)2/16.