next up previous
Next: About this document ... Up: lab_template Previous: lab_template

Subsections


Area

Background

One use for the definite integral is to find area. There are some things to remember. One is that definite integrals can be negative but area cannot. So remeber that area is calculated as the integral of the top function minus the bottom (even if that top function is the x-axis)
> plot(x^2-4,x=-3..3);
If you wanted to find the area created by the parabola and the x-axis you need to use the fact that the equation of the x axis is $y=0$. Integrate the top function from the bottom with the limits of integration being the intersection points.
>int(0-x^2-4,x=-2..2);
The next example shows how Maple can be used to find the intersection points and then use these to calculate the bounded area.
> f := x-> -x^2+4*x+6; 
> g := x-> x/3+2;
> plot({f(x),g(x)},x=-2..6);
> a := fsolve(f(x)=g(x),x=-2..0);
> b := fsolve(f(x)=g(x),x=4..6);
> int(f(x)-g(x),x=a..b);
This final example shows how to break up the area if necessary. If you want to find the area bounded by the three graphs:
> f:=x->x+4;g:=x->-x+5;h:=x->sqrt(x^2+3);
> plot({f(x),g(x),h(x)},x=-4..4,color=red);
Notice that there are two functions that bound the top of the area. To find the complete area , break the problem into two. First find the area of $f(x)$ and the square root and then find the area of $g(x)$ and the square root. Then add these results. As usual you need to find the intersection points.
> solve(f(x)=g(x),x);
> solve(f(x)=h(x),x);
> solve(g(x)=h(x),x);
Now do the two integrals and add them.
>evalf(int(f(x)-h(x),x=-13/8..1/2)+int(g(x)-h(x),x=1/2..11/5));

Exercises

  1. Find the area bounded by the two functions $\displaystyle f(x) = \frac{x^5}{\tan(x)}+1500x $ and $\displaystyle g(x) = 490(\sin(x+\pi)+\cos^2(x))-2000 $. First plot the two functions over the domain $ -3 \leq x \leq 3.1$.

  2. Find the area bounded by the three functions $\displaystyle f(x) = 7\sin(\pi x)+\frac{75}{x}$, $\displaystyle g(x) = 24x-247$ and $\displaystyle h(x) = \frac{(x-10)^3}{8}-100 $. First create a plot that clearly shows the bounded area.

  3. Find the total area bounded by the functions $\displaystyle f(x) = 270\sin(\frac{x}{\pi})$ and $\displaystyle g(x) = \frac{x^6}{80000} $. (Hint: there is more than one bounded region).


next up previous
Next: About this document ... Up: lab_template Previous: lab_template
Jane E Bouchard
2006-03-23