Calculus · real student question

Evaluate the double integral of xy times sin(xy²) over the region 0 ≤ x ≤ π, 0 ≤ y ≤ π.

Question

Evaluate

I=0π ⁣ ⁣0πxysin(xy2)dydxI = \int_0^{\pi} \!\! \int_0^{\pi} xy\,\sin(xy^2)\,dy\,dx

Step-by-step solution

  1. Spot the substitution hiding in the integrand. The sine argument is xy2xy^2 and the factor outside is xyxy. Since ddy(xy2)=2xy\frac{d}{dy}(xy^2) = 2xy, the outside factor is half the derivative of the inside — the signature of a clean u-substitution in yy. Integrating in xx first would not work nearly as neatly, so keep the given order dydxdy\,dx.

  2. Substitute in the inner integral with x held fixed. Let

    u=xy2,du=2xydy  xydy=12duu = xy^2, \qquad du = 2xy\,dy \ \Longrightarrow \ xy\,dy = \tfrac12\,du

    The limits move with the variable: y=0y = 0 gives u=0u = 0, and y=πy = \pi gives u=xπ2u = x\pi^2. So

    0πxysin(xy2)dy=120xπ2sinudu\int_0^{\pi} xy\sin(xy^2)\,dy = \frac{1}{2}\int_0^{x\pi^2} \sin u\,du

  3. Evaluate the inner integral.

    12[cosu]0xπ2=12(1cos(xπ2))\frac{1}{2}\bigl[-\cos u\bigr]_0^{x\pi^2} = \frac{1}{2}\left(1 - \cos(x\pi^2)\right)

    The xx that was outside has been absorbed by the substitution, which is why no stray factor of xx survives.

  4. Integrate the result in x.

    I=120π(1cos(xπ2))dx=12(π[sin(xπ2)π2]0π)I = \frac{1}{2}\int_0^{\pi}\left(1 - \cos(x\pi^2)\right) dx = \frac{1}{2}\left(\pi - \left[\frac{\sin(x\pi^2)}{\pi^2}\right]_0^{\pi}\right)

    The 1π2\frac{1}{\pi^2} comes from the chain rule: π2\pi^2 here is a constant multiplying xx inside the cosine.

  5. Assemble and evaluate.

    I=π2sin(π3)2π2I = \frac{\pi}{2} - \frac{\sin(\pi^3)}{2\pi^2}

    With π331.00628\pi^3 \approx 31.00628 and sin(π3)0.39829\sin(\pi^3) \approx -0.39829:

    I1.570796+0.020178=1.590974I \approx 1.570796 + 0.020178 = 1.590974

    Direct two-dimensional quadrature gives 1.590973841.59097384, matching. (The stated region had y<πy < \pi rather than yπy \le \pi; a single boundary line has zero area, so the value is unchanged.)

Answer

π2sin(π3)2π21.59097\frac{\pi}{2} - \frac{\sin(\pi^3)}{2\pi^2} \approx 1.59097

Need to solve a different problem like this? Open the solver →