# Areas By Slicing

We have seen previously that you can use integrals to find the area under a curve. In some applications we want to find the unsigned area instead of the signed area. For example, if the area under the curve represents a physical shape (e.g., a piece of wood) and we want to know how much paint to buy to paint it, we would like to know the total area. In these applications, all area is counted positively. If we want the unsigned area between two functions from a to b we want to evaluate If you are using a numerical tool, you can just evaluate this integral using the absolute value of the integrand. In other cases if the curves for the two functions cross in the interval from a to b, it may be easier to divide the interval up into parts where the curves don't cross and evaluate each separately. This device cannot display Java animations. The above is a substitute static image
 See About the calculus applets for operating instructions.

## 1. Vertical slices of a line

The applet initially shows a line and the area (yellow) between this line and the x-axis from 0 to 2. We can think about finding this area using the limit of a Riemann sum, where each slice of the sum is a vertical rectangle.

One such rectangle is shown in gray, and you can move the x-slider to move this rectangle about in the interval of interest. We can call the small width of this rectangle dx and the height of this rectangle f (x) (since the rectangle extends from the x-axis up to the curve), then the area is just f (x)dx. If we sum up these rectangles from 0 to 2, and take the limit as the width goes to 0, we get the integral which you can evaluate to get an area of 2. In the integrand, the 0 represents the lower curve, which in this example is just the x-axis.

## 2. Vertical slices of another line

Select the second example from the drop down menu, showing a slightly different line. Note that the area is still positive, since what we care about in this case is unsigned area. We can find this using either or I generally like to think about the "top" curve minus the "bottom" curve, instead of using absolute value (although if I'm evaluating the integral numerically with my calculator, I tend to use the absolute value form).

## 3. Vertical slices of a cubic

Select the third example, showing a cubic with limits from -2 to 2. Notice that the area is positive, instead of 0. Also note that the exact area is 8, but rounding error in the software causes the displayed answer to be slightly short of this value. You can also move the a and b sliders to explore different limits.

## 4. Vertical slices between a line and parabola

Select the fourth example. This shows the area between a line and a parabola. Note that in the interval of interest, the line is "on top", so the integral (without absolute value) is Think about the height of the gray rectangle. Its top is at f (x) = x and its bottom is at g(x) = x², so the integrand of this integral represents the height of the rectangle.

## 5. Vertical slices between a line and parabola - 2

Select the fifth example. This shows the area between the same two curves, but now the parabola is on top because the interval has changed. We could write this integral as ## 6. Vertical slices of a parabola

Select the sixth example, showing a parabola and a horizontal line other than the x axis. Here, the line is "on top" so the integral is ## Horizontal slices

Select the seventh example. Here we repeat the previous example, but we use horizontal slices instead. Think of each slice as being dy tall and the length is then the difference between f (y) and g(y). Hence the integral is Move the y slider to move the sample rectangle. In the previous example, y = x² so the inverse is to draw the same curve (at least for positive x and y).

## Explore

Select the eight example. You can try your own area example by setting f(x), g(x), a, and b. If you want to use horizontal slices, click the "inverse" check box and redefine your functions as functions of y