/Real Analysis/Integration
Page 6 of 8

Riemann Integration

Build integrals from first principles using partitions and Riemann sums

Building the Integral from Rectangles

The Riemann integral is built from approximating areas with rectangles. We partition an interval, form upper and lower sums, and take limits as the partition becomes finer. A function is Riemann integrablewhen the upper and lower integrals agree.

This section develops the Riemann integral rigorously and proves the celebrated Fundamental Theorem of Calculus, connecting differentiation and integration.

1. Riemann Sums

Approximate the integral by summing rectangle areas. Choose left, right, midpoint, or random sample points. Watch convergence as you increase the number of rectangles.

a:
b:

Riemann Sum

1.920000

Exact Integral

2.666667

Error

0.746667

Riemann Sums

The Riemann sum approximates the integral by summing rectangle areas:

Sn = Σ f(xi*) · Δxi

As n → ∞, the sum converges to the definite integral (for integrable functions).

2. Upper and Lower Darboux Sums

The upper sum uses supremums, the lower sum uses infimums. For integrable functions, they squeeze together as the partition refines.

Upper Sum U

3.5200

Lower Sum L

1.9200

Gap (U - L)

1.6000

Exact ∫

2.6667

Darboux Sums and Integrability

Upper sum U(f, P): Use supremum of f on each subinterval
Lower sum L(f, P): Use infimum of f on each subinterval

A function is Riemann integrable iff sup L(f, P) = inf U(f, P) (the upper and lower integrals agree). As the partition gets finer, U and L squeeze together toward the integral value.

3. When is a Function Integrable?

Continuous functions are always integrable. But what about discontinuous functions? Explore the surprising integrability of Thomae's function and the failure of the Dirichlet function.

Riemann Integrable

Continuous functions are always integrable

U - L = 0.100000

Gap shrinks as n increases → function is integrable

When is a Function Integrable?

A bounded function f on [a, b] is Riemann integrable iff:

For every ε > 0, ∃ partition P such that U(f, P) - L(f, P) < ε

Continuous functions: Always integrable

Finitely many discontinuities: Still integrable

Monotone functions: Always integrable

Dirichlet function: NOT integrable (discontinuous everywhere)

Thomae function: Integrable! (continuous on irrationals)

4. The Fundamental Theorem of Calculus

The FTC connects differentiation and integration: the derivative of the accumulation function F(x) = ∫[a,x] f(t) dt equals f(x). See this relationship in action.

f(1.50) = 2.2500

F'(1.50) = 2.2500

They match! (FTC Part 1)

Fundamental Theorem of Calculus

Part 1 (Differentiation): If F(x) = ∫[a,x] f(t) dt, then F'(x) = f(x)

d/dx [∫[a,x] f(t) dt] = f(x)

Part 2 (Evaluation): If F is an antiderivative of f, then

∫[a,b] f(x) dx = F(b) - F(a)

The FTC connects the two fundamental operations: differentiation and integration are inverses!

5. Improper Integrals

What happens when integration limits extend to infinity or the integrand is unbounded? Some improper integrals converge to finite values, others diverge.

Partial Integrals:

∫[1,3.4]0.705695
∫[1,3.8]0.736586
∫[1,4.2]0.761569
∫[1,4.6]0.782182
∫[1,5.0]0.799472

Integral Converges

∫[1,∞) 1/x² dx = 1 (converges)

Improper Integrals

An improper integral has either an infinite limit or an unbounded integrand:

∫[a,∞) f(x) dx = limN→∞ ∫[a,N] f(x) dx

∫[1,∞) 1/x² dx = 1 (converges - area is finite)

∫[1,∞) 1/x dx = ∞ (diverges - area is infinite)

p-test: ∫[1,∞) 1/xp dx converges iff p > 1

Key Integration Theorems

Riemann Integrability

A bounded function f is integrable on [a, b] iff for every ε > 0, there exists a partition P with U(f, P) - L(f, P) < ε.

FTC Part 1

If f is continuous and F(x) = ∫[a,x] f(t) dt, then F'(x) = f(x). Integration and differentiation are inverse operations.

FTC Part 2

If F is an antiderivative of f on [a, b], then ∫[a,b] f(x) dx = F(b) - F(a).

Lebesgue's Criterion

A bounded function is Riemann integrable iff its set of discontinuities has measure zero.