A Trapezoidal Integral Approximation
The trapezoidal rule uses the average of the two boundary values times interval width on each piece.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace one piece
For \(f(x)=x\) from zero to two, the width is two and the endpoint mean is one, giving area two exactly. Linear interpolation explains why the method is exact on straight lines.
Compare a curved function
For \(f(x)=x^2\) from zero to two, the same one-piece rule gives four while the exact area is \(8/3\). Refining the subintervals changes that approximation.[1][2]
Average endpoint heights on each panel
Integrate \(f(x)=x^2\) on \([0,2]\) with width-one panels. The first has endpoint heights zero and one, giving area 0.5. The second has heights one and four, giving 2.5. The total three is above the exact \(8/3\). See rectangle rules.
Panel [0,1]: (0+1)/2 = .5
Panel [1,2]: (1+4)/2 = 2.5
Approximation: 3
Exact: 8/3, so error is 1/3
Identify when the rule is exact or biased
Linear segments integrate exactly by this rule. For a convex graph a straight secant is above it. Test a linear function first and refine the partition on a curved function.