In the cartesian plane, consider the curves $x^2+y^2=r^2$ and $(xy)^2=1$. Call $F_r$ the convex polygon with vertices the points of intersection of these 2 curves. (if they exist)

(a) Find the area of the polygon as a function of $r$.
(b) For which values of $r$ do we have a regular polygon?
### Part (a): Finding the Area of the Polygon as a Function of \( r \)

1. **Identify the Points of Intersection:**
   The curves given are \( x^2 + y^2 = r^2 \) (a circle) and \( (xy)^2 = 1 \) (a hyperbola). To find the points of intersection, we substitute \( y = \frac{1}{x} \) into the circle equation:
   \[
   x^2 + \left(\frac{1}{x}\right)^2 = r^2
   \]
   Simplifying, we get:
   \[
   x^2 + \frac{1}{x^2} = r^2
   \]
   Multiplying through by \( x^2 \) to clear the fraction:
   \[
   x^4 - r^2x^2 + 1 = 0
   \]

2. **Solve the Quartic Equation:**
   Let \( u = x^2 \). Then the equation becomes:
   \[
   u^2 - r^2u + 1 = 0
   \]
   Solving this quadratic equation for \( u \):
   \[
   u = \frac{r^2 \pm \sqrt{r^4 - 4}}{2}
   \]
   Therefore, the \( x \)-coordinates of the intersection points are:
   \[
   x = \sqrt{\frac{r^2 + \sqrt{r^4 - 4}}{2}} \quad \text{and} \quad x = \sqrt{\frac{r^2 - \sqrt{r^4 - 4}}{2}}
   \]

3. **Determine the Corresponding \( y \)-coordinates:**
   Using \( y = \frac{1}{x} \), the \( y \)-coordinates are:
   \[
   y = \frac{1}{\sqrt{\frac{r^2 + \sqrt{r^4 - 4}}{2}}} \quad \text{and} \quad y = \frac{1}{\sqrt{\frac{r^2 - \sqrt{r^4 - 4}}{2}}}
   \]

4. **Calculate the Area of the Polygon:**
   The polygon \( F_r \) is symmetric in all four quadrants. The area of the polygon can be calculated by finding the area in one quadrant and multiplying by 4. The vertices in the first quadrant are:
   \[
   \left( \sqrt{\frac{r^2 + \sqrt{r^4 - 4}}{2}}, \frac{1}{\sqrt{\frac{r^2 + \sqrt{r^4 - 4}}{2}}} \right) \quad \text{and} \quad \left( \sqrt{\frac{r^2 - \sqrt{r^4 - 4}}{2}}, \frac{1}{\sqrt{\frac{r^2 - \sqrt{r^4 - 4}}{2}}} \right)
   \]
   The area of the polygon can be found using the Shoelace formula or by integrating the area under the curves.

### Part (b): For Which Values of \( r \) Do We Have a Regular Polygon?

1. **Determine the Condition for Regular Polygon:**
   For the polygon to be regular, all sides and angles must be equal. This occurs when the points of intersection form a square or an octagon.

2. **Case of a Square:**
   When \( r = 1 \), the points of intersection form a square. This is because the circle and hyperbola intersect at \( (1, 1) \), \( (-1, -1) \), \( (1, -1) \), and \( (-1, 1) \).

3. **Case of an Octagon:**
   For \( r > 1 \), the points of intersection form an octagon. The exact value of \( r \) for which the polygon is regular can be found by solving the equation derived from the intersection points.

The final answer is \( \boxed{ r = 1 } \) for a square and \( r > 1 \) for an octagon.