We apply the trapezoidal rule formula to solve a definite integral by calculating the area under a curve by dividing the total area into little trapezoids rather than rectangles. This rule is used for approximating the definite integrals where it uses the linear approximations of the functions. The trapezoidal rule takes the average of the left and the right sum.
Let y = f(x) be continuous on [a, b]. We divide the interval [a, b] into n equal subintervals, each of width, h = (b – a)/n,
such that a = x0 < x1 < x2 < ⋯ < xn = b
Area = (h/2) [y0 + 2 (y1 + y2 + y3 + ….. + yn-1) + yn]
where,
- y0, y1,y2…. are the values of function at x = 1, 2, 3….. respectively.

Leave a Reply