Definite Integrals

Definite integrals are best introduced by first presenting the problem they are intended to solve: Finding the area under a curve. Consider the diagram below.

Area under the curve

Here, we're visualizing the graph of some function y=f(x).{y = f(x).} Along the graph are some points x=a{x = a} and x=b.{x = b.} The area under the curve is shaded pink, and is denoted:

abf(x) dx \int_a^b f(x) ~dx

The entire expression above is called a definite integral. The function f(x){f(x)} is called the integrand, the points a{a} and b{b} are called the limits or bounds of the integral, and the dx,{dx,} a differential, indicates that the variable of integration is x.{x.} Given the bounds a{a} and b,{b,} we say that the integral is over the interval [a,b].{[a, b].} The interval [a,b]{[a,b]} is called the interval of integration.

To compute the area, we use the following algorithm:

  1. Divide the area into rectangles.
  2. Add the areas of the rectangles.
  3. Take the limit as the rectangles get infinitely thin.

For example, suppose we had the following curve:

Initial curve

To find the area beneath the curve over the interval [a,b],{[a,b],} we start by dividing it into rectangles:

Dividing into rectangles

Notice that some of the rectangles go beyond the curve. If we summate the area for each of these rectangles as is, the area under the curve would be over the actual area. This is where taking the limit comes in. If we make the rectangles thinner, we reduce any over and under estimation:

Dividing into thinner rectangles

At some point, the rectangles are so infinitesimally thin that any excess area is neglibile. With this idea in mind, let's consider an example. Say we had the function:

f(x)=x2 f(x) = x^2

We'll start at a=0{a = 0} and let b{b} be arbitrary. Visualizing the area beneath the curve as consisting of rectangles:

Notice the rectangles

Suppose there are n{n} rectangles. We know that the area of rectangle is given by the formula:

Ar=bh A_r = b \cdot h

If there are n{n} rectangles, then the base length is given by:

bn \dfrac{b}{n}

Because the base has a length b/n,{b/n,} we can determine the height by passing b/n{b/n} into the function:

x{x}f(x){f(x)}
bn{\dfrac{b}{n}}(bn)2{ \left( \dfrac{b}{n} \right)^2 }
2bn{\dfrac{2b}{n}}(2bn)2{ \left( \dfrac{2b}{n} \right)^2 }
3bn{\dfrac{3b}{n}}(3bn)2{ \left( \dfrac{3b}{n} \right)^2 }
{\vdots}{\vdots}

The sum of the areas is thus:

(bn)(bn)2+(bn)(2bn)2+(bn)(3bn)2++(bn)(nbn)2 \left( \dfrac{b}{n} \right) \left( \dfrac{b}{n} \right)^2 + \left( \dfrac{b}{n} \right) \left( \dfrac{2b}{n} \right)^2 + \left( \dfrac{b}{n} \right) \left( \dfrac{3b}{n} \right)^2 + \ldots + \left( \dfrac{b}{n} \right) \left( \dfrac{nb}{n} \right)^2

Notice the pattern of the terms. The coefficients go 1,{1,} 2,{2,} 3,{3,} and so on, up to n.{n.} The formula reduces to:

(bn)3(1+22+32++n2) \left( \dfrac{b}{n} \right)^3 \left( 1 + 2^2 + 3^2 + \ldots + n^2 \right)

Just to ensure the pattern is clear, we'll write 1{1} as 12:{1^2:}

(bn)3(12+22+32++n2) \left( \dfrac{b}{n} \right)^3 \left( 1^2 + 2^2 + 3^2 + \ldots + n^2 \right)

Question: How big is this quantity:

12+22+32++n2 1^2 + 2^2 + 3^2 + \ldots + n^2

Since we're working with rectangles, a good starting point is to try and build a pyramid with a base of n×n.{n \times n.}

Initial pyramid

In the diagram above, we have two views of the pyramid, a top view and a profile view. In the profile view, the slope of the dashed red line is 2.{2.} It follows that the next layer is (n1)×(n1).{(n-1) \times (n-1).} This means the total number of blocks at the base is n2,{n^2,} the rightmost term in our long expression:

