Left and right rectangles
Use the function value at the left or right endpoint as each rectangle's height. These simple rules retain a directional bias on a slope.
See how a function is divided and approximated, and how each numerical rule approaches the integral.
Use the function value at the left or right endpoint as each rectangle's height. These simple rules retain a directional bias on a slope.
Uses the value at the centre of each subinterval. Its error generally decreases faster than the endpoint rules.
Connects adjacent sample points with straight lines and sums the resulting signed trapezoidal areas.
Fits a quadratic through each group of three points. It is highly accurate for smooth functions and requires an even n.
Values are signed areas. Reversing the limits reverses the sign. The high-accuracy reference is also a numerical estimate, not an analytic exact value. Check results independently for singular, discontinuous or rapidly oscillating functions.