(a) Conditions for Switching Order: As stated in the answer, Fubini's Theorem or Tonelli's Theorem provides the theoretical foundation for switching the integration order. For most functions encountered in introductory courses, continuity on a compact (closed and bounded) set is sufficient to guarantee that the order can be switched.
(b) Rewriting the Integral:
1.
Identify the region: The integral $\int_0^1 \int_{x^2}^{2-x}f(x,y) \,dydx$ describes a region where $0 \leq x \leq 1$, and for each $x$, $y$ is bounded below by the parabola $y=x^2$ and above by the line $y=2-x$.
2.
Find intersection points: We find where the boundary curves meet: $x^2 = 2-x \implies x^2+x-2 = 0 \implies (x+2)(x-1)=0$. The intersection points are at $x=1$ (giving point $(1,1)$) and $x=-2$ (giving point $(-2,4)$). Since our region is for $0 \leq x \leq 1$, the key intersection is at $(1,1)$.
3.
Sketch the region: Sketch the parabola $y=x^2$, the line $y=2-x$, and the vertical lines $x=0$ and $x=1$. The region is bounded by $x=0$ (the y-axis) on the left, $y=x^2$ on the bottom, and $y=2-x$ on the top.
4.
Change the perspective (Type II region): To integrate with respect to $x$ first, we need bounds for $x$ in terms of $y$. We need to solve our boundary equations for $x$:
- $y=x^2 \implies x = \sqrt{y}$ (since $x \ge 0$ in our region)
- $y=2-x \implies x = 2-y$
As we move up the y-axis, the right-hand boundary of the region changes at the intersection point $(1,1)$. This means we must split the integral into two parts.
- Part 1 ($0 \leq y \leq 1$): The region is bounded on the left by $x=0$ and on the right by the parabola $x=\sqrt{y}$. The integral for this part is $\int_{0}^{1} \int_{0}^{\sqrt{y}} f(x,y) \,dx dy$.
- Part 2 ($1 \leq y \leq 2$): The region is bounded on the left by $x=0$ and on the right by the line $x=2-y$. The integral for this part is $\int_{1}^{2} \int_{0}^{2-y} f(x,y) \,dx dy$.
5.
Combine the integrals: The full integral with the order switched is the sum of these two parts:
$$ \int_{0}^{1} \int_{0}^{\sqrt{y}} f(x,y) \,dx dy + \int_{1}^{2} \int_{0}^{2-y} f(x,y) \,dx dy $$