Unit 6 · Topic 6.3

Translate sums and integrals

Builds on left, right and midpoint Riemann sums, and limits at infinity. 12 minutes.

  1. Example 1Find the width and sample points
  2. Example 2Separate height from width in a sum
  3. Example 3Translate a sum limit into an integral
  4. Example 4Build a sum for a definite integral

In topic 6.2, you estimated an integral by adding the areas of rectangles. Summation notation, also called sigma notation, writes such a sum in one line. For a continuous function, the sums approach a number as the rectangles become thinner, and this number is the definite integral. This topic shows why for a curve that rises, and how to translate a limit of sums into an integral and back.

Heights times widths

A curve f that rises from left to right above the axis, on an interval from a to b that is cut into n subintervals of equal width, with a teal rectangle on each. Each rectangle is as tall as the curve above its sample point, an orange dot on the axis, and the region under the curve is shaded. On the second subinterval, from x sub i minus 1 to x sub i, an orange bar marks the height f of x sub i star, and a green bracket below it marks the width delta x. Sliders change n and move the sample points from the left endpoints to the right endpoints. A button adds a vertical asymptote at a, where the curve then rises without bound.

Figure 1The interval from \(a\) to \(b\) is cut into \(n\) subintervals of equal width, and the region under the curve is shaded a lighter teal. Each teal rectangle is as tall as the curve above its sample point, an orange dot on the axis. The orange bar marks the height \(\cy{f(x_i^*)}\) of one rectangle, and green marks its width \(\cg{\Delta x}\).

In Figure 1, the interval \([a,b]\) is cut into \(n\) pieces of equal width, called subintervals. The \(n\) widths fill the length \(b-a\), so each width is \(\cg{\Delta x}=\frac{b-a}{n}\), the green bracket. The endpoints of the subintervals are \(a\) plus a whole number of widths, \(x_i=a+i\,\Delta x\) for \(i=0,1,\dots,n\). The first is \(x_0=a\), and the last is \(x_n=a+n\,\Delta x=b\). Subinterval \(i\) runs from \(x_{i-1}\) to \(x_i\).

A teal rectangle stands on each subinterval. Its height is the value of \(f\) at one point of the subinterval, called its sample point \(\cy{x_i^*}\). An orange dot on the axis marks each sample point. A left sum uses the left endpoints, \(x_i^*=x_{i-1}\), and a right sum uses the right endpoints, \(x_i^*=x_i\). A midpoint sum uses the midpoints, half a width past the left endpoints \(a+(i-1)\,\Delta x\), so \(x_i^*=a+\left(i-\frac12\right)\Delta x\). The sample point slider moves the dots from the left endpoints, at 0, through the midpoints, at 0.5, to the right endpoints, at 1.

The rectangle on subinterval \(i\) has height \(\cy{f(x_i^*)}\) and width \(\cg{\Delta x}\), so its signed area is \(f(x_i^*)\,\Delta x\). If \(f(x_i^*)<0\), the rectangle lies below the axis, and this product is negative, as in topic 6.1. The sum of the \(n\) products is a Riemann sum, named after Bernhard Riemann. The Greek capital letter \(\Sigma\), sigma, stands for a sum. Below and above it, \(i=1\) and \(n\) give the first and last values of the index \(i\):

\[\begin{aligned}&\sum_{i=1}^{n}\cy{f(x_i^*)}\,\cg{\Delta x}\\&=f(x_1^*)\,\Delta x+f(x_2^*)\,\Delta x\\&\quad+\cdots+f(x_n^*)\,\Delta x\end{aligned}\]

To read a given sum, decide which expression in it is the sample point. In a left, right or midpoint sum, neighboring sample points are one width apart, so the width is their spacing. Each term divided by the width is the height, the value of \(f\) at the sample point, and it shows which function \(f\) is. Because the width multiplies every term, it can also be written in front of \(\Sigma\).

The integral is the limit of the sums

