Calculus · real student question

For the integral of (x - 4y) with x from -1 to 2 and y from 0 to 1: sketch the region of integration, evaluate the double integral over the rectangle, then reverse the order of integration and evaluate again.

Question

Consider the integral

01 ⁣ ⁣12(x4y)dxdy\int_{0}^{1}\!\!\int_{-1}^{2}(x-4y)\,dx\,dy

a) Describe the region of integration.
b) Evaluate the double integral over the rectangular region.
c) Reverse the order of integration and evaluate the resulting integral.

Step-by-step solution

  1. Identify the region. The inner variable xx runs from 1-1 to 22 and the outer variable yy runs from 00 to 11, both with constant limits. The region is therefore the axis-aligned rectangle R=[1,2]×[0,1]R=[-1,2]\times[0,1], three units wide and one unit tall, sitting just above the xx-axis.

  2. Do the inner integral in xx, treating yy as a constant. 12(x4y)dx=[x224yx]12=(28y)(12+4y)=3212y\displaystyle\int_{-1}^{2}(x-4y)\,dx=\left[\frac{x^2}{2}-4yx\right]_{-1}^{2}=(2-8y)-\left(\tfrac12+4y\right)=\tfrac32-12y.

  3. Do the outer integral in yy. 01(3212y)dy=[32y6y2]01=326=92\displaystyle\int_{0}^{1}\left(\tfrac32-12y\right)dy=\left[\tfrac32y-6y^2\right]_0^1=\tfrac32-6=-\tfrac92.

  4. Reverse the order. Because both limits are constants, the region does not have to be re-described: the reversed integral is simply 12 ⁣ ⁣01(x4y)dydx\displaystyle\int_{-1}^{2}\!\!\int_{0}^{1}(x-4y)\,dy\,dx. This is the easy case of changing order — only regions with variable limits need re-cutting.

  5. Evaluate in the new order. Inner: 01(x4y)dy=[xy2y2]01=x2\displaystyle\int_0^1(x-4y)\,dy=\left[xy-2y^2\right]_0^1=x-2. Outer: 12(x2)dx=[x222x]12=(24)(12+2)=252=92\displaystyle\int_{-1}^{2}(x-2)\,dx=\left[\tfrac{x^2}{2}-2x\right]_{-1}^{2}=(2-4)-\left(\tfrac12+2\right)=-2-\tfrac52=-\tfrac92.

  6. Confirm that both orders agree. Both routes give 92-\tfrac92, which is what Fubini's theorem predicts for a continuous integrand on a rectangle. A composite Simpson evaluation of the nested integral also returns 4.5-4.5.

  7. Sanity-check the sign. Over this rectangle the average of xx is 12\tfrac12 and the average of yy is 12\tfrac12, so the average of x4yx-4y is about 122=32\tfrac12-2=-\tfrac32; multiplied by the area 33 that predicts 92-\tfrac92 exactly, matching the computed value.

Answer

92-\frac{9}{2}

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