Multivariable calculus
Double Integral of y Between y = x^2 and y = x
The double integral of y over the region between the parabola y = x^2 and the line y = x, for x from 0 to 1, equals 1/15. On that interval the line is above the parabola, so the inner limits run from y = x^2 up to y = x.
Numerically 0.066667, confirmed by quadrature on every build.
Find where the curves meet, then slice
Set to get and . Those intersections are the outer limits. Between them, test one interior point: at the line gives and the parabola gives , so the line is the top boundary.
With the inner step is pure geometry: it returns half the difference of the squared boundary heights, so any error in identifying top and bottom shows up immediately.
The mistake: putting the parabola on top
Outside the parabola is the higher curve, so the ordering people carry over from other problems is backwards here. Swapping the limits negates the answer to .
That negative is a free error detector. The integrand is non-negative everywhere on this region, so a negative result is a contradiction you can spot without rechecking a single line of algebra.
- At : line , parabola . The line wins on .
- At : line , parabola . The parabola wins outside.
- The curves cross only at and , so no splitting is needed in between.
A related slip is integrating with respect to by reflex, producing and leaving a stranded in the outer integrand. The differential names the variable, not the letters in the integrand.
What 1/15 measures
This integral is the first moment of the region about the -axis. Divide by the area and you get the height of the centroid.
A centroid height of is believable. The region is a thin lens between the line and the parabola: at it spans , and it only reaches heights near as approaches .
Frequently asked questions
Does the answer change in the order dx dy?
No, it is still , but the setup flips. For in the slice runs from on the left to on the right, since on the parabola lies to the right of the line. The integral becomes .
Why integrate the bare function y?
It is the integrand that produces the moment about the -axis, and it also keeps the inner step transparent: the result is , which is a statement about the region rather than about the integrand.