A square is inscribed in a circle. Write the area of the square as a function of the radius.