try ai
Popular Science
Edit
Share
Feedback
  • Riemann Integrability

Riemann Integrability

SciencePediaSciencePedia
Key Takeaways
  • For a function to be Riemann integrable on a closed interval, it must first be bounded, meaning it cannot extend to infinity within that interval.
  • A bounded function is Riemann integrable if and only if the set of its points of discontinuity has Lebesgue measure zero, meaning the set is "negligibly small".
  • Functions with a finite or countably infinite number of discontinuities, such as monotonic functions or Thomae's function, are Riemann integrable.
  • The Riemann integral fails for functions with "large" sets of discontinuities, like the Dirichlet function, a limitation overcome by the more powerful Lebesgue integral.

Introduction

The concept of finding the area under a curve is a cornerstone of calculus, introduced to students as the definite integral. This method, formalized by Bernhard Riemann, provides a powerful and intuitive tool for a vast range of applications. However, this apparent simplicity masks a deeper question: for which functions does this process of "slicing and summing" actually yield a definitive answer? The answer lies in the concept of ​​Riemann integrability​​, a rigorous framework for understanding the limits of this fundamental tool. This article delves into the precise conditions that make a function integrable. We will first explore the principles and mechanisms of integrability, examining the crucial roles of boundedness and the "size" of a function's discontinuities, a journey that will take us through surprising examples like the Cantor set. Following this, under applications and interdisciplinary connections, we will see the remarkable reach of the Riemann integral, its breaking points, and how its limitations paved the way for the more powerful theory of Lebesgue integration, a cornerstone of modern analysis and physics.

Principles and Mechanisms

Suppose you want to find the area under a curve. If the curve is a simple, well-behaved function like a straight line or a parabola, the method conceived by Newton and Leibniz, which we now call the ​​Riemann integral​​, works beautifully. It's the method you first learn in calculus: slice the area into a host of narrow vertical rectangles, sum their areas, and then see what happens as you make the slices infinitesimally thin. The limit, if it exists, is the area.

But what if the curve is not so well-behaved? What if it jumps around, has holes, or worse? When does this wonderfully intuitive process of "slicing and summing" actually work? This is the central question of ​​Riemann integrability​​. It’s not just a matter of mathematical pedantry; it's about understanding the limits of a fundamental tool used across science and engineering. The journey to the answer reveals a surprisingly deep and beautiful structure within the real numbers themselves.

The First Rule of the Club: You Must Be Bounded

Before we even think about summing up little rectangles, we need to be sure our function doesn't do something crazy, like shoot off to infinity. Imagine you're a physicist trying to calculate the total potential energy associated with a field like V(x)=λ∣x∣V(x) = \frac{\lambda}{|x|}V(x)=∣x∣λ​ over some interval. If you're looking at the interval [1,3][1, 3][1,3], everything is fine. The function's value stays neatly between λ3\frac{\lambda}{3}3λ​ and λ\lambdaλ. You can draw a "box" that completely contains your curve, and the area is clearly finite.

But what happens if you try to integrate this same function over the interval [−1,1][-1, 1][−1,1]? The point x=0x=0x=0 is in this interval, and as you get closer and closer to it, the potential V(x)V(x)V(x) skyrockets towards positive infinity. Now try to apply the Riemann recipe. You slice the interval. One of your slices will inevitably contain x=0x=0x=0. When you form a rectangle for this slice, how high should you make it? You can make its height as large as you want, simply by picking a point closer to zero. The "upper sum" of your rectangles would be infinite, no matter how skinny your slices are. The entire scheme falls apart.

This brings us to our first, non-negotiable rule: for a function to be Riemann integrable on a closed interval, it ​​must be bounded​​. It can wiggle and jiggle, but it cannot escape to infinity within the interval. If a function is unbounded, the conversation about its Riemann integral is over before it begins.

The Trouble with Jumps: When is a Function Too "Shaky"?

So, boundedness is necessary. Is it sufficient? If I can draw a finite horizontal box that contains the entire graph of a function, can I always find its area?

