Let f:[a,b]→R be bounded. A partition of [a,b] is a finite set P={x0,x1,…,xn} with a=x0<x1<⋯<xn=b.
The upper sum and lower sum of f with respect to P are:
U(f,P)=∑i=1nMiΔxi,L(f,P)=∑i=1nmiΔxi
Where Mi=sup{f(x):x∈[xi−1,xi]}, mi=inf{f(x):x∈[xi−1,xi]}And Δxi=xi−xi−1.
The mesh of P is ∥P∥=max1≤i≤nΔxi.
Definition.f is Riemann integrable on [a,b] if the upper and lower integrals are equal:
∫abf(x)dx=∫abf(x)dx
Where ∫abf=inf{U(f,P):Pisapartition} and ∫abf=sup{L(f,P):Pisapartition}.
The common value is denoted ∫abf(x)dx.
6.2 Integrability Criteria
Theorem 6.1 (Riemann Integrability Criterion). A bounded function f:[a,b]→R is Riemann integrable if and only if for every ε>0There exists a partition P such that
U(f,P)−L(f,P)<ε
Theorem 6.2. Every continuous function on [a,b] is Riemann integrable.
Proof. Let f be continuous on [a,b]. By the Heine-Cantor theorem, f is uniformly continuous. Given ε>0Choose δ>0 such that ∣x−y∣<δ implies ∣f(x)−f(y)∣<ε/(b−a).
Let P be any partition with ∥P∥<δ. On each subinterval [xi−1,xi]By the Extreme Value Theorem, f attains its maximum Mi and minimum mi. By uniform continuity: Mi−mi<ε/(b−a). Therefore:
By the Riemann integrability criterion, f is integrable. ■
Theorem 6.3. Every monotone function on [a,b] is Riemann integrable.
Proof. Assume f is increasing (the decreasing case is analogous). Given ε>0Let Pn be the uniform partition with n subintervals of length (b−a)/n. On [xi−1,xi]: Mi=f(xi) and mi=f(xi−1). Then:
Choose n large enough that [f(b)−f(a)](b−a)/n<ε. ■
Theorem 6.4. A bounded function with finitely many discontinuities on [a,b] is Riemann integrable.
Proof (sketch). Let f have discontinuities at d1,…,dm∈[a,b]. Given ε>0 Enclose each dj in a small interval Ij of total length ε/(2M)Where M=sup[a,b]∣f∣. On the remaining set (a finite union of closed intervals), f is continuous, Hence uniformly continuous. Choose a partition fine enough that the oscillation of f on each Subinterval outside the Ij is less than ε/(2(b−a)). Then:
U(f,P)−L(f,P)≤2(b−a)ε⋅(b−a)+2M⋅2Mε=ε
■
Proposition 6.4a. The set of Riemann integrable functions on [a,b] forms a vector space, and If f and g are integrable, then so are ∣f∣, f2And max(f,g).
Theorem 6.4b (Lebesgue”s Criterion for Riemann Integrability). A bounded function f:[a,b]→R Is Riemann integrable if and only if the set of its discontinuities has (Lebesgue) measure zero.
Remark. A set has measure zero if it can be covered by countably many intervals of arbitrarily Small total length. In particular, every countable set has measure zero. This means:
Every continuous function is integrable (empty set of discontinuities).
Every function with countably many discontinuities is integrable (Theorem 6.4 is a special case).
The Dirichlet function f(x)=1 for x∈Q and f(x)=0 for x∈/Q is discontinuous everywhere (set of discontinuities = [a,b]Measure >0), hence not integrable.
Thomae’s function f(x)=1/q if x=p/q in lowest terms, and f(x)=0 if x is irrational, is continuous at every irrational and discontinuous at every rational. Since Q is countable (measure zero), Thomae’s function is Riemann integrable, with ∫01f=0.
6.3 Properties of the Integral
Theorem 6.5 (Linearity). If f and g are integrable on [a,b] and α,β∈R:
∫ab(αf+βg)=α∫abf+β∫abg
Theorem 6.6 (Monotonicity). If f(x)≤g(x) for all x∈[a,b]Then ∫abf≤∫abg.
Theorem 6.8 (FTC Part 1). If f is continuous on [a,b]Then the function
F(x)=∫axf(t)dt
Is differentiable on (a,b) and F′(x)=f(x).
Proof. Let h>0 (the case h<0 is similar). By the Mean Value Theorem for Integrals (which follows from the EVT), there exists ξ∈[x,x+h] such that
hF(x+h)−F(x)=h1∫xx+hf(t)dt=f(ξ)
As h→0+We have ξ→x+ (since ξ∈[x,x+h]). By continuity of ff(ξ)→f(x). Hence F+′(x)=f(x). A similar argument gives F−′(x)=f(x). ■
Theorem 6.9 (FTC Part 2). If F is differentiable on [a,b] with F′=f (and f is integrable), Then
∫abf(x)dx=F(b)−F(a)
Proof. Let P={x0,…,xn} be any partition of [a,b]. By the Mean Value Theorem, For each i there exists ξi∈[xi−1,xi] with F(xi)−F(xi−1)=f(ξi)Δxi. Summing:
As n→∞: limn→∞U(f,Pn)=limn→∞6n2(n+1)(2n+1)=62=31.
Similarly, L(f,Pn)→1/3. So ∫01x2dx=1/3. ■
Worked Example: Compute $\int_0^1 \sqrt{x}\, dx$ from the definition
Solution. Let Pn={0,1/n,2/n,…,1}. On [(i−1)/n,i/n], f(x)=x has Mi=i/n and mi=(i−1)/n.
U(f,Pn)=∑i=1nni⋅n1=n3/21∑i=1ni
Using ∑i=1ni=32n3/2+O(n1/2) (obtained from comparing with ∫0nxdx):
limn→∞U(f,Pn)=limn→∞n3/21⋅32n3/2=32
Similarly L(f,Pn)→2/3Confirming ∫01xdx=2/3. ■
6.6 Improper Integrals
Definition. An improper integral is a Riemann integral where either the interval of integration Is unbounded or the integrand is unbounded.
Type I (Infinite Intervals). If f is Riemann integrable on [a,b] for every b>aDefine:
∫a∞f(x)dx=limb→∞∫abf(x)dx
The integral converges if this limit exists as a finite number; otherwise it diverges.
Type II (Unbounded Integrands). If f is unbounded near a but integrable on [c,b] for every c∈(a,b]:
∫abf(x)dx=limc→a+∫cbf(x)dx
Theorem 6.10 (Comparison Test for Improper Integrals). If 0≤f(x)≤g(x) for x≥a:
If ∫a∞g converges, then ∫a∞f converges.
If ∫a∞f diverges, then ∫a∞g diverges.
Theorem 6.11 (Absolute Convergence). If ∫a∞∣f(x)∣dx converges, then ∫a∞f(x)dx converges.
Theorem 6.12 (p-Test for Improper Integrals).
Type I:∫1∞xp1dx converges if and only if p>1.
Type II:∫01xp1dx converges if and only if p<1.
Proof. For Type I with p=1:
∫1∞x−pdx=limb→∞[1−px1−p]1b=limb→∞1−pb1−p−1
This converges when 1−p<0I.e., p>1. For p=1: ∫1∞1/xdx=limb→∞lnb=∞.
For Type II: ∫01x−pdx=limc→0+1−p1−c1−p. This converges when 1−p>0I.e., p<1. ■
Remark. The p-test for Type I integrals mirrors the p-series test: ∑1/np converges Iff p>1. This is not a coincidence --- the integral test establishes the connection.
Worked Example: Evaluate $\int_0^{\infty} e^{-x}\, dx$
Worked Example: Does $\int_1^{\infty} \frac{\sin x}{x}\, dx$ converge?
Solution. The integral ∫1∞xsinxdx diverges (compare with ∫1∞x∣sinx∣dx≥∑k=1∞∫kπ(k+1)πx∣sinx∣dx≥∑k=1∞(k+1)π2, which diverges by comparison with the harmonic series).
However, ∫1∞xsinxdx converges by Dirichlet’s test for integrals. Let F(b)=∫1bsinxdx=cos1−cosbWhich is bounded by ∣cos1−cosb∣≤2. Since 1/x decreases to 0By integration by parts:
∫1bxsinxdx=x−cosx1b−∫1bx2cosxdx
As b→∞The boundary term cosb/b→0 and ∫1∞x2∣cosx∣dx≤∫1∞x21dx=1, so the improper integral converges (conditionally). ■
Worked Example: Evaluate $\int_0^1 \frac{1}{\sqrt{x}}\, dx$ (Type II improper integral)
Solution. The integrand f(x)=1/x is unbounded as x→0+. Compute:
:::caution Common Pitfall The Riemann integral is defined for bounded functions on closed, bounded intervals. For unbounded Functions or infinite intervals, one must use the improper Riemann integral. A common error is Applying the FTC directly to improper integrals without taking the limit. Also, conditional Convergence of improper integrals behaves differently from absolute convergence: rearranging the “terms” (subintervals) of a conditionally convergent improper integral can change its value.