Area using vertical slices
Two curves can enclose a region of the plane. Let \(f\) and \(g\) be continuous on an interval \([a,b]\), with \(f(x)\ge g(x)\) for every \(x\) in \([a,b]\). The region between their graphs from \(x=a\) to \(x=b\) is the set of points \((x,y)\) with
This topic finds the area of such a region by cutting it into vertical slices.
Each slice is upper minus lower
A curve f shaped like a hill and a curve g shaped like a valley, which meet at two dots, at a on the left and b on the right. The region between them is shaded teal, with f above g. An orange vertical segment, the slice at x, runs from the height g of x on the lower curve up to the height f of x on the upper curve. Buttons fill the region with teal rectangles, one of them orange with its width delta x and its two heights, make the rectangles thinner, and move b past the meeting point, where g lies above f and the new piece of the region is red.
In Figure 1, the graph of \(f\) is the upper curve on \([a,b]\), and the graph of \(g\) is the lower curve. They meet at the dots, where \(x=a\) and \(x=b\). For each \(x\) in \([a,b]\), the vertical line through the point \((x,0)\) cuts the region in a segment, called the vertical slice at \(x\). The slice runs from the lower curve, at height \(g(x)\), up to the upper curve, at height \(f(x)\). Its length is therefore \(\cy{f(x)-g(x)}\), the length of the orange segment.
Cut \([a,b]\) into \(n\) subintervals of width \(\cg{\Delta x}\), as in topic 6.3, with a sample point \(x_i^*\) in each one. The part of the region over a subinterval is a thin strip. It is close to a rectangle of width \(\Delta x\) whose height is the slice length at \(x_i^*\). Use the button under Figure 1 to fill the region with such rectangles, which take the midpoints as sample points. Their areas add to a Riemann sum for \(f-g\):
Make the rectangles thinner. They fit the region more closely. Because \(f-g\) is continuous on \([a,b]\), the sums approach the integral of \(f-g\) from \(a\) to \(b\) as \(n\) grows (topic 6.3). Each term of the sum is a height times a width, so the sums, and the integral, are measured in square units.
This integral is the area \(\cb{A}\) of the region. To see why, suppose first that \(g(x)\ge 0\) on \([a,b]\). Then the region under \(f\) is made of the region under \(g\) and the region between the curves. The integral of a function that is never negative is the area under its graph (topic 6.1), so
and linearity (topic 6.6) combines the two integrals into the integral of \(f-g\).
If \(g\) dips below the x-axis, let \(m\) be its least value on \([a,b]\), which exists by the Extreme Value Theorem because \(g\) is continuous. Raise both curves by \(-m\). The raised curves \(y=f(x)-m\) and \(y=g(x)-m\) lie on or above the axis, and the raised region has the same area as the first one. Its slices have the same lengths, because \((f-m)-(g-m)=f-g\), so both areas are the integral of \(f-g\). Area below the axis therefore counts as positive here, unlike the signed area of topic 6.1.
The integral of \(f-g\) gives the area only when \(f(x)\ge g(x)\) on all of \([a,b]\). Use the button under Figure 1 to move \(b\) past the meeting point. Between the meeting point and the new \(b\), the graph of \(g\) lies above the graph of \(f\). There \(f(x)-g(x)<0\), and that piece of the region is red. The integral of \(f-g\) counts the red piece as negative, so it is less than the area. Topic 8.6 splits such a region where the curves cross.
The limits and the upper curve
The numbers \(a\) and \(b\) are the horizontal limits of the region and the bounds of the integral. Each one comes from a vertical line in the boundary, such as the y-axis, or from a place where the curves meet. There the slice has length 0, as at the dots in Figure 1, so \(f(x)=g(x)\). Solve this equation for \(x\). Squaring both sides can add a solution, because 1 and \(-1\) have the same square. If you square, check each solution in the original equation. If algebra cannot solve the equation, use a graphing calculator.
To find the upper curve, choose an x-value between the limits, called a test point. Compare the heights of the two curves there. One test point is enough when the curves do not meet between the limits. The continuous difference \(f-g\) is then never 0 between them. By the Intermediate Value Theorem, it keeps one sign there, because a change of sign would put a 0 in between. The curve that is higher at the test point is therefore the upper curve on the whole interval, even where it lies below the axis.
A boundary may change formula at some \(x=c\), as when a region lies under a curve and then under a line. Suppose that the upper boundary is \(y=f_1(x)\) on \([a,c]\) and \(y=f_2(x)\) on \([c,b]\). The lower boundary is \(y=g_1(x)\) on \([a,c]\) and \(y=g_2(x)\) on \([c,b]\). The slice length is then \(f_1(x)-g_1(x)\) on \([a,c]\) and \(f_2(x)-g_2(x)\) on \([c,b]\). The line \(x=c\) cuts the region into two pieces, and each boundary has one formula on each piece. By the result above, the area of each piece is the integral of its slice length. The two areas add to the area of the region.
Example 1
Find the horizontal limits of the region
Let \(R\) be the region bounded by the graph of \(y=\sqrt{x+7}\), the line \(y=x-5\) and the y-axis. Find the bounds of an integral with respect to \(x\) that gives the area of \(R\).
Solution
Both functions are continuous for \(x\ge -7\). The y-axis, the line \(x=0\), bounds \(R\) on the left, so the left limit is 0. On the right, \(R\) ends where the curve and the line have equal heights. Square both sides of that equation:
Squaring can add a solution, so substitute each one into the first equation. At \(x=9\), both sides equal 4, so the curves meet at \((9,4)\). At \(x=2\), the left side is \(\sqrt{2+7}=3\) and the right side is \(-3\), so the curves do not meet there. The bounds are therefore 0 and 9.
Example 2
Identify the upper and lower curves
Let \(R\) be the region enclosed by the graphs of \(y=x^2-10\) and \(y=x-4\). Which graph is the upper boundary of \(R\)? Write an expression for the length of the vertical slice of \(R\) at \(x\).
Solution
Both functions are polynomials, so they are continuous. The graphs meet where the heights are equal:
The region therefore runs from \(x=-2\) to \(x=3\). At the test point \(x=0\), the parabola is at height \(-10\) and the line at \(-4\), which is higher. The graphs meet only at the ends, so the line is the upper boundary on all of \([-2,3]\), and the parabola is the lower one. The slice runs up from the parabola to the line, so its length is
The whole region lies below the x-axis, but the length is never negative. At \(x=0\) it is 6, the distance from \(-10\) up to \(-4\).
Example 3
Set up an integral with respect to x
Let \(R\) be the region in the first quadrant bounded by the graph of \(y=2x^3\), the line \(y=3-x\) and the x-axis, shown in Figure 2. Write, but do not evaluate, an expression involving one or more integrals that gives the area of \(R\).
The cubic y = 2x cubed and the line y = 3 − x, which meet at the point (1, 2). The region R, shaded teal, lies above the x-axis, under the cubic from x = 0 to x = 1 and under the line from x = 1 to x = 3. A dashed vertical line at x = 1 cuts R into these two pieces. An orange vertical slice of R runs from the x-axis up to the boundary of R and can be moved across it.
Solution
Both functions are continuous. The lower boundary of \(R\) is the x-axis, which the cubic meets at \(x=0\) and the line meets at \(x=3\). The cubic and the line meet where \(2x^3=3-x\):
The second factor is \(2\left(x+\frac12\right)^2+\frac52\), which is never 0, so the cubic and the line meet only at \((1,2)\). Move the slice in Figure 2 across \(R\). To the left of \(x=1\), it runs from the axis up to the cubic, so its length is \(2x^3-0\). To the right of \(x=1\), it runs up to the line, and its length is \((3-x)-0\). The upper boundary changes formula at \(x=1\), so cut \(R\) along the dashed line \(x=1\):
Example 4
Calculate geometric area
Find the area of the region enclosed by the graphs of \(y=\sin 2x\) and \(y=\sin x\) for \(0\le x\le\frac{\pi}{3}\).
Solution
Both functions are continuous. By the double-angle identity,
On \(\left[0,\frac{\pi}{3}\right]\), \(\sin x\ge 0\) and \(\cos x\ge\frac12\), so this difference is never negative, and it is 0 at both ends. The graph of \(y=\sin 2x\) is therefore the upper curve, and the curves meet at \(x=0\) and \(x=\frac{\pi}{3}\). The area is
The area is \(\frac14\) of a square unit. As a check, the substitution \(u=\cos x\), with \(du=-\sin x\,dx\), turns the factored form into \(\int_{1}^{1/2}(1-2u)\,du\), which is \(\Big[u-u^2\Big]_{1}^{1/2}=\frac14\).
Each example is one of the four skills of topic 8.4 in Which & Why: AP Calculus.