Move the sample point slider under Figure 1 to 0. Then increase \(n\). The rectangles become narrower and follow the curve more closely, and the Riemann sum under the figure approaches the shaded area \(\cb{A}\). For a curve like this one, which lies above the axis and rises, a short argument shows why. Write \(L_n\) and \(R_n\) for the left and right sums. Because \(f\) rises, its height on each subinterval is smallest at the left endpoint and largest at the right endpoint. With the sample point slider at 0, the rectangles therefore lie inside the region, so \(L_n\le A\). At 1, they cover it, so \(A\le R_n\). In \(R_n-L_n\), every height except \(f(a)\) and \(f(b)\) is added once and subtracted once:

\[\begin{aligned}R_n-L_n&=\sum_{i=1}^{n}\big[f(x_i)-f(x_{i-1})\big]\,\Delta x\\&=\big[f(b)-f(a)\big]\,\Delta x\end{aligned}\]

As \(n\) grows, \(\Delta x=\frac{b-a}{n}\) approaches 0 while \(f(b)-f(a)\) is fixed, so \(R_n-L_n\) approaches 0 too. The differences \(A-L_n\) and \(R_n-A\) lie between 0 and \(R_n-L_n\), so by the Squeeze Theorem both sums approach \(A\). For any other sample points, \(f(x_{i-1})\le f(x_i^*)\le f(x_i)\) because \(f\) rises. That sum therefore lies between \(L_n\) and \(R_n\), and it approaches \(A\) too.

A theorem on the integrability of continuous functions, proved in more advanced courses, extends this to every \(f\) that is continuous on \([a,b]\). Its Riemann sums approach one number as \(n\) grows, for every choice of sample points. This number is the definite integral \(\int_a^b f(x)\,dx\), the signed area of topic 6.1. Some books call it the Riemann integral. The sign \(\int\), a stretched S for sum, replaces \(\lim\sum\), and the ends \(a\) and \(b\) of the interval are the bounds of the integral. The integrand \(f(x)\), the function after the sign, replaces \(f(x_i^*)\), and \(dx\) replaces \(\Delta x\). If the subintervals have unequal widths, the limit is taken as the largest width approaches 0.

The theorem assumes that \(f\) is continuous on the closed interval. Use the button under Figure 1 to put a vertical asymptote at \(a\). The new curve is the old one plus \(\frac{c}{(x-a)^2}\), with \(c>0\), so \(f(a)\) is undefined and \(f\) is not continuous at \(a\). A left sum uses \(f(a)\), so it does not exist. The button therefore moves the sample points to the right endpoints, and it sets \(n\) to 12. The first rectangle has height more than \(\frac{c}{(\Delta x)^2}\), so its area is more than \(\frac{c}{\Delta x}=\frac{cn}{b-a}\), which grows without bound as \(n\) grows. The other rectangles add positive areas, so the sums grow without bound and approach no number. Increase \(n\), and the Riemann sum under the figure grows. This \(f\) has no definite integral on \([a,b]\).

From sums to integrals and back

To write a limit of Riemann sums as an integral, read the sum as above. The height gives the integrand \(f(x)\), and the first and last endpoints give the bounds. For right endpoints \(x_i=a+i\,\Delta x\), these are the values of the formula at \(i=0\) and at \(i=n\), not the first and last values of \(i\). As a check, \(n\,\Delta x\) equals \(b-a\). Check also that the integrand is continuous on \([a,b]\), so that the theorem applies. A sum can have more than one correct reading. A reading is correct if its width, integrand and bounds all come from the same sample points.

To write an integral as a limit of sums, find \(\Delta x=\frac{b-a}{n}\) and the sample points. With right endpoints, the terms are \(f(a+i\,\Delta x)\,\Delta x\) for \(i=1\) to \(n\). With left endpoints, they are the same terms for \(i=0\) to \(n-1\). The limit of either sum is the integral from \(a\) to \(b\), because in both sums the subintervals run from \(x_0=a\) to \(x_n=b\).

Example 1

Find the width and sample points

The interval \([-1,5]\) is divided into \(n\) subintervals of equal width. Find \(\Delta x\), and write the left endpoint, the right endpoint and the midpoint of the \(i\)th subinterval. Then list the midpoints for \(n=4\).

Solution

The interval is \(5-(-1)=6\) long, and \(n\) equal widths fill it, so \(\cg{\Delta x}=\frac6n\). The endpoints start at \(-1\) and are one width apart, so \(x_i=-1+\frac{6i}{n}\). The \(i\)th subinterval runs from \(x_{i-1}\) to \(x_i\), and its midpoint lies half a width past \(x_{i-1}\):