Let’s consider a mischievous function, a modification of the one conceived by the great mathematician Peter Gustav Lejeune Dirichlet. Let the function f(x)f(x)f(x) be 111 if xxx is a rational number (a fraction), and −1-1−1 if xxx is an irrational number. This function is perfectly bounded—its values are always either 111 or −1-1−1. But let's try to integrate it on the interval [0,1][0, 1][0,1].

We take any tiny slice of the interval, say from xix_ixi​ to xi+1x_{i+1}xi+1​. No matter how mind-bogglingly small we make this slice, the bizarre nature of the real number line guarantees that it contains both rational and irrational numbers. So, inside this tiny slice, our function jumps back and forth between 111 and −1-1−1. When we try to form our Riemann rectangles, we have a problem. To get the ​​upper sum​​, we take the highest value the function reaches in each slice, which is always 111. The total area of these upper-sum rectangles will be 1×(total length)=11 \times (\text{total length}) = 11×(total length)=1. To get the ​​lower sum​​, we must take the lowest value in each slice, which is always −1-1−1. The total area of these lower-sum rectangles will be −1×(total length)=−1-1 \times (\text{total length}) = -1−1×(total length)=−1.

As we make our slices thinner and thinner, the upper sum stubbornly stays at 111, and the lower sum stubbornly stays at −1-1−1. They never meet in the middle. The limit does not exist. The function is simply too "shaky" or discontinuous everywhere for the Riemann method to handle. Clearly, being bounded is not enough. The nature of the function's discontinuities must play a crucial role.

The Measure of a Mess: A New Way to See "Size"

How many discontinuities are too many? A function with a single jump, like a step function, is no problem. You can "trap" the jump inside one infinitesimally thin rectangle, and its contribution to the total area vanishes in the limit. The same logic applies if there are two jumps, or a hundred, or any ​​finite​​ number of jumps. As long as the function is bounded, it is Riemann integrable.

This might lead you to guess that the dividing line is between a finite and an infinite number of discontinuities. But the world of mathematics is more subtle and wonderful than that. Consider ​​Thomae's function​​, which is 1/q1/q1/q if x=p/qx=p/qx=p/q is a rational number in lowest terms, and 000 if xxx is irrational. This function has an infinite number of discontinuities—it jumps at every rational number! Yet, miraculously, it is Riemann integrable.

The secret truth, discovered by Henri Lebesgue, is this: it’s not about counting the number of discontinuities. It’s about measuring their collective "size". Lebesgue devised a more powerful way to measure the size of sets, now called ​​Lebesgue measure​​. For an interval, its measure is just its length. But for a scattered set of points, the idea is to see how efficiently you can "cover" all the points with a collection of tiny intervals. If you can make the sum of the lengths of these covering intervals arbitrarily small—smaller than any tiny positive number you can name—then the set has ​​measure zero​​.

A finite set of points has measure zero. More surprisingly, a countably infinite set, like the set of all rational numbers, also has measure zero! You can cover all the rational numbers with a collection of intervals whose total length adds up to, say, 0.10.10.1, or 0.00010.00010.0001, or whatever you choose. They are, in this sense, "negligible".

This leads us to the grand, unifying principle:

A bounded function on a closed interval is Riemann integrable if and only if the set of its points of discontinuity has Lebesgue measure zero.

This single, elegant criterion explains everything we’ve seen. A continuous function has no discontinuities, so the set has measure 0. A function with a finite number of jumps has a discontinuity set of measure 0. A monotonic (always non-decreasing or non-increasing) function can be proven to have at most a countable number of discontinuities, which means its discontinuity set has measure 0, so it is always integrable. Thomae's function is discontinuous only at the rationals, a set of measure 0. And the Dirichlet-like function is discontinuous everywhere on the interval, a set whose measure is the length of the interval itself—definitely not zero.

Pushing the Limits: The Ghostly Cantor Set

