next up previous
Next: About this document ... Up: Labs and Projects for Previous: Area Approximations

Exercises

1.
Consider the function f(x) = 4-x on the interval [0,4]. Verify that the middlesum command gives the exact value for the area independent of the number of subintervals you specify. Can you explain this? Note that you can use the formula for the area of a triangle to compute that the area is 8. (Hint - look at the plot produced by the middlebox command.)
2.
Consider the general linear function g(x) = cx+d, where c and d are constants. What does the error bound formula say about the accuracy of the midpoint rule for approximating

\begin{displaymath}
\int_a^b g(x) \, dx \end{displaymath}

Does this make sense, based on your result for the first exercise? Explain.

3.
Consider the function f(x) = x4-5x3+12x2-x+1 on the interval [0,5]. Use the command leftsum to approximate the definite integral

\begin{displaymath}
\int_{0}^{5} f(x) \, dx = \frac{1345}{4} \end{displaymath}

to two decimal places. Looking at the graph of f, can you explain why value given by the leftsum command is always less than the value of the integral? If you used the rightsum command, to approximate this same integral, do you think your approximations would be smaller than the value of the integral, larger than the integral, or could it be larger or smaller depending on the number of subintervals you use? Explain your answer.

4.
Consider the function

\begin{displaymath}
g(x) = \frac{x^2+3x+5}{x^2+2x} \end{displaymath}

on the interval [1,8].
(a)
Use the error bound formula to find the smallest value of n that guarantees that Mn approximates the area to within 0.001. That is, find the smallest value of n that guarantees that $\mid EM_n
\mid < 0.001$.
(b)
The value of n given by the error bound is usually conservative. That is, in practice the desired accuracy can be achieved with a smaller value of n. Given that

\begin{displaymath}
\int_1^8 g(x) \, dx \approx 10.39264465 \end{displaymath}

find the smallest value of n such that $\mid EM_n
\mid < 0.001$.

next up previous
Next: About this document ... Up: Labs and Projects for Previous: Area Approximations

Jane E Bouchard
3/24/2000