Multivariable calculus
Double Integral of y Between x = y and x = 2 - y^2
The double integral of y over the region bounded by the line x = y and the parabola x = 2 - y^2 equals -9/4, or -2.25. The curves meet at y = -2 and y = 1, and the parabola is the right-hand boundary between them. The value is negative because most of the region lies below the x-axis.
Numerically -2.250000, confirmed by quadrature on every build.
Type 2 keeps this to a single integral
Find the intersections in the outer variable: gives , so and . Those are the outer limits. Between them test : the line gives and the parabola gives , so the parabola is the right-hand boundary.
The lower endpoint is where sign errors breed. At the even powers give , while the odd one flips: becomes . So the bracket is , and subtracting that positive number from the at the top is exactly what drives the answer negative. Miss the flip and you get , a positive .
The mistake: forcing it into type 1 and forgetting to split
Slice this region vertically and the description changes partway across. For between and the slice runs from the lower branch of the parabola up to the line. For between and it runs between the two branches of the parabola.
That is two integrals, a square root in the limits, and two more chances to lose a sign, against one clean polynomial in the type 2 order. The second piece is by symmetry, but you only know that after setting it up.
- Boundaries written as point to type 2.
- A boundary whose formula changes partway means the other order needs a split.
- Outer limits come from the intersections, solved in the outer variable.
Why the answer is negative
The integrand is negative on most of the region, which stretches from up to only . Nothing is wrong with a negative double integral: it is a signed sum, and only is forced to be positive.
So the centroid sits at height , below the -axis, which matches the picture: the region hangs a good deal further below the axis than above it.
Frequently asked questions
How do I get the outer limits -2 and 1?
Set the two boundary curves equal in the outer variable. Here becomes . Solve rather than read them off a sketch; the algebra is exact and takes one line.
Would the answer be positive if I swapped the inner limits?
It would read , and it would be wrong. The inner lower limit is the left boundary, here the line , and the upper limit is the right boundary, the parabola. Reversing them multiplies the integral by .