Let side of square is x and radius of circle is r.
Perimeter of circle (circumference) = 2πr
Sum of both perimeters = 4x + 2πr = k …..(i)
Area of circle, A2 = πr2
Area of square, A2 = x2
∴ Sum of areas, A = πr2 + x2
Hence, side of square is equal to diameter of circle, when sum of area of both is minimum.