Trapezoidal Rule
Trapezoidal Rule
Formula:
∫ba f(x)dx
Where, xi = a+IΔx
Δx = (b-a)
When n →∞, R.H.S of the expression approaches the definite integral ∫ba f(x)dx
Graph:
In the Trapezoidal Rule the area under a curve is evaluated by dividing the total area
into little trapezoids rather than rectangles.
Let f(x) be continuous on [a,b]. We partition the interval [a,b] into n equal
Δx=b−an
such that
a=x0<x1<x2<⋯<xn=b
Example:
∫511+x2−−−−−√dx
Solution:
Δx = (b-a)/n
Δx = (5-1)/8
Δx = 1/2
Now, divide the interval into 8 subintervals with the length of Δx = 1/2, with the
following endpoints,
a=1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5 = b
= 1/4( 51.0465060317)
= 12.7616265079