Approximating the area beneath a curve

So how do we find the area of the region from aa to bb beneath the graph of a function ff? Let's denote this area by

AfA_f

There is actually a generic method to find AfA_f. The idea is to first find an approximation of the area, then we form better and better approximations until we see see toward which values these approximations converge. And this value has to be the area we are looking for. The analogues step in differential calculus was to find better and better approximations of the slope of the tangent using the secants. The slope of the tangent was then the number towards which the slope of the secants converged.

To keep things concrete, let's return to our example where we want to find the area from a=0.1a=0.1 to b=1.5b=1.5 beneath the graph of the function

f(x)=14x2+12f(x)=\frac{1}{4} x^2+\frac{1}{2}

Thus, AfA_f is the area of the shaded region in the figure below. The figure also shows how we can find an approximation of this area. We simply cover the area by many vertical bars of equal width and sum the areas of these bars. If we take nn bars, and the bar areas are denoted by A1,...,AnA_1, ..., A_n, we thus have

Afk1nAk=A1+A2+...+An\boxed{A_f \approx \sum_{k_1}^n A_k = A_1+A_2+...+A_n}

We call the sum on the right the sum of bar areas. Let's now discuss how to find the bar areas A1,...,AnA_1, ..., A_n.

We first need to discuss how we actually constructed the bars, so that we can find their width and heights. Only then can we proceed to calculate the areas of these bars.

Exercise 1
  1. Use nn bars to approximate the area of the region from aa to bb under the graph of the function ff. Furthermore, where possible, calculate the exact area and compare with the approximation (see also section 27). Always create a figure and indicate the bars.

    1. f(x)=3f(x)=3 for all xx (constant function), a=0.5,b=4,n=7a=0.5, b=4, n=7.
    2. f(x)=0.5x+1,a=1,b=3,n=4f(x)=0.5x+1, a=-1, b=3, n=4.
    3. f(x)=1x2,a=1,b=1,n=5f(x)=\sqrt{1-x^2}, a=-1, b=1, n=5.
    4. f(x)=x2f(x)=x^2, a=0a=0, b=2b=2, n=3n=3
    5. f(x)=2xf(x)=\frac{2}{x}, a=1a=1, b=2b=2, n=2n=2
  2. Use 100100 bars to approximate the area from a=0a=0 to b=1b=1 beneath the graph of the function f(x)=x2f(x)=x^2. Hint: You need a sum formula we discussed in section 2 of integral calculus.

  3. A car moves along a straight line. The instantaneous speed at time xx can be described by some function f(x)f(x). We approximate the area from time aa to time bb beneath the graph of ff using nn bars. In this context, what is the meaning of the sum of bar areas?

    k=1nf(xk)Δx\sum_{k=1}^n f(x_k)\Delta x
