Skip to main content

Real Analysis

1. The Real Number System

1.1 Field Axioms

The real numbers R\mathbb{R} form a complete ordered field. The field axioms guarantee closure under addition, subtraction, multiplication, and division (by non-zero elements), together with the usual commutative, associative, and distributive laws.

1.2 Order and the Completeness Axiom

The order relation \leq on R\mathbb{R} satisfies:

  1. Reflexivity: aaa \leq a
  2. Antisymmetry: aba \leq b and bab \leq a implies a=ba = b
  3. Transitivity: aba \leq b and bcb \leq c implies aca \leq c
  4. Totality: for all a,ba, b, either aba \leq b or bab \leq a
  5. Compatibility with addition: aba \leq b implies a+cb+ca + c \leq b + c
  6. Compatibility with multiplication: aba \leq b and 0c0 \leq c implies acbcac \leq bc

The completeness axiom (also called the least upper bound property) is what distinguishes R\mathbb{R} from Q\mathbb{Q}:

Axiom (Completeness). Every non-empty subset of R\mathbb{R} that is bounded above has a least upper bound (supremum) in R\mathbb{R}.

1.3 Supremum and Infimum

Let SRS \subseteq \mathbb{R} be a non-empty set that is bounded above.

Definition. The supremum (or least upper bound) of SS, denoted sup(S)\sup(S), is the real number uu satisfying:

  1. uu is an upper bound: sus \leq u for all sSs \in S.
  2. uu is the least upper bound: if vv is any upper bound of SS, then uvu \leq v.

Similarly, the infimum (or greatest lower bound), inf(S)\inf(S), is the greatest number ll such that lsl \leq s for all sSs \in S.

Proposition 1.1. sup(S)\sup(S) exists if and only if SS is non-empty and bounded above.

Proposition 1.2 (Approximation Property). If u=sup(S)u = \sup(S), then for every ε>0\varepsilon > 0, there exists sSs \in S such that uε<suu - \varepsilon < s \leq u.

Proof. If no such ss existed, then uεu - \varepsilon would be an upper bound of SS strictly less than uu, contradicting the definition of sup(S)\sup(S). \blacksquare

Example. Let S={xR:x2<2}S = \{x \in \mathbb{R} : x^2 < 2\}. Then sup(S)=2\sup(S) = \sqrt{2}. Note that 2Q\sqrt{2} \notin \mathbb{Q}, so Q\mathbb{Q} does not satisfy the completeness axiom.

1.4 Archimedean Property

Theorem 1.1 (Archimedean Property). For every xRx \in \mathbb{R}, there exists nNn \in \mathbb{N} such that n>xn > x.

Corollary 1.2. For every ε>0\varepsilon > 0, there exists nNn \in \mathbb{N} such that 1/n<ε1/n < \varepsilon.

Corollary 1.3 (Density of Q\mathbb{Q}). Between any two distinct real numbers a<ba < b, there exists a rational number qQq \in \mathbb{Q} with a<q<ba < q < b.

2. Sequences

2.1 Convergence

A sequence (an)n=1(a_n)_{n=1}^{\infty} in R\mathbb{R} converges to a limit LRL \in \mathbb{R} if for every ε>0\varepsilon > 0, there exists NNN \in \mathbb{N} such that

anL<εforallnN|a_n - L| < \varepsilon \quad \mathrm{for all } n \geq N

We write anLa_n \to L or limnan=L\lim_{n \to \infty} a_n = L. A sequence that does not converge is said to diverge.

Proposition 2.1 (Uniqueness of Limits). If (an)(a_n) converges, its limit is unique.

Proof. Suppose anLa_n \to L and anMa_n \to M with LML \neq M. Let ε=LM/2>0\varepsilon = |L - M|/2 > 0. There exists N1N_1 such that anL<ε|a_n - L| < \varepsilon for nN1n \geq N_1, and N2N_2 such that anM<ε|a_n - M| < \varepsilon for nN2n \geq N_2. For nmax(N1,N2)n \geq \max(N_1, N_2):

