Skip to content
The site is in test mode. All features are free for now.
MathAgora

University Mathematics · Real analysis

The Riemann integral

Partitions, upper and lower sums, the integrability criterion, integrating functions with discontinuities, properties of the integral, the Fundamental Theorem of Calculus and Lebesgue's criterion.

95 min 8 questions

01How should integration be defined?

In calculus we know the integral as "area under a curve" or a difference of antiderivatives. But which functions have an area? What happens to the integral if the function has many discontinuities, or is the limit of a sequence of functions?

Riemann's approach: split the interval into pieces, bound the function from above and below on each piece, and see whether the two estimates "meet" as the partition gets finer. The function is integrable exactly when they do. In this topic we will see that this happens for all continuous functions and for many discontinuous ones (even Thomae's function!), but not for Dirichlet's function.

02The definition: upper and lower sums

A partition of [a,b][a,b] is P={a=x0<x1<⋯<xn=b}P = \{a = x_0 < x_1 < \dots < x_n = b\}. For bounded ff, on each [xk−1,xk][x_{k-1}, x_k] let mk=inf⁡fm_k = \inf f and Mk=sup⁡fM_k = \sup f.

Lower sum: L(f,P)=∑mk(xk−xk−1)L(f,P) = \sum m_k(x_k - x_{k-1}). Upper sum: U(f,P)=∑Mk(xk−xk−1)U(f,P) = \sum M_k(x_k - x_{k-1}). Always L(f,P)≤U(f,P)L(f,P) \le U(f,P). A refinement (adding points) raises LL and lowers UU, so L(f,P1)≤U(f,P2)L(f,P_1) \le U(f,P_2) for any two partitions.

The lower integral is L(f)=sup⁡PL(f,P)L(f) = \sup_P L(f,P), the upper integral U(f)=inf⁡PU(f,P)U(f) = \inf_P U(f,P), and L(f)≤U(f)L(f) \le U(f). ff is Riemann integrable if U(f)=L(f)U(f) = L(f); the common value is ∫abf\int_a^bf.

Integrability criterion: ff is integrable   ⟺  \iff for every ε>0\varepsilon > 0 there is a partition PεP_\varepsilon with U(f,Pε)−L(f,Pε)<εU(f,P_\varepsilon) - L(f,P_\varepsilon) < \varepsilon.

03Which functions are integrable

Continuous functions: a continuous ff on [a,b][a,b] is uniformly continuous, so on a fine enough partition Mk−mk<εb−aM_k - m_k < \frac{\varepsilon}{b - a} on every piece, and U−L<εU - L < \varepsilon. Hence continuous functions are integrable.

Monotone functions are integrable: with nn equal pieces, U−L=(f(b)−f(a))(b−a)nU - L = \frac{(f(b) - f(a))(b - a)}{n} (for increasing ff).

Finitely many discontinuities: a bounded function with finitely many discontinuities is integrable: cover the bad points with very short pieces. Changing values at finitely many points does not change the integral.

Dirichlet's function is not integrable: every piece contains rationals and irrationals, so always U=1U = 1 and L=0L = 0. Thomae's function, however, is integrable with ∫01t=0\int_0^1t = 0.

04Properties of the integral

For integrable f,gf, g: linearity ∫(f+g)=∫f+∫g\int(f + g) = \int f + \int g, ∫kf=k∫f\int kf = k\int f; additivity ∫abf=∫acf+∫cbf\int_a^b f = \int_a^c f + \int_c^b f; monotonicity f≤g⇒∫f≤∫gf \le g \Rightarrow \int f \le \int g; ∣∫f∣≤∫∣f∣\left|\int f\right| \le \int|f|; also fgfg, ∣f∣|f| and max⁡{f,g}\max\{f, g\} are integrable.

Limits and integrals: if fn→ff_n \to f uniformly on [a,b][a,b] and each fnf_n is integrable, then ff is integrable and ∫fn→∫f\int f_n \to \int f. Pointwise convergence is not enough: a triangular spike of height nn on [0,1n]\left[0, \frac1n\right] (area 12\frac12) tends to 0 pointwise, but the integrals do not tend to 0.

05The Fundamental Theorem of Calculus

Part I: if ff is integrable on [a,b][a,b] and F′(x)=f(x)F'(x) = f(x) for all x∈[a,b]x \in [a,b], then ∫abf=F(b)−F(a)\int_a^bf = F(b) - F(a). (Proof: on any partition the MVT gives F(b)−F(a)=∑f(ck)ΔxkF(b) - F(a) = \sum f(c_k)\Delta x_k, which lies between LL and UU.)

Part II: let ff be integrable and G(x)=∫axfG(x) = \int_a^xf. Then GG is continuous (even Lipschitz), and if ff is continuous at cc, then G′(c)=f(c)G'(c) = f(c).

With the chain rule: ddx∫au(x)f(t) dt=f(u(x)) u′(x)\frac{d}{dx}\int_a^{u(x)}f(t)\,dt = f(u(x))\,u'(x).

Note: in Part I integrability is a hypothesis: some differentiable FF has a derivative that is not Riemann integrable (it is unbounded). This gap motivates the generalized integral (next topic).

06Lebesgue's criterion

A⊆RA \subseteq \mathbb R has measure zero if for every ε>0\varepsilon > 0 it can be covered by countably many intervals with total length <ε< \varepsilon. Examples: every countable set (cover the kk-th point by an interval of length ε2k+1\frac{\varepsilon}{2^{k+1}}), and the Cantor set (covered by CnC_n of length (23)n→0\left(\frac23\right)^n \to 0).

Lebesgue's Criterion: a bounded f:[a,b]→Rf : [a,b] \to \mathbb R is Riemann integrable if and only if its set of discontinuities has measure zero.

This explains every example at once: Thomae's function is discontinuous on Q\mathbb Q, a countable set, so it is integrable; Dirichlet's function is discontinuous everywhere ([a,b][a,b] does not have measure zero), so it is not.

Key formulas

  • Lower and upper sums

    L(f,P)=∑k=1nmk Δxk,U(f,P)=∑k=1nMk ΔxkL(f,P)=\sum_{k=1}^n m_k\,\Delta x_k,\qquad U(f,P)=\sum_{k=1}^n M_k\,\Delta x_k
  • Integrability criterion

    ∀ε>0 ∃Pε: U(f,Pε)−L(f,Pε)<ε\forall\varepsilon>0\ \exists P_\varepsilon:\ U(f,P_\varepsilon)-L(f,P_\varepsilon)<\varepsilon
  • Increasing ff, nn equal pieces

    U−L=(f(b)−f(a))(b−a)nU-L=\frac{\big(f(b)-f(a)\big)(b-a)}{n}
  • Fundamental Theorem, Part I

    ∫abf=F(b)−F(a)(F′=f)\int_a^b f=F(b)-F(a)\quad (F'=f)
  • Fundamental Theorem, Part II + chain rule

    ddx∫au(x)f(t) dt=f(u(x)) u′(x)\frac{d}{dx}\int_a^{u(x)}f(t)\,dt=f\big(u(x)\big)\,u'(x)

Worked examples

Example 1

Using upper and lower sums, prove that f(x)=xf(x) = x is integrable on [0,1][0,1] with ∫01x dx=12\int_0^1x\,dx = \frac12.

Example 2

h(x)=1h(x) = 1 for x≠1x \ne 1 and h(1)=5h(1) = 5, on [0,2][0,2]. Find ∫02h\int_0^2h.