πΉ Riemann Sum
Approximate area under f(x) using rectangles.
General form:
β«abβf(x)dxβf(x1ββ)Ξx+f(x2ββ)Ξx+β―+f(xnββ)Ξx
- Ξx=nbβaβ
- xiββ can be:
- Left: x1β=a, x2β=a+Ξx, ..., xnβ=a+(nβ1)Ξx
- Right: x1β=a+Ξx, x2β=a+2Ξx, ..., xnβ=b
- Midpoint: x1β=a+21βΞx, x2β=a+23βΞx, ..., xnβ=bβ21βΞx
πΉ Trapezoidal Rule
Approximate area using trapezoids.
Formula:
β«abβf(x)dxβ2Ξxβ[f(x0β)+2f(x1β)+2f(x2β)+β―+2f(xnβ1β)+f(xnβ)]
- Points: x0β=a, x1β=a+Ξx, ..., xnβ=b
- More accurate than basic Riemann sums
- Uses linear approximation
πΉ Simpsonβs Rule
Uses parabolas (quadratics) for better accuracy.
Formula (n must be even):
β«abβf(x)dxβ3Ξxβ[f(x0β)+4f(x1β)+2f(x2β)+4f(x3β)+β―+2f(xnβ2β)+4f(xnβ1β)+f(xnβ)]
- Points: x0β=a, x1β=a+Ξx, ..., xnβ=b
- Pattern: 1,4,2,4,2,β¦,4,1
- Very accurate for smooth functions
πΉ Quick Comparison
| Method | Shape Used | Accuracy | Key Idea |
|---|
| Riemann | Rectangles | LowβMedium | Sample points |
| Trapezoidal | Trapezoids | Medium | Linear interpolation |
| Simpson | Parabolas | High | Quadratic interpolation |
πΉ Pro Tip
- If function is linear β trapezoidal is exact
- If function is quadratic β Simpson is exact
- Increasing n β improves all methods