The area enclosed by two curves is found by integrating the upper function minus the lower one. We do it for and .
From we get , so and , and the intersections are and . Those two points fix the interval of integration.
Which of the two is on top for ? Putting in gives and , so the line is above. The integrand is therefore .
| Integral | Value |
|---|---|
| Difference |
The difference of the two regions is the enclosed part.
The subtraction works even when the curves lie below the -axis. Translating both down by leaves the difference unchanged, so the area is unchanged as well. As long as the judgment of which is on top is right, there is no need to worry about signs.
Where the two swap places, the interval is split. Cut at each intersection, choose the upper function again on each piece, and add the areas.
Solving and for gives and .
Stacking thin horizontal rectangles gives the same value.
Writing and for the -coordinates of the intersections, if the coefficient of is the area is . Here that is , matching the computation above.
The parabola on the graph is , the line is , and the large dots are the intersections.