Everyone knows that integration is used to find the area of irregular shapes, but did you know that some problems may still seem complex even with the help of integration? When a precise solution isn't straightforward, the Trapezoidal Rule provides a savvy and effective method to estimate the area under a curve. Reducing the problem into trapezoids provides a method to achieve numerical solutions for integrals that would be otherwise difficult to find.
Understanding the Trapezoidal Rule:
The Trapezoidal Rule estimates the integral of a function f(x) from an interval [a,b] by breaking up the region under the curve into small trapeziums, trapezoids. The numerical integration by the trapezoidal rule helps to calculate the value of these trapezoids, which ultimately provides an estimated value for the area of this region.
The Formula for the Trapezoidal Rule differs based on the number of intervals to be calculated. The formula for the single interval can be expressed as:
Here,
To increase the accuracy of the result, we can also divide the interval [a,b] into n smaller subintervals, with the width of each interval as h. Here:
This is how the Trapezoidal Rule formula in numerical methods for multiple intervals is expressed:
Here:
The above formula can be expanded as:
The error in the value of the area of a region decreases with an increase in the number of intervals (n) of the region. Less error is also incurred if the second derivative of the function is small. The error term for the Trapezoidal Rule can be written as:
Here,
To derive the trapezoidal rule formula, take a curve described by the function with a definite integral and divide this integral into several trapezoids.
Now, divide the interval [a,b] into n smaller subintervals, with the width h, which is given as:
Thus, the points dividing the interval [a,b] are x0, x1, x2,…,xn, where x0 = a and xn = b. The points x1, x2,…, xn−1 are the intermediate points of division.
Now, calculate the area of each trapezoid using the general formula for the area of a trapezium. Which is defined as the half of the sum of the parallel sides, say, y0 = f(x0) and y1 = f(x1), and height h, and it can be expressed as:
For the first trapezoid, the area is:
Similarly, for the subsequent trapezoid, the area is:
For the last trapezoid between xn-1 and xn, which has the area:
Now, sum the areas of all the trapezoids. This gives an approximation of the integral as:
Combine the like terms:
This gives the trapezoidal rule formula for numerical integration:
Problem 1: Approximate the integral of f(x) = x2 from a = 0 to b = 1 using the Trapezoidal Rule with 2 subintervals.
Solution: Given that f(x) = x2, a = 0 and b = 1
The width of each interval is
Now, calculating the values of the function, f(x) = x2, at each interval:
f(x0) = f(0) = 02 = 0
f(x1) = f(0.5) = (0.5)2 =0.25
f(x2) = f(1) = 12 = 1
Using the formula:
Now, the exact value of the integral is:
Here, the error for the value is:
0.375-0.333=0.042
Problem 2: Approximate the integral the following integral using the Trapezoidal Rule with 6 subintervals:
Solution: According to the question:
Let f(x) = sin(x), a = 0, b = π, n = 6
The width of each interval is
Now, calculate the values of function at each interval:
Using the formula for trapezoidal rule:
The exact value for the function is:
Hence, the error in the value is 0.046.
Problem 3: A car travels with varying velocity over 4 seconds. The velocity at different times is recorded below:
Estimate the total distance travelled using the Trapezoidal Rule.
Solution: According to the question;
velocity = f(t), and distance = from 0 to 4.
Let width of interval h = 1 (since time intervals are 1 second apart), and n = 4
Now, using the trapezoidal rule formula:
Hence, the estimated total distance covered is 55 metres.
(Session 2025 - 26)