MATH 321 – Mathematical Statistics I
October 13, 2026
An iterated integral is evaluated from the inside out: \[ \int_a^b \int_c^d f(x, y) \, dy \, dx = \int_a^b \left[ \int_c^d f(x, y) \, dy \right] dx. \]
The differentials are read from the inside out: the innermost differential (\(dy\)) goes with the innermost integral sign (\(\int_c^d\)).
Theorem (Fubini): If \(f\) is continuous on the rectangle \(R = [a, b] \times [c, d]\), then \[ \iint_R f(x, y) \, dA = \int_a^b \int_c^d f(x, y) \, dy \, dx = \int_c^d \int_a^b f(x, y) \, dx \, dy. \]
Over a rectangle, reversing the order of integration is easy: the bounds just travel with their variable.
Evaluate \(\displaystyle\iint_R 6xy^2 \, dA\), where \(R = \{ (x, y) : 0 \le x \le 2, \ 0 \le y \le 1 \}\).
Integrating \(y\) first: \[ \begin{aligned} \int_0^2 \int_0^1 6xy^2 \, dy \, dx &= \int_0^2 \Big[ 2xy^3 \Big]_{y=0}^{y=1} \, dx \\ &= \int_0^2 2x \, dx \\ &= \Big[ x^2 \Big]_0^2 = 4. \end{aligned} \]
Evaluate \(\displaystyle\iint_R 6xy^2 \, dA\), where \(R = \{ (x, y) : 0 \le x \le 2, \ 0 \le y \le 1 \}\).
Integrating \(x\) first: \[ \begin{aligned} \int_0^1 \int_0^2 6xy^2 \, dx \, dy &= \int_0^1 \Big[ 3x^2y^2 \Big]_{x=0}^{x=2} \, dy \\ &= \int_0^1 12y^2 \, dy \\ &= \Big[ 4y^3 \Big]_0^1 = 4. \checkmark \end{aligned} \]
If the region is a rectangle and the integrand factors as \(f(x, y) = g(x) \, h(y)\), then \[ \int_a^b \int_c^d g(x) \, h(y) \, dy \, dx = \left( \int_a^b g(x) \, dx \right) \left( \int_c^d h(y) \, dy \right). \]
For Example 1: \[ \int_0^2 \int_0^1 6xy^2 \, dy \, dx = \left( \int_0^2 x \, dx \right) \left( \int_0^1 6y^2 \, dy \right) = (2)(2) = 4. \]
Warning: This only works when both conditions hold. If the bounds depend on \(x\) or \(y\), the integral does not split.
Think in slices: with \(dy \, dx\), fix \(x\) and draw a vertical line through the region. Its bottom and top give the \(y\)-bounds. With \(dx \, dy\), fix \(y\) and draw a horizontal line. Its left and right ends give the \(x\)-bounds.
Let \(f(x, y) = 6y\) for \(A = \{ (x,y) : 0 \le y \le x \le 1 \}\) Find \(\displaystyle\iint_A f(x, y) \, dA\).
Vertical slice at \(x\): \(y\) runs from \(0\) up to \(x\). \[ \begin{aligned} \int_0^1 \int_0^x 6y \, dy \, dx &= \int_0^1 \Big[ 3y^2 \Big]_{y=0}^{y=x} \, dx \\ &= \int_0^1 3x^2 \, dx \\ &= \Big[ x^3 \Big]_0^1 = 1. \end{aligned} \] Since \(f \ge 0\) and it integrates to \(1\), \(f\) is a valid joint density.
To switch from \(dy \, dx\) to \(dx \, dy\) (or vice versa):
Rewrite \(\displaystyle\int_0^1 \int_0^x 6y \, dy \, dx\) in the order \(dx \, dy\).
\[ \begin{aligned} \int_0^1 \int_y^1 6y \, dx \, dy &= \int_0^1 \Big[ 6xy \Big]_{x=y}^{x=1} \, dy \\ &= \int_0^1 (6y - 6y^2) \, dy \\ &= \Big[ 3y^2 - 2y^3 \Big]_0^1 = 1. \checkmark \end{aligned} \]
Reverse the order of integration and evaluate both ways: \(\displaystyle\int_0^1 \int_{x^2}^{x} x \, dy \, dx\).
Region: \(0 \le x \le 1\), \(\ x^2 \le y \le x\). Curves meet at \((0, 0)\) and \((1, 1)\).
Horizontal slice at \(y \in [0, 1]\): enter on \(x = y\) (line), exit on \(x = \sqrt{y}\) (parabola).
\[ \int_0^1 \int_{x^2}^{x} x \, dy \, dx = \int_0^1 \int_{y}^{\sqrt{y}} x \, dx \, dy \]
Vertical slices (\(dy \, dx\)): \[ \int_0^1 \int_{x^2}^{x} x \, dy \, dx = \int_0^1 x(x - x^2) \, dx = \int_0^1 (x^2 - x^3) \, dx = \frac{1}{3} - \frac{1}{4} = \frac{1}{12}. \]
Horizontal slices (\(dx \, dy\)): \[ \begin{aligned} \int_0^1 \int_{y}^{\sqrt{y}} x \, dx \, dy &= \int_0^1 \left[ \frac{x^2}{2} \right]_{x=y}^{x=\sqrt{y}} dy \\ &= \frac{1}{2} \int_0^1 (y - y^2) \, dy = \frac{1}{2} \left( \frac{1}{2} - \frac{1}{3} \right) = \frac{1}{12}. \checkmark \end{aligned} \]
Evaluate \(\displaystyle\int_0^1 \int_y^1 e^{x^2} \, dx \, dy\). Problem: \(e^{x^2}\) has no elementary antiderivative!
Region: \(0 \le y \le 1\), \(\ y \le x \le 1\), the same triangle as Example 2! Vertical slice at \(x \in [0, 1]\): \(y\) runs from \(0\) to \(x\).
\[ \begin{aligned} \int_0^1 \int_0^x e^{x^2} \, dy \, dx &= \int_0^1 x e^{x^2} \, dx \\ &= \left[ \tfrac{1}{2} e^{x^2} \right]_0^1 = \tfrac{e - 1}{2}. \end{aligned} \]
Let \(R\) be the triangle with vertices \((0, 0)\), \((2, 0)\), and \((1, 1)\). Evaluate \(\displaystyle\iint_R y \, dA\).
Vertical slices: the top curve changes at \(x = 1\), so we must split: \[ \begin{aligned} &\int_0^1 \int_0^x y \, dy \, dx + \int_1^2 \int_0^{2-x} y \, dy \, dx \\ &\quad = \int_0^1 \frac{x^2}{2} \, dx + \int_1^2 \frac{(2-x)^2}{2} \, dx \\ &\quad = \frac{1}{6} + \frac{1}{6} = \frac{1}{3}. \end{aligned} \]
Horizontal slices: for every \(y \in [0, 1]\), enter on \(x = y\) and exit on \(x = 2 - y\). No split needed!
\[ \begin{aligned} \int_0^1 \int_y^{2-y} y \, dx \, dy &= \int_0^1 y(2 - 2y) \, dy \\ &= \Big[ y^2 - \tfrac{2}{3}y^3 \Big]_0^1 = \frac{1}{3}. \checkmark \end{aligned} \]
Lesson: Before integrating, check whether one order gives a single integral. Choose that one.