The trapezoidal rule is a Newton-Cotes formula for approximating the integral of a function f using linear segments. Let f be tabulated at points x_0 and x_1 spaced by a distance h, and write f_n=f(x_n). Then the trapezoidal rule states that integral_(x_0)^(x_1)f(x)dx≈h(f_0 + f_1)/2.
status | proved
integral_(x_0)^(x_1)f(x)dx≈h(f_0 + f_1)/2