Trapezoidal Rule
The trapezoidal rule approximates a definite integral by splitting the interval into equal parts and replacing the curve with straight segments. It is used for numerical integration of tabulated data or functions without an elementary antiderivative.
LaTeX
\int_a^b f(x)\,dx\approx\frac{h}{2}\left[f(x_0)+2f(x_1)+\cdots+2f(x_{n-1})+f(x_n)\right],\quad h=\frac{b-a}{n}Variables
- limits of integration
- number of subintervals
- step width
- nodes
Example
Approximate with .
- ; values .
- .
- The exact value is .
Answer: .