a = 0 , b = 3 , f(x) = 9 - x2 , right-hand endpts
Imagine n as a finite number of rectangles of equal width, with bases on the x-axis, with heights = to the y-value of the function. For example, let n = 12. We have 12 rectangles beneath the concave down parabola. The width of the entire interval, b - a, is 3. If we divide the interval into 12 subintervals of = width, then each rectangle is 1/4 wide (which is (b-a)/n). The righthand endpts of these subints are x = 1/4 , 2/4 , 3/4 , ... , 12/4.
The heights of these rectangles would be f(1/4) , f(2/4) , ... , and f(12/4). The sum of the areas of the rectangles would then be ∑k=112 f(k/4)·(1/4) or , replacing f(x) with 9 - x2 , ∑k=112 [9 - (k/4)2]·(1/4)
Then, we generalize further by swapping in n for 12: ∑k=1n [9 - (3k/n)2]·(3/n). If we slap limn→∞ in front, that's the exact area, aka the definite integral: ∫03(9 - x2)dx = limn→∞ ∑k=1n [9 - (3k/n)2]·(3/n).
The next step is to square 3k/n and distribute the 3/n to get limn→∞ ∑k=1n [ 27/n - 27k2/n3]. Splitting this into separate sigmas, and letting the n terms "pass through" the sigmas (they are independent of k), gives
limn→∞ [(1/n) · ∑k=1n 27 - (1/n3) · ∑k=1n 27k2]
To evaluate this limit, we need to recall some sigma rules and formulas and some limits of rational functions.
∑k=1n a = an where a is a constant. ∑k=1n k = ((n)(n+1))/2 , and ∑k=1n k2 = ((n)(n+1)(2n+1))/6 = (2n3+3n2+n)/6
limn→∞ (1/n) · (27n) - (1/n3) ·. (27)(2n3+3n2+n)/6) = limn→∞ 27 - (9n3 + ... + ...)/(n3) = 27 - 9 = 18.