LManL+anM<2ε=LM|L - M| \leq |a_n - L| + |a_n - M| < 2\varepsilon = |L - M|

a contradiction. \blacksquare

Proposition 2.2. Every convergent sequence is bounded.

2.2 Convergence Theorems

Theorem 2.1 (Algebra of Limits). If anLa_n \to L and bnMb_n \to M, then:

  1. an+bnL+Ma_n + b_n \to L + M
  2. anbnLMa_n b_n \to LM
  3. an/bnL/Ma_n / b_n \to L/M (provided M0M \neq 0 and bn0b_n \neq 0 for all nn)

Theorem 2.2 (Squeeze Theorem). If anbncna_n \leq b_n \leq c_n for all nn and anLa_n \to L, cnLc_n \to L, then bnLb_n \to L.

Theorem 2.3 (Monotone Convergence Theorem). Every bounded monotone sequence in R\mathbb{R} converges. Specifically:

  • Every bounded increasing sequence converges to its supremum.
  • Every bounded decreasing sequence converges to its infimum.

2.3 Cauchy Sequences

A sequence (an)(a_n) is a Cauchy sequence if for every ε>0\varepsilon > 0, there exists NNN \in \mathbb{N} such that

anam<εforallm,nN|a_n - a_m| < \varepsilon \quad \mathrm{for all } m, n \geq N

Theorem 2.4. Every convergent sequence is Cauchy.

Theorem 2.5 (Cauchy Completeness of R\mathbb{R}). Every Cauchy sequence in R\mathbb{R} converges.

Proof (sketch). Let (an)(a_n) be Cauchy. Then (an)(a_n) is bounded. By the Bolzano-Weierstrass theorem (below), (an)(a_n) has a convergent subsequence (ank)L(a_{n_k}) \to L. Since (an)(a_n) is Cauchy, for any ε>0\varepsilon > 0, choose NN so that anam<ε/2|a_n - a_m| < \varepsilon/2 for m,nNm, n \geq N, and KK so that ankL<ε/2|a_{n_k} - L| < \varepsilon/2 for kKk \geq K. For nNn \geq N, choose kk with nkNn_k \geq N; then anLanank+ankL<ε|a_n - L| \leq |a_n - a_{n_k}| + |a_{n_k} - L| < \varepsilon. \blacksquare

Theorem 2.6 (Bolzano-Weierstrass). Every bounded sequence in R\mathbb{R} has a convergent subsequence.

2.4 Subsequences

A subsequence of (an)(a_n) is a sequence (ank)k=1(a_{n_k})_{k=1}^{\infty} where n1<n2<n3<n_1 < n_2 < n_3 < \cdots.

Proposition 2.3. If anLa_n \to L, then every subsequence (ank)L(a_{n_k}) \to L.

Proposition 2.4. If (an)(a_n) has two subsequences converging to different limits, then (an)(a_n) diverges.

2.5 Worked Example

Problem. Prove that limnnn+1=1\lim_{n \to \infty} \frac{n}{n+1} = 1.

Solution. Let ε>0\varepsilon > 0. We need nn+11<ε\left|\frac{n}{n+1} - 1\right| < \varepsilon, i.e., 1n+1<ε\frac{1}{n+1} < \varepsilon, i.e., n>1ε1n > \frac{1}{\varepsilon} - 1. Choose N=1εN = \lceil \frac{1}{\varepsilon} \rceil. Then for nNn \geq N: n1εn \geq \frac{1}{\varepsilon}, so n+1>1εn+1 > \frac{1}{\varepsilon}, so 1n+1<ε\frac{1}{n+1} < \varepsilon. \blacksquare

3. Series

3.1 Definitions and Convergence

A series n=1an\sum_{n=1}^{\infty} a_n converges if the sequence of partial sums SN=n=1NanS_N = \sum_{n=1}^{N} a_n converges. The limit is the sum of the series.

If an0a_n \geq 0 for all nn, the series of partial sums is increasing, so by the monotone convergence theorem, an\sum a_n converges if and only if (SN)(S_N) is bounded above.

