Calculus & Numerical Methods
Trapezoidal Integration
Definite integral via the trapezoidal rule.
Formula
Formula
∫ab f dx ≈ h(½f0 + f1 + … + ½fn)
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| f | integrand | expression / text | x | input |
| a, b | limits | real number (ℝ) | — | input |
| n | intervals | integer (ℤ) | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenf(x) = x*x, a = 0, b = 1, intervals n = 1000
Result0.3333335
Example 2
Givenf(x) = 1/x, a = 1, b = 2, intervals n = 1000
Result0.6931472431