Parameter Setup
Calculate Step-by-Step
Enter a mathematical function or coordinate table on the left, then click Calculate to view coordinates, graphs, derivations, and errors.
Problem Statement
Trapezoidal Rule Formula
The definite integral is approximated by modeling the interval as a series of trapezoids:
Step-by-Step Derivation
Calculate Interval Step Size ($h$)
The width of each subinterval is determined by splitting the range $[a, b]$ into $n$ equal portions:
Partition Coordinates Table
Divide $[a, b]$ using step size $h$ and evaluate the function $y = f(x)$ at each boundary point:
| $i$ | $x_i = a + ih$ | $y_i = f(x_i)$ | Type |
|---|
Substitute Into Formula
Add together the weighted boundary and interior coordinates:
Final Approximation
Evaluate the expression to find the final integral value:
Geometric Visualization
The shaded area represents the trapezoidal polygons integrated under the curve. Move the cursor over points to check numerical coordinates, or zoom/pan using the toolbar.