3.2 Convergence Tests

Theorem 3.1 (Comparison Test). If 0anbn0 \leq a_n \leq b_n for all nn, then:

  • If bn\sum b_n converges, then an\sum a_n converges.
  • If an\sum a_n diverges, then bn\sum b_n diverges.

Theorem 3.2 (Limit Comparison Test). If an>0a_n > 0, bn>0b_n > 0, and limnan/bn=L\lim_{n \to \infty} a_n / b_n = L where 0<L<0 < L < \infty, then an\sum a_n converges if and only if bn\sum b_n converges.

Theorem 3.3 (Ratio Test). If limnan+1/an=L\lim_{n \to \infty} |a_{n+1}/a_n| = L, then:

  • If L<1L < 1, an\sum a_n converges absolutely.
  • If L>1L > 1, an\sum a_n diverges.
  • If L=1L = 1, the test is inconclusive.

Theorem 3.4 (Root Test). If lim supnann=L\limsup_{n \to \infty} \sqrt[n]{|a_n|} = L, then:

  • If L<1L < 1, an\sum a_n converges absolutely.
  • If L>1L > 1, an\sum a_n diverges.
  • If L=1L = 1, the test is inconclusive.

Theorem 3.5 (Integral Test). If f:[1,)[0,)f : [1, \infty) \to [0, \infty) is positive, continuous, and decreasing, then n=1f(n)\sum_{n=1}^{\infty} f(n) converges if and only if 1f(x)dx\int_1^{\infty} f(x)\, dx converges.

Theorem 3.6 (Alternating Series Test). If an>0a_n > 0, ana_n decreases, and an0a_n \to 0, then n=1(1)n+1an\sum_{n=1}^{\infty} (-1)^{n+1} a_n converges.

3.3 Absolute and Conditional Convergence

A series an\sum a_n converges absolutely if an\sum |a_n| converges. It converges conditionally if an\sum a_n converges but an\sum |a_n| diverges.

Theorem 3.7. If an\sum a_n converges absolutely, then an\sum a_n converges.

Theorem 3.8 (Riemann Rearrangement Theorem). If an\sum a_n converges conditionally, then for any LRL \in \mathbb{R} (or ±\pm\infty), there exists a rearrangement of the terms whose sum is LL.

3.4 Worked Example

Problem. Determine whether n=1n2n\sum_{n=1}^{\infty} \frac{n}{2^n} converges.

Solution. Apply the ratio test:

limnan+1an=limn(n+1)/2n+1n/2n=limnn+12n=12<1\lim_{n \to \infty} \frac{a_{n+1}}{a_n} = \lim_{n \to \infty} \frac{(n+1)/2^{n+1}}{n/2^n} = \lim_{n \to \infty} \frac{n+1}{2n} = \frac{1}{2} < 1

By the ratio test, the series converges absolutely. \blacksquare

Common Pitfall

The ratio and root tests are inconclusive when the limit equals 1. In such cases, try the comparison test, integral test, or other methods. For example, 1/n\sum 1/n diverges (harmonic series) and 1/n2\sum 1/n^2 converges, but both give a ratio test limit of 1.

4. Continuity

4.1 Limits of Functions

Let f:DRf : D \to \mathbb{R} where DRD \subseteq \mathbb{R}. We say limxaf(x)=L\lim_{x \to a} f(x) = L if for every ε>0\varepsilon > 0, there exists δ>0\delta > 0 such that

0<xa<δ    f(x)L<ε0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon

4.2 Continuity

Definition. ff is continuous at aa if limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a). In epsilon-delta form: for every ε>0\varepsilon > 0, there exists δ>0\delta > 0 such that

xa<δ    f(x)f(a)<ε|x - a| < \delta \implies |f(x) - f(a)| < \varepsilon

Theorem 4.1 (Algebra of Continuous Functions). If ff and gg are continuous at aa, then f+gf+g, fgf-g, fgfg, and (where defined) f/gf/g are continuous at aa.