To see the true power of this idea, let's venture to one of the most famous objects in mathematics: the ​​Cantor set​​. You build it by starting with the interval [0,1][0,1][0,1], removing the open middle third (13,23)(\frac{1}{3}, \frac{2}{3})(31​,32​), then removing the middle third of the two remaining pieces, and so on, forever. What’s left is a "dust" of points. This "dust" is bizarre: it contains an uncountable number of points (as many as the entire interval!), yet its total length, or Lebesgue measure, is exactly zero. It's a giant set that is, in the sense of measure, completely negligible.

Now, let's define a function that is 111 for any point in this Cantor set, and 555 everywhere else on [0,1][0,1][0,1]. This function is discontinuous at every single one of the uncountable points of the Cantor set. Yet, because the set of discontinuities has measure zero, the function is ​​Riemann integrable​​! Because the Cantor set is "invisible" to the integral, the area is simply the integral of the constant function g(x)=5g(x)=5g(x)=5, which is 5×(1−0)=55 \times (1-0) = 55×(1−0)=5.

To hammer the point home, one can construct "fat" Cantor sets. By changing the construction to remove progressively smaller fractions at each step, we can create a Cantor-like set that has a positive measure, say 1/41/41/4. If we define a function to be 111 on this "fat" set and 000 elsewhere, this new function is not Riemann integrable. The set of discontinuities is still a nowhere-dense "dust" of points, but now its measure is positive, and that is the kiss of death for Riemann integrability. It is the measure, and only the measure, of the set of discontinuities that matters.

The Algebra of Integrability

