Calculus · real student question

Evaluate the double integral of (x/8)(x² + xy) over the region 0 ≤ x ≤ 2, 0 ≤ y ≤ 2.

Question

Evaluate

02 ⁣ ⁣02x8(x2+xy)dydx\int_0^2 \!\! \int_0^2 \frac{x}{8}\left(x^2 + xy\right) dy\,dx

Step-by-step solution

  1. Expand the integrand before doing anything else. A product like x8(x2+xy)\frac{x}{8}(x^2 + xy) is easier to integrate once it is a sum of monomials:

    x8(x2+xy)=x38+x2y8\frac{x}{8}(x^2 + xy) = \frac{x^3}{8} + \frac{x^2 y}{8}

    Now each term is a simple power of xx times a simple power of yy, so both integrations are elementary.

  2. Integrate in y with x held constant. The factor x3/8x^3/8 is constant in yy, while x2y/8x^2y/8 needs the yy-power rule:

    02(x38+x2y8)dy=[x3y8+x2y216]02\int_0^2 \left(\frac{x^3}{8} + \frac{x^2 y}{8}\right) dy = \left[\frac{x^3 y}{8} + \frac{x^2 y^2}{16}\right]_0^2

  3. Substitute the y-limits. At y=2y = 2 (the y=0y = 0 end contributes nothing):

    2x38+4x216=x34+x24\frac{2x^3}{8} + \frac{4x^2}{16} = \frac{x^3}{4} + \frac{x^2}{4}

    Notice the y2y^2 term produces 44, not 22 — squaring the upper limit is where an arithmetic error usually enters.

  4. Integrate the result in x. Pull out the common 14\tfrac14:

    1402(x3+x2)dx=14[x44+x33]02=14(4+83)\frac{1}{4}\int_0^2 (x^3 + x^2)\,dx = \frac{1}{4}\left[\frac{x^4}{4} + \frac{x^3}{3}\right]_0^2 = \frac{1}{4}\left(4 + \frac{8}{3}\right)

  5. Finish the arithmetic and sanity-check the size.

    14203=531.6667\frac{1}{4} \cdot \frac{20}{3} = \frac{5}{3} \approx 1.6667

    Quadrature over the square agrees to eight digits. As a plausibility check, the integrand ranges from 00 to 28(4+4)=2\frac{2}{8}(4 + 4) = 2 on a region of area 44, so a value of 53\tfrac53 is comfortably inside the possible range. (The 1/81/8 is exactly the constant that would make x8(x+y)\frac{x}{8}(x+y) a probability density on this square — this integrand is that density times xx.)

Answer

53\frac{5}{3}

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