In this case we choose to evaluate the double integral as an iterated integral in the form
\begin{equation*}
\iint_D x^2y \, dA = \int_{x=a}^{x=b} \int_{y=g_1(x)}^{y=g_2(x)} x^2y \, dy \, dx,
\end{equation*}
and therefore we need to describe \(D\) in terms of inequalities
\begin{equation*}
g_1(x) \leq y \leq g_2(x) \ \ \ \ \ \text{ and } \ \ \ \ \ a \leq x \leq b.
\end{equation*}
Since we are integrating with respect to \(y\) first, the iterated integral has the form
\begin{equation*}
\iint_D x^2y \, dA =\int_{x=a}^{x=b} A(x) \, dx,
\end{equation*}
where
\(A(x)\) is a cross sectional area in the
\(y\) direction. So we are slicing the domain perpendicular to the
\(x\)-axis and want to understand what a cross sectional area of the overall solid will look like. Several slices of the domain are shown in the middle image in
Figure 3.3.4. On a slice with fixed
\(x\) value, the
\(y\) values are bounded below by 0 and above by the
\(y\) coordinate on the hypotenuse of the right triangle. Thus,
\(g_1(x) = 0\text{;}\) to find
\(y = g_2(x)\text{,}\) we need to write the hypotenuse as a function of
\(x\text{.}\) The hypotenuse connects the points (0,0) and (2,3) and hence has equation
\(y = \frac{3}{2}x\text{.}\) This gives the upper bound on
\(y\) as
\(g_2(x) = \frac{3}{2}x\text{.}\) The leftmost vertical cross section is at
\(x=0\) and the rightmost one is at
\(x=2\text{,}\) so we have
\(a=0\) and
\(b=2\text{.}\) Therefore,
\begin{equation*}
\iint_D x^2y \, dA = \int_{x=0}^{x=2} \int_{y=0}^{y = \frac32 x} x^2y \, dy \, dx.
\end{equation*}
We evaluate the iterated integral by applying the Fundamental Theorem of Calculus first to the inner integral, and then to the outer one, and find that
\begin{align*}
\int_{x=0}^{x=2} \int_{y=0}^{y=\frac32 x} x^2y \, dy \, dx \amp = \int_{x=0}^{x=2} \left[x^2 \cdot \frac{y^2}{2}\right]\biggm|_{y=0}^{y=\frac32 x} \, dx\\
\amp = \int_{x=0}^{x=2} \frac{9}{8}x^4\, dx\\
\amp = \frac{9}{8}\frac{x^5}{5}\biggm|_{x=0}^{x=2}\\
\amp = \left(\frac{9}{8}\right) \left(\frac{32}{5}\right)\\
\amp = \frac{36}{5}.
\end{align*}