Solution
  1. The graphs are shown below.
    1. Δx=40.57=0.5\Delta x =\frac{4-0.5}{7}=0.5 x1=1,x2=1.5,x3=2,x4=2.5,x5=3,x6=3.5,x7=4x_1=1, x_2=1.5, x_3=2, x_4=2.5, x_5=3, x_6=3.5, x_7=4 k=17f(xk)Δx=f(1)0.5+f(1.5)0.5+...+f(4)0.5=1.5+1.5+1.5+1.5+1.5+1.5+1.5=10.5\begin{array}{lll} \sum_{k=1}^7 f(x_k)\Delta x & = f(1)\cdot 0.5+ f(1.5)\cdot 0.5+...+f(4)\cdot 0.5\\ & = 1.5+1.5+1.5+1.5+1.5+1.5+1.5\\ & = \underline{10.5}\\ \end{array} Af=3.53=10.5A_f=3.5\cdot 3=\underline{10.5} (see exercise in previous section)
    2. Δx=3(1)4=1\Delta x =\frac{3-(-1)}{4}=1 x1=0,x2=1,x3=2,x4=3x_1=0, x_2=1, x_3=2, x_4=3 k=14f(xk)Δx=f(0)1+f(1)1+f(2)1+f(3)1=1+1.5+2+2.5=7\begin{array}{lll} \sum_{k=1}^4 f(x_k)\Delta x & = f(0)\cdot 1+ f(1)\cdot 1+f(2)\cdot 1+f(3)\cdot 1\\ & =1+1.5+2+2.5\\ & =\underline{7}\\ \end{array} Af=6A_f=\underline{6} (see exercise in previous section).
    3. Δx=1(1)5=0.4\Delta x =\frac{1-(-1)}{5}=0.4 x1=0.6,x2=0.2,x3=0.2,x4=0.6,x5=1x_1=-0.6, x_2=-0.2, x_3=0.2, x_4=0.6, x_5=1 k=15f(xk)Δx=f(0.6)0.4+f(0.2)0.4+f(0.2)0.4+f(0.6)0.4+f(1)0.4=0.32+0.39+0.39+0.32+0=1.42\begin{array}{lll} \sum_{k=1}^5 f(x_k)\Delta x & = f(-0.6)\cdot 0.4+ f(-0.2)\cdot 0.4+f(0.2)\cdot 0.4+f(0.6)\cdot 0.4+f(1)\cdot 0.4\\ & = 0.32+0.39+0.39+0.32+0\\ & =\underline{1.42}\\ \end{array} Af=π2=1.57...A_f=\frac{\pi}{2}=\underline{1.57...} (see exercise in previous section).
    4. Δx=203=23\Delta x =\frac{2-0}{3}=\frac{2}{3} x1=23,x2=43,x3=2x_1=\frac{2}{3}, x_2=\frac{4}{3}, x_3=2 k=13f(xk)Δx=f(23)23+f(43)23+f(2)23=827+3227+7227=11227=4.15\begin{array}{lll} \sum_{k=1}^3 f(x_k)\Delta x & = f(\frac{2}{3})\cdot \frac{2}{3}+ f(\frac{4}{3})\cdot \frac{2}{3}+f(2)\cdot \frac{2}{3}\\ & =\frac{8}{27}+\frac{32}{27}+\frac{72}{27}\\ & =\frac{112}{27}=\underline{4.15}\\ \end{array} (Af=2.6A_f=\underline{2.\overline{6}}, but you do not know how to calculate this yet).
    5. Δx=212=0.5\Delta x =\frac{2-1}{2}=0.5 x1=1.5,x2=2x_1=1.5, x_2=2 k=12f(xk)Δx=f(1.5)0.5+f(2)0.5=23+12=1.16\begin{array}{lll} \sum_{k=1}^2 f(x_k)\Delta x & = f(1.5)\cdot 0.5+ f(2)\cdot 0.5\\ & =\frac{2}{3}+\frac{1}{2}=\underline{1.1\overline{6}}\\ \end{array} (Af=1.386...A_f=\underline{1.386...}, but you do not know how to calculate this yet)
  2. We have Δx=10100=1100\Delta x = \frac{1-0}{100}=\frac{1}{100} Thus, x1=1100x2=2100x3=3100...x100=100100=1\begin{array}{lll} x_1 =& \frac{1}{100} \\ x_2 =& \frac{2}{100} \\ x_3 =& \frac{3}{100} \\ ...& \\ x_{100} =& \frac{100}{100}=1 \\ \end{array} and therefore k=1nf(xk)Δx=f(x1)Δx+f(x2)Δx+f(x3)Δx+...+f(xn)Δx=(1100)21100+(2100)21100+(3100)21100+...+(100100)21100=121003+221003+321003+...+10021003=11003(12+22+32+...+1002)\begin{array}{lll} \sum_{k=1}^n f(x_k)\Delta x & =& f(x_1)\Delta x+f(x_2)\Delta x +f(x_3)\Delta x + ...+ f(x_n)\Delta x \\ & = & \left(\frac{1}{100}\right)^2 \frac{1}{100}+\left(\frac{2}{100}\right)^2 \frac{1}{100}+\left(\frac{3}{100}\right)^2 \frac{1}{100}+...+\left(\frac{100}{100}\right)^2 \frac{1}{100}\\ & = & \frac{1^2}{100^3} + \frac{2^2}{100^3}+\frac{3^2}{100^3}+...+\frac{100^2}{100^3}\\ & = & \frac{1}{100^3} (1^2 +2^2+3^2+...+100^2)\\ \end{array} Note that we have a formula for finding the first nn square numbers (see section 25): 12+22+32+...+n2=n(n+1)(2n+1)61^2+2^2+3^2+...+n^2=\frac{n(n+1)(2n+1)}{6} For n=100n=100, we get 12+22+32+...+1002=1001012016=3383501^2+2^2+3^2+...+100^2=\frac{100\cdot 101 \cdot 201}{6}=338350 Thus, the sum of bars is k=1nf(xk)Δx=3383501003=0.33835\sum_{k=1}^n f(x_k)\Delta x = \frac{338350}{100^3}=\underline{0.33835} The exact area, by the way, is 13\frac{1}{3}, but you do not know how to calculate this presently.
  3. Each bar area is the product of a speed f(x)f(x) and a time Δx\Delta x, thus each bar area is the distance travelled by the car during the time Δx\Delta x (at least an approximation of it). The sum of bars between the times aa and bb is therefore the approximate distance travelled in the time interval from aa to bb.