A definite integral measures the area trapped between one curve and the -axis. Replacing the height by a difference of two heights extends the idea to any region caught between two graphs. Every problem in this section reduces to the same three steps: draw a typical rectangle, write down its area , and integrate.
| Item | Statement |
|---|---|
| Element of area (vertical) | |
| Vertical rectangles | , valid when on |
| Element of area (horizontal) | |
| Horizontal rectangles | , valid when on |
| Height of a vertical rectangle | top curve minus bottom curve |
| Length of a horizontal rectangle | right curve minus left curve |
| Finding and | solve |
| Finding and | solve |
| Curves that cross inside the interval | split at every crossing and add the pieces |
| Region that needs two integrals | often needs only one integral, and the reverse |
| Symmetry | if the region is symmetric about the -axis, integrate over half and double |
| Sign check | an area is never negative, so always integrate top minus bottom |
Vertical Rectangles: Integrating with Respect to x
Suppose two given curves and intersect at and , and
To find the area of the region bounded between these two curves, consider a vertical rectangle as shown in the figure below. The height of this rectangle is and its width is . The area of this infinitesimal rectangle is
and the total area is
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{A=\int_{a}^{b}dA=\int_{a}^{b}[f(x)-g(x)]\,dx.}
- Notice that we integrate from the smaller limit to the larger one , and is greater than in the entire interval of integration; otherwise the integral (and the area) becomes negative, which is meaningless.
- Because the curves and intersect at and , they have the same -values at these points. If in a problem and are not given, we can find them by solving the equation .
Find the area of the region bounded by the curves and .

Solution
Using vertical rectangles, we realize that the height of the typical rectangle is and its width is . So the element of area is

These two curves intersect where
so the total area bounded by and is
\begin{aligned} A=\int_{-2}^{2}dA &= \int_{-2}^{2}\left(2-\frac{1}{2}x^{2}\right)dx\\ &= \left[2x-\frac{1}{6}x^{3}\right]_{x=-2}^{x=2}\\ &= 2\left(4-\frac{1}{6}\cdot8\right)\\ &= \frac{16}{3}. \end{aligned}Because the region is symmetric with respect to the -axis, we could simply integrate from to and multiply the result by . That is,
\begin{aligned} A &= 2\int_{0}^{2}\left(2-\frac{1}{2}x^{2}\right)dx\\ &= 2\left[2x-\frac{1}{6}x^{3}\right]_{x=0}^{x=2}\\ &= 2\left(4-\frac{8}{6}\right)=\frac{16}{3}. \end{aligned}
Horizontal Rectangles: Integrating with Respect to y
Sometimes, instead of vertical rectangles, we could (or should) consider horizontal rectangles. To find the area of the region bounded by the curves and (with ) and the horizontal lines and (with ), shown in the figure below, we consider horizontal rectangles of length and width . The element of area is then
and the total area is
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{A=\int_{c}^{d}dA=\int_{c}^{d}[h(y)-k(y)]\,dy.}
For instance, in the above example, if we use horizontal rectangles, the length of the rectangle is the -value (in terms of ) of the right curve, , minus the -value of the left curve, . Because the width of the rectangle is , the element of area is
\begin{aligned} dA &= \left[\sqrt{2y}-\left(-\sqrt{2y}\right)\right]dy\\ &= 2\sqrt{2}\sqrt{y}\,dy. \end{aligned}As the horizontal rectangle sweeps across the region, varies between and . Therefore, the total area is
\begin{aligned} A &= \int_{0}^{2}2\sqrt{2}\sqrt{y}\,dy\\ &= 2\sqrt{2}\int_{0}^{2}y^{1/2}\,dy\\ &= \frac{2\sqrt{2}}{3/2}\left.y^{3/2}\right|_{y=0}^{y=2}\\ &= \frac{4\sqrt{2}}{3}\sqrt{8}\\ &= \frac{16}{3}, \end{aligned}in agreement with the answer found using vertical rectangles.
Both methods always give the same number. Choose the one that makes the algebra easier: use when each vertical line meets the region in a single segment whose top and bottom are given by and , and use when each horizontal line meets the region in a single segment whose right and left ends are given by and .
Find the area of the region bounded by the curves and .

