# Area Problem Revisited

## Related calculators: Definite and Improper Integral Calculator , Riemann Sum Calculator for a Function

We already talked about area problem and presented there one approach to solve this problem. Here we will present another approach.

So, suppose we are given a function $$${f{{\left({x}\right)}}}$$$ that is positive on $$${\left[{a},{b}\right]}$$$ and we want to find an 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 from example.

**Example.** Use rectangles to estimate the area under the parabola $$${f{{\left({x}\right)}}}={{x}}^{{2}}$$$ from 0 to 1.

Let's divide area $$${S}$$$ into five strips. We can approximate area of each strip by area of rectangle whose base is same as base of strip and whose height is same as the right edge of a strip (value of function at the rightest point of the strip).

Since we divided interval $$${\left[{0},{1}\right]}$$$ on five strips then length of base of each strip is $$$\frac{{{1}-{0}}}{{5}}={0.2}$$$.

So, we have following five subintervals: $$${\left[{0},{0.2}\right]}$$$, $$${\left[{0.2},{0.4}\right]}$$$, $$${\left[{0.4},{0.6}\right]}$$$, $$${\left[{0.6},{0.8}\right]}$$$, $$${\left[{0.8},{1}\right]}$$$.

As was already stated above length of base of each strip is 0.2. This is also base of each rectangle.

Now let's see what is the area of each rectangle. Recall that height is value of function at right endpoint.

First rectangle: height is $$${{0.2}}^{{2}}$$$, so area is $$${S}_{{1}}={0.2}\cdot{{0.2}}^{{2}}.$$$

Second rectangle: height is $$${{0.4}}^{{2}}$$$, so area is $$${S}_{{2}}={0.2}\cdot{{0.4}}^{{2}}$$$.

Third rectangle: height is $$${{0.6}}^{{2}}$$$, so area is $$${S}_{{3}}={0.2}\cdot{{0.6}}^{{2}}$$$.

Fourth rectangle: height is $$${{0.8}}^{{2}}$$$, so area is $$${S}_{{4}}={0.2}\cdot{{0.8}}^{{2}}$$$.

Fifth rectangle: height is $$${{1}}^{{2}}$$$, so area is $$${S}_{{5}}={0.2}\cdot{{1}}^{{2}}$$$.

Sum of areas of these approximating rectangles is $$${R}_{{5}}={0.2}\cdot{{0.2}}^{{2}}+{0.2}\cdot{{0.4}}^{{2}}+{0.2}\cdot{{0.6}}^{{2}}+{0.2}\cdot{{0.8}}^{{2}}+{0.2}\cdot{{1}}^{{2}}=\frac{{11}}{{25}}={0.44}$$$

As can be seen $$${R}_{{5}}$$$ is greater than area $$${S}$$$, so $$${S}<{0.44}$$$.

Instead of using the right endpoints we could use the smaller rectangles whose heights are the values of at the left-hand endpoints of the subintervals (the leftmost rectangle has collapsed because its height is 0).

Let's see what is the area of each rectangle. Recall that height is value of function at left endpoint.

First rectangle: height is $$${{0}}^{{2}}$$$, so area is $$${S}_{{1}}={0.2}\cdot{{0}}^{{2}}$$$.

Second rectangle: height is $$${{0.2}}^{{2}}$$$, so area is $$${S}_{{2}}={0.2}\cdot{{0.2}}^{{2}}$$$.

Third rectangle: height is $$${{0.4}}^{{2}}$$$, so area is $$${S}_{{3}}={0.2}\cdot{{0.4}}^{{2}}$$$.

Fourth rectangle: height is $$${{0.6}}^{{2}}$$$, so area is $$${S}_{{4}}={0.2}\cdot{{0.6}}^{{2}}$$$.

Fifth rectangle: height is $$${{0.8}}^{{2}}$$$, so area is $$${S}_{{5}}={0.2}\cdot{{0.8}}^{{2}}$$$.

Sum of areas of these approximating rectangles is $$${L}_{{5}}={0.2}\cdot{{0}}^{{2}}+{0.2}\cdot{{0.2}}^{{2}}+{0.2}\cdot{{0.4}}^{{2}}+{0.2}\cdot{{0.6}}^{{2}}+{0.2}\cdot{{0.8}}^{{2}}=\frac{{6}}{{25}}={0.24}$$$

As can be seen area $$${S}$$$ is larger than $$${L}_{{5}}$$$ so $$${0.24}<{S}<{0.44}$$$.

Finally we can take height of rectangles to be value of function at midpoint of interval.

Corresponding approximation is $$${M}_{{5}}={0.2}\cdot{{0.1}}^{{2}}+{0.2}\cdot{{0.3}}^{{2}}+{0.2}\cdot{{0.5}}^{{2}}+{0.2}\cdot{{0.7}}^{{2}}+{0.2}\cdot{{0.9}}^{{2}}=\frac{{33}}{{100}}={0.33}$$$.

Since it is not clear what is greater: $$${S}$$$ or $$${M}_{{5}}$$$, then we just write $$${S}\approx{0.33}$$$.

What will be if we increase number of strips? Clearly the greater number of strips, the better approximation we will obtain.

So, let's see what will be if we approximate area by the very large number of rectangles.

Suppose we divided area into $$${n}$$$ strips. Then length of base of each strip is $$$\frac{{{1}-{0}}}{{n}}=\frac{{1}}{{n}}$$$.

