Skip to content
Family Table Math

The Definite Integral

Riemann sums only approximate an area. But the more rectangles you use, the better the approximation gets. If you take the limit as the number of rectangles goes to infinity, you get the exact value, and that limit has its own name and symbol: the definite integral. This page is about what the notation means and how to translate between a limit of sums and an integral.

The Greek capital letter sigma, Σ\Sigma, means “add up”. The expression

∑k=1nak=a1+a2+⋯+an\sum_{k=1}^{n} a_k = a_1 + a_2 + \dots + a_n

adds the terms aka_k for k=1,2,…,nk = 1, 2, \dots, n. For example, ∑k=14k2=1+4+9+16=30\displaystyle\sum_{k=1}^{4} k^2 = 1 + 4 + 9 + 16 = 30.

Split [a,b][a, b] into nn equal subintervals. Then

Δx=b−an,xk=a+k Δx(the right endpoint of the kth subinterval).\Delta x = \frac{b - a}{n}, \qquad x_k = a + k\,\Delta x \quad (\text{the right endpoint of the } k\text{th subinterval}).

The right Riemann sum is

∑k=1nf(xk) Δx=∑k=1nf ⁣(a+k(b−a)n)b−an.\sum_{k=1}^{n} f(x_k)\,\Delta x = \sum_{k=1}^{n} f\!\left(a + \frac{k(b - a)}{n}\right) \frac{b - a}{n}.

If ff is continuous on [a,b][a, b], the limit of the Riemann sums as n→∞n \to \infty exists, and it is the definite integral of ff from aa to bb:

∫abf(x) dx=lim⁡n→∞∑k=1nf(xk) Δx.\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{k=1}^{n} f(x_k)\,\Delta x .

Left, right, and midpoint sums all have the same limit, so any of them can be used.

SymbolMeaning
∫\inta stretched S, for “sum”
aa, bbthe lower and upper limits of integration
f(x)f(x)the integrand, the heights
dxdxthe “tiny width”; it tells you the variable is xx
Right Riemann sums for y = x squared on the interval 0 to 2. With 4 rectangles the sum is 3.75; with 16 thinner rectangles it is about 2.922, much closer to the exact area 8/3, about 2.667. 1 2 1 2 3 4 n = 4: right sum = 3.75 1 2 1 2 3 4 n = 16: right sum ≈ 2.922
As nn grows, the right sums for ∫02x2 dx\int_0^2 x^2\,dx get closer to the exact value 83≈2.667\tfrac{8}{3} \approx 2.667.

The definite integral is a signed area: regions above the xx-axis count as positive and regions below count as negative. If ff is a rate of change, the integral is the accumulated change, so its units are (units of ff) × (units of xx).

To turn lim⁡n→∞∑k=1nf(xk) Δx\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} f(x_k)\,\Delta x into an integral:

  1. The factor that looks like somethingn\dfrac{\text{something}}{n} outside ff is Δx\Delta x. Its numerator is b−ab - a.
  2. Inside the function, xk=a+k Δxx_k = a + k\,\Delta x. The constant part is aa.
  3. Then b=a+(b−a)b = a + (b - a), and the integrand is whatever is done to xkx_k.

The answer is not unique. For example, if xk=1+3knx_k = 1 + \tfrac{3k}{n}, you can treat the function as “square it” on [1,4][1, 4], or as “add 11 and square it” on [0,3][0, 3]:

lim⁡n→∞∑k=1n(1+3kn)23n=∫14x2 dx=∫03(1+x)2 dx.\lim_{n \to \infty} \sum_{k=1}^{n} \left(1 + \frac{3k}{n}\right)^2 \frac{3}{n} = \int_1^4 x^2\,dx = \int_0^3 (1 + x)^2\,dx .

Example 1: Writing a sum in sigma notation

Section titled “Example 1: Writing a sum in sigma notation”

Write the right Riemann sum for ∫02x2 dx\displaystyle\int_0^2 x^2\,dx with nn equal subintervals in sigma notation. Then evaluate it for n=4n = 4.

Solution. Δx=2−0n=2n\Delta x = \dfrac{2 - 0}{n} = \dfrac{2}{n} and xk=0+2kn=2knx_k = 0 + \dfrac{2k}{n} = \dfrac{2k}{n}:

Rn=∑k=1n(2kn)22nR_n = \sum_{k=1}^{n} \left(\frac{2k}{n}\right)^2 \frac{2}{n}

For n=4n = 4, the terms use xk=0.5,1,1.5,2x_k = 0.5, 1, 1.5, 2:

R4=0.5 (0.25+1+2.25+4)=3.75R_4 = 0.5\,(0.25 + 1 + 2.25 + 4) = 3.75

