<< Chapter < Page | Chapter >> Page > |
If is our estimate of some quantity having an actual value of then the absolute error is given by The relative error is the error as a percentage of the absolute value and is given by
Calculate the absolute and relative error in the estimate of using the midpoint rule, found in [link] .
The calculated value is and our estimate from the example is Thus, the absolute error is given by The relative error is
Calculate the absolute and relative error in the estimate of using the trapezoidal rule, found in [link] .
The calculated value is and our estimate from the example is Thus, the absolute error is given by The relative error is given by
In an earlier checkpoint, we estimated to be using The actual value of this integral is Using and calculate the absolute error and the relative error.
0.0074, 1.1%
In the two previous examples, we were able to compare our estimate of an integral with the actual value of the integral; however, we do not typically have this luxury. In general, if we are approximating an integral, we are doing so because we cannot compute the exact value of the integral itself easily. Therefore, it is often helpful to be able to determine an upper bound for the error in an approximation of an integral. The following theorem provides error bounds for the midpoint and trapezoidal rules. The theorem is stated without proof.
Let be a continuous function over having a second derivative over this interval. If is the maximum value of over then the upper bounds for the error in using and to estimate are
and
We can use these bounds to determine the value of necessary to guarantee that the error in an estimate is less than a specified value.
What value of should be used to guarantee that an estimate of is accurate to within 0.01 if we use the midpoint rule?
We begin by determining the value of the maximum value of over for Since we have
Thus,
From the error-bound [link] , we have
Now we solve the following inequality for
Thus, Since must be an integer satisfying this inequality, a choice of would guarantee that
Use [link] to find an upper bound for the error in using to estimate
With the midpoint rule, we estimated areas of regions under curves by using rectangles. In a sense, we approximated the curve with piecewise constant functions. With the trapezoidal rule, we approximated the curve by using piecewise linear functions. What if we were, instead, to approximate a curve using piecewise quadratic functions? With Simpson’s rule , we do just this. We partition the interval into an even number of subintervals, each of equal width. Over the first pair of subintervals we approximate with where is the quadratic function passing through and ( [link] ). Over the next pair of subintervals we approximate with the integral of another quadratic function passing through and This process is continued with each successive pair of subintervals.
Notification Switch
Would you like to follow the 'Calculus volume 2' conversation and receive update notifications?