We have already talked about the area problem and have presented one approach to solve this problem. Here, we are going to demonstrate a different approach.
So, suppose that we are given a function f(x) that is positive on [a,b] and we want to find the area S under the curve. It is not so easy to find the area of a region with curved sides. So, we will start from rectangle approximation.
To get a better understanding, let's start with an example.
Example. Use rectangles to estimate the area under the parabola f(x)=x2 from 0 to 1.
Let's divide the area S into five strips. We can approximate the area of each strip by the area of the rectangle whose base is the same as the base of the strip and whose height is the same as the right edge of the strip (the value of the function at the rightmost point of the strip).
Since we divided the interval [0,1] into five strips, the length of the base of each strip is 51−0=0.2.
So, we have the following five subintervals: [0,0.2], [0.2,0.4], [0.4,0.6], [0.6,0.8], [0.8,1].
As already stated above, the length of the base of each strip is 0.2. This is also the base of each rectangle.
Now, let's see what the area of each rectangle is. Recall that the height is the value of a function at the right endpoint.
First rectangle: the height is 0.22; so, the area is S1=0.2⋅0.22.
Second rectangle: the height is 0.42; so, the area is S2=0.2⋅0.42.
Third rectangle: the height is 0.62; so, the area is S3=0.2⋅0.62.
Fourth rectangle: the height is 0.82; so, the area is S4=0.2⋅0.82.
Fifth rectangle: the height is 12; so, the area is S5=0.2⋅12.
The sum of the areas of these approximating rectangles is R5=0.2⋅0.22+0.2⋅0.42+0.2⋅0.62+0.2⋅0.82+0.2⋅12=2511=0.44.
As can be seen, R5 is greater than the area S; so, S<0.44.
Instead of using the right endpoints, we could use the smaller rectangles whose heights are the values at the left-hand endpoints of the subintervals (the leftmost rectangle collapsed because its height is 0).
Let's see what the area of each rectangle is. Recall that the height is the value of a function at the left endpoint.
First rectangle: the height is 02; so, the area is S1=0.2⋅02.
Second rectangle: the height is 0.22; so, the area is S2=0.2⋅0.22.
Third rectangle: the height is 0.42; so, the area is S3=0.2⋅0.42.
Fourth rectangle: the height is 0.62; so, the area is S4=0.2⋅0.62.
Fifth rectangle: the height is 0.82; so, the area is S5=0.2⋅0.82.
The sum of the areas of these approximating rectangles is L5=0.2⋅02+0.2⋅0.22+0.2⋅0.42+0.2⋅0.62+0.2⋅0.82=256=0.24.
As can be seen, the area S is larger than L5; so, 0.24<S<0.44.
Finally, we can take the height of the rectangles to be the value of the function at the midpoint of the interval.
The corresponding approximation is M5=0.2⋅0.12+0.2⋅0.32+0.2⋅0.52+0.2⋅0.72+0.2⋅0.92=10033=0.33.
Since it is not clear what is greater: S or M5, we just write S≈0.33.
What will be if we increase the number of strips? Clearly, the greater the number of strips, the
better approximation we obtain.
So, let's see what will be if we approximate the area by a very large number of rectangles.
Suppose that we have divided the area into n strips. Then, the length of the base of each strip is n1−0=n1.
Let's use right-endpoint approximation. In this case, the height of the i-th rectangle is (i1)2, and the area of the i-th rectangle is Ai=n1⋅(ni)2.
Summing the areas of the rectangles will give the approximate area:
Sn=n1⋅(n1)2+n1⋅(n2)2+…+n1⋅(nn)2=∑i=1nn1(ni)2=n31∑i=1ni2.
To rewrite this formula, we need the following formula: ∑i=1ni2=6n(n+1)(2n+1).
So, we can write that Sn=n316n(n+1)(2n+1)=6n2(n+1)(2n+1)=6n22n2+3n+1=31+2n1+6n21.
If we now make n very large, we will find the required area S: S=limn→∞Sn=limn→∞(31+2n1+6n21)=31 (this is just the limit of the sequence).
So, S=31.
Let's apply this idea to our initial problem – the problem of finding the area under the continuous curve y=f(x) on the interval [a,b].
We start by dividing S into n strips S1, S2,...,Sn of equal width.
The widht of the interval [a,b] is b−a; so, the width of each of the n strips is Δx=nb−a.
These strips divide the interval [a,b] into n strips:
[x0,x1],[x1,x2],…,[xn−1,xn], where x0=a and xn=b.
In fact, if we let n→∞, then it doesn't matter what height of the rectangle to choose: hi=a+iΔx (right endpoint), hi=a+(i−1)Δx (left endpoint), or hi=a+iΔx−Δ2x (midpoint). In fact, we can choose any sample point xi⋆ from the interval [xi−1,xi].
In this case, the area of the i-th rectangle is Ai=f(xi⋆)Δx.
Now, the area S can be approximated by summing the areas of the n rectangles: Sn=f(x1⋆)Δx+f(x2⋆)Δx+…+f(xn⋆)Δx=∑i=1nf(xi⋆)Δx.
This approximation becomes better and better as n→∞.
Fact. The area S of the region that lies under the graph of a continuous function f is the limit of the sum of the areas of the approximating rectangles: S=limn→∞Sn=limn→∞∑i=1nf(xi⋆)Δx.
It can be proved that the above limit always exists, since we are assuming that f is continuous.