That’s the left graph in the figure above.

Write lim⁡n→∞∑k=1n1+3kn⋅3n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \sqrt{1 + \frac{3k}{n}} \cdot \frac{3}{n} as a definite integral.

Solution. Δx=3n\Delta x = \dfrac{3}{n}, so b−a=3b - a = 3. Inside the square root, xk=1+3knx_k = 1 + \dfrac{3k}{n}, so a=1a = 1 and b=4b = 4. The function takes the square root:

∫14x dx\int_1^4 \sqrt{x}\,dx

Another correct answer is ∫031+x dx\displaystyle\int_0^3 \sqrt{1 + x}\,dx (with a=0a = 0 and the "1+1 +" moved into the function).

Find lim⁡n→∞∑k=1n16−(4kn)2⋅4n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \sqrt{16 - \left(\frac{4k}{n}\right)^2} \cdot \frac{4}{n}.

Solution. Δx=4n\Delta x = \dfrac{4}{n} and xk=4knx_k = \dfrac{4k}{n}, so a=0a = 0 and b=4b = 4:

lim⁡n→∞∑k=1n16−(4kn)2⋅4n=∫0416−x2 dx\lim_{n \to \infty} \sum_{k=1}^{n} \sqrt{16 - \left(\frac{4k}{n}\right)^2} \cdot \frac{4}{n} = \int_0^4 \sqrt{16 - x^2}\,dx

The graph of y=16−x2y = \sqrt{16 - x^2} is the top half of the circle x2+y2=16x^2 + y^2 = 16 (radius 44). From x=0x = 0 to x=4x = 4 it’s a quarter circle:

∫0416−x2 dx=14π(4)2=4π\int_0^4 \sqrt{16 - x^2}\,dx = \frac{1}{4}\pi(4)^2 = 4\pi

Write ∫25(x3−x) dx\displaystyle\int_2^5 (x^3 - x)\,dx as the limit of a right Riemann sum.

Solution. Δx=5−2n=3n\Delta x = \dfrac{5 - 2}{n} = \dfrac{3}{n} and xk=2+3knx_k = 2 + \dfrac{3k}{n}:

∫25(x3−x) dx=lim⁡n→∞∑k=1n[(2+3kn)3−(2+3kn)]3n\int_2^5 (x^3 - x)\,dx = \lim_{n \to \infty} \sum_{k=1}^{n} \left[\left(2 + \frac{3k}{n}\right)^3 - \left(2 + \frac{3k}{n}\right)\right] \frac{3}{n}

Taking Δx\Delta x as bb. In Example 2, 3n\tfrac{3}{n} tells you the width of the interval is 33, not that b=3b = 3. Find aa from the constant in xkx_k, then b=a+3b = a + 3.

Forgetting the Δx\Delta x factor. A Riemann sum is heights times widths. Without Δx\Delta x the limit usually doesn’t exist, and it isn’t a definite integral.

Mismatching the limits and the integrand. If you keep the "1+1 +" inside the function, the interval starts at 00; if you take it out as a=1a = 1, the function changes. Don’t do both, or you’ll get ∫141+x dx\int_1^4 \sqrt{1 + x}\,dx, which is wrong.

Treating the integral as total area. ∫abf(x) dx\int_a^b f(x)\,dx is a signed area. Parts below the axis subtract.

Dropping the dx. The dxdx is part of the notation. It shows which variable you’re integrating with respect to, and AP graders expect it.

1. (Warm-up) For ∫−13(x2+1) dx\displaystyle\int_{-1}^3 (x^2 + 1)\,dx with nn equal subintervals, write Δx\Delta x and the right endpoint xkx_k.

SolutionΔx=3−(−1)n=4n,xk=−1+4kn\Delta x = \frac{3 - (-1)}{n} = \frac{4}{n}, \qquad x_k = -1 + \frac{4k}{n}

2. (Warm-up) Evaluate ∑k=15(2k−1)\displaystyle\sum_{k=1}^{5} (2k - 1).

Solution1+3+5+7+9=251 + 3 + 5 + 7 + 9 = 25

3. (Warm-up) Write lim⁡n→∞∑k=1n(kn)31n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \left(\frac{k}{n}\right)^3 \frac{1}{n} as a definite integral.

Solution

Δx=1n\Delta x = \dfrac{1}{n} and xk=knx_k = \dfrac{k}{n}, so a=0a = 0 and b=1b = 1:

∫01x3 dx\int_0^1 x^3\,dx

4. (Core) Write lim⁡n→∞∑k=1nln⁡ ⁣(1+2kn)2n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \ln\!\left(1 + \frac{2k}{n}\right) \frac{2}{n} as a definite integral.

