A photo of math course notes written on a blackboard.

Today’s quiz problem asked about an approximation of the area bounded by the curve y=x2βˆ’4 over the interval [0,2] using n=6 rectangles.

To start, whenever we’re using the method of Riemann Sums (approximating areas with rectangles), we need to compute Ξ”x=bβˆ’an=24=12

Then, we look at the list of intervals created by splitting [0,2] into n=6 sub-intervals with equal width: [0,13],[13,23],[23,1],[1,43],[43,53],[53,2]

The problem specifies that we should use the right endpoints: {13,23,1,43,53,2}, and from these we compute the heights of each rectangle (y-values) by evaluating the y=x2βˆ’4 curve at each x-value: {βˆ’359,βˆ’329,βˆ’3,βˆ’209,βˆ’119,0}

A photo of math course notes written on a blackboard.

Now that we have the height of each rectangle, we can compute their areas as Ai=hiβ‹…Ξ”x: {βˆ’3527,βˆ’3227,βˆ’1,βˆ’2027,βˆ’1127,0}. And then the total area is the sum of the areas of the individual rectangles: Aβ‰ˆβ€“3527+–3227+–1+–2027+–1127+0=βˆ’12527.

There was a question about process, and we should note here that it is possible to take an alternative approach β€” summing the heights first, and then multiplying the sum by Ξ”x: (βˆ’359+–329+–3+βˆ’209+βˆ’119+0)13=βˆ’12527. This is of course the same total area as multiplying the individual heights by Ξ”x and then taking the sum.

Finally, we are asked about what would be different if we used the left endpoints (instead of the right endpoints). The difference is exchanging the right most x-value (and the resulting, right most y-value and rectangle area) for the left most x-value (and its corresponding y-value and area)

  • right endpoints (x-values): {0,13,23,1,43,53}
  • heights (y-values): {βˆ’4,βˆ’359,βˆ’329,βˆ’3,βˆ’209,βˆ’119}
  • areas: {βˆ’43,βˆ’3527,βˆ’3227,βˆ’1,βˆ’2027,βˆ’1127,0}
  • total area (for the left approximation): 43+–3527+–3227+–1+–2027+–1127=βˆ’16127

Although it didn’t get written on the board, we discussed the improved approximation that happens when we use more rectangles (a higher n). Although the approximation ends up closer to the actual area, there is also much calculation required. We then proceed without specifying a value for n, choosing instead to leave it as a variable.

A photo of math course notes written on a blackboard.

Without specifying the number of rectangles, the only parameters we need are the curve: y=f(x), and the interval [a,b]. We start with the width of each rectangle, by dividing the width of the interval by the number of rectangles: Ξ”x=bβˆ’an.

We then begin listing the x-values, each separated by the width of Ξ”x: {a,a+Ξ”x,a+2Ξ”x,a+3Ξ”x,a+4Ξ”x,…,b}. This pattern is familiar, it is arithmetic (with a common difference of Ξ”x). Since n already represents the number of rectangles, we need to use i as our index for the pattern of the x-values: xi=a+iβ‹…Ξ”x, starting with i=0.

Then the next step is to find the y-values: yi=f(xi)

And then the areas: Ai=f(xi)β‹…Ξ”x, with a total (approximated) area: Aβ‰ˆβˆ‘i=1nf(xi)β‹…Ξ”x

A photo of math course notes written on a blackboard.

Then, since the approximation gets closer to the actual area as the number of rectangles, our area is the limit as nβ†’βˆž: limnβ†’βˆž(βˆ‘i=1nf(xi)Ξ”x)

The problem is that in order to evaluate this limit, we’d need a closed form for the sum β€” and this is pretty hard to find, in most cases. Also note what happens to our rectangles as nβ†’βˆž, their width continues to shrink until they’re thinner than the smallest particles in the universe.

Now we introduce some new notation to refer to the exact area: A=∫abf(x)dx

The y=f(x) and the interval bounds x=a and x=b form the bounds for the region whose area we are trying to find. Also note, in this notation, we have dx taking the place of Ξ”x from our sum. This dx is representative of the infinitesimal width of our rectangles (in the limit as nβ†’βˆž).

A photo of math course notes written on a blackboard.

Now, for some β€˜curves’ (that is to say y=f(x)), we can compute the exact area without using the limit of rectangle areas β€” we can just use geometry instead. In this example, we look at ∫232xdx. By graphing our bounds: y=2x and the interval bounds x=2 and x=3, we identify the area as a trapezoid. While it is possible to use a formula for the area of a trapezoid, it is perhaps easier to see the total area as the sum of a right triangle on top of a rectangle for a total area of A=1+4=5.

This strategy works when y=f(x) is a line, or when y=f(x) is circular. But what can we do when y=f(x) is non-linear?

A photo of math course notes written on a blackboard.

In our final example, we look at a non-linear curve: y=x2 over the interval [0,2] β€” and we will use the limit of the rectangular areas to find the exact area of the region.

First, we compute Ξ”x=2βˆ’0n, and then the x values by starting with x0=0, and adding the width Ξ”x=2n to get x1=2n, then x2=4n, x3=6n, and so on.

Knowing this pattern is an arithmetic pattern with common difference 2n, we identify the pattern for x-values as xi=2nβ‹…i.

From the x-values, we compute the y-values as yi=f(xi)=(xi)2=(2nβ‹…i)2=4n2β‹…i2

And then from the heights (y-values), we compute the areas: Ai=yiβ‹…Ξ”x=4n2β‹…i2β‹…(2n)=8n3β‹…i2

A photo of math course notes written on a blackboard.

So now we are going to try to find a closed form for our sum (so that we can evaluate the limit).

  • βˆ‘i=1n8n3β‹…i2
  • =8n3β‹…12+8n3β‹…22+8n3β‹…32+…+8n3β‹…n2
  • =8n3(12+22+32+…+n2)
  • =8n3(n(n+1)(2n+1)6)

This closed form has the same degree (for n) in the numerator and denominator, so the limit as nβ†’βˆž is the ratio of the leading coefficients: 166=83