Theorem 4.2. Compositions of continuous functions are continuous: if ff is continuous at aa and gg is continuous at f(a)f(a), then gfg \circ f is continuous at aa.

4.3 Intermediate Value Theorem

Theorem 4.3 (IVT). If f:[a,b]Rf : [a,b] \to \mathbb{R} is continuous and f(a)<y<f(b)f(a) < y < f(b) (or f(b)<y<f(a)f(b) < y < f(a)), then there exists c(a,b)c \in (a,b) such that f(c)=yf(c) = y.

Proof. Let S={x[a,b]:f(x)<y}S = \{x \in [a,b] : f(x) < y\}. Since aSa \in S, SS is non-empty and bounded above by bb. Let c=sup(S)c = \sup(S). By continuity, f(c)=yf(c) = y. \blacksquare

4.4 Extreme Value Theorem

Theorem 4.4 (EVT). If f:[a,b]Rf : [a,b] \to \mathbb{R} is continuous, then ff attains its maximum and minimum on [a,b][a,b]: there exist c1,c2[a,b]c_1, c_2 \in [a,b] such that f(c1)f(x)f(c2)f(c_1) \leq f(x) \leq f(c_2) for all x[a,b]x \in [a,b].

4.5 Uniform Continuity

Definition. ff is uniformly continuous on DD if for every ε>0\varepsilon > 0, there exists δ>0\delta > 0 such that for all x,yDx, y \in D:

xy<δ    f(x)f(y)<ε|x - y| < \delta \implies |f(x) - f(y)| < \varepsilon

The key distinction: for ordinary continuity, δ\delta may depend on both ε\varepsilon and the point aa; for uniform continuity, δ\delta depends only on ε\varepsilon.

Theorem 4.5 (Heine-Cantor). If f:[a,b]Rf : [a,b] \to \mathbb{R} is continuous on the closed, bounded interval [a,b][a,b], then ff is uniformly continuous on [a,b][a,b].

4.6 Worked Example

Problem. Prove that f(x)=xf(x) = \sqrt{x} is uniformly continuous on [0,)[0, \infty).

Solution. For x,y0x, y \geq 0: xy=xyx+yxy1/2|\sqrt{x} - \sqrt{y}| = \frac{|x - y|}{\sqrt{x} + \sqrt{y}} \leq |x - y|^{1/2}.

Given ε>0\varepsilon > 0, choose δ=ε2\delta = \varepsilon^2. Then xy<δ|x - y| < \delta implies xyxy<δ=ε|\sqrt{x} - \sqrt{y}| \leq \sqrt{|x-y|} < \sqrt{\delta} = \varepsilon. Since δ\delta depends only on ε\varepsilon, the continuity is uniform. \blacksquare

5. Differentiability

5.1 The Derivative

Definition. f:(a,b)Rf : (a,b) \to \mathbb{R} is differentiable at c(a,b)c \in (a,b) if the limit

f(c)=limh0f(c+h)f(c)hf'(c) = \lim_{h \to 0} \frac{f(c+h) - f(c)}{h}

exists (as a finite real number).

Proposition 5.1. If ff is differentiable at cc, then ff is continuous at cc.

Proof. limxc(f(x)f(c))=limxcf(x)f(c)xc(xc)=f(c)0=0\lim_{x \to c} (f(x) - f(c)) = \lim_{x \to c} \frac{f(x) - f(c)}{x - c} \cdot (x - c) = f'(c) \cdot 0 = 0. \blacksquare

The converse is false: f(x)=xf(x) = |x| is continuous at 00 but not differentiable at 00.

5.2 Differentiation Rules

Theorem 5.1. If ff and gg are differentiable at cc, then:

  1. (f+g)(c)=f(c)+g(c)(f + g)'(c) = f'(c) + g'(c)
  2. (fg)(c)=f(c)g(c)+f(c)g(c)(fg)'(c) = f'(c)g(c) + f(c)g'(c)
  3. (f/g)(c)=f(c)g(c)f(c)g(c)g(c)2(f/g)'(c) = \frac{f'(c)g(c) - f(c)g'(c)}{g(c)^2} (if g(c)0g(c) \neq 0)
  4. (fg)(c)=f(g(c))g(c)(f \circ g)'(c) = f'(g(c)) \cdot g'(c) (Chain Rule)