\[\begin{aligned}\text{left: }&-1+\frac{6(i-1)}{n}\\\text{right: }&-1+\frac{6i}{n}\\\text{midpoint: }&-1+\left(i-\tfrac12\right)\frac6n\end{aligned}\]

For \(n=4\), the width is 1.5, and \(i=1,2,3,4\) give the midpoints \(-0.25\), 1.25, 2.75 and 4.25. As a check, the right endpoint for \(i=n\) is \(-1+6=5\), the end of the interval.

Example 2

Separate height from width in a sum

The sum \(\displaystyle\sum_{i=1}^{n}\frac{12}{n}\,e^{2+3i/n}\) is a right Riemann sum for a function \(f\) on the interval \([2,5]\), with \(n\) subintervals of equal width. Find \(\Delta x\) and \(f(x)\).

Solution

The interval is \(5-2=3\) long, so \(\cg{\Delta x}=\frac3n\), and the right endpoints are \(x_i=2+\frac{3i}{n}\), the exponent. Each term must be a height \(f(x_i)\) times the width \(\frac3n\), so write \(\frac{12}{n}\) as \(4\cdot\frac3n\):

\[\frac{12}{n}\,e^{2+3i/n}=\cy{4e^{2+3i/n}}\cdot\cg{\frac3n}\]

The height is \(\cy{f(x_i)}=4e^{x_i}\), so \(f(x)=4e^x\).

Example 3

Translate a sum limit into an integral

Write \(\displaystyle\lim_{n\to\infty}\sum_{i=1}^{n}\frac2n\ln\!\left(1+\frac{2i}{n}\right)\) as a definite integral.

Solution

Take the sample points to be the right endpoints \(x_i=1+\frac{2i}{n}\). Neighboring ones are \(\frac2n\) apart, so the factor \(\cg{\frac2n}\) is the width, and the height is \(\cy{\ln x_i}\). The endpoints run from \(x_0=1\) to \(x_n=1+2=3\). The function \(\ln x\) is continuous on \([1,3]\), so the limit is the integral:

\[\begin{aligned}&\lim_{n\to\infty}\sum_{i=1}^{n}\cg{\frac2n}\,\cy{\ln\!\left(1+\frac{2i}{n}\right)}\\&=\int_1^3\ln x\,dx\end{aligned}\]

Another reading is also correct. With \(x_i=\frac{2i}{n}\), the endpoints run from 0 to 2 and the height is \(\ln(1+x_i)\). This function is continuous on \([0,2]\), so the limit is also \(\int_0^2\ln(1+x)\,dx\). The region under \(\ln(1+x)\) from 0 to 2 is the region under \(\ln x\) from 1 to 3, moved 1 unit to the left.

Example 4

Build a sum for a definite integral

Express \(\displaystyle\int_2^6\sqrt{1+x^3}\,dx\) as a limit of right Riemann sums and as a limit of left Riemann sums.

Solution

The integrand is continuous on \([2,6]\), because \(1+x^3>0\) there. With \(n\) subintervals, \(\cg{\Delta x}=\frac{6-2}{n}=\frac4n\), and the endpoints are \(x_i=2+\frac{4i}{n}\). A right sum takes its heights at \(x_1\) to \(x_n\), so \(i\) runs from 1 to \(n\):

\[\begin{aligned}&\int_2^6\sqrt{1+x^3}\,dx\\&=\lim_{n\to\infty}\sum_{i=1}^{n}\cy{\sqrt{1+\left(2+\tfrac{4i}{n}\right)^3}}\,\cg{\frac4n}\end{aligned}\]

A left sum takes its heights at \(x_0\) to \(x_{n-1}\), so it has the same terms for \(i=0\) to \(n-1\). Its subintervals also run from 2 to 6, so the integral is also this limit:

\[\lim_{n\to\infty}\sum_{i=0}^{n-1}\cy{\sqrt{1+\left(2+\tfrac{4i}{n}\right)^3}}\,\cg{\frac4n}\]

Each example is one of the four skills of topic 6.3 in Which & Why: AP Calculus.