The Riemann integral is unsuitable for many theoretical purposes. Some of the technical deficiencies in Riemann integration can be remedied with the Riemann–Stieltjes integral, and most disappear with the Lebesgue integral.
Overview
Let f be a nonnegative real-valued function on the interval [a, b], and letNote that where f can be both positive and negative, the definition of S is modified so that the integral corresponds to the signed area under the graph of f: that is, the area above the x-axis minus the area below the x-axis.
Definition
Partitions of an interval
A partition of an interval [a, b] is a finite sequence of numbers of the formSuppose that two partitions P(x, t) and Q(y, s) are both partitions of the interval [a, b]. We say that Q(y, s) is a refinement of P(x, t) if for each integer i, with i ∈ [0, n], there exists an integer r(i) such that xi = yr(i) and such that ti = sj for some j with j ∈ [r(i), r(i + 1)). Said more simply, a refinement of a tagged partition breaks up some of the subintervals and adds tags to the partition where necessary, thus it "refines" the accuracy of the partition.
We can define a partial order on the set of all tagged partitions by saying that one tagged partition is greater or equal to another if the former is a refinement of the latter.
Riemann sums
Let f be a real-valued function defined on the interval [a, b]. The Riemann sum of f with respect to the tagged partition x0, ..., xn together with t0, ..., tn − 1 isA closely related concept are the lower and upper Darboux sums. These are similar to Riemann sums, but the tags are replaced by the infimum and supremum (respectively) of f on each subinterval:
Riemann integral
Loosely speaking, the Riemann integral is the limit of the Riemann sums of a function as the partitions get finer. If the limit exists then the function is said to be integrable (or more specifically Riemann-integrable). The Riemann sum can be made as close as desired to the Riemann integral by making the partition fine enough.One important requirement is that the mesh of the partitions must become smaller and smaller, so that in the limit, it is zero. If this were not so, then we would not be getting a good approximation to the function on certain subintervals. In fact, this is enough to define an integral. To be specific, we say that the Riemann integral of f equals s if the following condition holds:
For all ε > 0, there exists δ > 0 such that for any tagged partition x0, ..., xn and t0, ..., tn − 1 whose mesh is less than δ, we haveUnfortunately, this definition is very difficult to use. It would help to develop an equivalent definition of the Riemann integral which is easier to work with. We develop this definition now, with a proof of equivalence following. Our new definition says that the Riemann integral of f equals s if the following condition holds:
For all ε > 0, there exists a tagged partition y0, ..., ym and r0, ..., rm − 1 such that for any tagged partition x0, ..., xn and t0, ..., tn − 1 which is a refinement of y0, ..., ym and r0, ..., rm − 1, we haveBoth of these mean that eventually, the Riemann sum of f with respect to any partition gets trapped close to s. Since this is true no matter how close we demand the sums be trapped, we say that the Riemann sums converge to s. These definitions are actually a special case of a more general concept, a net.
As we stated earlier, these two definitions are equivalent. In other words, s works in the first definition if and only if s works in the second definition. To show that the first definition implies the second, start with an ε, and choose a δ that satisfies the condition. Choose any tagged partition whose mesh is less than δ. Its Riemann sum is within ε of s, and any refinement of this partition will also have mesh less than δ, so the Riemann sum of the refinement will also be within ε of s.
To show that the second definition implies the first, it is easiest to use the Darboux integral. First, one shows that the second definition is equivalent to the definition of the Darboux integral; for this see the article on Darboux integration. Now we will show that a Darboux integrable function satisfies the first definition. Fix ε, and choose a partition y0, ..., ym such that the lower and upper Darboux sums with respect to this partition are within ε/2 of the value s of the Darboux integral. Let
To see this, choose an interval [xi, xi + 1]. If this interval is contained within some [yj, yj + 1], then
Therefore, we may assume that m > 1. In this case, it is possible that one of the [xi, xi + 1] is not contained in any [yj, yj + 1]. Instead, it may stretch across two of the intervals determined by y0, ..., ym. (It cannot meet three intervals because δ is assumed to be smaller than the length of any one interval.) In symbols, it may happen that
To handle this case, we will estimate the difference between the Riemann sum and the Darboux sum by subdividing the partition x0, ..., xn at yj + 1. The term f(ti)(xi + 1 − xi) in the Riemann sum splits into two terms:
i ∈ [yj + 1, xi + 1],
Examples
Let f : [0, 1] → R be the function which takes the value 1 at every point. Any Riemann sum of f on [0, 1] will have the value 1, therefore the Riemann integral of f on [0, 1] is 1.Let IQ : [0, 1] → R be the indicator function of the rational numbers in [0, 1]; that is, IQ takes the value 1 on rational numbers and 0 on irrational numbers. This function does not have a Riemann integral. To prove this, we will show how to construct tagged partitions whose Riemann sums get arbitrarily close to both zero and one.
To start, let x0, ..., xn and t0, ..., tn − 1 be a tagged partition (each ti is between xi and xi + 1). Choose ε > 0. The ti have already been chosen, and we can't change the value of f at those points. But if we cut the partition into tiny pieces around each ti, we can minimize the effect of the ti. Then, by carefully choosing the new tags, we can make the value of the Riemann sum turn out to be within ε of either zero or one.
Our first step is to cut up the partition. There are n of the ti, and we want their total effect to be less than ε. If we confine each of them to an interval of length less than ε/n, then the contribution of each ti to the Riemann sum will be at least 0 · ε/n and at most 1 · ε/n. This makes the total sum at least zero and at most ε. So let δ be a positive number less than ε/n. If it happens that two of the ti are within δ of each other, choose δ smaller. If it happens that some ti is within δ of some xj, and ti is not equal to xj, choose δ smaller. Since there are only finitely many ti and xj, we can always choose δ sufficiently small.
Now we add two cuts to the partition for each ti. One of the cuts will be at ti − δ/2, and the other will be at ti + δ/2. If one of these leaves the interval [0, 1], then we leave it out. ti will be the tag corresponding to the subinterval
Since we started from an arbitrary partition and ended up as close as we wanted to either zero or one, it is false to say that we are eventually trapped near some number s, so this function is not Riemann integrable. However, it is Lebesgue integrable. In the Lebesgue sense its integral is zero, since the function is zero almost everywhere. But this is a fact that is beyond the reach of the Riemann integral.
There are even worse examples. IQ is equivalent (that is, equal almost everywhere) to a Riemann integrable function, but there are non-Riemann integrable bounded functions which are not equivalent to any Riemann integrable function. For example, let C be the Smith–Volterra–Cantor set, and let IC be its indicator function. Because C is not Jordan measurable, IC is not Riemann integrable. Moreover, no function g equivalent to IC is Riemann integrable: g, like IC, must be zero on a dense set, so as in the previous example, any Riemann sum of g has a refinement which is within ε of 0 for any positive number ε. But if the Riemann integral of g exists, then it must equal the Lebesgue integral of IC, which is 1/2. Therefore, g is not Riemann integrable.
Similar concepts
It is popular to define the Riemann integral as the Darboux integral. This is because the Darboux integral is technically simpler and because a function is Riemann-integrable if and only if it is Darboux-integrable.Some calculus books do not use general tagged partitions, but limit themselves to specific types of tagged partitions. If the type of partition is limited too much, some non-integrable functions may appear to be integrable.
One popular restriction is the use of "left-hand" and "right-hand" Riemann sums. In a left-hand Riemann sum, ti = xi for all i, and in a right-hand Riemann sum, ti = xi + 1 for all i. Alone this restriction does not impose a problem: we can refine any partition in a way that makes it a left-hand or right-hand sum by subdividing it at each ti. In more formal language, the set of all left-hand Riemann sums and the set of all right-hand Riemann sums is cofinal in the set of all tagged partitions.
Another popular restriction is the use of regular subdivisions of an interval. For example, the nth regular subdivision of [0, 1] consists of the intervals
However, combining these restrictions, so that one uses only left-hand or right-hand Riemann sums on regularly divided intervals, is dangerous. If a function is known in advance to be Riemann integrable, then this technique will give the correct value of the integral. But under these conditions the indicator function IQ will appear to be integrable on [0, 1] with integral equal to one: Every endpoint of every subinterval will be a rational number, so the function will always be evaluated at rational numbers, and hence it will appear to always equal one. The problem with this definition becomes apparent when we try to split the integral into two pieces. The following equation ought to hold:
As defined above, the Riemann integral avoids this problem by refusing to integrate IQ. The Lebesgue integral is defined in such a way that all these integrals are 0.
Properties
Linearity
The Riemann integral is a linear transformation; that is, if f and g are Riemann-integrable on [a, b] and α and β are constants, thenIntegrability
A bounded function on a compact interval [a, b] is Riemann integrable if and only if it is continuous almost everywhere (the set of its points of discontinuity has measure zero, in the sense of Lebesgue measure). This is known as the Lebesgue's integrability condition or Lebesgue's criterion for Riemann integrability or the Riemann–Lebesgue theorem. The criterion has nothing to do with the Lebesgue integral. It is due to Lebesgue and uses his measure zero, but makes use of neither Lebesgue's general measure or integral.An indicator function of a bounded set is Riemann-integrable if and only if the set is Jordan measurable.[10] The Riemann integral can be interpreted measure-theoretically as the integral with respect to the Jordan measure.
If a real-valued function is monotone on the interval [a, b] it is Riemann-integrable, since its set of discontinuities is at most countable, and therefore of Lebesgue measure zero.
If a real-valued function on [a, b] is Riemann-integrable, it is Lebesgue-integrable. That is, Riemann-integrability is a stronger (meaning more difficult to satisfy) condition than Lebesgue-integrability.
If fn is a uniformly convergent sequence on [a, b] with limit f, then Riemann integrability of all fn implies Riemann integrability of f, and
Generalizations
It is easy to extend the Riemann integral to functions with values in the Euclidean vector space Rn for any n. The integral is defined component-wise; in other words, if f = (f1, ..., fn) thenThe Riemann integral is only defined on bounded intervals, and it does not extend well to unbounded intervals. The simplest possible extension is to define such an integral as a limit, in other words, as an improper integral:
Unfortunately, the improper Riemann integral is not powerful enough. The most severe problem is that there are no widely applicable theorems for commuting improper Riemann integrals with limits of functions. In applications such as Fourier series it is important to be able to approximate the integral of a function using integrals of approximations to the function. For proper Riemann integrals, a standard theorem states that if fn is a sequence of functions that converge uniformly to f on a compact set [a, b], then
A better route is to abandon the Riemann integral for the Lebesgue integral. The definition of the Lebesgue integral is not obviously a generalization of the Riemann integral, but it is not hard to prove that every Riemann-integrable function is Lebesgue-integrable and that the values of the two integrals agree whenever they are both defined. Moreover, a function f defined on a bounded interval is Riemann-integrable if and only if it is bounded and the set of points where f is discontinuous has Lebesgue measure zero.
An integral which is in fact a direct generalization of the Riemann integral is the Henstock–Kurzweil integral.
Another way of generalizing the Riemann integral is to replace the factors xk + 1 − xk in the definition of a Riemann sum by something else; roughly speaking, this gives the interval of integration a different notion of length. This is the approach taken by the Riemann–Stieltjes integral.
In multivariable calculus, the Riemann integrals for functions from Rn → R are multiple integrals.