12+22+32++n2 1^2 + 2^2 + 3^2 + \ldots + \textcolor{salmon}{n^2}

If we examine the term a little closer, we see that the term before n2{n^2} is (n1)2:{(n-1)^2:}

12+22+32++(n1)2+n2 1^2 + 2^2 + 3^2 + \ldots + \textcolor{salmon}{(n-1)^2} + n^2

Corresponding to the total number of blocks for the next layer, (n1)2.{(n-1)^2.} The volume of a pyramid with a base of side lengths n{n} and a height of n{n} is given by the formula:

Vp=13n2n=13n3 V_p = \dfrac{1}{3}n^2 \cdot n = \dfrac{1}{3} n^3

This tells us the following fact:

13n3<12+22+32++(n1)2+n2 \textcolor{salmon}{\dfrac{1}{3}n^3} < 1^2 + 2^2 + 3^2 + \ldots + (n-1)^2 + n^2

This new fact (in red) corresponds to the inner pyrmaid, and in turn corresponds to a lower bound. We can also capture the outer upper bound (the volume of the pyramid denoted by the green dashed line in the diagram) with the formula:

13(n+1)2(n+1) \dfrac{1}{3}(n+1)^2(n+1)

Thus, we have:

13n3<12+22+32++(n1)2+n2<13(n+1)3 \textcolor{salmon}{\dfrac{1}{3}n^3} < 1^2 + 2^2 + 3^2 + \ldots + (n-1)^2 + n^2 < \textcolor{green}{\dfrac{1}{3}(n+1)^3}

At this point, we're ready to take the limit. The original expression:

(bn)3(1+22+32++n2) \left( \dfrac{b}{n} \right)^3 \left( 1 + 2^2 + 3^2 + \ldots + n^2 \right)

We want to rewrite this expression as:

b3(12+22++n2n3) b^3 \left( \dfrac{1^2 + 2^2 + \ldots + n^2}{n^3} \right)

Going back to our inequality, we divide by n3:{n^3:}

13n3n3<12+22+32++(n1)2+n2n3<13(n+1)3n3 \dfrac{\textcolor{salmon}{\dfrac{1}{3}n^3}}{n^3} < \dfrac{1^2 + 2^2 + 3^2 + \ldots + (n-1)^2 + n^2}{n^3} < \dfrac{\textcolor{green}{\dfrac{1}{3}(n+1)^3}}{n^3}

Reducing, we get:

13<12+22+32++n2n3<13(1+1n)3 \dfrac{1}{3} < \dfrac{1^2 + 2^2 + 3^2 + \ldots + n^2}{n^3} < \dfrac{1}{3} \left( 1 + \dfrac{1}{n} \right)^3

As n{n} goes to infinity, we see that:

13<12+22+32++n2n3<13(1+1nn0)3 \dfrac{1}{3} < \dfrac{1^2 + 2^2 + 3^2 + \ldots + n^2}{n^3} < \dfrac{1}{3} \left( 1 + \cancel{\dfrac{1}{n}}^{n \to \infty \nc 0} \right)^3

Hence:

13<12+22+32++n2n3<13 \dfrac{1}{3} < \dfrac{1^2 + 2^2 + 3^2 + \ldots + n^2}{n^3} < \dfrac{1}{3}

It follows that the total area under x2{x^2} is:

0bx2 dx=13b3 \int_0^b x^2~dx = \dfrac{1}{3}b^3

The graph of f(x)=x2:{f(x) = x^2:}

Integral of a parabola

Summation Notation

With our first example done, we introduce another new bit of notation. Writing:

1+2+3++n 1 + 2 + 3 + \ldots + n

is tedious. Accordingly, mathematicians use summation notation to express the idea of summing the terms in a sequence of numbers:

i=1nai=a1+a2++an \sum\limits_{i = 1}^{n} a_i = a_1 + a_2 + \ldots + a_n

Thus, the inequality:

