You are here: Home Mathematics Elements of Calculus I Calculus Applets Website Areas Via Slicing

Areas Via Slicing

Document Actions
  • Content View
  • Bookmarks
This file is part of a distribution of the Calculus Applets website (http://www.calculusapplets.com) (v1.1) which has been reformatted for the needs of this OpenCourseware course.

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 unsigned area integral. 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.

Try the following:

  1. 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 integral(0,2,x-0,dx), 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. 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 integral(0,2,0-(-x),dx) or integral(0,2,-x-0,dx). 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. 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. 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 integral(0,1,x-x^2,dx). 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. 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 integral(1,2,x^2-x,dx).

  6. 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 integral(0,1,1-x^2,dx).

  7. 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 integral(0,1,sqrt(y)-0,dy). Move the y slider to move the sample rectangle. Note that in the previous example, y = x² so the inverse is x = sqrt(y) to draw the same curve (at least for positive x and y).

  8. 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.

For more information on rights and downloading, refer to http://www.calculusapplets.com/download.html.

© Copyright 2001 David J. Eck

© Copyright 2007 Thomas S. Downey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

You must cause any files that you modify to carry prominent notices stating that you changed the files and the date of any change, and modified files must be put into a Java package different from edu.hws.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Reuse Course
Download IMS package
Study Group