Trapezoid Sum ∑i=1n2f(xi−1)+f(xi)△x This is not a real riemann sum but it always works when f(x) is continuous by IVT.