A rectangle is inscribed in a circle of radius r. If the rectangle has length 2x, write the area of the rectangle as the product of two functions.