Solution

Δx=2n\Delta x = \dfrac{2}{n} and xk=1+2knx_k = 1 + \dfrac{2k}{n}, so a=1a = 1 and b=3b = 3:

∫13ln⁡x dx\int_1^3 \ln x\,dx

Also correct: ∫02ln⁡(1+x) dx\displaystyle\int_0^2 \ln(1 + x)\,dx.

5. (Core) Write lim⁡n→∞∑k=1n(−2+3kn)23n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \left(-2 + \frac{3k}{n}\right)^2 \frac{3}{n} as a definite integral with the integrand x2x^2.

Solution

Δx=3n\Delta x = \dfrac{3}{n} and xk=−2+3knx_k = -2 + \dfrac{3k}{n}, so a=−2a = -2 and b=1b = 1:

∫−21x2 dx\int_{-2}^{1} x^2\,dx

6. (Core) Write ∫131x dx\displaystyle\int_1^3 \frac{1}{x}\,dx as the limit of a right Riemann sum.

Solution

Δx=2n\Delta x = \dfrac{2}{n} and xk=1+2knx_k = 1 + \dfrac{2k}{n}:

∫131x dx=lim⁡n→∞∑k=1n11+2kn⋅2n\int_1^3 \frac{1}{x}\,dx = \lim_{n \to \infty} \sum_{k=1}^{n} \frac{1}{1 + \frac{2k}{n}} \cdot \frac{2}{n}

7. (Core) Evaluate lim⁡n→∞∑k=1n(1+4kn)4n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \left(1 + \frac{4k}{n}\right) \frac{4}{n} by writing it as an integral and using geometry.

Solution

Δx=4n\Delta x = \dfrac{4}{n}, xk=4knx_k = \dfrac{4k}{n} with the function 1+x1 + x, so the limit is ∫04(1+x) dx\displaystyle\int_0^4 (1 + x)\,dx.

The region under y=1+xy = 1 + x from 00 to 44 is a trapezoid with parallel sides 11 and 55 and width 44:

∫04(1+x) dx=1+52⋅4=12\int_0^4 (1 + x)\,dx = \frac{1 + 5}{2} \cdot 4 = 12

(Or read it as ∫15x dx\int_1^5 x\,dx, a trapezoid with sides 11 and 55: also 1212.)

8. (Challenge) Use the formula ∑k=1nk2=n(n+1)(2n+1)6\displaystyle\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6} to find a formula for the right sum RnR_n for ∫02x2 dx\displaystyle\int_0^2 x^2\,dx from Example 1. Then take the limit as n→∞n \to \infty to find the exact value of the integral.

SolutionRn=∑k=1n4k2n2⋅2n=8n3∑k=1nk2=8n3⋅n(n+1)(2n+1)6=4(n+1)(2n+1)3n2\begin{aligned} R_n &= \sum_{k=1}^{n} \frac{4k^2}{n^2} \cdot \frac{2}{n} = \frac{8}{n^3} \sum_{k=1}^{n} k^2 \\ &= \frac{8}{n^3} \cdot \frac{n(n+1)(2n+1)}{6} = \frac{4(n+1)(2n+1)}{3n^2} \end{aligned}

Check: R4=4(5)(9)48=3.75R_4 = \dfrac{4(5)(9)}{48} = 3.75, which matches Example 1.

∫02x2 dx=lim⁡n→∞4(2n2+3n+1)3n2=4⋅23=83\int_0^2 x^2\,dx = \lim_{n \to \infty} \frac{4(2n^2 + 3n + 1)}{3n^2} = \frac{4 \cdot 2}{3} = \frac{8}{3}

9. (Challenge) Write lim⁡n→∞∑k=1n4−(−2+2kn)2⋅2n\displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \sqrt{4 - \left(-2 + \frac{2k}{n}\right)^2} \cdot \frac{2}{n} as a definite integral in two different ways, and evaluate it.

Solution

Δx=2n\Delta x = \dfrac{2}{n}. With xk=−2+2knx_k = -2 + \dfrac{2k}{n}, a=−2a = -2 and b=0b = 0:

∫−204−x2 dx\int_{-2}^{0} \sqrt{4 - x^2}\,dx

Or keep the −2-2 inside the function, with xk=2knx_k = \dfrac{2k}{n} on [0,2][0, 2]:

∫024−(x−2)2 dx\int_0^2 \sqrt{4 - (x - 2)^2}\,dx

In the first form, y=4−x2y = \sqrt{4 - x^2} is the top half of a circle of radius 22, and [−2,0][-2, 0] is a quarter of it:

14π(2)2=π\frac{1}{4}\pi(2)^2 = \pi