The formula for the trapezoid rule approximation Tn is given by
with an error bound of
where K is any number such thatf′′(x)
≤K for all x∈
a, b
.
To approximate
x sin x dx using the trapezoid rule
Calculus + Approximate Integral + Trapezoid
x sin x dx Approximate integral (trapezoid rule) is
π
iπsin
iπ
Evaluate Numerically
π
iπsin
iπ = 3.1157