Knowing which functions are members of the "Riemann integrable club" allows us to ask how they interact.

  • If fff and ggg are integrable, what about their sum, f+gf+gf+g, or their product, f⋅gf \cdot gf⋅g? The answer is yes, both are also integrable. The reason is that if a point is a continuity point for both fff and ggg, it will be for their sum and product as well. The set of "bad points" for f⋅gf \cdot gf⋅g is at most the union of the bad points for fff and the bad points for ggg. Since the union of two sets of measure zero still has measure zero, integrability is preserved. The same logic shows that if fff is integrable, so are its absolute value ∣f∣|f|∣f∣ and its square f2f^2f2. In fact, even max⁡(f,g)\max(f,g)max(f,g) is integrable, thanks to the lovely identity max⁡(f,g)=12(f+g+∣f−g∣)\max(f,g) = \frac{1}{2}(f+g + |f-g|)max(f,g)=21​(f+g+∣f−g∣).

  • The reverse is not always true! Be careful. The classic counterexample is our old friend, f(x)=1f(x) = 1f(x)=1 for rational xxx and f(x)=−1f(x)=-1f(x)=−1 for irrational xxx. We know fff is not integrable. But ∣f(x)∣|f(x)|∣f(x)∣ is the constant function 111, which is perfectly integrable. This shows that knowing the properties of ∣f∣|f|∣f∣ or f2f^2f2 doesn't necessarily tell you about fff itself.

  • What about composition, g(f(x))g(f(x))g(f(x))? Here lie some of the deepest subtleties. There is a powerful and very useful theorem: if fff is Riemann integrable and ggg is ​​continuous​​, then the composition g∘fg \circ fg∘f is also Riemann integrable. Continuity in the outer function is a potent stabilizer; it "smooths out" the discontinuities of fff in a way that preserves integrability.

  • But if we drop the requirement that ggg be continuous, chaos can ensue. It's possible to cook up two Riemann integrable functions, fff and ggg (where ggg has a simple jump), whose composition g∘fg \circ fg∘f becomes the horribly non-integrable Dirichlet function.

  • Finally, what about division? If fff is integrable, is 1/f1/f1/f? Even if we insist that f(x)f(x)f(x) is never zero, we can still get into trouble. The function k(x)=1/f(x)k(x) = 1/f(x)k(x)=1/f(x) might become unbounded! For instance, the function f(x)=xf(x) = \sqrt{x}f(x)=x​ on (0,1](0,1](0,1] (let's say we define f(0)=1f(0)=1f(0)=1 to be safe) is harmless and integrable. But its reciprocal, k(x)=1/xk(x) = 1/\sqrt{x}k(x)=1/x​, shoots up to infinity as xxx approaches zero, violating our very first rule of boundedness.

So we end where we began, but with a profoundly deeper understanding. The simple idea of slicing an area into rectangles rests on a beautiful and intricate foundation, a dance between boundedness, the nature of discontinuity, and the powerful concept of "measure". The Riemann integral is not just a calculation tool; it's a window into the very structure of functions and the number line itself.

Applications and Interdisciplinary Connections

After our journey through the precise mechanics of Riemann integration, a natural question arises: what is it good for? And perhaps more interestingly, where does it fall short? Like a beautifully crafted key, Riemann's idea unlocks a vast number of doors. But as we shall see, some doors are built with a more modern, complex kind of lock, and for those, we will need a new key. This exploration of the applications and limits of the Riemann integral is not just an academic exercise; it reveals a deep story about the nature of continuity, infinity, and the very concept of "size."

The Surprising Reach of a Simple Idea: Integrating the 'Wild'

At first glance, the Riemann integral, built from a legion of well-behaved rectangles, seems suited only for tame, smooth functions. You might worry that any function with sharp corners or erratic behavior would cause the whole process to fall apart. It is a remarkable and profound fact that this is not the case. The criterion for Riemann integrability is far more generous than you might think.

Consider, for instance, a function that is continuous everywhere on an interval but is so jagged that it is differentiable nowhere. Such a function exists! The Weierstrass function is a famous example, a mathematical creature that looks something like a fractal coastline—zoom in on any piece, and you see the same intricate, spiky roughness. It has no tangent line at any point. Yet, because it is continuous, it is perfectly Riemann integrable. The "area" under this infinitely crinkled curve is a perfectly well-defined number. This tells us something important: smoothness and differentiability are helpful, but they are not necessary. Continuity is enough to guarantee that Riemann's rectangles will neatly do their job.

But what if a function isn't even continuous? Let's take the function f(x)=sin⁡(1/x)f(x) = \sin(1/x)f(x)=sin(1/x) for x>0x > 0x>0, and we'll say f(0)=0f(0) = 0f(0)=0. As xxx gets closer and closer to zero, 1/x1/x1/x rockets off to infinity, and the sine function oscillates faster and faster, swinging wildly between −1-1−1 and 111. The function is perfectly continuous everywhere except for this one chaotic point at the origin. Does this single point of misbehavior ruin everything? Not at all. The function is still Riemann integrable over any interval containing the origin. It seems that Riemann's method is robust enough to ignore a single "bad" point. This hints at a much deeper principle. The question isn't if a function has discontinuities, but rather, how big is the set of points where it is discontinuous?

A New Kind of 'Size': The Measure of Discontinuity

This brings us to one of the most beautiful results in analysis, the Lebesgue Criterion for Riemann Integrability. In simple terms, it states: a bounded function on a closed interval is Riemann integrable if and only if the set of its discontinuities has "measure zero."

What does it mean for a set to have "measure zero"? Intuitively, it means the set is "negligibly small" or "infinitely thin." Think of the set of all rational numbers—the fractions. Between any two numbers, there are infinitely many rationals, so they seem to be everywhere. Yet, as a set, they are "small." We can imagine covering every rational number with a tiny interval. It is possible to choose these intervals so that their total length is as small as we wish—less than 0.10.10.1, less than 0.00010.00010.0001, less than any tiny number ε\varepsilonε you can name. A set with this property is said to have measure zero. Countable sets of points, like the integers or the rationals, all have measure zero.

This idea is incredibly powerful. Let's look at the function f(x)=∑n=1∞{nx}n2f(x) = \sum_{n=1}^{\infty} \frac{\{nx\}}{n^2}f(x)=∑n=1∞​n2{nx}​, where {y}\{y\}{y} is the fractional part of yyy. This function is a strange beast. A careful analysis reveals that it is continuous at every irrational number but has a jump discontinuity at every single rational number. It has an infinite, dense set of discontinuities! And yet, because the set of all rational numbers has measure zero, the function is Riemann integrable. The same logic applies to other strange constructions, like functions that are non-zero only on an intricately constructed "dust" of points or whose value depends on whether a number is in an enumeration of the rationals. As long as the set of "bad" points is small enough in the sense of measure, the Riemann integral remains well-defined.

The Breaking Point: When Rectangles Fail

So, what does it take to break the Riemann integral? We need a function whose set of discontinuities is "large"—a set that does not have measure zero.

The most famous example is the Dirichlet function, which is 111 if xxx is a rational number and 000 if xxx is irrational. In any interval, no matter how small, there are both rational and irrational numbers. When we try to draw our Riemann rectangles, we have a problem. To calculate the upper sum, we must choose the supremum (the "highest" value) in each small interval, which is always 111. To calculate the lower sum, we must choose the infimum (the "lowest" value), which is always 000. As we make our partition finer and finer, the upper sum stays stubbornly at 111 and the lower sum at 000. They never meet. The Riemann integral simply does not exist. The function is discontinuous everywhere, and the interval [0,1][0, 1][0,1] certainly does not have measure zero.

Another, more subtle failure comes from a construction like the Smith-Volterra-Cantor set. This is a "fat Cantor set"—a set that is, like the standard Cantor set, nowhere dense (it's full of holes), but unlike the standard Cantor set, it has a positive measure (it has a non-zero "length"). If we consider the characteristic function of this set (111 for points in the set, 000 for points outside), it is discontinuous on the set itself. Since the set of discontinuities has positive measure, this function is not Riemann integrable.

These failures reveal a fundamental weakness. The Riemann integral is not "closed" under pointwise limits. We can build a sequence of simple, perfectly Riemann integrable functions that, in the limit, converge to the non-integrable Dirichlet function. This is a major theoretical limitation, and for many applications in physics and probability, it was a roadblock.

A New Hope: The World of Lebesgue

The brilliant insight of Henri Lebesgue at the turn of the 20th century was to rethink integration entirely. Riemann's approach is to chop up the horizontal axis (the domain). Lebesgue's idea was to chop up the vertical axis (the range).

Instead of asking, "What is the function's value over this small interval of xxx?" Lebesgue asks, "For a certain small range of values yyy, what is the total size (measure) of the set of xxx's for which the function's value lies in that range?"

Let's look at the Dirichlet function again through Lebesgue's eyes. It only takes two values: 000 and 111. Lebesgue asks two simple questions:

  1. What is the measure of the set where the function equals 111? This is the set of rational numbers, which has measure 000.
  2. What is the measure of the set where the function equals 000? This is the set of irrational numbers, which has measure 111 (on the interval [0,1][0,1][0,1]).

The Lebesgue integral is then just the sum of each value multiplied by the measure of the set where it occurs: (1×0)+(0×1)=0(1 \times 0) + (0 \times 1) = 0(1×0)+(0×1)=0. The integral exists and is equal to zero. It's that simple! All the functions that broke the Riemann integral are tamed by the Lebesgue integral. The characteristic function of the "fat" Cantor set has a Lebesgue integral equal to the measure of the set.

This is more than just a clever trick for dealing with pathological functions. The Lebesgue integral has far superior properties, especially regarding limits. It forms the foundation of modern probability theory, where expected values are defined as Lebesgue integrals, and it is the natural language of quantum mechanics, where the state of a particle is described by a wave function whose square-integrability is defined in the Lebesgue sense. Even the cornerstone of calculus, the Fundamental Theorem, finds its most powerful and general form in the context of Lebesgue integration. There are differentiable functions, like Volterra's function, whose derivatives are so badly behaved that they are not Riemann integrable, completely breaking the classical theorem. Yet the Lebesgue version of the theorem holds true, effortlessly connecting the function back to the integral of its derivative.

The story of integration, from Riemann to Lebesgue, is a perfect illustration of how science progresses. Riemann's beautiful and intuitive idea gave us a rigorous way to measure area, and it works wonderfully for a vast class of problems. But by pushing it to its limits, by daring to ask "what if" about the wildest functions we could imagine, we discovered its boundaries. And in crossing those boundaries, we found a deeper, more powerful, and more unified theory that has become an indispensable tool for understanding the modern world.