For the majority of functions you will come across on a regular basis, Riemann integration will work just fine. However, this doesn’t mean that this approach to the integral will work for all functions. In this section, we will discuss the shortcomings of the Riemann integral. Is it possible for a function to be integrable but not Riemann integrable?
Example 1. Define the function as
Note that the rational numbers and irrational numbers are what we call dense in the real numbers. What this means is that any interval of real numbers, no matter how small we make that interval, will contain both a rational number and an irrational number.
Therefore, for any interval , we will have and This means that, for any partition of , we will always have and Hence, there is no partition we can choose that will give us and therefore, is not Riemann integrable.
Now let’s look at what happens when we attempt to take the Riemann integral of a function which is unbounded. If you paid attention in Calculus 2, you may remember that it is possible to solve some integrals which break the standard rules of integration. One such example is below.
Example 2. Define by
Here, we have an instance where Hence, no matter how we partition , we will have However, if we integrate this in our standard calculus way, using an improper integral, we get
Here is another example of a function which isn’t Riemann integrable but can still be integrated:
Example 3. Let be a sequence which includes every rational number in exactly once and which includes no other numbers. In other words, we have For , define
Finally, define by Similar to the first example, this integral will run into problems due to the density of the rational numbers. Every open interval in that we can possible create will contain a rational number. Hence the function is unbounded, meaning the Riemann integral of is undefined on every subinterval of
However, the area under the graph of each is meaning that the integral of should actually be
Example 4. Riemann integration also won’t work well with pointwise limits.
Let’s define the same way as in the previous example, with For , define
Here, we’ll have Now, define
Clearly,
However, is not Riemann integrable.
Now, there are instances in which we can say that However, this will require more than just "the limit exists."
Suppose with . Now, suppose is a sequence of Riemann integrable functions on such that and suppose exists Define by and further require that converges uniformly to . If is Riemann integrable on , then we can say
Problem 5. Define as follows
Show that is Riemann integrable and compute
Solution: To show that this function is Riemann integrable, we want to show that for any , there exists a partition such that Let’s look at the lower sum first. We know that, regardless of what partition we choose, we must have for every interval in our partition, since any interval will contain at least one irrational number. Hence for all partitions . Now for the upper sum. Notice that for any subinterval , we will have where is the smallest integer such that is in the interval. Now, this tells us that the supremum has an upper bound. Let’s see how small we can make .
Let . Let be a partition with subintervals. We want Since we know that the supremum, is bounded, making the length of each interval sufficiently small should be able to satisfy this inequality.
In other words, choose a such that for all in .
Now we have and Therefore we have the result and
Problem 6. Suppose is a bounded function. Prove that is Riemann integrable if and only if .
Solution: We proved the forward direction in Problem 1.5 in the previous section, where we showed that and To prove , notice that Therefore, is Riemann integrable.
Problem 7. Suppose are two bounded functions. Prove that and
Solution: For any partition of we have, for all where and for all , Therefore Now for any partition The proof for the upper sum will follow the same argument.
Problem 8. Give an example of bounded functions such that and
Solution: For one example of such a function, take and Now for any partition of and interval contained in our partition, we’ll have while So we’ll have Similarly, we’ll have and giving us
Problem 9. Give an example of a sequence of continuous, real-valued functions on and a continuous real-valued function on such that but
Solution: We can find one such example by defining
So each will look similar to the triangle below
As , the size of the intervals and will approach zero, giving us giving us However, if we look at the area under the curve for any , we have and so Hence