5.3 Mean Value Theorem

Theorem 5.2 (Rolle's Theorem). If f:[a,b]Rf : [a,b] \to \mathbb{R} is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f(a)=f(b)f(a) = f(b), then there exists c(a,b)c \in (a,b) such that f(c)=0f'(c) = 0.

Theorem 5.3 (Mean Value Theorem). If f:[a,b]Rf : [a,b] \to \mathbb{R} is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), then there exists c(a,b)c \in (a,b) such that

f(c)=f(b)f(a)baf'(c) = \frac{f(b) - f(a)}{b - a}

Proof. Define g(x)=f(x)f(b)f(a)ba(xa)g(x) = f(x) - \frac{f(b)-f(a)}{b-a}(x - a). Then g(a)=g(b)g(a) = g(b) and gg satisfies the hypotheses of Rolle's theorem. So g(c)=0g'(c) = 0 for some c(a,b)c \in (a,b), which gives the result. \blacksquare

Corollary 5.4. If f(x)=0f'(x) = 0 for all x(a,b)x \in (a,b), then ff is constant on [a,b][a,b].

Corollary 5.5. If f(x)>0f'(x) > 0 for all x(a,b)x \in (a,b), then ff is strictly increasing on [a,b][a,b].

5.4 Taylor's Theorem

Theorem 5.6 (Taylor's Theorem with Lagrange Remainder). If ff is (n+1)(n+1)-times differentiable on an open interval containing aa, then for each xx in that interval:

f(x)=k=0nf(k)(a)k!(xa)k+Rn(x)f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x - a)^k + R_n(x)

where the remainder is

Rn(x)=f(n+1)(ξ)(n+1)!(xa)n+1R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x - a)^{n+1}

for some ξ\xi between aa and xx.

Worked Example. Compute the third-order Taylor polynomial of f(x)=exf(x) = e^x about a=0a = 0.

f(0)=1f(0) = 1, f(0)=1f'(0) = 1, f(0)=1f''(0) = 1, f(0)=1f'''(0) = 1. So

