We know from a previous lesson that we can use Riemann Sums to evaluate a definite integral \(\int\limits_a^b {f\left( x \right)dx}.\)
Riemann Sums use rectangles to approximate the area under a curve.
Another useful integration rule is the Trapezoidal Rule. Under this rule, the area under a curve is evaluated by dividing the total area into little trapezoids rather than rectangles.
Let \(f\left( x \right)\) be continuous on \(\left[ {a,b} \right].\) We partition the interval \(\left[ {a,b} \right]\) into \(n\) equal subintervals, each of width
where \(\Delta x = \frac{{b - a}}{n}\) and \({x_i} = a + i\Delta x.\)
As \(n \to \infty,\) the right-hand side of the expression approaches the definite integral \(\int\limits_a^b {f\left( x \right)dx}.\)
Solved Problems
Click or tap a problem to see the solution.
Example 1
Use the Trapezoidal Rule with \(n = 6\) to approximate \[\int\limits_0^\pi {{{\sin }^2}xdx}.\]
Example 2
A function \(f\left( x \right)\) is given by the table of values. Approximate the area under the curve \(y = f\left( x \right)\) between \(x = 0\) and \(x = 8\) using the Trapezoidal Rule with \(n = 4\) subintervals.
Example 3
A function \(f\left( x \right)\) is given by the table of values. Approximate the area under the curve \(y = f\left( x \right)\) between \(x = -4\) and \(x = 2\) using the Trapezoidal Rule with \(n = 6\) subintervals.
Example 4
Approximate the area under the curve \(y = f\left( x \right)\) between \(x = 0\) and \(x = 10\) using the Trapezoidal Rule with \(n = 5\) subintervals.
Example 5
Approximate the area under the curve \[y = {2^x}\] between \(x = -1\) and \(x = 3\) using the Trapezoidal Rule with \(n = 4\) subintervals.
Example 6
Approximate the area under the curve \[y = \frac{1}{x}\] between \(x = 1\) and \(x = 5\) using the Trapezoidal Rule with \(n = 4\) subintervals.
Example 1.
Use the Trapezoidal Rule with \(n = 6\) to approximate \[\int\limits_0^\pi {{{\sin }^2}xdx}.\]
Solution.
Here
\[f\left( x \right) = {\sin ^2}x,\;\; a = 0,\;\; b = \pi .\]
The width of each subinterval is
\[\Delta x = \frac{{b - a}}{n} = \frac{\pi }{6},\]
so the grid points have the coordinates \({x_i} = \frac{{i\pi }}{6}.\)
Calculate the values of the function \(f\left( x \right)\) at the points \({x_i}:\)
So, in this particular example, the trapezoidal approximation \({T_6}\) coincides with the exact value of the integral.
Example 2.
A function \(f\left( x \right)\) is given by the table of values. Approximate the area under the curve \(y = f\left( x \right)\) between \(x = 0\) and \(x = 8\) using the Trapezoidal Rule with \(n = 4\) subintervals.
Solution.
The Trapezoidal Rule formula for \(n= 4\) subintervals has the form
A function \(f\left( x \right)\) is given by the table of values. Approximate the area under the curve \(y = f\left( x \right)\) between \(x = -4\) and \(x = 2\) using the Trapezoidal Rule with \(n = 6\) subintervals.
Solution.
We apply the Trapezoidal Rule formula with \(n = 6\) subintervals which is given by
Approximate the area under the curve \(y = f\left( x \right)\) between \(x = 0\) and \(x = 10\) using the Trapezoidal Rule with \(n = 5\) subintervals.
Solution.
The Trapezoidal Rule formula for \(n = 5\) intervals is given by