Let's use right-endpoint approximation. In this case height of i-th rectangle is $$${{\left(\frac{{1}}{{i}}\right)}}^{{2}}$$$ and area of i-th rectangle is $$${A}_{{i}}=\frac{{1}}{{n}}\cdot{{\left(\frac{{i}}{{n}}\right)}}^{{2}}$$$.

Summing areas of rectangles will give approximate area:

$$${S}_{{n}}=\frac{{1}}{{n}}\cdot{{\left(\frac{{1}}{{n}}\right)}}^{{2}}+\frac{{1}}{{n}}\cdot{{\left(\frac{{2}}{{n}}\right)}}^{{2}}+\ldots+\frac{{1}}{{n}}\cdot{{\left(\frac{{n}}{{n}}\right)}}^{{2}}={\sum_{{{i}={1}}}^{{n}}}\frac{{1}}{{n}}{{\left(\frac{{i}}{{n}}\right)}}^{{2}}=\frac{{1}}{{{n}}^{{3}}}{\sum_{{{i}={1}}}^{{n}}}{{i}}^{{2}}$$$.

To rewrite this formula we need the following formula: $$${\sum_{{{i}={1}}}^{{n}}}{{i}}^{{2}}=\frac{{{n}{\left({n}+{1}\right)}{\left({2}{n}+{1}\right)}}}{{6}}$$$.

So, we can write that $$${S}_{{n}}=\frac{{1}}{{{n}}^{{3}}}\frac{{{n}{\left({n}+{1}\right)}{\left({2}{n}+{1}\right)}}}{{6}}=\frac{{{\left({n}+{1}\right)}{\left({2}{n}+{1}\right)}}}{{{6}{{n}}^{{2}}}}=\frac{{{2}{{n}}^{{2}}+{3}{n}+{1}}}{{{6}{{n}}^{{2}}}}=\frac{{1}}{{3}}+\frac{{1}}{{{2}{n}}}+\frac{{1}}{{{6}{{n}}^{{2}}}}.$$$

If we now make $$${n}$$$ very large we will find required area $$${S}$$$: $$${S}=\lim_{{{n}\to\infty}}{S}_{{n}}=\lim_{{{n}\to\infty}}{\left(\frac{{1}}{{3}}+\frac{{1}}{{{2}{n}}}+\frac{{1}}{{{6}{{n}}^{{2}}}}\right)}=\frac{{1}}{{3}}$$$ (this is just limit of the sequence).

So, $$${S}=\frac{{1}}{{3}}$$$.

Let's apply this idea to our initial problem - problem of finding area under continuous curve $$${y}={f{{\left({x}\right)}}}$$$ on interval $$${\left[{a},{b}\right]}$$$.

We start by dividing $$${S}$$$ into $$${n}$$$ strips $$${S}_{{1}}$$$, $$${S}_{{2}}$$$,...,$$${S}_{{n}}$$$ of equal width.

The widht of the interval $$${\left[{a},{b}\right]}$$$ is $$${b}-{a}$$$, so width of each of the $$${n}$$$ strips is $$$\Delta{x}=\frac{{{b}-{a}}}{{n}}$$$.

These strips divide interval $$${\left[{a},{b}\right]}$$$ into $$${n}$$$ strips:

$$${\left[{x}_{{0}},{x}_{{1}}\right]},{\left[{x}_{{1}},{x}_{{2}}\right]},\ldots,{\left[{x}_{{{n}-{1}}},{x}_{{n}}\right]}$$$ where $$${x}_{{0}}={a}$$$ and $$${x}_{{n}}={b}$$$.

In fact if we let $$${n}\to\infty$$$ then it doesn't matter what height of rectangle to choose: $$${h}_{{i}}={a}+{i}\Delta{x}$$$ (right endpoint), $$${h}_{{i}}={a}+{\left({i}-{1}\right)}\Delta{x}$$$ (left endpoint), $$${h}_{{i}}={a}+{i}\Delta{x}-\Delta\frac{{x}}{{2}}$$$ (midpoint). We can in fact choose any **sample point** $$${{x}_{{i}}^{\star}}$$$ from interval $$${\left[{x}_{{{i}-{1}}},{x}_{{i}}\right]}$$$.

In this case area of i-th rectangle is $$${A}_{{i}}={f{{\left({{x}_{{i}}^{\star}}\right)}}}\Delta{x}$$$.

Now area $$${S}$$$ can be approximated by summing areas of $$${n}$$$ rectangles: $$${S}_{{n}}={f{{\left({{x}_{{1}}^{\star}}\right)}}}\Delta{x}+{f{{\left({{x}_{{2}}^{\star}}\right)}}}\Delta{x}+\ldots+{f{{\left({{x}_{{n}}^{\star}}\right)}}}\Delta{x}={\sum_{{{i}={1}}}^{{n}}}{f{{\left({{x}_{{i}}^{\star}}\right)}}}\Delta{x}$$$.

This approximation becomes better and better as $$${n}\to\infty$$$.

**Fact.** The **area** $$${S}$$$ of the region that lies under the graph of the continuous function $$${f{}}$$$ is the limit of the sum of the areas of approximating rectangles: $$${S}=\lim_{{{n}\to\infty}}{S}_{{n}}=\lim_{{{n}\to\infty}}{\sum_{{{i}={1}}}^{{n}}}{f{{\left({{x}_{{i}}^{\star}}\right)}}}\Delta{x}$$$.

It can be proved that above limit always exists, since we are assuming that $$${f{}}$$$ is continuous.