The Trapezoidal Rule is a fundamental numerical integration technique used to find an approximate value of a definite integral ∫abf(x)dx by approximating the region under the graph of the function f(x) as a series of trapezoids.
It is particularly useful when the function f(x) is difficult or impossible to integrate analytically, or when data points are obtained experimentally at discrete intervals.
Formula for Trapezoidal Rule:
I=∫abf(x),dx≈2h[(y0+yn)+2(y1+y2+⋯+yn−1)]
Where:
a is the lower limit of integration.
b is the upper limit of integration.
n is the number of subintervals.
h=nb−a is the step size or width of each subinterval.
y0,y1,dots,yn are the function values evaluated at grid points.
Example of Trapezoidal Rule
Evaluate Definite Integral
∫011+x21,dx
With n=6 subintervals
Step 1: Find Step Size (h)
Given a=0,b=1,n=6:
h=nb−a=61−0=61≈0.16667
Step 2: Determine Grid Points (xi)
x0=0.0,x1=0.1667,x2=0.3333
x3=0.5,x4=0.6667,x5=0.8333,x6=1.0
Step 3: Evaluate Function Values (yi=1+xi21)
y0=1.00000,y1=0.97297
y2=0.90000,y3=0.80000
y4=0.69231,y5=0.59016,y6=0.50000
Step 4 & 5: Apply Formula
I≈21/6[(1.0+0.5)+2(3.95544)]
I≈121[9.41088]≈0.78424
Conclusion
∫011+x21,dx≈0.78424
Therefore, using Trapezoidal Rule with n=6, the approximate value of the integral is 0.78424 (exact value 4π≈0.78540).