Riemann Sums, Trapezoidal Rule & Numerical Integrals
The TI-89 has no single "Riemann sum" button, but it doesn't need one. You can build any Riemann sum or trapezoidal approximation with the summation command Σ( in one line. For a straight decimal answer, use nInt(, and for an exact answer, use ∫(.
These steps are for the TI-89 / TI-89 Titanium handheld, from Texas Instruments' guidebook. Our online TI-89 calculator runs PedroM, a free third-party operating system and doesn't support every handheld feature. Handheld only — not available in the online edition:
d(,∫(andlimit(come back unevaluated.
The worked example
Approximate ∫03 x2 dx with n = 6 subintervals, so Δ x = (3−0)⁄6 = 0.5.
Type Σ( from F3 (Calc) → Σ( sum. The syntax is Σ(expression, variable, start, end).
| Method | TI-89 entry | Result |
|---|---|---|
| Left Riemann sum | Σ(.5*(.5k)^2,k,0,5) |
6.875 |
| Right Riemann sum | Σ(.5*(.5k)^2,k,1,6) |
11.375 |
| Midpoint sum | Σ(.5*(.5k+.25)^2,k,0,5) |
8.9375 |
| Trapezoidal rule | (6.875+11.375)/2 |
9.125 |
| exact value | ∫(x^2,x,0,3) |
9 |
The pattern for any function: with Δ x = (b−a)/n,
- left:
Σ(Δx*f(a+k*Δx),k,0,n-1) - right:
Σ(Δx*f(a+k*Δx),k,1,n) - midpoint:
Σ(Δx*f(a+(k+.5)Δx),k,0,n-1) - trapezoid: the average of left and right.
It's quickest to define the function first: Define f(x)=x^2, then Σ(.5*f(.5k),k,0,5).
Simpson's rule
For an even n, Simpson's rule is
(Δ x)⁄3[f(x0)+4f(x1)+2f(x2)+…+4f(xn−1)+f(xn)]
On the TI-89, with f defined, n = 6 and Δx = 0.5:
.5/3*(f(0)+4*Σ(f(.5(2k-1)),k,1,3)+2*Σ(f(.5*2k),k,1,2)+f(3)) → 9.
Simpson's rule is exact for polynomials up to degree 3, which is why it gives 9 here.
nInt( for a decimal answer
nInt(expression, variable, lower, upper) gives a numerical integral directly, even for functions with no antiderivative:
| Entry | Result |
|---|---|
nInt(x^2,x,0,3) |
9. |
nInt(e^(-x^2),x,0,1) |
.746824 |
nInt(sin(x)/x,x,1,2) |
.659330 (RADIAN mode) |
Area between two curves
- Find where they cross:
solve(x=x^2,x)→x=0 or x=1. - Integrate top minus bottom: on [0, 1], x ≥ x2, so
∫(x-x^2,x,0,1)→ 1/6.
A second example: between y=x+2 and y=x2−4, which cross at x = −2 and x = 3:
∫((x+2)-(x^2-4),x,-2,3) → 125/6 (≈ 20.8333)
If the curves cross inside the interval, split it at the crossing points or integrate the absolute value: ∫(abs(f(x)-g(x)),x,a,b).
On the graph screen
Graph the function, press F5 (Math) and choose ∫f(x)dx. Set the lower and upper limits, and the calculator shades the area and shows its value. For the area between two curves, use Shade in the same menu to see the region. See graphing inequalities.
Common problems
| Problem | Fix |
|---|---|
| Σ( returns a formula, not a number | k or another variable has a stored value. Clear a–z |
| Riemann sum is far from the exact value | n is small. Increase n (and recalculate Δx) |
∫( gives an unevaluated integral |
no closed form. Use nInt( or ♦ ENTER |
| Negative "area" | the curves are in the wrong order, or part of the region is below the axis |