Solution
First we need to find where these curves intersect. Writing both equations with alone on the left,
or
The corresponding -values come from :
Therefore, these curves intersect at and . Note that the -coordinate is listed first, so the upper intersection is and not .
Method (a): horizontal rectangles. To compute the area of the region, it is easier to consider horizontal thin rectangles, as in the figure below. Because is on the right, the length of the typical rectangle is and its width is . Therefore, the element of area is
Because varies between and , the area is
\begin{aligned} A &= \int_{-1}^{2}dA=\int_{-1}^{2}(y+2-y^{2})\,dy\\ &= \left[\frac{1}{2}y^{2}+2y-\frac{y^{3}}{3}\right]_{-1}^{2}\\ &= \frac{10}{3}-\left(-\frac{7}{6}\right)=\frac{9}{2}. \end{aligned}
Method (b): vertical rectangles. To compute the area, we can also consider thin vertical rectangles. However, we need to divide the region into two subregions, because the bottom boundary changes at . If , then the height of the rectangle is , and if , the height of the rectangle is :

Therefore
dA=\begin{cases} 2\sqrt{x}\,dx & (\text{if }0\leq x\leq1)\\ (\sqrt{x}-x+2)\,dx & (\text{if }1\leq x\leq4) \end{cases}and the total area is
\begin{aligned} A &= \int_{0}^{4}dA\\ &= \int_{0}^{1}2\sqrt{x}\,dx+\int_{1}^{4}(\sqrt{x}-x+2)\,dx\\ &= \left[\frac{4}{3}x^{3/2}\right]_{0}^{1}+\left[\frac{2}{3}x^{3/2}-\frac{1}{2}x^{2}+2x\right]_{1}^{4}\\ &= \frac{4}{3}+\left(\frac{16}{3}-8+8\right)-\left(\frac{2}{3}-\frac{1}{2}+2\right)\\ &= \frac{4}{3}+\frac{16}{3}-\frac{13}{6}=\frac{9}{2}. \end{aligned}The two methods agree, but the horizontal one needed a single integral instead of two.
Regions That Must Be Split
If the curves cross somewhere strictly between the endpoints, then neither curve is on top throughout, and a single integral of would count part of the area as negative. The cure is to find every crossing point, and integrate the positive difference separately on each subinterval.
If and cross at inside , then
where on each piece the absolute value is removed by putting the larger function first.
Find the area between the graphs of and on the interval .
Solution
It is a good idea to sketch these two curves. To graph we start with the graph of and compress it horizontally by a factor of , as in the figure below.

As we can see from the figure, the region between the curves consists of two parts. In one part, the curve is the upper curve, and in the other part, the curve is the upper one. To find exactly where these two curves intersect, we must solve the equation . We do this by writing
\begin{aligned} \cos2x &= \sin x\\ \cos^{2}x-\sin^{2}x &= \sin x &&{\small(\cos2x=\cos^{2}x-\sin^{2}x)}\\ 1-2\sin^{2}x &= \sin x &&{\small(\cos^{2}x+\sin^{2}x=1)} \end{aligned}The above equation is a quadratic equation in terms of . That is, if , then
so
The equation has no solution in the interval , so the only crossing is at .

