You have likely already read our Forming Riemann Sums article, looking at how we can use them to estimate the area under the curve. As a refresher, a Riemann sum divides the area under the curve into rectangles and sums the area of each rectangle to approximate the area under the curve. But do we always have to use rectangles when approximating areas? Of course not!
Explore our app and discover over 50 million learning materials for free.
Lerne mit deinen Freunden und bleibe auf dem richtigen Kurs mit deinen persönlichen Lernstatistiken
Jetzt kostenlos anmeldenNie wieder prokastinieren mit unseren Lernerinnerungen.
Jetzt kostenlos anmeldenYou have likely already read our Forming Riemann Sums article, looking at how we can use them to estimate the area under the curve. As a refresher, a Riemann sum divides the area under the curve into rectangles and sums the area of each rectangle to approximate the area under the curve. But do we always have to use rectangles when approximating areas? Of course not!
The Trapezoidal Rule is a form of Riemann's sum. However, the Trapezoidal Rule uses trapezoids rather than rectangles! Interestingly enough, using trapezoidal subregions to approximate the area is usually more exact than using rectangles. In this article, we'll explore the Trapezoidal Rule derivation, formula, and error. Finally, we'll apply the Trapezoidal Rule to some examples.
Before we get into how this technique is used in practice, let's define what this rule is!
The Trapezoidal Rule is an integral approximation technique that divides the area under the curve into little trapezoids. The area of each trapezoid is summed to approximate the total area under the curve.
The Trapezoidal Rule estimates the area under the curve by dividing the region into trapezoidal subregions - StudySmarter Original
The area of a trapezoid is defined as
Translating this formula to the above figure, we can say that the area of the left-most trapezoid is defined as
Similarly, the formula for the area of the 2nd left-most trapezoid is defined as
The formula for the area of each trapezoid is formulated the same way. The Trapezoidal Rule states that we can estimate the area under the curve by summing the area of each of these trapezoids. The Trapezoidal Rule is derived by factoring out and adding up the length of each base, where through are multiplied by a factor of two because they are bases shared by other trapezoids.
Then, for approximating the definite integral of a function f(x), the Trapezoidal Rule states
where n is the number of trapezoids, , and .
As the number of trapezoidal subregions n approaches infinity, the right-hand side of the Trapezoidal Rule approaches the definite integral on the left side. In other words, the integral approximation gets more accurate as n gets larger.
Look at the graph under the Trapezoidal Rule definition again. Notice how some of the trapezoidal subregions stay under the graph while other subregions stick out over the graph. When the graph is "concave up" (the graph bends upwards), the subregions tend to overestimate the area under the curve.
When the graph is "concave down" (the graph bends downwards), the subregions tend to underestimate the area under the curve. Based on a function's concavity, we can use this observation to tell whether the Trapezoidal Rule will overestimate or underestimate the area under the curve.
Below is a graphical example illustrating the difference between an overestimate and an underestimate.
As numerical integration techniques, like the Trapezoidal Rule, are an estimation, calculating the error of that estimation is incredibly important.
Using common sense, we compute the relative error of a Trapezoidal Rule computation (given as a percentage) by using the relative error formula:
where is the Trapezoidal Rule approximation of the integral and is the actual area.
We cannot always compute the integral of any function exactly! It may even be too difficult to approximate certain definite integrals (more on this in our university articles...). You can also see the deep dive in our Approximating Areas article for a sneak peek!
In addition to relative error, the absolute error of our approximation using the trapezoidal rule can be calculated using the formula for absolute error:
We can use an error bound formula to tell us the maximum possible area of our approximation. For the Trapezoidal Rule, the error bound formula is
for
where is the exact error for the Trapezoidal Rule and is the second derivative of f(x). Essentially, K is the maximum value of the second derivative on the interval [a, b].
The uses of the error bound will make more sense once we work through some examples.
Consider the function on the closed interval [1, 3]. Use the Trapezoidal Rule to estimate the using n = 4. Then, find n such that the error bound is 0.001 at most.
Let's graph f(x) to visualize the curve.
Plugging in our given interval and n subregions:
From here, all we need to do is plug our known values into the Trapezoidal Rule formula. Since our interval is [1, 3] and the problem asks us to use n = 4, meaning each trapezoid has a width of units.
Looking at the graph of f, we can see that on the interval [1, 3] the graph is concave up, so our estimate is likely an overestimate.
Let's use our error-bound formula to see exactly how much of an overestimate our approximation is.
In the error-bound formula , our only unknown value is K. However, we can use the second derivative of f(x) to find K.
Since using the Power Rule.
To find K, we have to consider where will be the largest on the interval [1, 3]. We know that minimizing x will maximize f''(x). So is largest when x = 1.
Now that all the values of are known, we can simply plug in to find our bound.
At most, the error of our estimation is 0.083.
To find the minimum n to ensure that the error is below 0.001, we let n be our unknown.
So, to ensure that our error is at most 0.001, we must use at least 37 trapezoidal subregions.
Use the Trapezoidal Rule to approximate the area under the curve of f(x), which you should assume to be differentiable on [-3, 3], given in the table below with n = 6.
x | -3 | -2 | -1 | 0 | 1 | 2 | 3 |
f(x) | 0 | 2 | 5 | 9 | 14 | 20 | 27 |
Plugging in our given interval and n subregions:
From here, all we need to do is plug our known values into the Trapezoidal Rule formula. Since our interval is [-3, 3] and the problem asks us to use n = 6, meaning each trapezoid has a width of 1 unit.
Though we don't have a graph of our function, close your eyes and try to visualize what this function might look like given the table of values. Given that all the values of the table are increasing over the domain and the rate at which the values are increasing is also increasing, we can assume that f(x) is concave up. Thus, we can make an informed guess that our approximation is likely an overestimate.
Without the function f(x), we cannot check the maximum error bound as we cannot take the 2nd derivative of a table of values.
Estimating areas using trapezoids and rectangles use straight lines on top of the shape. When reading the article on Simpson's Rule, you'll discover that we replace the straight lines in the trapezoids and rectangles with a curve (more specifically, a parabolic curve). More on this in the Simpson's Rule article!
where n is the number of trapezoids, , and
When using the Trapezoidal Rule on a concave up function, the subregions tend to overestimate the area under the curve
When using the Trapezoidal Rule on a concave down function, the subregions tend to underestimate the area under the curve
We can use an error-bound formula to tell us the maximum possible error of our approximation
For the Trapezoidal Rule, the error bound formula is
for
where is the exact error for the Trapezoidal Rule and f''(x) is the second derivative of f(x)
The Trapezoidal Rule states that for the integral of a function f(x) on the interval [a, b], the integral can be approximated with (2(b - a)/n)(f(x0) + 2f(x1) + 2f(x2) + ... + 2f(xn-1) + f(xn)) where n is the number of trapezoidal subregions.
The Trapezoidal Rule is an integral approximation technique that divides the area under the curve into little trapezoids. The area of each trapezoid is summed to approximate the total area under the curve.
The Trapezoidal Rule is a first-order numerical integration method. This means that straight line is used to approximate along the curve and the error of the estimate is proportional to the interval size.
The Trapezoidal Rule can be proved using the formula for the area of a trapezoid. Each trapezoidal sum region is then summed to approximate the total area under the curve.
Treat the first table entry as x0 and each following entry as x1, x2, ... with the last entry as xn. The number of trapezoidal subregions n should be one less than the number of entries in the table.
Describe the Trapezoidal Rule in words.
The Trapezoidal Rule is an integral approximation technique that divides the area under the curve into little trapezoids. The area of each trapezoid is added together to approximate the area under the curve.
The ______ trapezoids you use, the integral approximation gets more accurate.
more
Why is the Trapezoidal Rule used?
Numerical integration techniques, such as the Trapezoidal Rule, are used when the integral is too difficult to compute an exact answer.
Already have an account? Log in
Open in AppThe first learning app that truly has everything you need to ace your exams in one place
Sign up to highlight and take notes. It’s 100% free.
Save explanations to your personalised space and access them anytime, anywhere!
Sign up with Email Sign up with AppleBy signing up, you agree to the Terms and Conditions and the Privacy Policy of StudySmarter.
Already have an account? Log in
Already have an account? Log in
The first learning app that truly has everything you need to ace your exams in one place
Already have an account? Log in