Evaluating the integral in the original order with respect to
\(x\) first requires integration by parts (since
\(x e^{xy}\) has
\(x\) multiplied by an exponential function of
\(x\)).
By applying Fubiniβs Theorem, we can swap the order of integration to integrate with respect to \(y\) first:
\begin{gather*}
\int_0^3 \int_0^1 x e^{xy} \, dy \, dx
\end{gather*}
With respect to \(y\text{,}\) \(x\) is treated as a constant, making the antiderivative of \(x e^{xy}\) simply \(e^{xy}\) without requiring integration by parts:
\begin{align*}
\int_0^1 x e^{xy} \, dy \amp = \left[ e^{xy} \right]_{y=0}^{y=1} = e^x - e^0 = e^x - 1
\end{align*}
Now integrating this simpler expression with respect to \(x\) from \(0\) to \(3\text{:}\)
\begin{align*}
\int_0^3 (e^x - 1) \, dx \amp = \left[ e^x - x \right]_0^3 = (e^3 - 3) - (e^0 - 0) = e^3 - 4
\end{align*}