Therefore
dA=\begin{cases} (\cos2x-\sin x)\,dx & 0\leq x\leq\frac{\pi}{6}\\ (\sin x-\cos2x)\,dx & \frac{\pi}{6}\leq x\leq\frac{\pi}{2} \end{cases}and the desired area is
\begin{aligned} A &= \int_{0}^{\frac{\pi}{6}}dA+\int_{\frac{\pi}{6}}^{\frac{\pi}{2}}dA\\ &= \int_{0}^{\frac{\pi}{6}}(\cos2x-\sin x)\,dx+\int_{\frac{\pi}{6}}^{\frac{\pi}{2}}(\sin x-\cos2x)\,dx\\ &= \left[\frac{1}{2}\sin2x+\cos x\right]_{0}^{\frac{\pi}{6}}+\left[-\cos x-\frac{1}{2}\sin2x\right]_{\frac{\pi}{6}}^{\frac{\pi}{2}}\\ &= \left(\frac{1}{2}\cdot\frac{\sqrt{3}}{2}+\frac{\sqrt{3}}{2}\right)-(0+1)+\left(-0-\frac{1}{2}\cdot0\right)-\left(-\frac{\sqrt{3}}{2}-\frac{1}{2}\cdot\frac{\sqrt{3}}{2}\right)\\ &= \frac{3\sqrt{3}}{4}-1+\frac{3\sqrt{3}}{4}\\ &= \frac{3\sqrt{3}}{2}-1. \end{aligned}Numerically , which is a plausible size for a region roughly units wide and about one unit tall.
Exercises
Find the area of the region bounded by and .
Solution
The curves meet where , that is , so and . On we have , so the line is on top and the height of the typical rectangle is . The element of area is
and therefore
\begin{aligned} A &= \int_{0}^{1}\left(x-x^{2}\right)dx\\ &= \left[\frac{x^{2}}{2}-\frac{x^{3}}{3}\right]_{0}^{1}\\ &= \frac{1}{2}-\frac{1}{3}=\frac{1}{6}. \end{aligned}Find the area of the region bounded by and the -axis.
Solution
The parabola meets where , so . The height of the typical rectangle is , so the element of area is
The region is symmetric about the -axis, so
\begin{aligned} A &= \int_{-2}^{2}\left(4-x^{2}\right)dx=2\int_{0}^{2}\left(4-x^{2}\right)dx\\ &= 2\left[4x-\frac{x^{3}}{3}\right]_{0}^{2}\\ &= 2\left(8-\frac{8}{3}\right)=\frac{32}{3}. \end{aligned}Find the area of the region enclosed by and .
Solution
The curves meet where . Squaring, , so and or . For we have , so the square root is the upper curve and the element of area is
Therefore
\begin{aligned} A &= \int_{0}^{1}\left(\sqrt{x}-x^{2}\right)dx\\ &= \left[\frac{2}{3}x^{3/2}-\frac{x^{3}}{3}\right]_{0}^{1}\\ &= \frac{2}{3}-\frac{1}{3}=\frac{1}{3}. \end{aligned}Find the area of the region bounded by and the -axis, using horizontal rectangles.
Solution
The curve meets the -axis where , so . A horizontal rectangle runs from the left boundary to the right boundary , so its length is and its width is . The element of area is
and
\begin{aligned} A &= \int_{-2}^{2}\left(4-y^{2}\right)dy=2\int_{0}^{2}\left(4-y^{2}\right)dy\\ &= 2\left[4y-\frac{y^{3}}{3}\right]_{0}^{2}\\ &= 2\left(8-\frac{8}{3}\right)=\frac{32}{3}. \end{aligned}This is the same region as in Exercise 2, reflected across the line , so the equality of the two answers is no accident.
Find the area of the region bounded by and .
Solution
Set the two expressions equal:
so and , giving the points and . Between these values the line is above the parabola, so the height of the typical rectangle is and the element of area is
Hence
\begin{aligned} A &= \int_{-1}^{3}\left(2x+3-x^{2}\right)dx\\ &= \left[x^{2}+3x-\frac{x^{3}}{3}\right]_{-1}^{3}\\ &= (9+9-9)-\left(1-3+\frac{1}{3}\right)\\ &= 9-\left(-\frac{5}{3}\right)=\frac{32}{3}. \end{aligned}Find the area of the region bounded by , the -axis, and the line , first with vertical rectangles and then with horizontal rectangles.
Solution
Method (a): vertical rectangles. A vertical rectangle at position runs from up to , so the element of area is
Since runs from to ,
Method (b): horizontal rectangles. Solving for gives , which is the left boundary; the right boundary is the line . The length of the rectangle is , so now
The corner of the region is at , so runs from to and
\begin{aligned} A &= \int_{0}^{2}\left(4-y^{2}\right)dy\\ &= \left[4y-\frac{y^{3}}{3}\right]_{0}^{2}\\ &= 8-\frac{8}{3}=\frac{16}{3}. \end{aligned}Both methods give , as they must.
Find the area of the region bounded by and .
Solution
Write both boundaries as in terms of :
They meet where
that is , so and , giving the points and . The line is on the right, so the length of the horizontal rectangle is
so the element of area is
and
\begin{aligned} A &= \int_{-2}^{4}\left(-\frac{y^{2}}{2}+y+4\right)dy\\ &= \left[-\frac{y^{3}}{6}+\frac{y^{2}}{2}+4y\right]_{-2}^{4}\\ &= \left(-\frac{64}{6}+8+16\right)-\left(\frac{8}{6}+2-8\right)\\ &= \frac{40}{3}+\frac{14}{3}=18. \end{aligned}Vertical rectangles would require splitting the region at , where the bottom boundary changes from the lower half of the parabola to the line, so the horizontal setup is much shorter here.
Find the area of the region between and on .
Solution
The curves cross where , that is , so inside the interval. On the cosine is larger, and on the sine is larger, so the element of area changes form halfway across:
dA=\begin{cases} (\cos x-\sin x)\,dx & 0\leq x\leq\frac{\pi}{4}\\[4pt] (\sin x-\cos x)\,dx & \frac{\pi}{4}\leq x\leq\frac{\pi}{2} \end{cases}and the region must be split at :
\begin{aligned} A &= \int_{0}^{\pi/4}(\cos x-\sin x)\,dx+\int_{\pi/4}^{\pi/2}(\sin x-\cos x)\,dx\\ &= \left[\sin x+\cos x\right]_{0}^{\pi/4}+\left[-\cos x-\sin x\right]_{\pi/4}^{\pi/2}\\ &= \left(\frac{\sqrt{2}}{2}+\frac{\sqrt{2}}{2}-1\right)+\left(-0-1\right)-\left(-\frac{\sqrt{2}}{2}-\frac{\sqrt{2}}{2}\right)\\ &= \left(\sqrt{2}-1\right)+\left(\sqrt{2}-1\right)\\ &= 2\sqrt{2}-2\approx0.828. \end{aligned}By the symmetry of the two graphs about the line , the two pieces have equal area, which is exactly what the calculation shows.
Find the area of the region bounded by , , and the line .
Solution
The two curves meet where , that is . For we have , so the height of the typical rectangle is and the element of area is
Since runs from to ,
\begin{aligned} A &= \int_{1}^{2}\left(\frac{1}{x}-\frac{1}{x^{2}}\right)dx\\ &= \left[\ln x+\frac{1}{x}\right]_{1}^{2}\\ &= \left(\ln2+\frac{1}{2}\right)-(0+1)\\ &= \ln2-\frac{1}{2}\approx0.193. \end{aligned}The answer is positive, since , as it must be.
The region bounded by and is cut into two pieces by the horizontal line , where . Find the value of for which the two pieces have equal area.
Solution
First find the whole area. The parabola meets at , so the element of area for the whole region is and
Now the lower piece is the region between and . There the element of area is
and the parabola meets at , so the lower area is
\begin{aligned} A_{\text{lower}} &= \int_{-\sqrt{c}}^{\sqrt{c}}\left(c-x^{2}\right)dx=2\left[cx-\frac{x^{3}}{3}\right]_{0}^{\sqrt{c}}\\ &= 2\left(c^{3/2}-\frac{c^{3/2}}{3}\right)=\frac{4}{3}c^{3/2}. \end{aligned}Setting this equal to half the total area,
Notice that the bisecting line sits well above the midpoint , because the region is much wider near the top than near the bottom.
Find the total area of the region enclosed by and .
Solution
The curves meet where , that is , so . The two graphs cross at , so the region consists of two loops and we must integrate separately on each side of the origin. On we have , and on we have , so the element of area is
dA=\begin{cases} \left(x^{3}-x\right)dx & -1\leq x\leq0\\[4pt] \left(x-x^{3}\right)dx & 0\leq x\leq1 \end{cases}Hence
\begin{aligned} A &= \int_{-1}^{0}\left(x^{3}-x\right)dx+\int_{0}^{1}\left(x-x^{3}\right)dx\\ &= \left[\frac{x^{4}}{4}-\frac{x^{2}}{2}\right]_{-1}^{0}+\left[\frac{x^{2}}{2}-\frac{x^{4}}{4}\right]_{0}^{1}\\ &= \left(0-\left(\frac{1}{4}-\frac{1}{2}\right)\right)+\left(\frac{1}{2}-\frac{1}{4}\right)\\ &= \frac{1}{4}+\frac{1}{4}=\frac{1}{2}. \end{aligned}Had we carelessly written , the integrand would be an odd function and the answer would have been : the two loops would have cancelled instead of adding.
Two cars start side by side at time . Car A has velocity metres per second and car B has velocity metres per second, for seconds. (a) At what time after are the two cars side by side again? (b) How far ahead is car B at ? (c) What is the total area between the two velocity curves on , and what does it mean?
Solution
The velocity curves cross where , that is , so and . Car A is faster on and car B is faster on .
(a) The cars are side by side again when their displacements are equal, that is when the signed area between the curves is zero:
Apart from , this gives seconds. Up to car A pulls ahead by metres, and between and car B makes up exactly those metres.
(b) The lead of car B at is
(c) Here the element of area is measured between the two velocity curves, with the faster car on top:
dA=\begin{cases} \left(6t-3t^{2}\right)dt & 0\leq t\leq2\\[4pt] \left(3t^{2}-6t\right)dt & 2\leq t\leq4 \end{cases}The geometric area adds the two pieces with positive signs:
\begin{aligned} A &= \int_{0}^{2}\left(6t-3t^{2}\right)dt+\int_{2}^{4}\left(3t^{2}-6t\right)dt\\ &= \left[3t^{2}-t^{3}\right]_{0}^{2}+\left[t^{3}-3t^{2}\right]_{2}^{4}\\ &= (12-8)+\left[(64-48)-(8-12)\right]\\ &= 4+20=24. \end{aligned}So the total area is metres: it is the distance car A gained while it was ahead, metres, plus the distance car B gained afterwards, metres. The net lead of metres from part (b) is the difference of the two pieces, not their sum. This is the same distinction as in the previous exercise between a signed integral and a true area.