13<12+22+32++n2n3<13(1+1n)3 \dfrac{1}{3} < \dfrac{1^2 + 2^2 + 3^2 + \ldots + n^2}{n^3} < \dfrac{1}{3} \left( 1 + \dfrac{1}{n} \right)^3

can be more concisely written as:

13<1n3i=1ni2<13(1+1n)3 \dfrac{1}{3} < \dfrac{1}{n^3} \sum\limits_{i = 1}^{n} i^2 < \dfrac{1}{3} \left( 1 + \dfrac{1}{n} \right)^3

What we showed, then, was that:

limn1n3i=1ni2=13 \lim\limits_{n \to \infty} \dfrac{1}{n^3} \sum\limits_{i = 1}^{n} i^2 = \dfrac{1}{3}

Similarly, we can write the expression:

(bn)(bn)2+(bn)(2bn)2++(bn)(nbn)2 \left( \dfrac{b}{n} \right) \left( \dfrac{b}{n} \right)^2 + \left( \dfrac{b}{n} \right) \left( \dfrac{2b}{n} \right)^2 + \ldots + \left( \dfrac{b}{n} \right) \left( \dfrac{nb}{n} \right)^2

as:

i=1nbn(ibn)2 \sum\limits_{i = 1}^{n} \dfrac{b}{n} \left( \dfrac{ib}{n} \right)^2

This yields the expression:

i=1nbn(ibn)2=b3n3i=1ni2 \begin{aligned} \sum\limits_{i = 1}^{n} \dfrac{b}{n} \left( \dfrac{ib}{n} \right)^2 = \dfrac{b^3}{n^3} \sum\limits_{i = 1}^{n} i^2 \end{aligned}

Let's consider another example: f(x)=x.{f(x) = x.} This function is fairly straightforward in terms of a graph:

Integral of a simple function

From the graph above, we see that the area beneath the curve is a triangle, with sides of length b.{b.} The area is thus:

A=12bh=12b2 A = \dfrac{1}{2} b \cdot h = \dfrac{1}{2}b^2

Notice that we didn't have to do any of the complex calculations we saw previously. There is, however, an even simpler example: f(x)=1.{f(x) = 1.}

Integral of another simple function

The area is simply:

A=bh=b1=b A = b \cdot h = b \cdot 1 = b

With these simpler examples, we now have enough to see a pattern:

f(x){f(x)}0bf(x) dx{\int_0^b f(x)~dx}
x2{x^2}b33{\dfrac{b^3}{3}}
x{x}b22{\dfrac{b^2}{2}}
1{1}b{b}

Perhaps the pattern isn't so obvious. Let's rewrite the functions with powers:

f(x){f(x)}0bf(x) dx{\int_0^b f(x)~dx}
x2{x^2}b33{\dfrac{b^3}{3}}
x1{x^1}b22{\dfrac{b^2}{2}}
x0{x^0}b11{\dfrac{b^1}{1}}

Examining this pattern, we might reasonably guess that:

0bx3 dx=b44 \int_0^b x^3~dx = \dfrac{b^4}{4}

In a later section, we'll see that this guess is correct.

Summation and Integration

To put things in perspective, let's take a step back and look at the relationship between summation and integration from a high-level view. First, integration, in the crudest terms, is just "fancy addition." We're trying to find a sum, but instead of having all of the terms in front of us, we're given a formula for where those terms live. We call it "fancy addition" because we're doing a bit more work to get the sum. In fact, to reinforce this idea even further, the integral symbol:

\Large \int

is actually called a medial s (or long s), and it was how Medieval writers in continental Europe wrote the letter 's'. The 's', as we might have guessed by now, stands for "summa," the Latin word for "sum." Who chose this symbol? None other than the notation wizard himself — Gottfried Leibniz.

Once we view integration this way, we realize that summation and integration are simply two sides of the same coin:

limni=1nf(xi)Δx \Large \lim_{n \to \infty} \sum_{i=1}^n f(x_i) \Delta x
abf(x) dx \Large \int_{a}^{b} f(x) ~dx

Summation reveals the discrete side, and integration the continous.