T3(x)=1+x+x22+x36T_3(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{6}

The remainder is R3(x)=eξ24x4R_3(x) = \frac{e^\xi}{24} x^4 for some ξ\xi between 00 and xx.

6. Riemann Integration

6.1 Definition

Let f:[a,b]Rf : [a,b] \to \mathbb{R} be bounded. A partition of [a,b][a,b] is a finite set P={x0,x1,,xn}P = \{x_0, x_1, \ldots, x_n\} with a=x0<x1<<xn=ba = x_0 < x_1 < \cdots < x_n = b.

The upper sum and lower sum of ff with respect to PP are:

U(f,P)=i=1nMiΔxi,L(f,P)=i=1nmiΔxiU(f, P) = \sum_{i=1}^{n} M_i \Delta x_i, \quad L(f, P) = \sum_{i=1}^{n} m_i \Delta x_i

where Mi=sup{f(x):x[xi1,xi]}M_i = \sup\{f(x) : x \in [x_{i-1}, x_i]\}, mi=inf{f(x):x[xi1,xi]}m_i = \inf\{f(x) : x \in [x_{i-1}, x_i]\}, and Δxi=xixi1\Delta x_i = x_i - x_{i-1}.

Definition. ff is Riemann integrable on [a,b][a,b] if the upper and lower integrals are equal:

abf(x)dx=abf(x)dx\overline{\int_a^b} f(x)\, dx = \underline{\int_a^b} f(x)\, dx

where abf=inf{U(f,P):Pisapartition}\overline{\int_a^b} f = \inf\{U(f,P) : P \mathrm{ is a partition}\} and abf=sup{L(f,P):Pisapartition}\underline{\int_a^b} f = \sup\{L(f,P) : P \mathrm{ is a partition}\}.

The common value is denoted abf(x)dx\int_a^b f(x)\, dx.

6.2 Integrability Criteria

Theorem 6.1 (Riemann Integrability Criterion). A bounded function f:[a,b]Rf : [a,b] \to \mathbb{R} is Riemann integrable if and only if for every ε>0\varepsilon > 0, there exists a partition PP such that

U(f,P)L(f,P)<εU(f,P) - L(f,P) < \varepsilon

Theorem 6.2. Every continuous function on [a,b][a,b] is Riemann integrable.

Theorem 6.3. Every monotone function on [a,b][a,b] is Riemann integrable.

Theorem 6.4. A bounded function with finitely many discontinuities on [a,b][a,b] is Riemann integrable.

6.3 Properties of the Integral

Theorem 6.5 (Linearity). If ff and gg are integrable on [a,b][a,b] and α,βR\alpha, \beta \in \mathbb{R}:

ab(αf+βg)=αabf+βabg\int_a^b (\alpha f + \beta g) = \alpha \int_a^b f + \beta \int_a^b g

Theorem 6.6 (Monotonicity). If f(x)g(x)f(x) \leq g(x) for all x[a,b]x \in [a,b], then abfabg\int_a^b f \leq \int_a^b g.

Theorem 6.7 (Triangle Inequality). abfabf\left|\int_a^b f\right| \leq \int_a^b |f|.

6.4 The Fundamental Theorem of Calculus

Theorem 6.8 (FTC Part 1). If ff is continuous on [a,b][a,b], then the function

F(x)=axf(t)dtF(x) = \int_a^x f(t)\, dt

is differentiable on (a,b)(a,b) and F(x)=f(x)F'(x) = f(x).

Proof. For h>0h > 0:

F(x+h)F(x)h=1hxx+hf(t)dt\frac{F(x+h) - F(x)}{h} = \frac{1}{h}\int_x^{x+h} f(t)\, dt

By the mean value theorem for integrals, there exists ξ[x,x+h]\xi \in [x, x+h] such that this equals f(ξ)f(\xi). As h0h \to 0, ξx\xi \to x, and by continuity of ff, f(ξ)f(x)f(\xi) \to f(x). \blacksquare

Theorem 6.9 (FTC Part 2). If FF is differentiable on [a,b][a,b] with F=fF' = f (and ff is integrable), then

abf(x)dx=F(b)F(a)\int_a^b f(x)\, dx = F(b) - F(a)

6.5 Worked Example

Problem. Compute 01x2dx\int_0^1 x^2\, dx from the definition.

Solution. Let Pn={0,1/n,2/n,,1}P_n = \{0, 1/n, 2/n, \ldots, 1\}. On [xi1,xi]=[(i1)/n,i/n][x_{i-1}, x_i] = [(i-1)/n, i/n], f(x)=x2f(x) = x^2 has Mi=(i/n)2M_i = (i/n)^2 and mi=((i1)/n)2m_i = ((i-1)/n)^2.

U(f,Pn)=i=1ni2n21n=1n3i=1ni2=1n3n(n+1)(2n+1)6U(f, P_n) = \sum_{i=1}^{n} \frac{i^2}{n^2} \cdot \frac{1}{n} = \frac{1}{n^3} \sum_{i=1}^{n} i^2 = \frac{1}{n^3} \cdot \frac{n(n+1)(2n+1)}{6}

As nn \to \infty: limnU(f,Pn)=limn(n+1)(2n+1)6n2=26=13\lim_{n \to \infty} U(f, P_n) = \lim_{n \to \infty} \frac{(n+1)(2n+1)}{6n^2} = \frac{2}{6} = \frac{1}{3}.

Similarly, L(f,Pn)1/3L(f, P_n) \to 1/3. So 01x2dx=1/3\int_0^1 x^2\, dx = 1/3. \blacksquare

Common Pitfall

The Riemann integral is defined for bounded functions on closed, bounded intervals. It does not apply directly to unbounded functions or infinite intervals. For those, one needs the improper Riemann integral (or the Lebesgue integral, which is beyond our scope here).