We approximate the indicated integral using the trapezoidal, midpoint and Simpson's Rule with n = 4.
The trapezoidal approximation uses each 'endpoint altitude' only once and all the 'interior altitudes' twice each, always averaging the two altitudes of each trapezoid and multiplying the average by the width of the interval.
The midpoint altitudes are shown in the third figure below, and each is used as the altitude for estimating the area over its interval.
The Simpson's Rule approximation is shown in the last line.
As seen in the preceding class, the errors of the left, trapezoidal and Simpson's Rule approximation tend to be invesely proportional to the first, second and fourth powers of the number of steps or subdivisions.
It follows that n2 vs. n1 subdivisions gives us
As an example of how we might apply these proportionalities, suppose that for some function over given interval n = 10 gives us the approximate value 3.8 when the actual integral has value 5.
- If our approximation was a left approximation, our error tends to change by factor n1 / n2 = 10 / 30 to 10 / 30 * 1.2 = .4.
- If our approximation was a midpoint approximation, our error tends to change by factor (n1 / n2)^2 = (10 / 30)^2 to (10 / 30)^2 * 1.2 = .13.
- If our approximation was a Simpson's Rule approximation, our error tends to change by factor (n1 / n2)^4 = (10 / 30)^4 to (10 / 30)^4 * 1.2 = .015.
The figure below repeats these calculations and shows us that for n = 30 the left, trapezoidal and Simpson's Rule approximations will be approximately 5 - .4 = 4.6, 5 - .13 = 4.87 and 5 - .015 = 4.485.
If we attempt to evaluate the integral shown in the figure below, whose corresponding graph is shown in the upper right-hand corner of the figure, we find that we get an undefined term in our result.
In this case we see that the area representing the integral is unbounded, and that the integral diverges.
We contrast this with the integral indicated below, which also has an asymptote at x = 2 and which we therefore might expect to be represented by unbounded area.
If we wish to determine the gravitational potential energy change as an object escapes the gravitational field of a planet, we must perform the integral below.
We note that if gravity was simply an 'inverse law' with 1/r instead of an 'inverse square law' with 1 / r^2, the integral would involve a natural log function and would diverge and we would not be able to gravitationally escape a planet (or for that matter, one another).
To determine whether the integral shown below converges or not, we compare it with the integral of 1 / x^2:
We can use an integral to determine the volume of the pyramid shown in the figure below.
We will set up a Riemann sum that approaches the desired volume.
We think of slicing the pyramid into thin horizontal slices. We wish to find a formula for the approximate volume of slice # i.
In the figure below, at the bottom of the figure we see that si can be determined by constructing a side view of the pyramid, and using similar triangles.
In the figure below we write the Riemann sum that totals all the volume contributions from all n intervals, from altitude 0 to altitude 100.