Skip to content

Real Analysis

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.

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

  1. Reflexivity: a≤aa \leq a
  2. Antisymmetry: a≤ba \leq b and b≤ab \leq a implies a=ba = b
  3. Transitivity: a≤ba \leq b and b≤cb \leq c implies a≤ca \leq c
  4. Totality: for all a,ba, bEither a≤ba \leq b or b≤ab \leq a
  5. Compatibility with addition: a≤ba \leq b implies a+c≤b+ca + c \leq b + c
  6. Compatibility with multiplication: a≤ba \leq b and 0≤c0 \leq c implies ac≤bcac \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}.

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

Definition. The supremum (or least upper bound) of SSDenoted sup⁡(S)\sup(S)Is the real number uu satisfying:

  1. uu is an upper bound: s≤us \leq u for all s∈Ss \in S.
  2. uu is the least upper bound: if vv is any upper bound of SSThen u≤vu \leq v.

Similarly, the infimum (or greatest lower bound), inf⁡(S)\inf(S)Is the greatest number ll such that l≤sl \leq s for all s∈Ss \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 > 0There Exists s∈Ss \in S such that u−ε<s≤uu - \varepsilon \lt s \leq u.

Proof. If no such ss existed, then u−εu - \varepsilon would be an upper bound of SS strictly less Than uuContradicting the definition of sup⁡(S)\sup(S). ■\blacksquare

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

Theorem 1.1 (Archimedean Property). For every x∈Rx \in \mathbb{R}There exists n∈Nn \in \mathbb{N} Such that n>xn \gt x.

Proof. Suppose, for contradiction, that N\mathbb{N} is bounded above. By the completeness axiom, s=sup⁡(N)s = \sup(\mathbb{N}) exists in R\mathbb{R}. Then s−1s - 1 is not an upper bound for N\mathbb{N} So there exists n∈Nn \in \mathbb{N} with n>s−1n \gt s - 1I.e., n+1>sn + 1 \gt s. But n+1∈Nn + 1 \in \mathbb{N} Contradicting that ss is an upper bound. ■\blacksquare

Corollary 1.2. For every ε>0\varepsilon > 0There exists n∈Nn \in \mathbb{N} such that 1/n<ε1/n \lt \varepsilon.

Proof. By the Archimedean property, choose n∈Nn \in \mathbb{N} with n>1/εn \gt 1/\varepsilon. Then 1/n<ε1/n \lt \varepsilon. ■\blacksquare

Corollary 1.3 (Density of Q\mathbb{Q}). Between any two distinct real numbers a<ba \lt bThere Exists a rational number q∈Qq \in \mathbb{Q} with a<q<ba \lt q \lt b.

Proof. Since b−a>0b - a > 0By Corollary 1.2 there exists n∈Nn \in \mathbb{N} with 1/n<b−a1/n \lt b - a So 1<n(b−a)=nb−na1 \lt n(b - a) = nb - na. Let m=⌊na⌋+1∈Zm = \lfloor na \rfloor + 1 \in \mathbb{Z}. Then m−1≤na<mm - 1 \leq na \lt m Giving m≤na+1<na+n(b−a)=nbm \leq na + 1 \lt na + n(b - a) = nb. Hence a<m/n<ba \lt m/n \lt bAnd m/n∈Qm/n \in \mathbb{Q}. ■\blacksquare

Proposition 1.4. If AA and BB are non-empty bounded subsets of R\mathbb{R}Then sup⁡(A+B)=sup⁡(A)+sup⁡(B)\sup(A + B) = \sup(A) + \sup(B)Where A+B={a+b:a∈A,b∈B}A + B = \{a + b : a \in A, b \in B\}.

Proof. For all a∈Aa \in A and b∈Bb \in B: a≤sup⁡(A)a \leq \sup(A) and b≤sup⁡(B)b \leq \sup(B)So a+b≤sup⁡(A)+sup⁡(B)a + b \leq \sup(A) + \sup(B). Thus sup⁡(A)+sup⁡(B)\sup(A) + \sup(B) is an upper bound for A+BA + BSo sup⁡(A+B)≤sup⁡(A)+sup⁡(B)\sup(A + B) \leq \sup(A) + \sup(B).

For the reverse inequality, let ε>0\varepsilon > 0. By the approximation property, there exist a∈Aa \in A And b∈Bb \in B with a>sup⁡(A)−ε/2a > \sup(A) - \varepsilon/2 and b>sup⁡(B)−ε/2b > \sup(B) - \varepsilon/2. Then a+b>sup⁡(A)+sup⁡(B)−εa + b > \sup(A) + \sup(B) - \varepsilonSo sup⁡(A+B)≥sup⁡(A)+sup⁡(B)−ε\sup(A + B) \geq \sup(A) + \sup(B) - \varepsilon. Since ε>0\varepsilon > 0 is arbitrary, sup⁡(A+B)≥sup⁡(A)+sup⁡(B)\sup(A + B) \geq \sup(A) + \sup(B). ■\blacksquare

Proposition 1.5. For any non-empty bounded set S⊆RS \subseteq \mathbb{R}, inf⁡(S)=−sup⁡(−S)\inf(S) = -\sup(-S) Where −S={−s:s∈S}-S = \{-s : s \in S\}.

Proof. Let u=sup⁡(−S)u = \sup(-S). Then −s≤u-s \leq u for all s∈Ss \in SSo s≥−us \geq -u for all s∈Ss \in S Meaning −u-u is a lower bound for SS. If vv is any lower bound for SSThen −v-v is an upper bound For −S-SSo u≤−vu \leq -vI.e., −u≥v-u \geq v. Hence −u=inf⁡(S)-u = \inf(S). ■\blacksquare

Worked Example: Find $\sup$ and $\inf$ of $S = \{(-1)^n + 1/n : n \in \mathbb{N}\}$

Solution. The first few terms are 0,3/2,−2/3,5/4,−4/5,7/6,…0, 3/2, -2/3, 5/4, -4/5, 7/6, \ldots.

For even n=2kn = 2k: (−1)2k+1/(2k)=1+1/(2k)(-1)^{2k} + 1/(2k) = 1 + 1/(2k)Which decreases toward 11 from above. For odd n=2k−1n = 2k-1: (−1)2k−1+1/(2k−1)=−1+1/(2k−1)(-1)^{2k-1} + 1/(2k-1) = -1 + 1/(2k-1)Which increases toward −1-1 from below.

The even terms form the sequence 3/2,5/4,7/6,…3/2, 5/4, 7/6, \ldots with limit 11So sup⁡(S)=3/2\sup(S) = 3/2 (the first even term). The odd terms form 0,−2/3,−4/5,…0, -2/3, -4/5, \ldots with limit −1-1And since 00 Is an odd-indexed term, inf⁡(S)=−1\inf(S) = -1 (approached but not attained). ■\blacksquare

1.6 Construction of R\mathbb{R} via Dedekind Cuts

Section titled “1.6 Construction of R\mathbb{R}R via Dedekind Cuts”

Remark. The following outline shows how R\mathbb{R} can be constructed from Q\mathbb{Q}Making The completeness axiom a theorem rather than an axiom.

Definition (Dedekind Cut). A Dedekind cut is a subset α⊆Q\alpha \subseteq \mathbb{Q} satisfying:

  1. α≠∅\alpha \neq \emptyset and α≠Q\alpha \neq \mathbb{Q}
  2. If p∈αp \in \alpha and q<pq \lt p (with q∈Qq \in \mathbb{Q}), then q∈αq \in \alpha (downward closure)
  3. α\alpha has no greatest element: for every p∈αp \in \alphaThere exists q∈αq \in \alpha with p<qp \lt q

Definition. The set of real numbers R\mathbb{R} is defined as the set of all Dedekind cuts.

The order, addition, and multiplication are defined as follows:

  • Order: α<β\alpha \lt \beta if and only if α⊊β\alpha \subsetneq \beta
  • Addition: α+β={p+q:p∈α,q∈β}\alpha + \beta = \{p + q : p \in \alpha, q \in \beta\}
  • Multiplication: For α,β≥0∗\alpha, \beta \geq 0^*: α⋅β={p⋅q:p∈α,q∈β,p≥0,q≥0}∪{r∈Q:r<0}\alpha \cdot \beta = \{p \cdot q : p \in \alpha, q \in \beta, p \geq 0, q \geq 0\} \cup \{r \in \mathbb{Q} : r \lt 0\}

Here 0∗={q∈Q:q<0}0^* = \{q \in \mathbb{Q} : q \lt 0\} represents the real number 00.

Theorem. With these definitions, R\mathbb{R} is a complete ordered field, and Q\mathbb{Q} embeds Into R\mathbb{R} via q↦{r∈Q:r<q}q \mapsto \{r \in \mathbb{Q} : r \lt q\}.

Proof (sketch). Verifying the field axioms and order axioms is lengthy but straightforward. The key Step is the completeness axiom: if A\mathcal{A} is a non-empty set of Dedekind cuts bounded above, Then α=⋃β∈Aβ\alpha = \bigcup_{\beta \in \mathcal{A}} \beta is itself a Dedekind cut and α=sup⁡(A)\alpha = \sup(\mathcal{A}). ■\blacksquare

The completeness axiom can be formulated in several equivalent ways. Each implies the others:

  1. Least Upper Bound Property: Every non-empty set bounded above has a supremum.
  2. Monotone Convergence Theorem: Every bounded monotone sequence converges.
  3. Nested Interval Property: Every nested sequence of closed intervals I1⊇I2⊇⋯I_1 \supseteq I_2 \supseteq \cdots with length(In)→0\mathrm{length}(I_n) \to 0 has exactly one point in ⋂In\bigcap I_n.
  4. Bolzano-Weierstrass Property: Every bounded sequence has a convergent subsequence.
  5. Cauchy Completeness: Every Cauchy sequence converges.

Proposition 1.6. In any ordered field, (1)   ⟺  \iff (2)   ⟺  \iff (3)   ⟺  \iff (4)   ⟺  \iff (5).

Proof (outline). We have shown (1)⇒(2)(1) \Rightarrow (2) (MCT in Section 2.2), (2)⇒(4)(2) \Rightarrow (4) (via the bisection argument in Bolzano-Weierstrass), (4)⇒(5)(4) \Rightarrow (5) (Cauchy completeness proof In Section 2.3), and (5)⇒(1)(5) \Rightarrow (1) can be shown by constructing a Cauchy sequence converging To sup⁡S\sup S from the approximation property. The equivalence (1)⇒(3)(1) \Rightarrow (3) follows from the Nested interval argument, and (3)⇒(1)(3) \Rightarrow (1) follows by constructing nested intervals that Shrink to sup⁡S\sup S. ■\blacksquare

Remark. The field Q\mathbb{Q} satisfies none of these properties, which is why it must be Extended to R\mathbb{R} for analysis.

:::caution Common Pitfall The completeness axiom is often misstated as “every bounded set has a supremum.” The set must be Non-empty. Also, completeness does not say every set has a maximum; sup⁡(S)\sup(S) need not belong to SS. For example, sup⁡{1/n:n∈N}=1\sup\{1/n : n \in \mathbb{N}\} = 1Which belongs to the set, but sup⁡(0,1)=1\sup(0, 1) = 1Which does not belong to (0,1)(0, 1). :::

A sequence (an)n=1∞(a_n)_{n=1}^{\infty} in R\mathbb{R} converges to a limit L∈RL \in \mathbb{R} if for Every ε>0\varepsilon > 0There exists N∈NN \in \mathbb{N} such that

∣an−L∣<εfor all n≥N|a_n - L| \lt \varepsilon \quad \mathrm{for\ all\ } n \geq N

We write an→La_n \to L or lim⁡n→∞an=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 an→La_n \to L and an→Ma_n \to M with L≠ML \neq M. Let ε=∣L−M∣/2>0\varepsilon = |L - M|/2 > 0. There Exists N1N_1 such that ∣an−L∣<ε|a_n - L| \lt \varepsilon for n≥N1n \geq N_1And N2N_2 such that ∣an−M∣<ε|a_n - M| \lt \varepsilon for n≥N2n \geq N_2. For n≥max⁡(N1,N2)n \geq \max(N_1, N_2):

∣L−M∣≤∣an−L∣+∣an−M∣<2ε=∣L−M∣|L - M| \leq |a_n - L| + |a_n - M| \lt 2\varepsilon = |L - M|

A contradiction. ■\blacksquare

Proposition 2.2. Every convergent sequence is bounded.

Proof. Let an→La_n \to L. Taking ε=1\varepsilon = 1There exists NN such that ∣an−L∣<1|a_n - L| \lt 1 for All n≥Nn \geq N. Then ∣an∣≤∣L∣+1|a_n| \leq |L| + 1 for n≥Nn \geq N. Let M=max⁡{∣a1∣,∣a2∣,…,∣aN−1∣,∣L∣+1}M = \max\{|a_1|, |a_2|, \ldots, |a_{N-1}|, |L| + 1\}. Then ∣an∣≤M|a_n| \leq M for all nn. ■\blacksquare

Theorem 2.1 (Algebra of Limits). If an→La_n \to L and bn→Mb_n \to MThen:

  1. an+bn→L+Ma_n + b_n \to L + M
  2. anbn→LMa_n b_n \to LM
  3. an/bn→L/Ma_n / b_n \to L/M (provided M≠0M \neq 0 and bn≠0b_n \neq 0 for all nn)

Theorem 2.2 (Squeeze Theorem). If an≤bn≤cna_n \leq b_n \leq c_n for all nn and an→La_n \to L cn→Lc_n \to LThen bn→Lb_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.

Proof. Let (an)(a_n) be bounded and increasing. By the completeness axiom, s=sup⁡{an:n∈N}s = \sup\{a_n : n \in \mathbb{N}\} exists. Let ε>0\varepsilon > 0. By the approximation property, There exists NN such that s−ε<aN≤ss - \varepsilon \lt a_N \leq s. Since (an)(a_n) is increasing, an≥aN>s−εa_n \geq a_N > s - \varepsilon for all n≥Nn \geq N. Also an≤sa_n \leq s for all nn. Hence ∣an−s∣<ε|a_n - s| \lt \varepsilon for all n≥Nn \geq N. ■\blacksquare

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

∣an−am∣<εfor all m,n≥N|a_n - a_m| \lt \varepsilon \quad \mathrm{for\ all\ } m, n \geq N

Theorem 2.4. Every convergent sequence is Cauchy.

Proof. Let an→La_n \to L. Given ε>0\varepsilon > 0Choose NN such that ∣an−L∣<ε/2|a_n - L| \lt \varepsilon/2 For all n≥Nn \geq N. Then for m,n≥Nm, n \geq N: ∣an−am∣≤∣an−L∣+∣am−L∣<ε|a_n - a_m| \leq |a_n - L| + |a_m - L| \lt \varepsilon. ■\blacksquare

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

Proof. Let (an)(a_n) be Cauchy. First, (an)(a_n) is bounded: choose NN with ∣an−am∣<1|a_n - a_m| \lt 1 for m,n≥Nm, n \geq N. Then ∣an∣≤∣aN∣+1|a_n| \leq |a_N| + 1 for n≥Nn \geq N. By the Bolzano-Weierstrass theorem (Theorem 2.6 below), (an)(a_n) has a convergent subsequence (ank)→L(a_{n_k}) \to L. We show an→La_n \to L.

Given ε>0\varepsilon > 0Choose N1N_1 so that ∣an−am∣<ε/2|a_n - a_m| \lt \varepsilon/2 for m,n≥N1m, n \geq N_1 And KK so that ∣ank−L∣<ε/2|a_{n_k} - L| \lt \varepsilon/2 for k≥Kk \geq K. For n≥N1n \geq N_1Choose k≥Kk \geq K with nk≥N1n_k \geq N_1 (possible since nk→∞n_k \to \infty). Then

∣an−L∣≤∣an−ank∣+∣ank−L∣<ε/2+ε/2=ε|a_n - L| \leq |a_n - a_{n_k}| + |a_{n_k} - L| \lt \varepsilon/2 + \varepsilon/2 = \varepsilon

■\blacksquare

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

Proposition 2.3. If an→La_n \to LThen 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.

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

Proof. Let (an)(a_n) be bounded, so an∈[A,B]a_n \in [A, B] for all nn. Set I0=[A,B]I_0 = [A, B]. Bisect I0I_0 into [A,(A+B)/2][A, (A+B)/2] and [(A+B)/2,B][(A+B)/2, B]. At least one contains infinitely many terms of (an)(a_n); call it I1I_1. Having constructed Ik=[lk,rk]I_k = [l_k, r_k]Bisect it and select Ik+1I_{k+1} as the half containing Infinitely many terms of (an)(a_n).

This produces a nested sequence of closed intervals I0⊇I1⊇I2⊇⋯I_0 \supseteq I_1 \supseteq I_2 \supseteq \cdots With length(Ik)=(B−A)/2k→0\mathrm{length}(I_k) = (B - A)/2^k \to 0. By the Nested Interval Property (which follows From completeness), ⋂k=0∞Ik={c}\bigcap_{k=0}^{\infty} I_k = \{c\} for some c∈[A,B]c \in [A, B].

Construct the subsequence inductively: pick n1n_1 with an1∈I1a_{n_1} \in I_1. Having chosen n1<n2<⋯<nk−1n_1 \lt n_2 \lt \cdots \lt n_{k-1}Pick nk>nk−1n_k > n_{k-1} with ank∈Ika_{n_k} \in I_k (possible since IkI_k contains infinitely many terms). Then ank∈Ika_{n_k} \in I_k for all kkSo ∣ank−c∣≤length(Ik)→0|a_{n_k} - c| \leq \mathrm{length}(I_k) \to 0. Hence ank→ca_{n_k} \to c. ■\blacksquare

Let (an)(a_n) be a bounded sequence. Define:

lim sup⁡n→∞an=inf⁡n≥1sup⁡k≥nak,lim inf⁡n→∞an=sup⁡n≥1inf⁡k≥nak\limsup_{n \to \infty} a_n = \inf_{n \geq 1} \sup_{k \geq n} a_k, \qquad \liminf_{n \to \infty} a_n = \sup_{n \geq 1} \inf_{k \geq n} a_k

Proposition 2.5. For every bounded sequence (an)(a_n): lim inf⁡n→∞an≤lim sup⁡n→∞an\liminf_{n \to \infty} a_n \leq \limsup_{n \to \infty} a_n

Proof. For any nn, inf⁡k≥nak≤an≤sup⁡k≥nan\inf_{k \geq n} a_k \leq a_n \leq \sup_{k \geq n} a_n. Taking supremum over nn on the left: lim inf⁡an≤sup⁡k≥nak\liminf a_n \leq \sup_{k \geq n} a_k for every nn. Taking infimum over nn on The right gives lim inf⁡an≤lim sup⁡an\liminf a_n \leq \limsup a_n. ■\blacksquare

Proposition 2.6. (an)(a_n) converges if and only if lim inf⁡an=lim sup⁡an\liminf a_n = \limsup a_nIn which case the Common value equals lim⁡an\lim a_n.

Proof. If an→La_n \to LThen for every ε>0\varepsilon > 0There exists NN such that L−ε<an<L+εL - \varepsilon \lt a_n \lt L + \varepsilon for n≥Nn \geq N. Hence sup⁡k≥nak≤L+ε\sup_{k \geq n} a_k \leq L + \varepsilon For n≥Nn \geq NSo lim sup⁡an≤L+ε\limsup a_n \leq L + \varepsilon. Since ε>0\varepsilon > 0 is arbitrary, lim sup⁡an≤L\limsup a_n \leq L. Similarly lim inf⁡an≥L\liminf a_n \geq L. Combined with Proposition 2.5, lim inf⁡an=lim sup⁡an=L\liminf a_n = \limsup a_n = L.

Conversely, if lim inf⁡an=lim sup⁡an=L\liminf a_n = \limsup a_n = LThen for every ε>0\varepsilon > 0There exists N1N_1 With sup⁡k≥nak<L+ε\sup_{k \geq n} a_k \lt L + \varepsilon for n≥N1n \geq N_1And N2N_2 with inf⁡k≥nak>L−ε\inf_{k \geq n} a_k > L - \varepsilon for n≥N2n \geq N_2. For n≥max⁡(N1,N2)n \geq \max(N_1, N_2): L−ε<an<L+εL - \varepsilon \lt a_n \lt L + \varepsilonSo an→La_n \to L. ■\blacksquare

Proposition 2.7. lim sup⁡an\limsup a_n is the largest subsequential limit of (an)(a_n)And lim inf⁡an\liminf a_n Is the smallest.

Proof. Let L∗=lim sup⁡an=inf⁡nsup⁡k≥nakL^* = \limsup a_n = \inf_n \sup_{k \geq n} a_k. Define sn=sup⁡k≥naks_n = \sup_{k \geq n} a_k. Then (sn)(s_n) is decreasing and sn→L∗s_n \to L^*. For each nnChoose kn≥nk_n \geq n with akn>sn−1/na_{k_n} > s_n - 1/n. Then akn→L∗a_{k_n} \to L^* (by squeeze), producing a subsequence converging to L∗L^*.

If L>L∗L > L^* were a subsequential limit, choose a subsequence anj→La_{n_j} \to L. For large jj: anj>(L+L∗)/2>L∗a_{n_j} > (L + L^*)/2 > L^*. But anj≤snja_{n_j} \leq s_{n_j} for all jjAnd snj→L∗s_{n_j} \to L^* So anj≤snj<(L+L∗)/2a_{n_j} \leq s_{n_j} \lt (L + L^*)/2 for large jjA contradiction. ■\blacksquare

Proposition 2.8 (Algebra of lim sup⁡\limsup/lim inf⁡\liminf). If (an)(a_n) and (bn)(b_n) are bounded sequences:

  1. lim sup⁡(an+bn)≤lim sup⁡an+lim sup⁡bn\limsup(a_n + b_n) \leq \limsup a_n + \limsup b_n
  2. lim inf⁡(an+bn)≥lim inf⁡an+lim inf⁡bn\liminf(a_n + b_n) \geq \liminf a_n + \liminf b_n
  3. If an≥0a_n \geq 0 and bn≥0b_n \geq 0: lim sup⁡(anbn)≤(lim sup⁡an)(lim sup⁡bn)\limsup(a_n b_n) \leq (\limsup a_n)(\limsup b_n)

Remark. Equality in (1) does not hold . For example, an=(−1)na_n = (-1)^n and bn=(−1)n+1b_n = (-1)^{n+1} Give an+bn=0a_n + b_n = 0So lim sup⁡(an+bn)=0<1+1=lim sup⁡an+lim sup⁡bn\limsup(a_n + b_n) = 0 \lt 1 + 1 = \limsup a_n + \limsup b_n.

Proposition 2.9. A sequence (an)(a_n) is convergent if and only if it is Cauchy, if and only if lim sup⁡an=lim inf⁡an\limsup a_n = \liminf a_n.

Worked Example: Compute $\limsup$ and $\liminf$ of $a_n = (-1)^n \cdot \frac{n}{n+1}$

Solution. The sequence is −1/2,2/3,−3/4,4/5,−5/6,…-1/2, 2/3, -3/4, 4/5, -5/6, \ldots

The even subsequence is a2k=2k2k+1→1a_{2k} = \frac{2k}{2k+1} \to 1. The odd subsequence is a2k−1=−2k−12k→−1a_{2k-1} = -\frac{2k-1}{2k} \to -1.

No subsequence can have a limit greater than 11 (since an≤n/(n+1)<1a_n \leq n/(n+1) \lt 1 for even nn And an<0a_n \lt 0 for odd nn). Similarly, no subsequence can have a limit less than −1-1.

Therefore lim sup⁡n→∞an=1\limsup_{n \to \infty} a_n = 1 and lim inf⁡n→∞an=−1\liminf_{n \to \infty} a_n = -1. Since lim sup⁡≠lim inf⁡\limsup \neq \liminfThe sequence diverges. ■\blacksquare

Problem. Prove that lim⁡n→∞nn+1=1\lim_{n \to \infty} \frac{n}{n+1} = 1.

Solution. Let ε>0\varepsilon > 0. We need ∣nn+1−1∣<ε\left|\frac{n}{n+1} - 1\right| \lt \varepsilonI.e., 1n+1<ε\frac{1}{n+1} \lt \varepsilonI.e., n>1ε−1n > \frac{1}{\varepsilon} - 1. Choose N=⌈1ε⌉N = \lceil \frac{1}{\varepsilon} \rceil. Then for n≥Nn \geq N: n≥1εn \geq \frac{1}{\varepsilon}So n+1>1εn+1 > \frac{1}{\varepsilon}So 1n+1<ε\frac{1}{n+1} \lt \varepsilon. ■\blacksquare

Worked Example: $\varepsilon$-$N$ proof for $\lim_{n \to \infty} \frac{3n + 1}{n + 2} = 3$

Solution. Let ε>0\varepsilon > 0. We compute:

∣3n+1n+2−3∣=∣3n+1−3(n+2)n+2∣=∣−5n+2∣=5n+2\left|\frac{3n+1}{n+2} - 3\right| = \left|\frac{3n+1 - 3(n+2)}{n+2}\right| = \left|\frac{-5}{n+2}\right| = \frac{5}{n+2}

We need 5n+2<ε\frac{5}{n+2} \lt \varepsilonI.e., n+2>5/εn + 2 > 5/\varepsilonI.e., n>5/ε−2n > 5/\varepsilon - 2. Choose N=⌈5/ε⌉N = \lceil 5/\varepsilon \rceil. Then for n≥Nn \geq N:

∣3n+1n+2−3∣=5n+2≤5N+2≤55/ε=ε\left|\frac{3n+1}{n+2} - 3\right| = \frac{5}{n+2} \leq \frac{5}{N+2} \leq \frac{5}{5/\varepsilon} = \varepsilon

■\blacksquare

Worked Example: Show $(a_n)$ with $a_1 = \sqrt{2}$, $a_{n+1} = \sqrt{2 + a_n}$ converges

Solution. Step 1: (an)(a_n) is bounded above by 22. By induction: a1=2≤2a_1 = \sqrt{2} \leq 2. If an≤2a_n \leq 2Then an+1=2+an≤2+2=2a_{n+1} = \sqrt{2 + a_n} \leq \sqrt{2 + 2} = 2.

Step 2: (an)(a_n) is increasing. We have a1=2≈1.414a_1 = \sqrt{2} \approx 1.414 and a2=2+2≈1.848a_2 = \sqrt{2 + \sqrt{2}} \approx 1.848. Assume an≤an+1a_n \leq a_{n+1}. Then an+1=2+an≤2+an+1=an+2a_{n+1} = \sqrt{2 + a_n} \leq \sqrt{2 + a_{n+1}} = a_{n+2}.

Step 3: By the Monotone Convergence Theorem, (an)(a_n) converges. Let L=lim⁡anL = \lim a_n. Taking limits In an+1=2+ana_{n+1} = \sqrt{2 + a_n}: L=2+LL = \sqrt{2 + L}So L2=2+LL^2 = 2 + LGiving L2−L−2=0L^2 - L - 2 = 0So (L−2)(L+1)=0(L-2)(L+1) = 0. Since an≥2>0a_n \geq \sqrt{2} > 0 for all nn, L≥0L \geq 0So L=2L = 2. ■\blacksquare

:::caution Common Pitfall When computing lim sup⁡\limsup and lim inf⁡\liminfDo not confuse them with sup⁡\sup and inf⁡\inf of the range {an:n∈N}\{a_n : n \in \mathbb{N}\}. The lim sup⁡\limsup depends on the tail behavior of the sequence. For Example, an=(−1)na_n = (-1)^n has lim sup⁡=1\limsup = 1 and lim inf⁡=−1\liminf = -1But sup⁡{an}=1\sup\{a_n\} = 1 and inf⁡{an}=−1\inf\{a_n\} = -1 happen to agree in this case. However, for an=1/na_n = 1/n, sup⁡=1\sup = 1 but lim sup⁡=0\limsup = 0. :::

A series ∑n=1∞an\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 an≥0a_n \geq 0 for all nnThe 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.

Theorem 3.1 (Comparison Test). If 0≤an≤bn0 \leq a_n \leq b_n for all nnThen:

  • 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 > 0And lim⁡n→∞an/bn=L\lim_{n \to \infty} a_n / b_n = L where 0<L<∞0 \lt L \lt \inftyThen ∑an\sum a_n converges if and only if ∑bn\sum b_n converges.

Theorem 3.3 (Ratio Test). If lim⁡n→∞∣an+1/an∣=L\lim_{n \to \infty} |a_{n+1}/a_n| = LThen:

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

Theorem 3.4 (Root Test). If lim sup⁡n→∞∣an∣n=L\limsup_{n \to \infty} \sqrt[n]{|a_n|} = LThen:

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

Proof. If L<1L \lt 1Choose rr with L<r<1L \lt r \lt 1. By definition of lim sup⁡\limsupThere exists NN such that ∣an∣n<r\sqrt[n]{|a_n|} \lt r for all n≥Nn \geq NI.e., ∣an∣<rn|a_n| \lt r^n. Since ∑rn\sum r^n converges (geometric series with r<1r \lt 1), the comparison test gives absolute convergence.

If L>1L > 1Then for infinitely many nn: ∣an∣n>1\sqrt[n]{|a_n|} > 1So ∣an∣>1|a_n| > 1. Hence an↛0a_n \not\to 0 And the series diverges. ■\blacksquare

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

Proof. Since ff is decreasing, for k≤x≤k+1k \leq x \leq k+1: f(k+1)≤f(x)≤f(k)f(k+1) \leq f(x) \leq f(k). Integrating:

f(k+1)=∫kk+1f(k+1) dx≤∫kk+1f(x) dx≤∫kk+1f(k) dx=f(k)f(k+1) = \int_k^{k+1} f(k+1)\, dx \leq \int_k^{k+1} f(x)\, dx \leq \int_k^{k+1} f(k)\, dx = f(k)

Summing from k=1k = 1 to N−1N - 1:

∑k=2Nf(k)≤∫1Nf(x) dx≤∑k=1N−1f(k)\sum_{k=2}^{N} f(k) \leq \int_1^N f(x)\, dx \leq \sum_{k=1}^{N-1} f(k)

If ∫1∞f\int_1^{\infty} f converges, the left inequality shows ∑f(k)\sum f(k) is bounded above, hence converges. If ∫1∞f\int_1^{\infty} f diverges, the right inequality shows ∑f(k)\sum f(k) is unbounded, hence diverges. ■\blacksquare

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

Proof. The partial sums of the even-indexed subsequence satisfy S2n=S2n−2−a2n−1+a2nS_{2n} = S_{2n-2} - a_{2n-1} + a_{2n}. Since a2n−1≥a2na_{2n-1} \geq a_{2n}We have S2n≤S2n−2S_{2n} \leq S_{2n-2}So (S2n)(S_{2n}) is decreasing. Similarly, (S2n+1)(S_{2n+1}) is increasing. Also S2n+1=S2n+a2n+1≥S2nS_{2n+1} = S_{2n} + a_{2n+1} \geq S_{2n}. Both sequences are bounded (since (S2n)(S_{2n}) is decreasing and bounded below by S1S_1And (S2n+1)(S_{2n+1}) is increasing and bounded Above by S2S_2). Hence both converge. Since a2n+1→0a_{2n+1} \to 0Their limits coincide. ■\blacksquare

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.

Proof. Since ∑∣an∣\sum |a_n| converges, the partial sums of ∑∣an∣\sum |a_n| satisfy the Cauchy criterion. Given ε>0\varepsilon > 0There exists NN such that for m>n≥Nm > n \geq N: ∑k=n+1m∣ak∣<ε\sum_{k=n+1}^{m} |a_k| \lt \varepsilon. Then ∣∑k=n+1mak∣≤∑k=n+1m∣ak∣<ε\left|\sum_{k=n+1}^{m} a_k\right| \leq \sum_{k=n+1}^{m} |a_k| \lt \varepsilonSo ∑an\sum a_n satisfies The Cauchy criterion and converges. ■\blacksquare

3.4 The Alternating Series Estimation Theorem

Section titled “3.4 The Alternating Series Estimation Theorem”

Theorem 3.8 (Alternating Series Estimation). If S=∑n=1∞(−1)n+1anS = \sum_{n=1}^{\infty} (-1)^{n+1} a_n satisfies the Hypotheses of the alternating series test, then the error after NN terms satisfies:

∣S−SN∣≤aN+1|S - S_N| \leq a_{N+1}

Proof. We have S2n≤S≤S2n+1=S2n+a2n+1S_{2n} \leq S \leq S_{2n+1} = S_{2n} + a_{2n+1} and S2n−1≥S≥S2n=S2n−1−a2nS_{2n-1} \geq S \geq S_{2n} = S_{2n-1} - a_{2n}. In both cases ∣S−SN∣≤aN+1|S - S_N| \leq a_{N+1}. ■\blacksquare

Theorem 3.8b (Cauchy Condensation Test). If (an)(a_n) is a non-negative, decreasing sequence, then ∑n=1∞an\sum_{n=1}^{\infty} a_n converges if and only if ∑k=0∞2ka2k\sum_{k=0}^{\infty} 2^k a_{2^k} converges.

Proof. Group the terms of ∑an\sum a_n. For the lower bound, note:

a1+(a2+a3)+(a4+a5+a6+a7)+⋯≥a1+2a2+4a4+8a8+⋯=∑k=0∞2ka2ka_1 + (a_2 + a_3) + (a_4 + a_5 + a_6 + a_7) + \cdots \geq a_1 + 2a_2 + 4a_4 + 8a_8 + \cdots = \sum_{k=0}^{\infty} 2^k a_{2^k}

Since each group (a2k+⋯+a2k+1−1)(a_{2^k} + \cdots + a_{2^{k+1}-1}) has 2k2^k terms, each ≥a2k\geq a_{2^k}. For the upper Bound:

a1+a2+(a3+a4)+(a5+a6+a7+a8)+⋯≤a1+a2+2a4+4a8+⋯≤a1+2∑k=1∞2k−1a2ka_1 + a_2 + (a_3 + a_4) + (a_5 + a_6 + a_7 + a_8) + \cdots \leq a_1 + a_2 + 2a_4 + 4a_8 + \cdots \leq a_1 + 2\sum_{k=1}^{\infty} 2^{k-1} a_{2^k}

If ∑2ka2k\sum 2^k a_{2^k} converges, the upper bound shows ∑an\sum a_n converges. If ∑an\sum a_n Converges, the lower bound shows ∑2ka2k\sum 2^k a_{2^k} converges. ■\blacksquare

Corollary. ∑n=1∞1/np\sum_{n=1}^{\infty} 1/n^p converges if and only if p>1p > 1. Apply the condensation Test: ∑2k⋅1/(2k)p=∑2k(1−p)\sum 2^k \cdot 1/(2^k)^p = \sum 2^{k(1-p)}A geometric series with ratio 21−p2^{1-p} Which converges iff 1−p<01 - p \lt 0I.e., p>1p > 1.

Theorem 3.9 (Riemann Rearrangement Theorem). If ∑an\sum a_n converges conditionally, then for any L∈RL \in \mathbb{R} (or ±∞\pm\infty), there exists a rearrangement σ:N→N\sigma : \mathbb{N} \to \mathbb{N} such That ∑n=1∞aσ(n)=L\sum_{n=1}^{\infty} a_{\sigma(n)} = L.

Proof (outline). Let P={n:an>0}P = \{n : a_n > 0\} and N={n:an<0}N = \{n : a_n \lt 0\}. Since ∑an\sum a_n converges Conditionally, both ∑n∈Pan=+∞\sum_{n \in P} a_n = +\infty and ∑n∈Nan=−∞\sum_{n \in N} a_n = -\infty.

To achieve sum L∈RL \in \mathbb{R}: take positive terms in order until the partial sum exceeds LL Then take negative terms until it falls below LLThen positive terms again, and so on. Since both The positive and negative subseries diverge, this process can always continue. The terms tend to Zero (since the series converges), so the oscillations around LL shrink to zero. ■\blacksquare

Remark. By contrast, every rearrangement of an absolutely convergent series converges to the same sum.

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

Solution. Apply the ratio test:

lim⁡n→∞an+1an=lim⁡n→∞(n+1)/2n+1n/2n=lim⁡n→∞n+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} \lt 1

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

Worked Example: Determine convergence of $\sum_{n=1}^{\infty} \frac{1}{n^2 + n}$

Solution. Note that 1n2+n=1n(n+1)=1n−1n+1\frac{1}{n^2 + n} = \frac{1}{n(n+1)} = \frac{1}{n} - \frac{1}{n+1}. This is a Telescoping series. The NN-th partial sum is:

SN=∑n=1N(1n−1n+1)=1−1N+1S_N = \sum_{n=1}^{N} \left(\frac{1}{n} - \frac{1}{n+1}\right) = 1 - \frac{1}{N+1}

Therefore lim⁡N→∞SN=1\lim_{N \to \infty} S_N = 1And the series converges to 11. ■\blacksquare

Worked Example: Does $\sum_{n=2}^{\infty} \frac{1}{n \ln n}$ converge?

Solution. Apply the integral test with f(x)=1/(xln⁡x)f(x) = 1/(x \ln x) on [2,∞)[2, \infty). The function is positive, Continuous, and decreasing. Compute:

∫2∞1xln⁡x dx=lim⁡b→∞∫2b1xln⁡x dx=lim⁡b→∞[ln⁡(ln⁡x)]2b=lim⁡b→∞ln⁡(ln⁡b)−ln⁡(ln⁡2)=∞\int_2^{\infty} \frac{1}{x \ln x}\, dx = \lim_{b \to \infty} \int_2^{b} \frac{1}{x \ln x}\, dx = \lim_{b \to \infty} \left[\ln(\ln x)\right]_2^b = \lim_{b \to \infty} \ln(\ln b) - \ln(\ln 2) = \infty

The integral diverges, so by the integral test, the series diverges. ■\blacksquare

Worked Example: Approximate $\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n}$ to within $0.01$

Solution. This is the alternating harmonic series, with an=1/na_n = 1/n. By the alternating series Estimation theorem, ∣S−SN∣≤aN+1=1/(N+1)|S - S_N| \leq a_{N+1} = 1/(N+1). We need 1/(N+1)≤0.011/(N+1) \leq 0.01So N+1≥100N + 1 \geq 100I.e., N≥99N \geq 99.

So S99=∑n=199(−1)n+1nS_{99} = \sum_{n=1}^{99} \frac{(-1)^{n+1}}{n} approximates ln⁡2\ln 2 to within 0.010.01. (The exact sum is ln⁡2≈0.6931\ln 2 \approx 0.6931.) ■\blacksquare

Worked Example: Determine convergence of $\sum_{n=1}^{\infty} \frac{1}{n^2 + 1}$

Solution. Since 1n2+1≤1n2\frac{1}{n^2 + 1} \leq \frac{1}{n^2} for all nnAnd ∑1/n2\sum 1/n^2 converges (pp-series with p=2>1p = 2 > 1), the comparison test implies ∑1n2+1\sum \frac{1}{n^2 + 1} converges. ■\blacksquare

Worked Example: Use the condensation test for $\sum_{n=2}^{\infty} \frac{1}{n (\ln n) (\ln \ln n)}$

Solution. Let an=1n(ln⁡n)(ln⁡ln⁡n)a_n = \frac{1}{n (\ln n)(\ln \ln n)} for n≥3n \geq 3. This is positive and decreasing. By the condensation test, ∑an\sum a_n converges iff ∑2ka2k\sum 2^k a_{2^k} converges. Compute:

2ka2k=2k2k⋅kln⁡2⋅ln⁡(kln⁡2)=1kln⁡2⋅ln⁡(kln⁡2)≈1kln⁡k2^k a_{2^k} = \frac{2^k}{2^k \cdot k \ln 2 \cdot \ln(k \ln 2)} = \frac{1}{k \ln 2 \cdot \ln(k \ln 2)} \approx \frac{1}{k \ln k}

The series ∑1kln⁡k\sum \frac{1}{k \ln k} diverges (integral test, analogous to ∑1nln⁡n\sum \frac{1}{n \ln n}). Therefore ∑an\sum a_n diverges. ■\blacksquare

If you get this wrong, revise: Section 3.5 (Cauchy Condensation Test).

:::caution 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. :::

Let f:D→Rf : D \to \mathbb{R} where D⊆RD \subseteq \mathbb{R}. We say lim⁡x→af(x)=L\lim_{x \to a} f(x) = L if for Every ε>0\varepsilon > 0There exists δ>0\delta > 0 such that

0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε0 \lt |x - a| \lt \delta \implies |f(x) - L| \lt \varepsilon

Definition. ff is continuous at aa if lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a). In epsilon-delta form: For every ε>0\varepsilon > 0There exists δ>0\delta > 0 such that

∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣<ε|x - a| \lt \delta \implies |f(x) - f(a)| \lt \varepsilon

Remark. A function is continuous on a set EE if it is continuous at every point of EE. A function is globally continuous (or “continuous”) if it is continuous on its entire domain.

Definition. ff is discontinuous at aa if it is not continuous at aa. Discontinuities are Classified as:

  • Removable: lim⁡x→af(x)\lim_{x \to a} f(x) exists but does not equal f(a)f(a) (or f(a)f(a) is undefined).
  • Jump: lim⁡x→a−f(x)\lim_{x \to a^-} f(x) and lim⁡x→a+f(x)\lim_{x \to a^+} f(x) both exist but are unequal.
  • Essential (or infinite/oscillatory): At least one one-sided limit does not exist.

Proposition 4.3. Polynomials are continuous on R\mathbb{R}. Rational functions p(x)/q(x)p(x)/q(x) are Continuous wherever q(x)≠0q(x) \neq 0. The functions sin⁡x\sin x, cos⁡x\cos x, exe^x, ln⁡x\ln x are continuous On their domains.

Theorem 4.1 (Algebra of Continuous Functions). If ff and gg are continuous at aaThen f+gf+g f−gf-g, fgfgAnd (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 g∘fg \circ f is continuous at aa.

4.2a Sequential Characterization of Limits and Continuity

Section titled “4.2a Sequential Characterization of Limits and Continuity”

The epsilon-delta definitions can be reformulated in terms of sequences, which is often more Convenient for proofs.

Proposition 4.2a (Sequential Criterion for Limits). lim⁡x→cf(x)=L\lim_{x \to c} f(x) = L if and only if For every sequence (xn)(x_n) with xn→cx_n \to c and xn≠cx_n \neq c for all nnWe have f(xn)→Lf(x_n) \to L.

Proof. (⇒\Rightarrow) Let ε>0\varepsilon > 0. Choose δ>0\delta > 0 from the ε\varepsilon-δ\delta definition. Since xn→cx_n \to cThere exists NN with ∣xn−c∣<δ|x_n - c| \lt \delta for n≥Nn \geq N. Then ∣f(xn)−L∣<ε|f(x_n) - L| \lt \varepsilon for n≥Nn \geq N.

(⇐\Leftarrow) Suppose the ε\varepsilon-δ\delta condition fails. Then there exists ε>0\varepsilon > 0 such That for every n∈Nn \in \mathbb{N}There exists xnx_n with 0<∣xn−c∣<1/n0 \lt |x_n - c| \lt 1/n but ∣f(xn)−L∣≥ε|f(x_n) - L| \geq \varepsilon. Then xn→cx_n \to c but f(xn)↛Lf(x_n) \not\to LContradicting the hypothesis. ■\blacksquare

Corollary 4.2b. ff is continuous at cc if and only if for every sequence (xn)(x_n) with xn→cx_n \to c We have f(xn)→f(c)f(x_n) \to f(c).

This is especially useful for proving that a function is not continuous: find one sequence Converging to cc whose image does not converge to f(c)f(c).

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

Proof. Assume f(a)<y<f(b)f(a) \lt y \lt f(b). Let S={x∈[a,b]:f(x)<y}S = \{x \in [a,b] : f(x) \lt y\}. Since a∈Sa \in S SS is non-empty and bounded above by bb. Let c=sup⁡(S)c = \sup(S). We show f(c)=yf(c) = y.

If f(c)<yf(c) \lt yThen by continuity at ccThere exists δ>0\delta > 0 such that f(x)<yf(x) \lt y for x∈(c−δ,c+δ)x \in (c - \delta, c + \delta). But then c+δ/2∈Sc + \delta/2 \in SContradicting that c=sup⁡(S)c = \sup(S).

If f(c)>yf(c) > yThen by continuity, there exists δ>0\delta > 0 such that f(x)>yf(x) > y for x∈(c−δ,c+δ)x \in (c - \delta, c + \delta). But then c−δ/2c - \delta/2 is an upper bound for SSContradicting That c=sup⁡(S)c = \sup(S).

Therefore f(c)=yf(c) = y. ■\blacksquare

Alternative proof (bisection). Set a0=aa_0 = a, b0=bb_0 = b. Given [an,bn][a_n, b_n] with f(an)<y<f(bn)f(a_n) \lt y \lt f(b_n) Let mn=(an+bn)/2m_n = (a_n + b_n)/2. If f(mn)≥yf(m_n) \geq ySet an+1=ana_{n+1} = a_n, bn+1=mnb_{n+1} = m_n. If f(mn)<yf(m_n) \lt y Set an+1=mna_{n+1} = m_n, bn+1=bnb_{n+1} = b_n. Either way, f(an)<y≤f(bn)f(a_n) \lt y \leq f(b_n) and bn−an=(b−a)/2n→0b_n - a_n = (b-a)/2^n \to 0. By the nested interval property, an→ca_n \to c and bn→cb_n \to c. By continuity, f(c)=lim⁡f(an)≤yf(c) = \lim f(a_n) \leq y And f(c)=lim⁡f(bn)≥yf(c) = \lim f(b_n) \geq ySo f(c)=yf(c) = y. ■\blacksquare

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].

Proof. We first show ff is bounded. Suppose not; then for each n∈Nn \in \mathbb{N}There exists xn∈[a,b]x_n \in [a,b] with ∣f(xn)∣>n|f(x_n)| > n. By Bolzano-Weierstrass, (xn)(x_n) has a convergent subsequence xnk→c∈[a,b]x_{n_k} \to c \in [a,b]. By continuity, f(xnk)→f(c)f(x_{n_k}) \to f(c)So (f(xnk))(f(x_{n_k})) is bounded. But ∣f(xnk)∣>nk→∞|f(x_{n_k})| > n_k \to \inftyA contradiction.

Now we show ff attains its supremum. Let M=sup⁡{f(x):x∈[a,b]}M = \sup\{f(x) : x \in [a,b]\}. For each nnChoose xn∈[a,b]x_n \in [a,b] with f(xn)>M−1/nf(x_n) > M - 1/n. By Bolzano-Weierstrass, (xn)(x_n) has a subsequence xnk→c∈[a,b]x_{n_k} \to c \in [a,b]. By continuity, f(c)=lim⁡f(xnk)f(c) = \lim f(x_{n_k}). Since M−1/nk<f(xnk)≤MM - 1/n_k \lt f(x_{n_k}) \leq M for all kkThe squeeze theorem gives f(c)=Mf(c) = M. The argument for the infimum is similar (consider −f-f). ■\blacksquare

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

∣x−y∣<δ  ⟹  ∣f(x)−f(y)∣<ε|x - y| \lt \delta \implies |f(x) - f(y)| \lt \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].

Proof. Suppose ff is continuous on [a,b][a,b] but not uniformly continuous. Then there exists ε>0\varepsilon > 0 such that for every n∈Nn \in \mathbb{N}There exist xn,yn∈[a,b]x_n, y_n \in [a,b] with ∣xn−yn∣<1/n|x_n - y_n| \lt 1/n but ∣f(xn)−f(yn)∣≥ε|f(x_n) - f(y_n)| \geq \varepsilon.

By the Bolzano-Weierstrass theorem, (xn)(x_n) has a convergent subsequence xnk→c∈[a,b]x_{n_k} \to c \in [a,b]. Since ∣xnk−ynk∣<1/nk→0|x_{n_k} - y_{n_k}| \lt 1/n_k \to 0We have ynk→cy_{n_k} \to c as well.

By continuity of ff at cc: there exists δ>0\delta > 0 such that ∣x−c∣<δ|x - c| \lt \delta implies ∣f(x)−f(c)∣<ε/2|f(x) - f(c)| \lt \varepsilon/2. For kk sufficiently large, ∣xnk−c∣<δ|x_{n_k} - c| \lt \delta and ∣ynk−c∣<δ|y_{n_k} - c| \lt \deltaSo:

∣f(xnk)−f(ynk)∣≤∣f(xnk)−f(c)∣+∣f(ynk)−f(c)∣<ε/2+ε/2=ε|f(x_{n_k}) - f(y_{n_k})| \leq |f(x_{n_k}) - f(c)| + |f(y_{n_k}) - f(c)| \lt \varepsilon/2 + \varepsilon/2 = \varepsilon

Contradicting ∣f(xnk)−f(ynk)∣≥ε|f(x_{n_k}) - f(y_{n_k})| \geq \varepsilon. ■\blacksquare

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

Solution. For x,y≥0x, y \geq 0: ∣x−y∣=∣x−y∣x+y≤∣x−y∣1/2|\sqrt{x} - \sqrt{y}| = \frac{|x - y|}{\sqrt{x} + \sqrt{y}} \leq |x - y|^{1/2}.

Given ε>0\varepsilon > 0Choose δ=ε2\delta = \varepsilon^2. Then ∣x−y∣<δ|x - y| \lt \delta implies ∣x−y∣≤∣x−y∣<δ=ε|\sqrt{x} - \sqrt{y}| \leq \sqrt{|x-y|} \lt \sqrt{\delta} = \varepsilon. Since δ\delta depends Only on ε\varepsilonThe continuity is uniform. ■\blacksquare

Worked Example: $\varepsilon$-$\delta$ proof that $f(x) = 3x - 1$ is continuous at $x = 2$

Solution. We have f(2)=5f(2) = 5. Let ε>0\varepsilon > 0. We need to find δ>0\delta > 0 such that ∣x−2∣<δ|x - 2| \lt \delta implies ∣f(x)−5∣<ε|f(x) - 5| \lt \varepsilon.

Compute: ∣f(x)−5∣=∣(3x−1)−5∣=∣3x−6∣=3∣x−2∣|f(x) - 5| = |(3x - 1) - 5| = |3x - 6| = 3|x - 2|.

Choose δ=ε/3\delta = \varepsilon/3. Then ∣x−2∣<δ|x - 2| \lt \delta implies ∣f(x)−5∣=3∣x−2∣<3⋅ε/3=ε|f(x) - 5| = 3|x - 2| \lt 3 \cdot \varepsilon/3 = \varepsilon. ■\blacksquare

Worked Example: $\varepsilon$-$\delta$ proof that $f(x) = x^2$ is continuous at $x = 3$

Solution. We have f(3)=9f(3) = 9. Let ε>0\varepsilon > 0. Compute:

∣f(x)−9∣=∣x2−9∣=∣x+3∣⋅∣x−3∣|f(x) - 9| = |x^2 - 9| = |x + 3| \cdot |x - 3|

Restrict to δ≤1\delta \leq 1So ∣x−3∣<1|x - 3| \lt 1 means 2<x<42 \lt x \lt 4Giving ∣x+3∣<7|x + 3| \lt 7.

Choose δ=min⁡(1,ε/7)\delta = \min(1, \varepsilon/7). Then ∣x−3∣<δ|x - 3| \lt \delta implies:

∣x2−9∣=∣x+3∣⋅∣x−3∣<7⋅ε7=ε|x^2 - 9| = |x + 3| \cdot |x - 3| \lt 7 \cdot \frac{\varepsilon}{7} = \varepsilon

■\blacksquare

Worked Example: Show $f(x) = 1/x$ is NOT uniformly continuous on $(0, 1)$

Solution. We show the negation of uniform continuity. Take ε=1\varepsilon = 1. For any δ>0\delta > 0 Choose n∈Nn \in \mathbb{N} with 1/n<δ1/n \lt \delta. Set x=1/nx = 1/n and y=1/(2n)y = 1/(2n). Then ∣x−y∣=1/(2n)<1/n<δ|x - y| = 1/(2n) \lt 1/n \lt \deltaBut:

∣f(x)−f(y)∣=∣11/n−11/(2n)∣=∣n−2n∣=n≥1=ε|f(x) - f(y)| = \left|\frac{1}{1/n} - \frac{1}{1/(2n)}\right| = |n - 2n| = n \geq 1 = \varepsilon

So no single δ\delta works for all x,y∈(0,1)x, y \in (0,1). ■\blacksquare

Worked Example: Use the sequential criterion to show $f(x) = \sin(1/x)$ has no limit as $x \to 0$

Solution. Consider the sequences xn=1/(2nπ)x_n = 1/(2n\pi) and yn=1/(2nπ+π/2)y_n = 1/(2n\pi + \pi/2). Both converge to 00. But f(xn)=sin⁡(2nπ)=0f(x_n) = \sin(2n\pi) = 0 and f(yn)=sin⁡(2nπ+π/2)=1f(y_n) = \sin(2n\pi + \pi/2) = 1 for all nn.

So f(xn)→0f(x_n) \to 0 and f(yn)→1f(y_n) \to 1. By the sequential criterion, if lim⁡x→0f(x)\lim_{x \to 0} f(x) existed, Both subsequences would converge to the same limit. Since they don”t, the limit does not exist. ■\blacksquare

Worked Example: Prove $f(x) = x \sin(1/x)$ (with $f(0) = 0$) is continuous everywhere

Solution. For x≠0x \neq 0, ff is a product of continuous functions, hence continuous.

At x=0x = 0: let ε>0\varepsilon > 0. Choose δ=ε\delta = \varepsilon. For ∣x−0∣=∣x∣<δ|x - 0| = |x| \lt \delta:

∣f(x)−f(0)∣=∣xsin⁡(1/x)∣≤∣x∣<δ=ε|f(x) - f(0)| = |x \sin(1/x)| \leq |x| \lt \delta = \varepsilon

So ff is continuous at 00. Since ff extends continuously from (0,1](0, 1] to [0,1][0, 1]The Heine-Cantor Theorem implies ff is uniformly continuous on [0,1][0, 1]. ■\blacksquare

Worked Example: $\varepsilon$-$\delta$ proof that $f(x) = \sin x$ is continuous at every $a \in \mathbb{R}$

Solution. We use the identity ∣sin⁡u−sin⁡v∣≤∣u−v∣|\sin u - \sin v| \leq |u - v| for all u,v∈Ru, v \in \mathbb{R}. (Proof: ∣sin⁡u−sin⁡v∣=2∣cos⁡((u+v)/2)sin⁡((u−v)/2)∣≤2∣sin⁡((u−v)/2)∣≤∣u−v∣|\sin u - \sin v| = 2|\cos((u+v)/2)\sin((u-v)/2)| \leq 2|\sin((u-v)/2)| \leq |u - v| Using ∣sin⁡t∣≤∣t∣|\sin t| \leq |t| and ∣cos⁡∣≤1|\cos| \leq 1.)

Let ε>0\varepsilon > 0 and a∈Ra \in \mathbb{R}. Choose δ=ε\delta = \varepsilon. For ∣x−a∣<δ|x - a| \lt \delta:

∣sin⁡x−sin⁡a∣≤∣x−a∣<δ=ε|\sin x - \sin a| \leq |x - a| \lt \delta = \varepsilon

Since δ=ε\delta = \varepsilon works independently of aa, sin⁡x\sin x is actually uniformly continuous On R\mathbb{R}. The same argument works for cos⁡x\cos x. ■\blacksquare

Worked Example: $\varepsilon$-$\delta$ proof that $f(x) = e^x$ is continuous at every $a \in \mathbb{R}$

Solution. We use the inequality ∣eu−ev∣≤emax⁡(u,v)∣u−v∣|e^u - e^v| \leq e^{\max(u,v)} |u - v|Which follows from the Mean Value Theorem applied to ete^t: eu−ev=eξ(u−v)e^u - e^v = e^\xi (u - v) for some ξ\xi between uu and vv So ∣eu−ev∣=eξ∣u−v∣≤emax⁡(u,v)∣u−v∣|e^u - e^v| = e^\xi |u - v| \leq e^{\max(u,v)} |u - v|.

Let ε>0\varepsilon > 0 and a∈Ra \in \mathbb{R}. Restrict to ∣x−a∣<1|x - a| \lt 1So x<a+1x \lt a + 1 and emax⁡(x,a)≤ea+1e^{\max(x,a)} \leq e^{a+1}. Choose δ=min⁡(1,ε/ea+1)\delta = \min(1, \varepsilon / e^{a+1}). For ∣x−a∣<δ|x - a| \lt \delta:

∣ex−ea∣≤ea+1∣x−a∣<ea+1⋅εea+1=ε|e^x - e^a| \leq e^{a+1} |x - a| \lt e^{a+1} \cdot \frac{\varepsilon}{e^{a+1}} = \varepsilon

■\blacksquare

If you get this wrong, revise: Section 4.2 (Continuity), Section 5.3 (Mean Value Theorem).

:::caution Common Pitfall Continuity on (a,b)(a, b) does not imply uniform continuity. The function f(x)=1/xf(x) = 1/x on (0,1)(0, 1) is Continuous but not uniformly continuous. The Heine-Cantor theorem requires a closed and bounded Interval. Also, a function can be uniformly continuous on an unbounded domain (e.g., f(x)=xf(x) = \sqrt{x} On [0,∞)[0, \infty)) --- boundedness of the domain is sufficient but not necessary. :::

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)=lim⁡h→0f(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 ccThen ff is continuous at cc.

Proof. lim⁡x→c(f(x)−f(c))=lim⁡x→cf(x)−f(c)x−c⋅(x−c)=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)=∣x∣f(x) = |x| is continuous at 00 but not differentiable at 00.

Theorem 5.1. If ff and gg are differentiable at ccThen:

  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. (f∘g)′(c)=f′(g(c))⋅g′(c)(f \circ g)'(c) = f'(g(c)) \cdot g'(c) (Chain Rule)

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.

Proof. By the Extreme Value Theorem, ff attains its maximum MM and minimum mm on [a,b][a,b]. If M=mM = mThen ff is constant and f′(c)=0f'(c) = 0 for all c∈(a,b)c \in (a,b). Otherwise, at least one Of MM or mm is attained at some c∈(a,b)c \in (a,b) (since f(a)=f(b)f(a) = f(b)). By Fermat’s theorem, f′(c)=0f'(c) = 0. ■\blacksquare

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)b−af'(c) = \frac{f(b) - f(a)}{b - a}

Proof. Define g(x)=f(x)−f(b)−f(a)b−a(x−a)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].

Theorem 5.3a (Cauchy’s Mean Value Theorem). If f,g:[a,b]→Rf, g : [a,b] \to \mathbb{R} are 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(b)−f(a))g′(c)=(g(b)−g(a))f′(c)(f(b) - f(a))g'(c) = (g(b) - g(a))f'(c)

Proof. Define h(x)=(f(b)−f(a))g(x)−(g(b)−g(a))f(x)h(x) = (f(b) - f(a))g(x) - (g(b) - g(a))f(x). Then h(a)=h(b)h(a) = h(b)So by Rolle’s Theorem, h′(c)=0h'(c) = 0 for some c∈(a,b)c \in (a,b)Which gives the result. ■\blacksquare

Remark. When g(x)=xg(x) = xCauchy’s MVT reduces to the standard MVT. Cauchy’s MVT is the key Ingredient in the proof of L’Hôpital’s rule.

Corollary 5.6. If ff is differentiable on (a,b)(a,b) and ∣f′(x)∣≤M|f'(x)| \leq M for all x∈(a,b)x \in (a,b) Then ff is Lipschitz continuous with constant MM: ∣f(x)−f(y)∣≤M∣x−y∣|f(x) - f(y)| \leq M|x - y| for all x,y∈(a,b)x, y \in (a,b).

Proof. Apply the MVT to ff on the interval between xx and yy. ■\blacksquare

Theorem 5.6 (Taylor’s Theorem with Lagrange Remainder). If ff is (n+1)(n+1)-times differentiable on An open interval containing aaThen for each xx in that interval:

f(x)=∑k=0nf(k)(a)k!(x−a)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)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x - a)^{n+1}

For some ξ\xi between aa and xx.

Proof. Fix x≠ax \neq a and define

g(t)=f(x)−∑k=0nf(k)(t)k!(x−t)kg(t) = f(x) - \sum_{k=0}^{n} \frac{f^{(k)}(t)}{k!}(x - t)^k

Then g(a)=Rn(x)g(a) = R_n(x) and g(x)=0g(x) = 0. By the generalized Rolle’s theorem (or direct computation Using the Cauchy mean value theorem), there exists ξ\xi between aa and xx with g′(ξ)=0g'( \xi ) = 0. Computing:

g′(t)=−f(n+1)(t)n!(x−t)ng'(t) = -\frac{f^{(n+1)}(t)}{n!}(x - t)^n

Setting g′(ξ)=0g'(\xi) = 0 yields the result after comparing g(a)=Rn(x)g(a) = R_n(x) with the integral form. A Cleaner approach uses the standard MVT applied to gg on [a,x][a, x]. ■\blacksquare

Theorem 5.7 (L’Hôpital’s Rule, 00\frac{0}{0} case). Suppose ff and gg are differentiable on An open interval containing cc (except possibly at cc itself), g′(x)≠0g'(x) \neq 0 near ccAnd lim⁡x→cf(x)=lim⁡x→cg(x)=0\lim_{x \to c} f(x) = \lim_{x \to c} g(x) = 0. If lim⁡x→cf′(x)/g′(x)=L\lim_{x \to c} f'(x)/g'(x) = L exists (as a finite Number or ±∞\pm\infty), then lim⁡x→cf(x)/g(x)=L\lim_{x \to c} f(x)/g(x) = L.

Proof. Extend ff and gg continuously to cc by setting f(c)=g(c)=0f(c) = g(c) = 0. For x≠cx \neq cBy Cauchy’s Mean Value Theorem, there exists ξ\xi strictly between cc and xx such that

f(x)−f(c)g(x)−g(c)=f′(ξ)g′(ξ)\frac{f(x) - f(c)}{g(x) - g(c)} = \frac{f'(\xi)}{g'(\xi)}

I.e., f(x)g(x)=f′(ξ)g′(ξ)\frac{f(x)}{g(x)} = \frac{f'(\xi)}{g'(\xi)}. As x→cx \to cWe have ξ→c\xi \to c (since ξ\xi is trapped between cc and xx). Therefore lim⁡x→cf(x)/g(x)=lim⁡ξ→cf′(ξ)/g′(ξ)=L\lim_{x \to c} f(x)/g(x) = \lim_{\xi \to c} f'(\xi)/g'(\xi) = L. ■\blacksquare

Theorem 5.7b (L’Hôpital’s Rule, ∞∞\frac{\infty}{\infty} case). Suppose ff and gg are Differentiable on (a,b)(a, b) (except possibly at cc), g′(x)≠0g'(x) \neq 0 near ccAnd lim⁡x→c∣f(x)∣=lim⁡x→c∣g(x)∣=∞\lim_{x \to c} |f(x)| = \lim_{x \to c} |g(x)| = \infty. If lim⁡x→cf′(x)/g′(x)=L\lim_{x \to c} f'(x)/g'(x) = L exists, Then lim⁡x→cf(x)/g(x)=L\lim_{x \to c} f(x)/g(x) = L.

Proof (sketch). Fix ε>0\varepsilon > 0. For x,yx, y near cc with x≠yx \neq yBy Cauchy’s MVT:

f(x)−f(y)g(x)−g(y)=f′(ξ)g′(ξ)\frac{f(x) - f(y)}{g(x) - g(y)} = \frac{f'(\xi)}{g'(\xi)}

For some ξ\xi between xx and yy. Since f′(ξ)/g′(ξ)≈Lf'(\xi)/g'(\xi) \approx L for ξ\xi near ccWe have:

f(x)g(x)=f(x)−f(y)g(x)−g(y)⋅1−f(y)/f(x)1−g(y)/g(x)\frac{f(x)}{g(x)} = \frac{f(x) - f(y)}{g(x) - g(y)} \cdot \frac{1 - f(y)/f(x)}{1 - g(y)/g(x)}

Since f(x),g(x)→∞f(x), g(x) \to \inftyBy fixing yy and letting x→cx \to cThe fractions f(y)/f(x)f(y)/f(x) and g(y)/g(x)g(y)/g(x) tend to 00So the second factor tends to 11. The first factor tends to LL by Cauchy’s MVT. Hence f(x)/g(x)→Lf(x)/g(x) \to L. ■\blacksquare

Worked Example: Compute $\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}$

Solution. Both numerator and denominator approach 00 as x→0x \to 0. Applying L’Hôpital’s rule:

lim⁡x→0ex−1−xx2=lim⁡x→0ex−12x\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} = \lim_{x \to 0} \frac{e^x - 1}{2x}

This is still 00\frac{0}{0}So apply L’Hôpital again:

=lim⁡x→0ex2=12= \lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2}

■\blacksquare

Theorem 5.8 (Darboux’s Theorem). If ff is differentiable on [a,b][a, b]Then f′f' has the Intermediate value property: for any yy between f′(a)f'(a) and f′(b)f'(b)There exists c∈(a,b)c \in (a, b) With f′(c)=yf'(c) = y.

Remark. This means derivatives satisfy the intermediate value property even though they need not Be continuous. For example, f(x)=x2sin⁡(1/x)f(x) = x^2 \sin(1/x) (with f(0)=0f(0) = 0) is differentiable everywhere, But f′f' is not continuous at 00.

Proof. Assume without loss of generality that f′(a)<y<f′(b)f'(a) \lt y \lt f'(b). Define g(x)=f(x)−yxg(x) = f(x) - yx. Then gg is differentiable on [a,b][a, b] with

g′(a)=f′(a)−y<0andg′(b)=f′(b)−y>0g'(a) = f'(a) - y \lt 0 \quad \mathrm{and} \quad g'(b) = f'(b) - y > 0

Since g′(a)<0g'(a) \lt 0There exists x1>ax_1 > a with g(x1)<g(a)g(x_1) \lt g(a) (otherwise g(x)≥g(a)g(x) \geq g(a) For xx near aaContradicting g′(a)<0g'(a) \lt 0). Similarly, since g′(b)>0g'(b) > 0There exists x2<bx_2 \lt b with g(x2)<g(b)g(x_2) \lt g(b).

Therefore gg attains its minimum at some c∈(a,b)c \in (a, b). By Fermat’s theorem on interior extrema, g′(c)=0g'(c) = 0So f′(c)=yf'(c) = y. ■\blacksquare

Worked Example: Apply Darboux's theorem to $f(x) = x^2 \sin(1/x)$ ($f(0) = 0$)

Solution. For x≠0x \neq 0: f′(x)=2xsin⁡(1/x)−cos⁡(1/x)f'(x) = 2x \sin(1/x) - \cos(1/x). At x=0x = 0: f′(0)=lim⁡h→0h2sin⁡(1/h)h=lim⁡h→0hsin⁡(1/h)=0f'(0) = \lim_{h \to 0} \frac{h^2 \sin(1/h)}{h} = \lim_{h \to 0} h \sin(1/h) = 0.

So f′(0)=0f'(0) = 0. For any δ>0\delta > 0The term −cos⁡(1/x)-\cos(1/x) oscillates between −1-1 and 11 on (0,δ)(0, \delta)So f′f' takes all values in [−1,1][-1, 1] infinitely often on (0,δ)(0, \delta).

But Darboux’s theorem says f′f' has the intermediate value property. Indeed, f′f' is not continuous At 00 (it oscillates wildly), yet it still satisfies the IVP. This shows that derivatives can be Highly discontinuous while retaining the intermediate value property. ■\blacksquare

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.

Worked Example: Approximate $\sin(0.1)$ with error less than $10^{-10}$

Solution. For f(x)=sin⁡xf(x) = \sin x about a=0a = 0: f(k)(0)∈{0,1,−1}f^{(k)}(0) \in \{0, 1, -1\} and the Taylor Polynomial of degree nn has the form Tn(x)=x−x3/3!+x5/5!−⋯T_n(x) = x - x^3/3! + x^5/5! - \cdots (odd terms only).

The Lagrange remainder is ∣Rn(x)∣=∣f(n+1)(ξ)∣(n+1)!∣x∣n+1≤∣x∣n+1(n+1)!|R_n(x)| = \frac{|f^{(n+1)}(\xi)|}{(n+1)!} |x|^{n+1} \leq \frac{|x|^{n+1}}{(n+1)!} (since ∣f(k)∣≤1|f^{(k)}| \leq 1 for all kk).

We need (0.1)n+1(n+1)!<10−10\frac{(0.1)^{n+1}}{(n+1)!} \lt 10^{-10}. Testing: for n=5n = 5 (0.1)66!=10−6720≈1.39×10−9>10−10\frac{(0.1)^6}{6!} = \frac{10^{-6}}{720} \approx 1.39 \times 10^{-9} \gt 10^{-10}. For n=7n = 7: (0.1)88!=10−840320≈2.48×10−13<10−10\frac{(0.1)^8}{8!} = \frac{10^{-8}}{40320} \approx 2.48 \times 10^{-13} \lt 10^{-10}.

So T7(0.1)=0.1−(0.1)36+(0.1)5120−(0.1)75040T_7(0.1) = 0.1 - \frac{(0.1)^3}{6} + \frac{(0.1)^5}{120} - \frac{(0.1)^7}{5040} =0.1−0.00016667+0.00000083−0.00000000≈0.09983342= 0.1 - 0.00016667 + 0.00000083 - 0.00000000 \approx 0.09983342.

The error is at most 2.48×10−13<10−102.48 \times 10^{-13} \lt 10^{-10}. ■\blacksquare

Worked Example: Find the Maclaurin series for $\ln(1 + x)$ and its radius of convergence

Solution. For f(x)=ln⁡(1+x)f(x) = \ln(1+x): f(0)=0f(0) = 0, f′(x)=1/(1+x)f'(x) = 1/(1+x), f′′(x)=−1/(1+x)2f''(x) = -1/(1+x)^2 f(k)(x)=(−1)k−1(k−1)!/(1+x)kf^{(k)}(x) = (-1)^{k-1}(k-1)!/(1+x)^k for k≥1k \geq 1. So f(k)(0)=(−1)k−1(k−1)!f^{(k)}(0) = (-1)^{k-1}(k-1)!.

ln⁡(1+x)=∑k=1∞(−1)k−1(k−1)!k!xk=∑k=1∞(−1)k−1kxk\ln(1+x) = \sum_{k=1}^{\infty} \frac{(-1)^{k-1}(k-1)!}{k!} x^k = \sum_{k=1}^{\infty} \frac{(-1)^{k-1}}{k} x^k

By the ratio test: lim⁡k→∞∣ak+1/ak∣=lim⁡k→∞kk+1∣x∣=∣x∣\lim_{k \to \infty} |a_{k+1}/a_k| = \lim_{k \to \infty} \frac{k}{k+1} |x| = |x|. The series converges for ∣x∣<1|x| \lt 1 and diverges for ∣x∣>1|x| > 1. At x=1x = 1 we get the alternating Harmonic series (converges to ln⁡2\ln 2). At x=−1x = -1 we get the negative harmonic series (diverges).

The radius of convergence is R=1R = 1 and the interval of convergence is (−1,1](-1, 1]. ■\blacksquare

Worked Example: Compute the Taylor expansion of $\cos x$ about $a = \pi/3$ with remainder bound

Solution. Compute derivatives: f(x)=cos⁡xf(x) = \cos x, f′(x)=−sin⁡xf'(x) = -\sin x, f′′(x)=−cos⁡xf''(x) = -\cos x, f′′′(x)=sin⁡xf'''(x) = \sin x f(4)(x)=cos⁡xf^{(4)}(x) = \cos x. Evaluated at a=π/3a = \pi/3:

f(π/3)=1/2f(\pi/3) = 1/2, f′(π/3)=−3/2f'(\pi/3) = -\sqrt{3}/2, f′′(π/3)=−1/2f''(\pi/3) = -1/2, f′′′(π/3)=3/2f'''(\pi/3) = \sqrt{3}/2.

The third-degree Taylor polynomial is:

T3(x)=12−32(x−π3)−14(x−π3)2+312(x−π3)3T_3(x) = \frac{1}{2} - \frac{\sqrt{3}}{2}\left(x - \frac{\pi}{3}\right) - \frac{1}{4}\left(x - \frac{\pi}{3}\right)^2 + \frac{\sqrt{3}}{12}\left(x - \frac{\pi}{3}\right)^3

The remainder satisfies ∣R3(x)∣≤∣x−π/3∣424|R_3(x)| \leq \frac{|x - \pi/3|^4}{24} (since ∣f(4)(ξ)∣=∣cos⁡ξ∣≤1|f^{(4)}(\xi)| = |\cos \xi| \leq 1).

For example, at x=1x = 1: ∣R3(1)∣≤∣1−π/3∣424≈0.0472424≈2.1×10−7|R_3(1)| \leq \frac{|1 - \pi/3|^4}{24} \approx \frac{0.0472^4}{24} \approx 2.1 \times 10^{-7}. ■\blacksquare

:::caution Common Pitfall L’Hôpital’s rule only applies to indeterminate forms 00\frac{0}{0} and ∞∞\frac{\infty}{\infty}. Applying it to forms like 10\frac{1}{0} or ∞1\frac{\infty}{1} will give incorrect results. Always Verify the indeterminate form before applying the rule. Also, L’Hôpital’s rule requires that the Limit of the quotient of derivatives exists; if it does not exist (oscillates), the original limit May still exist. :::

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 \lt x_1 \lt \cdots \lt 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∈[xi−1,xi]}M_i = \sup\{f(x) : x \in [x_{i-1}, x_i]\}, mi=inf⁡{f(x):x∈[xi−1,xi]}m_i = \inf\{f(x) : x \in [x_{i-1}, x_i]\}And Δxi=xi−xi−1\Delta x_i = x_i - x_{i-1}.

The mesh of PP is ∥P∥=max⁡1≤i≤nΔxi\|P\| = \max_{1 \leq i \leq n} \Delta x_i.

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

∫ab‾f(x) dx=∫ab‾f(x) dx\overline{\int_a^b} f(x)\, dx = \underline{\int_a^b} f(x)\, dx

Where ∫ab‾f=inf⁡{U(f,P):P is a partition}\overline{\int_a^b} f = \inf\{U(f,P) : P \mathrm{\ is\ a\ partition}\} and ∫ab‾f=sup⁡{L(f,P):P is a partition}\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.

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 > 0There exists a partition PP such that

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

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

Proof. Let ff be continuous on [a,b][a,b]. By the Heine-Cantor theorem, ff is uniformly continuous. Given ε>0\varepsilon > 0Choose δ>0\delta > 0 such that ∣x−y∣<δ|x - y| \lt \delta implies ∣f(x)−f(y)∣<ε/(b−a)|f(x) - f(y)| \lt \varepsilon/(b-a).

Let PP be any partition with ∥P∥<δ\|P\| \lt \delta. On each subinterval [xi−1,xi][x_{i-1}, x_i]By the Extreme Value Theorem, ff attains its maximum MiM_i and minimum mim_i. By uniform continuity: Mi−mi<ε/(b−a)M_i - m_i \lt \varepsilon/(b-a). Therefore:

U(f,P)−L(f,P)=∑i=1n(Mi−mi)Δxi<εb−a∑i=1nΔxi=εU(f,P) - L(f,P) = \sum_{i=1}^{n}(M_i - m_i)\Delta x_i \lt \frac{\varepsilon}{b-a} \sum_{i=1}^{n} \Delta x_i = \varepsilon

By the Riemann integrability criterion, ff is integrable. ■\blacksquare

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

Proof. Assume ff is increasing (the decreasing case is analogous). Given ε>0\varepsilon > 0Let PnP_n be the uniform partition with nn subintervals of length (b−a)/n(b-a)/n. On [xi−1,xi][x_{i-1}, x_i]: Mi=f(xi)M_i = f(x_i) and mi=f(xi−1)m_i = f(x_{i-1}). Then:

U(f,Pn)−L(f,Pn)=∑i=1n[f(xi)−f(xi−1)]⋅b−an=[f(b)−f(a)]⋅b−anU(f, P_n) - L(f, P_n) = \sum_{i=1}^{n} [f(x_i) - f(x_{i-1})] \cdot \frac{b-a}{n} = [f(b) - f(a)] \cdot \frac{b-a}{n}

Choose nn large enough that [f(b)−f(a)](b−a)/n<ε[f(b) - f(a)](b-a)/n \lt \varepsilon. ■\blacksquare

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

Proof (sketch). Let ff have discontinuities at d1,…,dm∈[a,b]d_1, \ldots, d_m \in [a,b]. Given ε>0\varepsilon > 0 Enclose each djd_j in a small interval IjI_j of total length ε/(2M)\varepsilon/(2M)Where M=sup⁡[a,b]∣f∣M = \sup_{[a,b]} |f|. On the remaining set (a finite union of closed intervals), ff is continuous, Hence uniformly continuous. Choose a partition fine enough that the oscillation of ff on each Subinterval outside the IjI_j is less than ε/(2(b−a))\varepsilon/(2(b-a)). Then:

U(f,P)−L(f,P)≤ε2(b−a)⋅(b−a)+2M⋅ε2M=εU(f, P) - L(f, P) \leq \frac{\varepsilon}{2(b-a)} \cdot (b - a) + 2M \cdot \frac{\varepsilon}{2M} = \varepsilon

■\blacksquare

Proposition 6.4a. The set of Riemann integrable functions on [a,b][a,b] forms a vector space, and If ff and gg are integrable, then so are ∣f∣|f|, f2f^2And max⁡(f,g)\max(f, g).

Theorem 6.4b (Lebesgue’s Criterion for Riemann Integrability). A bounded function f:[a,b]→Rf : [a,b] \to \mathbb{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)=1f(x) = 1 for x∈Qx \in \mathbb{Q} and f(x)=0f(x) = 0 for x∉Qx \notin \mathbb{Q} is discontinuous everywhere (set of discontinuities = [a,b][a,b]Measure >0> 0), hence not integrable.
  • Thomae’s function f(x)=1/qf(x) = 1/q if x=p/qx = p/q in lowest terms, and f(x)=0f(x) = 0 if xx is irrational, is continuous at every irrational and discontinuous at every rational. Since Q\mathbb{Q} is countable (measure zero), Thomae’s function is Riemann integrable, with ∫01f=0\int_0^1 f = 0.

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 ∫abf≤∫abg\int_a^b f \leq \int_a^b g.

Theorem 6.7 (Triangle Inequality). ∣∫abf∣≤∫ab∣f∣\left|\int_a^b f\right| \leq \int_a^b |f|.

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. Let h>0h > 0 (the case h<0h \lt 0 is similar). By the Mean Value Theorem for Integrals (which follows from the EVT), there exists ξ∈[x,x+h]\xi \in [x, x+h] such that

F(x+h)−F(x)h=1h∫xx+hf(t) dt=f(ξ)\frac{F(x+h) - F(x)}{h} = \frac{1}{h}\int_x^{x+h} f(t)\, dt = f(\xi)

As h→0+h \to 0^+We have ξ→x+\xi \to x^+ (since ξ∈[x,x+h]\xi \in [x, x+h]). By continuity of ff f(ξ)→f(x)f(\xi) \to f(x). Hence F+′(x)=f(x)F'_+(x) = f(x). A similar argument gives F−′(x)=f(x)F'_-(x) = 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)

Proof. Let P={x0,…,xn}P = \{x_0, \ldots, x_n\} be any partition of [a,b][a,b]. By the Mean Value Theorem, For each ii there exists ξi∈[xi−1,xi]\xi_i \in [x_{i-1}, x_i] with F(xi)−F(xi−1)=f(ξi)ΔxiF(x_i) - F(x_{i-1}) = f(\xi_i)\Delta x_i. Summing:

F(b)−F(a)=∑i=1n[F(xi)−F(xi−1)]=∑i=1nf(ξi)ΔxiF(b) - F(a) = \sum_{i=1}^{n} [F(x_i) - F(x_{i-1})] = \sum_{i=1}^{n} f(\xi_i) \Delta x_i

The right-hand side is a Riemann sum for ∫abf\int_a^b f. As ∥P∥→0\|P\| \to 0This converges to the Integral. Hence F(b)−F(a)=∫abf(x) dxF(b) - F(a) = \int_a^b f(x)\, dx. ■\blacksquare

Problem. Compute ∫01x2 dx\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 [xi−1,xi]=[(i−1)/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=((i−1)/n)2m_i = ((i-1)/n)^2.

U(f,Pn)=∑i=1ni2n2⋅1n=1n3∑i=1ni2=1n3⋅n(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 n→∞n \to \infty: lim⁡n→∞U(f,Pn)=lim⁡n→∞(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 ∫01x2 dx=1/3\int_0^1 x^2\, dx = 1/3. ■\blacksquare

Worked Example: Compute $\int_0^1 \sqrt{x}\, dx$ from the definition

Solution. Let Pn={0,1/n,2/n,…,1}P_n = \{0, 1/n, 2/n, \ldots, 1\}. On [(i−1)/n,i/n][(i-1)/n, i/n], f(x)=xf(x) = \sqrt{x} has Mi=i/nM_i = \sqrt{i/n} and mi=(i−1)/nm_i = \sqrt{(i-1)/n}.

U(f,Pn)=∑i=1nin⋅1n=1n3/2∑i=1niU(f, P_n) = \sum_{i=1}^{n} \sqrt{\frac{i}{n}} \cdot \frac{1}{n} = \frac{1}{n^{3/2}} \sum_{i=1}^{n} \sqrt{i}

Using ∑i=1ni=23n3/2+O(n1/2)\sum_{i=1}^{n} \sqrt{i} = \frac{2}{3} n^{3/2} + O(n^{1/2}) (obtained from comparing with ∫0nx dx\int_0^n \sqrt{x}\, dx):

lim⁡n→∞U(f,Pn)=lim⁡n→∞1n3/2⋅23n3/2=23\lim_{n \to \infty} U(f, P_n) = \lim_{n \to \infty} \frac{1}{n^{3/2}} \cdot \frac{2}{3}n^{3/2} = \frac{2}{3}

Similarly L(f,Pn)→2/3L(f, P_n) \to 2/3Confirming ∫01x dx=2/3\int_0^1 \sqrt{x}\, dx = 2/3. ■\blacksquare

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 ff is Riemann integrable on [a,b][a, b] for every b>ab > aDefine:

∫a∞f(x) dx=lim⁡b→∞∫abf(x) dx\int_a^{\infty} f(x)\, dx = \lim_{b \to \infty} \int_a^b f(x)\, dx

The integral converges if this limit exists as a finite number; otherwise it diverges.

Type II (Unbounded Integrands). If ff is unbounded near aa but integrable on [c,b][c, b] for every c∈(a,b]c \in (a, b]:

∫abf(x) dx=lim⁡c→a+∫cbf(x) dx\int_a^b f(x)\, dx = \lim_{c \to a^+} \int_c^b f(x)\, dx

Theorem 6.10 (Comparison Test for Improper Integrals). If 0≤f(x)≤g(x)0 \leq f(x) \leq g(x) for x≥ax \geq a:

  • If ∫a∞g\int_a^{\infty} g converges, then ∫a∞f\int_a^{\infty} f converges.
  • If ∫a∞f\int_a^{\infty} f diverges, then ∫a∞g\int_a^{\infty} g diverges.

Theorem 6.11 (Absolute Convergence). If ∫a∞∣f(x)∣ dx\int_a^{\infty} |f(x)|\, dx converges, then ∫a∞f(x) dx\int_a^{\infty} f(x)\, dx converges.

Theorem 6.12 (pp-Test for Improper Integrals).

  • Type I: ∫1∞1xp dx\int_1^{\infty} \frac{1}{x^p}\, dx converges if and only if p>1p > 1.
  • Type II: ∫011xp dx\int_0^1 \frac{1}{x^p}\, dx converges if and only if p<1p < 1.

Proof. For Type I with p≠1p \neq 1:

∫1∞x−p dx=lim⁡b→∞[x1−p1−p]1b=lim⁡b→∞b1−p−11−p\int_1^{\infty} x^{-p}\, dx = \lim_{b \to \infty} \left[\frac{x^{1-p}}{1-p}\right]_1^b = \lim_{b \to \infty} \frac{b^{1-p} - 1}{1-p}

This converges when 1−p<01 - p < 0I.e., p>1p > 1. For p=1p = 1: ∫1∞1/x dx=lim⁡b→∞ln⁡b=∞\int_1^{\infty} 1/x\, dx = \lim_{b \to \infty} \ln b = \infty.

For Type II: ∫01x−p dx=lim⁡c→0+1−c1−p1−p\int_0^1 x^{-p}\, dx = \lim_{c \to 0^+} \frac{1 - c^{1-p}}{1-p}. This converges when 1−p>01 - p > 0I.e., p<1p < 1. ■\blacksquare

Remark. The pp-test for Type I integrals mirrors the pp-series test: ∑1/np\sum 1/n^p converges Iff p>1p > 1. This is not a coincidence --- the integral test establishes the connection.

Worked Example: Evaluate $\int_0^{\infty} e^{-x}\, dx$

Solution. This is a Type I improper integral:

∫0∞e−x dx=lim⁡b→∞∫0be−x dx=lim⁡b→∞[−e−x]0b=lim⁡b→∞(−e−b+1)=1\int_0^{\infty} e^{-x}\, dx = \lim_{b \to \infty} \int_0^b e^{-x}\, dx = \lim_{b \to \infty} \left[-e^{-x}\right]_0^b = \lim_{b \to \infty} (-e^{-b} + 1) = 1

So the integral converges to 11. ■\blacksquare

Worked Example: Does $\int_1^{\infty} \frac{\sin x}{x}\, dx$ converge?

Solution. The integral ∫1∞∣sin⁡xx∣ dx\int_1^{\infty} \left|\frac{\sin x}{x}\right|\, dx diverges (compare with ∫1∞∣sin⁡x∣x dx≥∑k=1∞∫kπ(k+1)π∣sin⁡x∣x dx≥∑k=1∞2(k+1)π\int_1^{\infty} \frac{|\sin x|}{x}\, dx \geq \sum_{k=1}^{\infty} \int_{k\pi}^{(k+1)\pi} \frac{|\sin x|}{x}\, dx \geq \sum_{k=1}^{\infty} \frac{2}{(k+1)\pi}, which diverges by comparison with the harmonic series).

However, ∫1∞sin⁡xx dx\int_1^{\infty} \frac{\sin x}{x}\, dx converges by Dirichlet’s test for integrals. Let F(b)=∫1bsin⁡x dx=cos⁡1−cos⁡bF(b) = \int_1^b \sin x\, dx = \cos 1 - \cos bWhich is bounded by ∣cos⁡1−cos⁡b∣≤2|\cos 1 - \cos b| \leq 2. Since 1/x1/x decreases to 00By integration by parts:

∫1bsin⁡xx dx=−cos⁡xx∣1b−∫1bcos⁡xx2 dx\int_1^b \frac{\sin x}{x}\, dx = \frac{-\cos x}{x}\bigg|_1^b - \int_1^b \frac{\cos x}{x^2}\, dx

As b→∞b \to \inftyThe boundary term cos⁡b/b→0\cos b / b \to 0 and ∫1∞∣cos⁡x∣x2 dx≤∫1∞1x2 dx=1\int_1^{\infty} \frac{|\cos x|}{x^2}\, dx \leq \int_1^{\infty} \frac{1}{x^2}\, dx = 1, so the improper integral converges (conditionally). ■\blacksquare

Worked Example: Evaluate $\int_0^1 \frac{1}{\sqrt{x}}\, dx$ (Type II improper integral)

Solution. The integrand f(x)=1/xf(x) = 1/\sqrt{x} is unbounded as x→0+x \to 0^+. Compute:

∫011x dx=lim⁡c→0+∫c1x−1/2 dx=lim⁡c→0+[2x]c1=lim⁡c→0+(2−2c)=2\int_0^1 \frac{1}{\sqrt{x}}\, dx = \lim_{c \to 0^+} \int_c^1 x^{-1/2}\, dx = \lim_{c \to 0^+} \left[2\sqrt{x}\right]_c^1 = \lim_{c \to 0^+} (2 - 2\sqrt{c}) = 2

The improper integral converges to 22. Note that ∫01x−p dx\int_0^1 x^{-p}\, dx converges for p<1p \lt 1 and Diverges for p≥1p \geq 1. ■\blacksquare

Worked Example: Determine convergence of $\int_1^{\infty} \frac{1}{x^p}\, dx$ for various $p$

Solution. By the pp-test (Theorem 6.12): ∫1∞x−p dx\int_1^{\infty} x^{-p}\, dx converges iff p>1p > 1.

Specifically:

  • p=2p = 2: ∫1∞1/x2 dx=lim⁡b→∞[−1/x]1b=0−(−1)=1\int_1^{\infty} 1/x^2\, dx = \lim_{b \to \infty} [-1/x]_1^b = 0 - (-1) = 1. Converges.
  • p=1p = 1: ∫1∞1/x dx=lim⁡b→∞ln⁡b=∞\int_1^{\infty} 1/x\, dx = \lim_{b \to \infty} \ln b = \infty. Diverges.
  • p=1/2p = 1/2: ∫1∞1/x dx=lim⁡b→∞[2x]1b=∞\int_1^{\infty} 1/\sqrt{x}\, dx = \lim_{b \to \infty} [2\sqrt{x}]_1^b = \infty. Diverges.

This mirrors the pp-series test: ∑1/np\sum 1/n^p converges iff p>1p > 1. ■\blacksquare

Worked Example: Evaluate $\int_0^{\infty} x e^{-x}\, dx$

Solution. This integral requires both a Type I and Type II limit:

∫0∞xe−x dx=lim⁡a→0+lim⁡b→∞∫abxe−x dx\int_0^{\infty} x e^{-x}\, dx = \lim_{a \to 0^+} \lim_{b \to \infty} \int_a^b x e^{-x}\, dx

Integrate by parts with u=xu = x, dv=e−x dxdv = e^{-x}\, dxSo du=dxdu = dx, v=−e−xv = -e^{-x}:

∫xe−x dx=−xe−x+∫e−x dx=−xe−x−e−x=−(x+1)e−x\int x e^{-x}\, dx = -xe^{-x} + \int e^{-x}\, dx = -xe^{-x} - e^{-x} = -(x+1)e^{-x}

Evaluating: lim⁡b→∞[−(b+1)e−b]−lim⁡a→0+[−(a+1)e−a]=0−(−1)=1\lim_{b \to \infty} [-(b+1)e^{-b}] - \lim_{a \to 0^+} [-(a+1)e^{-a}] = 0 - (-1) = 1.

So ∫0∞xe−x dx=1\int_0^{\infty} x e^{-x}\, dx = 1. This equals Γ(2)=1!=1\Gamma(2) = 1! = 1. ■\blacksquare

:::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. :::

Let (fn)(f_n) be a sequence of functions defined on a set E⊆RE \subseteq \mathbb{R}.

Definition. (fn)(f_n) converges pointwise to ff on EE if for every x∈Ex \in E and every ε>0\varepsilon > 0There exists N∈NN \in \mathbb{N} (depending on both xx and ε\varepsilon) such that ∣fn(x)−f(x)∣<ε|f_n(x) - f(x)| \lt \varepsilon for all n≥Nn \geq N.

Example. Let fn(x)=xnf_n(x) = x^n on E=[0,1]E = [0, 1]. For each x∈[0,1)x \in [0, 1), fn(x)=xn→0f_n(x) = x^n \to 0And fn(1)=1f_n(1) = 1 for all nn. So fnf_n converges pointwise to

f(x)={0if 0≤x<11if x=1f(x) = \begin{cases} 0 & \mathrm{if\ } 0 \leq x \lt 1 \\ 1 & \mathrm{if\ } x = 1 \end{cases}

Note that each fnf_n is continuous, but the pointwise limit ff is not continuous at x=1x = 1.

Definition. (fn)(f_n) converges uniformly to ff on EE if for every ε>0\varepsilon > 0There Exists N∈NN \in \mathbb{N} (depending only on ε\varepsilonNot on xx) such that for all x∈Ex \in E:

∣fn(x)−f(x)∣<εfor all n≥N|f_n(x) - f(x)| \lt \varepsilon \quad \mathrm{for\ all\ } n \geq N

Equivalently, sup⁡x∈E∣fn(x)−f(x)∣→0\sup_{x \in E} |f_n(x) - f(x)| \to 0 as n→∞n \to \infty.

Proposition 7.1. Uniform convergence implies pointwise convergence. The converse is false.

Example (continued). fn(x)=xnf_n(x) = x^n on [0,1][0, 1] converges pointwise but not uniformly. We have sup⁡x∈[0,1]∣fn(x)−f(x)∣=sup⁡x∈[0,1)xn=1\sup_{x \in [0,1]} |f_n(x) - f(x)| = \sup_{x \in [0,1)} x^n = 1 for all nn (since the supremum is Approached as x→1−x \to 1^-). This does not tend to 00.

However, on [0,r][0, r] for any r<1r \lt 1: sup⁡x∈[0,r]∣xn∣=rn→0\sup_{x \in [0,r]} |x^n| = r^n \to 0So the convergence Is uniform on [0,r][0, r].

Theorem 7.1 (Weierstrass M-Test). Let (fn)(f_n) be a sequence of functions on EE. If there exists a Sequence (Mn)(M_n) of non-negative real numbers such that ∣fn(x)∣≤Mn|f_n(x)| \leq M_n for all x∈Ex \in E and all nnAnd ∑n=1∞Mn<∞\sum_{n=1}^{\infty} M_n \lt \inftyThen ∑n=1∞fn\sum_{n=1}^{\infty} f_n converges uniformly on EE.

Proof. Let Sn(x)=∑k=1nfk(x)S_n(x) = \sum_{k=1}^{n} f_k(x) and Tn=∑k=1nMkT_n = \sum_{k=1}^{n} M_k. Since ∑Mk\sum M_k converges, (Tn)(T_n) is a Cauchy sequence. Given ε>0\varepsilon > 0There exists NN such that for m>n≥Nm > n \geq N:

Tm−Tn=∑k=n+1mMk<εT_m - T_n = \sum_{k=n+1}^{m} M_k \lt \varepsilon

Then for all x∈Ex \in E and m>n≥Nm > n \geq N:

∣Sm(x)−Sn(x)∣=∣∑k=n+1mfk(x)∣≤∑k=n+1m∣fk(x)∣≤∑k=n+1mMk<ε|S_m(x) - S_n(x)| = \left|\sum_{k=n+1}^{m} f_k(x)\right| \leq \sum_{k=n+1}^{m} |f_k(x)| \leq \sum_{k=n+1}^{m} M_k \lt \varepsilon

So the partial sums (Sn)(S_n) satisfy the uniform Cauchy criterion on EEHence converge uniformly. ■\blacksquare

Theorem 7.2. If (fn)(f_n) is a sequence of continuous functions on EE converging uniformly to ff On EEThen ff is continuous on EE.

Proof. Let c∈Ec \in E and ε>0\varepsilon > 0. Since fn→ff_n \to f uniformly, choose NN such that ∣fN(x)−f(x)∣<ε/3|f_N(x) - f(x)| \lt \varepsilon/3 for all x∈Ex \in E. Since fNf_N is continuous at ccChoose δ>0\delta > 0 such that ∣x−c∣<δ|x - c| \lt \delta implies ∣fN(x)−fN(c)∣<ε/3|f_N(x) - f_N(c)| \lt \varepsilon/3. Then:

∣f(x)−f(c)∣≤∣f(x)−fN(x)∣+∣fN(x)−fN(c)∣+∣fN(c)−f(c)∣<ε3+ε3+ε3=ε|f(x) - f(c)| \leq |f(x) - f_N(x)| + |f_N(x) - f_N(c)| + |f_N(c) - f(c)| \lt \frac{\varepsilon}{3} + \frac{\varepsilon}{3} + \frac{\varepsilon}{3} = \varepsilon

■\blacksquare

Theorem 7.3. If (fn)(f_n) is a sequence of Riemann integrable functions on [a,b][a, b] converging Uniformly to ff on [a,b][a, b]Then ff is Riemann integrable and

lim⁡n→∞∫abfn(x) dx=∫abf(x) dx\lim_{n \to \infty} \int_a^b f_n(x)\, dx = \int_a^b f(x)\, dx

Proof. Since (fn)(f_n) converges uniformly, ff is the uniform limit of integrable functions. Given ε>0\varepsilon > 0Choose NN with sup⁡∣fN(x)−f(x)∣<ε/(2(b−a))\sup |f_N(x) - f(x)| \lt \varepsilon/(2(b-a)) for all x∈[a,b]x \in [a, b]. Then fN−ε/(2(b−a))≤f(x)≤fN(x)+ε/(2(b−a))f_N - \varepsilon/(2(b-a)) \leq f(x) \leq f_N(x) + \varepsilon/(2(b-a)) for all xxAnd by Integrability of fNf_N:

∫abfN−ε2≤∫ab‾f≤∫ab‾f≤∫abfN+ε2\int_a^b f_N - \frac{\varepsilon}{2} \leq \underline{\int_a^b} f \leq \overline{\int_a^b} f \leq \int_a^b f_N + \frac{\varepsilon}{2}

So ∫‾f−∫‾f≤ε\overline{\int} f - \underline{\int} f \leq \varepsilonProving ff is integrable. For the limit:

∣∫abfn−∫abf∣≤∫ab∣fn−f∣≤(b−a)⋅sup⁡[a,b]∣fn−f∣→0\left|\int_a^b f_n - \int_a^b f\right| \leq \int_a^b |f_n - f| \leq (b-a) \cdot \sup_{[a,b]} |f_n - f| \to 0

■\blacksquare

7.6 Uniform Convergence and Differentiation

Section titled “7.6 Uniform Convergence and Differentiation”

Uniform convergence of functions does not guarantee convergence of derivatives. A stronger Hypothesis is needed.

Theorem 7.4. Suppose (fn)(f_n) is a sequence of differentiable functions on [a,b][a, b] such that:

  1. (fn(c))(f_n(c)) converges for some c∈[a,b]c \in [a, b]
  2. (fn′)(f_n') converges uniformly on [a,b][a, b]

Then (fn)(f_n) converges uniformly to a differentiable function ff on [a,b][a, b]And f′(x)=lim⁡n→∞fn′(x)f'(x) = \lim_{n \to \infty} f_n'(x).

Proof. Let g=lim⁡fn′g = \lim f_n' (uniform limit). Define f(x)=lim⁡n→∞[fn(c)+∫cxfn′(t) dt]f(x) = \lim_{n \to \infty} \left[f_n(c) + \int_c^x f_n'(t)\, dt\right]. By Theorem 7.3, ∫cxfn′(t) dt→∫cxg(t) dt\int_c^x f_n'(t)\, dt \to \int_c^x g(t)\, dtSo f(x)=f(c)+∫cxg(t) dtf(x) = f(c) + \int_c^x g(t)\, dt. By FTC Part 1, ff is differentiable and f′(x)=g(x)f'(x) = g(x). Uniform convergence of fnf_n to ff follows From the estimate ∣fn(x)−f(x)∣≤∣fn(c)−f(c)∣+∫ab∣fn′(t)−g(t)∣ dt|f_n(x) - f(x)| \leq |f_n(c) - f(c)| + \int_a^b |f_n'(t) - g(t)|\, dt. ■\blacksquare

A power series centered at aa is a series of the form ∑n=0∞cn(x−a)n\sum_{n=0}^{\infty} c_n (x - a)^n.

Theorem 7.5 (Radius of Convergence). Every power series ∑cn(x−a)n\sum c_n (x - a)^n has a radius of Convergence R∈[0,∞]R \in [0, \infty] such that:

  • The series converges absolutely for ∣x−a∣<R|x - a| \lt R
  • The series diverges for ∣x−a∣>R|x - a| > R
  • The behavior at ∣x−a∣=R|x - a| = R must be checked separately

The radius is given by 1/R=lim sup⁡n→∞∣cn∣n1/R = \limsup_{n \to \infty} \sqrt[n]{|c_n|} (Cauchy-Hadamard formula), or When the limit exists, R=lim⁡n→∞∣cn/cn+1∣R = \lim_{n \to \infty} |c_n/c_{n+1}|.

Proof. Apply the root test to ∑∣cn(x−a)n∣\sum |c_n (x-a)^n|: lim sup⁡∣cn∣n∣x−a∣=∣x−a∣/R\limsup \sqrt[n]{|c_n|} |x-a| = |x-a|/R (where 1/R=lim sup⁡∣cn∣n1/R = \limsup \sqrt[n]{|c_n|}). The root test gives convergence when ∣x−a∣/R<1|x-a|/R \lt 1 And divergence when ∣x−a∣/R>1|x-a|/R > 1. ■\blacksquare

Theorem 7.6. A power series converges uniformly on every compact subset of its open disk of Convergence.

Theorem 7.6a (Differentiation and Integration of Power Series). If f(x)=∑n=0∞cn(x−a)nf(x) = \sum_{n=0}^{\infty} c_n (x-a)^n Has radius of convergence R>0R > 0Then:

  1. ff is differentiable on (a−R,a+R)(a - R, a + R) and f′(x)=∑n=1∞ncn(x−a)n−1f'(x) = \sum_{n=1}^{\infty} n c_n (x - a)^{n-1} (same RR).
  2. ff is infinitely differentiable on (a−R,a+R)(a - R, a + R)And f(k)(x)=∑n=k∞n!(n−k)!cn(x−a)n−kf^{(k)}(x) = \sum_{n=k}^{\infty} \frac{n!}{(n-k)!} c_n (x - a)^{n-k}.
  3. ∫axf(t) dt=∑n=0∞cnn+1(x−a)n+1\int_a^x f(t)\, dt = \sum_{n=0}^{\infty} \frac{c_n}{n+1}(x - a)^{n+1} for ∣x−a∣<R|x - a| \lt R.
  4. cn=f(n)(a)/n!c_n = f^{(n)}(a)/n! (uniqueness of power series coefficients).

Proof. The differentiated series ∑ncn(x−a)n−1\sum n c_n (x-a)^{n-1} has the same radius of convergence as The original (by the Cauchy-Hadamard formula, since nn→1\sqrt[n]{n} \to 1). By Theorem 7.4, the Derivative of the sum equals the sum of the derivatives. Parts (2), (3), and (4) follow by Induction and the FTC. ■\blacksquare

Theorem 7.6b (Abel’s Theorem). If ∑n=0∞cn\sum_{n=0}^{\infty} c_n converges to LLThen

lim⁡x→1−∑n=0∞cnxn=L\lim_{x \to 1^-} \sum_{n=0}^{\infty} c_n x^n = L

That is, the power series is continuous from the left at the endpoint x=1x = 1.

Proof (sketch). Let sn=∑k=0ncks_n = \sum_{k=0}^{n} c_k and sn→Ls_n \to L. Write the partial sum ∑k=0nckxk=∑k=0n(sk−sk−1)xk\sum_{k=0}^{n} c_k x^k = \sum_{k=0}^{n}(s_k - s_{k-1})x^k (with s−1=0s_{-1} = 0) and use summation by Parts to express this as snxn+∑k=0n−1sk(xk−xk+1)s_n x^n + \sum_{k=0}^{n-1} s_k(x^k - x^{k+1}). Letting n→∞n \to \infty and using That sn→Ls_n \to L and xn→0x^n \to 0 for ∣x∣<1|x| \lt 1One shows the expression tends to LL as x→1−x \to 1^-. ■\blacksquare

Example. Since ∑k=1∞(−1)k+1/k=ln⁡2\sum_{k=1}^{\infty} (-1)^{k+1}/k = \ln 2Abel’s theorem gives lim⁡x→1−∑k=1∞(−1)k+1xk/k=ln⁡2\lim_{x \to 1^-} \sum_{k=1}^{\infty} (-1)^{k+1} x^k/k = \ln 2I.e., ln⁡2\ln 2 is the left-hand limit Of −ln⁡(1−x)-\ln(1 - x) at x=1x = 1.

The Taylor series of ff at aa is ∑n=0∞f(n)(a)n!(x−a)n\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x - a)^n.

Definition. A function ff is analytic at aa if its Taylor series at aa converges to f(x)f(x) In some neighborhood of aa.

Not every C∞C^{\infty} function is analytic. The standard counterexample is:

f(x)={e−1/x2x≠00x=0f(x) = \begin{cases} e^{-1/x^2} & x \neq 0 \\ 0 & x = 0 \end{cases}

f(n)(0)=0f^{(n)}(0) = 0 for all nnSo the Taylor series at 00 is identically zero, which Converges only to 00Not to f(x)f(x) for x≠0x \neq 0.

Worked Example: Show $\sum_{n=1}^{\infty} \frac{x^n}{n^2}$ converges uniformly on $[-1, 1]$

Solution. For x∈[−1,1]x \in [-1, 1]: ∣xnn2∣≤1n2\left|\frac{x^n}{n^2}\right| \leq \frac{1}{n^2}. Since ∑n=1∞1n2\sum_{n=1}^{\infty} \frac{1}{n^2} converges (it is a pp-series with p=2>1p = 2 > 1), the Weierstrass M-Test with Mn=1/n2M_n = 1/n^2 implies the series converges uniformly on [−1,1][-1, 1]. ■\blacksquare

Worked Example: Find the radius of convergence of $\sum_{n=0}^{\infty} \frac{x^n}{n!}$

Solution. Apply the ratio test to the coefficients: lim⁡n→∞∣cn+1cn∣=lim⁡n→∞n!(n+1)!=lim⁡n→∞1n+1=0\lim_{n \to \infty} \left|\frac{c_{n+1}}{c_n}\right| = \lim_{n \to \infty} \frac{n!}{(n+1)!} = \lim_{n \to \infty} \frac{1}{n+1} = 0.

So R=∞R = \infty and the series converges for all x∈Rx \in \mathbb{R}. This is the power series for exe^x. By Theorem 7.4, the derivative of the sum equals ∑n=1∞nxn−1n!=∑n=1∞xn−1(n−1)!=∑k=0∞xkk!=ex\sum_{n=1}^{\infty} \frac{n x^{n-1}}{n!} = \sum_{n=1}^{\infty} \frac{x^{n-1}}{(n-1)!} = \sum_{k=0}^{\infty} \frac{x^k}{k!} = e^x, confirming That exe^x is its own derivative. ■\blacksquare

Worked Example: Find the radius of convergence of $\sum_{n=1}^{\infty} n! \, x^n$

Solution. Apply the ratio test to the coefficients:

lim⁡n→∞∣cn+1cn∣=lim⁡n→∞(n+1)!n!=lim⁡n→∞(n+1)=∞\lim_{n \to \infty} \left|\frac{c_{n+1}}{c_n}\right| = \lim_{n \to \infty} \frac{(n+1)!}{n!} = \lim_{n \to \infty} (n+1) = \infty

So R=0R = 0Meaning the series converges only at x=0x = 0. ■\blacksquare

Worked Example: Show $f_n(x) = \frac{x}{1 + nx}$ converges uniformly on $[1, \infty)$

Solution. Pointwise limit: For x≥1x \geq 1: lim⁡n→∞x1+nx=lim⁡n→∞11/x+n=0\lim_{n \to \infty} \frac{x}{1 + nx} = \lim_{n \to \infty} \frac{1}{1/x + n} = 0.

Uniform convergence: sup⁡x∈[1,∞)∣x1+nx−0∣=sup⁡x≥1x1+nx\sup_{x \in [1, \infty)} \left|\frac{x}{1 + nx} - 0\right| = \sup_{x \geq 1} \frac{x}{1 + nx}. To find the maximum, differentiate with respect to xx: ddx(x1+nx)=1(1+nx)2>0\frac{d}{dx}\left(\frac{x}{1+nx}\right) = \frac{1}{(1+nx)^2} > 0. So the function is increasing in xx on [1,∞)[1, \infty)And:

sup⁡x≥1x1+nx=lim⁡x→∞x1+nx=1n\sup_{x \geq 1} \frac{x}{1 + nx} = \lim_{x \to \infty} \frac{x}{1 + nx} = \frac{1}{n}

Since sup⁡∣fn∣=1/n→0\sup |f_n| = 1/n \to 0The convergence is uniform on [1,∞)[1, \infty). ■\blacksquare

:::caution Common Pitfall Pointwise convergence does not preserve continuity, differentiability, or integrability. Uniform Convergence preserves continuity and allows interchange of limit and integral, but not limit and Derivative. For derivatives, uniform convergence of the sequence of derivatives (not the original Sequence) is required, as stated in Theorem 7.4. Also, the Weierstrass M-Test applies only to series Of functions, not sequences; for sequences, one must verify the uniform Cauchy criterion directly.

Problem 1. Let A,B⊆RA, B \subseteq \mathbb{R} be non-empty and bounded above. Prove that sup⁡(A∪B)=max⁡(sup⁡A,sup⁡B)\sup(A \cup B) = \max(\sup A, \sup B).

Solution

Solution. Let M=max⁡(sup⁡A,sup⁡B)M = \max(\sup A, \sup B). Without loss, assume sup⁡A≥sup⁡B\sup A \geq \sup BSo M=sup⁡AM = \sup A. For all x∈A∪Bx \in A \cup B: either x∈Ax \in ASo x≤sup⁡A=Mx \leq \sup A = M; or x∈Bx \in BSo x≤sup⁡B≤Mx \leq \sup B \leq M. Thus MM is an upper bound for A∪BA \cup B.

For the least property: since M=sup⁡AM = \sup A and A⊆A∪BA \subseteq A \cup BEvery upper bound of A∪BA \cup B Is an upper bound of AAHence ≥sup⁡A=M\geq \sup A = M. Therefore sup⁡(A∪B)=M\sup(A \cup B) = M. ■\blacksquare

If you get this wrong, revise: Section 1.3 (Supremum and Infimum), Section 1.5 (Properties).

Problem 2. Prove that inf⁡A=−sup⁡(−A)\inf A = -\sup(-A) for any non-empty bounded set A⊆RA \subseteq \mathbb{R}.

Solution

Solution. Let u=sup⁡(−A)u = \sup(-A). For all a∈Aa \in A: −a∈−A-a \in -ASo −a≤u-a \leq uGiving a≥−ua \geq -u. Thus −u-u is a lower bound for AA. If vv is any lower bound for AAThen −v-v is an upper bound for −A-ASo u≤−vu \leq -vI.e., −u≥v-u \geq v. Hence −u-u is the greatest lower bound, so inf⁡A=−u=−sup⁡(−A)\inf A = -u = -\sup(-A). ■\blacksquare

If you get this wrong, revise: Section 1.5 (Properties of Supremum and Infimum).

Problem 3. Using the ε\varepsilon-NN definition, prove that lim⁡n→∞n2+3n2n2+1=12\lim_{n \to \infty} \frac{n^2 + 3n}{2n^2 + 1} = \frac{1}{2}.

Solution

Solution. Let ε>0\varepsilon > 0. Compute:

∣n2+3n2n2+1−12∣=∣2(n2+3n)−(2n2+1)2(2n2+1)∣=∣6n−12(2n2+1)∣\left|\frac{n^2 + 3n}{2n^2 + 1} - \frac{1}{2}\right| = \left|\frac{2(n^2 + 3n) - (2n^2 + 1)}{2(2n^2 + 1)}\right| = \left|\frac{6n - 1}{2(2n^2 + 1)}\right|

For n≥1n \geq 1: 6n−1<6n6n - 1 \lt 6n and 2n2+1>2n22n^2 + 1 > 2n^2So

6n−12(2n2+1)<6n4n2=32n\frac{6n - 1}{2(2n^2 + 1)} \lt \frac{6n}{4n^2} = \frac{3}{2n}

We need 32n<ε\frac{3}{2n} \lt \varepsilonI.e., n>3/(2ε)n > 3/(2\varepsilon). Choose N=⌈3/(2ε)⌉N = \lceil 3/(2\varepsilon) \rceil. For n≥Nn \geq N: the expression is <ε\lt \varepsilon. ■\blacksquare

If you get this wrong, revise: Section 2.1 (Convergence), Section 2.7 (Worked Examples).

Problem 4. Let a1=1a_1 = 1 and an+1=12(an+2an)a_{n+1} = \frac{1}{2}\left(a_n + \frac{2}{a_n}\right). Prove (an)(a_n) converges And find its limit.

Solution

Solution. Step 1: (an)(a_n) is bounded below by 2\sqrt{2}. By AM-GM: an+1=12(an+2/an)≥an⋅2/an=2a_{n+1} = \frac{1}{2}(a_n + 2/a_n) \geq \sqrt{a_n \cdot 2/a_n} = \sqrt{2}.

Step 2: (an)(a_n) is decreasing for n≥2n \geq 2. Note a1=1a_1 = 1, a2=3/2a_2 = 3/2. an+1−an=12(an+2/an)−an=12(2/an−an)=2−an22ana_{n+1} - a_n = \frac{1}{2}(a_n + 2/a_n) - a_n = \frac{1}{2}(2/a_n - a_n) = \frac{2 - a_n^2}{2a_n}. Since an≥2a_n \geq \sqrt{2} for n≥2n \geq 2, an2≥2a_n^2 \geq 2So an+1−an≤0a_{n+1} - a_n \leq 0.

Step 3: By the Monotone Convergence Theorem, L=lim⁡anL = \lim a_n exists. Taking limits: L=12(L+2/L)L = \frac{1}{2}(L + 2/L)Giving 2L=L+2/L2L = L + 2/LSo L=2/LL = 2/LHence L2=2L^2 = 2. Since an≥2a_n \geq \sqrt{2} for n≥2n \geq 2, L≥0L \geq 0So L=2L = \sqrt{2}. ■\blacksquare

If you get this wrong, revise: Section 2.2 (Monotone Convergence Theorem), Section 2.7 (recursive sequences).

Problem 5. Compute lim sup⁡n→∞an\limsup_{n \to \infty} a_n and lim inf⁡n→∞an\liminf_{n \to \infty} a_n for an=2+(−1)nnn+1a_n = 2 + (-1)^n \frac{n}{n+1}.

Solution

Solution. Write an=2+(−1)n⋅nn+1a_n = 2 + (-1)^n \cdot \frac{n}{n+1}.

For even n=2kn = 2k: a2k=2+2k2k+1→2+1=3a_{2k} = 2 + \frac{2k}{2k+1} \to 2 + 1 = 3. For odd n=2k−1n = 2k - 1: a2k−1=2−2k−12k→2−1=1a_{2k-1} = 2 - \frac{2k-1}{2k} \to 2 - 1 = 1.

Since these are the only two subsequential limits: lim sup⁡an=3\limsup a_n = 3 and lim inf⁡an=1\liminf a_n = 1. The sequence diverges since lim sup⁡≠lim inf⁡\limsup \neq \liminf. ■\blacksquare

If you get this wrong, revise: Section 2.6 (Limit Superior and Limit Inferior).

Problem 6. Determine whether ∑n=2∞1n(ln⁡n)2\sum_{n=2}^{\infty} \frac{1}{n(\ln n)^2} converges.

Solution

Solution. Apply the integral test with f(x)=1/(x(ln⁡x)2)f(x) = 1/(x(\ln x)^2) on [2,∞)[2, \infty). The function is Positive, continuous, and decreasing. Compute via u=ln⁡xu = \ln x, du=dx/xdu = dx/x:

∫2∞1x(ln⁡x)2 dx=∫ln⁡2∞1u2 du=[−1u]ln⁡2∞=1ln⁡2<∞\int_2^{\infty} \frac{1}{x(\ln x)^2}\, dx = \int_{\ln 2}^{\infty} \frac{1}{u^2}\, du = \left[-\frac{1}{u}\right]_{\ln 2}^{\infty} = \frac{1}{\ln 2} \lt \infty

The integral converges, so by the integral test, the series converges. ■\blacksquare

If you get this wrong, revise: Section 3.2 (Integral Test), Section 3.6 (Worked Examples).

Problem 7. Does ∑n=1∞(−1)n+1n1/3\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^{1/3}} converge absolutely, conditionally, or diverge?

Solution

Solution. The absolute series is ∑1/n1/3\sum 1/n^{1/3}Which is a pp-series with p=1/3<1p = 1/3 \lt 1 So it diverges. Hence the series does not converge absolutely.

For conditional convergence, apply the alternating series test: an=1/n1/3a_n = 1/n^{1/3} is positive, Decreasing, and an→0a_n \to 0. Therefore ∑(−1)n+1/n1/3\sum (-1)^{n+1}/n^{1/3} converges.

Since it converges but not absolutely, it converges conditionally. ■\blacksquare

If you get this wrong, revise: Section 3.3 (Absolute and Conditional Convergence), Section 3.6 (Alternating Series Test).

Problem 8. Find the sum of ∑n=1∞1n(n+2)\sum_{n=1}^{\infty} \frac{1}{n(n+2)}.

Solution

Solution. Use partial fractions: 1n(n+2)=12(1n−1n+2)\frac{1}{n(n+2)} = \frac{1}{2}\left(\frac{1}{n} - \frac{1}{n+2}\right). The NN-th partial sum telescopes:

SN=12[(11−13)+(12−14)+(13−15)+⋯+(1N−1N+2)]S_N = \frac{1}{2}\left[\left(\frac{1}{1} - \frac{1}{3}\right) + \left(\frac{1}{2} - \frac{1}{4}\right) + \left(\frac{1}{3} - \frac{1}{5}\right) + \cdots + \left(\frac{1}{N} - \frac{1}{N+2}\right)\right]

Most terms cancel. The surviving terms are:

SN=12(1+12−1N+1−1N+2)S_N = \frac{1}{2}\left(1 + \frac{1}{2} - \frac{1}{N+1} - \frac{1}{N+2}\right)

As N→∞N \to \infty: SN→12(1+1/2)=34S_N \to \frac{1}{2}(1 + 1/2) = \frac{3}{4}. ■\blacksquare

If you get this wrong, revise: Section 3.1 (Definitions and Convergence), telescoping series.

Problem 9. Give an explicit rearrangement of ∑n=1∞(−1)n+1n\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} whose sum is 00.

Solution

Solution. By the Riemann Rearrangement Theorem, such a rearrangement exists. We construct it Explicitly. The positive terms are 1,1/3,1/5,…1, 1/3, 1/5, \ldots and the negative terms are −1/2,−1/4,−1/6,…-1/2, -1/4, -1/6, \ldots.

Start: S1=1S_1 = 1. Then add negative terms until we go below 00: S2=1−1/2=1/2>0S_2 = 1 - 1/2 = 1/2 > 0. S3=1−1/2−1/4=1/4>0S_3 = 1 - 1/2 - 1/4 = 1/4 > 0. S4=1−1/2−1/4−1/6=−1/12<0S_4 = 1 - 1/2 - 1/4 - 1/6 = -1/12 \lt 0.

Then add positive terms until we exceed 00: S5=−1/12+1/3=1/4>0S_5 = -1/12 + 1/3 = 1/4 > 0.

Then add negative terms until below 00: S6=1/4−1/8=1/8>0S_6 = 1/4 - 1/8 = 1/8 > 0. S7=1/8−1/10=1/40>0S_7 = 1/8 - 1/10 = 1/40 > 0. S8=1/40−1/12=−7/120<0S_8 = 1/40 - 1/12 = -7/120 \lt 0.

Continue this process. Since ∑1/(2k−1)=∞\sum 1/(2k-1) = \infty and ∑1/(2k)=∞\sum 1/(2k) = \inftyWe can always Continue. Since 1/n→01/n \to 0The oscillations shrink to 00. The resulting rearrangement converges to 00. ■\blacksquare

If you get this wrong, revise: Section 3.5 (Rearrangement of Series).

Problem 10. Prove using ε\varepsilon-δ\delta that f(x)=x3f(x) = x^3 is continuous at every a∈Ra \in \mathbb{R}.

Solution

Solution. Let a∈Ra \in \mathbb{R} and ε>0\varepsilon > 0. Compute:

∣f(x)−f(a)∣=∣x3−a3∣=∣x−a∣⋅∣x2+ax+a2∣|f(x) - f(a)| = |x^3 - a^3| = |x - a| \cdot |x^2 + ax + a^2|

Restrict to ∣x−a∣<1|x - a| \lt 1So ∣x∣<∣a∣+1|x| \lt |a| + 1Giving ∣x2+ax+a2∣≤(∣a∣+1)2+∣a∣(∣a∣+1)+a2=3a2+3∣a∣+1|x^2 + ax + a^2| \leq (|a|+1)^2 + |a|(|a|+1) + a^2 = 3a^2 + 3|a| + 1. Let M=3a2+3∣a∣+1M = 3a^2 + 3|a| + 1.

Choose δ=min⁡(1,ε/M)\delta = \min(1, \varepsilon/M). Then ∣x−a∣<δ|x - a| \lt \delta implies:

∣x3−a3∣≤∣x−a∣⋅M<εM⋅M=ε|x^3 - a^3| \leq |x - a| \cdot M \lt \frac{\varepsilon}{M} \cdot M = \varepsilon

■\blacksquare

If you get this wrong, revise: Section 4.2 (Continuity), Section 4.7 (Worked Examples).

Problem 11. Prove that f(x)=xsin⁡(1/x)f(x) = x \sin(1/x) (with f(0)=0f(0) = 0) is continuous on R\mathbb{R} but not Uniformly continuous on (0,1)(0, 1). (Trick question --- see solution.)

Solution

Solution. Continuity at 00: Given ε>0\varepsilon > 0Choose δ=ε\delta = \varepsilon. For ∣x−0∣=∣x∣<δ|x - 0| = |x| \lt \delta: ∣f(x)−f(0)∣=∣xsin⁡(1/x)∣≤∣x∣<δ=ε|f(x) - f(0)| = |x \sin(1/x)| \leq |x| \lt \delta = \varepsilon. So ff is continuous at 00. For x≠0x \neq 0, ff is a product of continuous functions, hence continuous.

On uniform continuity: Actually, f(x)=xsin⁡(1/x)f(x) = x\sin(1/x) is uniformly continuous on (0,1)(0, 1)! Here is why: ff extends continuously to [0,1][0, 1] (define f(0)=0f(0) = 0). By the Heine-Cantor theorem (Theorem 4.5), ff is uniformly continuous on [0,1][0, 1]And hence on the subset (0,1)(0, 1).

The function that is not uniformly continuous on (0,1)(0, 1) is g(x)=sin⁡(1/x)g(x) = \sin(1/x)Which does not Extend continuously to 00. Or h(x)=1/xh(x) = 1/xWhich is unbounded. But f(x)=xsin⁡(1/x)f(x) = x\sin(1/x) is bounded And has a continuous extension, so it is uniformly continuous. ■\blacksquare

If you get this wrong, revise: Section 4.5 (Uniform Continuity), Section 4.6 (Heine-Cantor).

Problem 12. Prove that if f′(x)=g′(x)f'(x) = g'(x) for all x∈(a,b)x \in (a, b)Then f(x)=g(x)+Cf(x) = g(x) + C for some Constant CC.

Solution

Solution. Let h(x)=f(x)−g(x)h(x) = f(x) - g(x). Then h′(x)=f′(x)−g′(x)=0h'(x) = f'(x) - g'(x) = 0 for all x∈(a,b)x \in (a, b). By Corollary 5.4 (a consequence of the Mean Value Theorem), hh is constant on (a,b)(a, b). So f(x)−g(x)=Cf(x) - g(x) = C for some C∈RC \in \mathbb{R}I.e., f(x)=g(x)+Cf(x) = g(x) + C. ■\blacksquare

If you get this wrong, revise: Section 5.3 (Mean Value Theorem, Corollary 5.4).

Problem 13. Use Taylor’s theorem with remainder to bound the error in approximating e0.2e^{0.2} Using the fourth-degree Maclaurin polynomial.

Solution

Solution. The fourth-degree Maclaurin polynomial of exe^x is:

T4(x)=1+x+x22+x36+x424T_4(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24}

By Taylor’s theorem, R4(x)=eξ5!x5R_4(x) = \frac{e^{\xi}}{5!} x^5 for some ξ\xi between 00 and xx. For x=0.2x = 0.2: ξ∈(0,0.2)\xi \in (0, 0.2)So eξ<e0.2<e1/4<1.3e^{\xi} \lt e^{0.2} \lt e^{1/4} \lt 1.3.

∣R4(0.2)∣=eξ120(0.2)5<1.3120⋅0.00032=1.3×0.00032120≈3.47×10−6|R_4(0.2)| = \frac{e^{\xi}}{120} (0.2)^5 \lt \frac{1.3}{120} \cdot 0.00032 = \frac{1.3 \times 0.00032}{120} \approx 3.47 \times 10^{-6}

So T4(0.2)=1+0.2+0.02+0.001333+0.000067=1.221400T_4(0.2) = 1 + 0.2 + 0.02 + 0.001333 + 0.000067 = 1.221400 approximates e0.2e^{0.2} with Error less than 3.5×10−63.5 \times 10^{-6}. ■\blacksquare

If you get this wrong, revise: Section 5.4 (Taylor’s Theorem), Section 5.7 (Worked Examples).

Problem 14. Compute ∫01x3 dx\int_0^1 x^3\, dx from the definition using upper and lower Riemann sums.

Solution

Solution. Let Pn={0,1/n,2/n,…,1}P_n = \{0, 1/n, 2/n, \ldots, 1\}. On [(i−1)/n,i/n][(i-1)/n, i/n], f(x)=x3f(x) = x^3 has Mi=(i/n)3M_i = (i/n)^3 and mi=((i−1)/n)3m_i = ((i-1)/n)^3.

U(f,Pn)=∑i=1ni3n3⋅1n=1n4∑i=1ni3=1n4⋅n2(n+1)24U(f, P_n) = \sum_{i=1}^{n} \frac{i^3}{n^3} \cdot \frac{1}{n} = \frac{1}{n^4} \sum_{i=1}^{n} i^3 = \frac{1}{n^4} \cdot \frac{n^2(n+1)^2}{4}

As n→∞n \to \infty:

lim⁡n→∞U(f,Pn)=lim⁡n→∞(n+1)24n2=14\lim_{n \to \infty} U(f, P_n) = \lim_{n \to \infty} \frac{(n+1)^2}{4n^2} = \frac{1}{4}

Similarly, L(f,Pn)→1/4L(f, P_n) \to 1/4. So ∫01x3 dx=1/4\int_0^1 x^3\, dx = 1/4. ■\blacksquare

If you get this wrong, revise: Section 6.1 (Definition), Section 6.5 (Worked Examples).

Problem 14b. Show that the Dirichlet function f(x)={1x∈Q0x∉Qf(x) = \begin{cases} 1 & x \in \mathbb{Q} \\ 0 & x \notin \mathbb{Q} \end{cases} is not Riemann integrable on [0,1][0, 1].

Solution

Solution. Every non-empty subinterval [xi−1,xi][x_{i-1}, x_i] of any partition contains both rational and Irrational numbers (by density of Q\mathbb{Q} and density of R∖Q\mathbb{R} \setminus \mathbb{Q}). So Mi=sup⁡f=1M_i = \sup f = 1 and mi=inf⁡f=0m_i = \inf f = 0 for every subinterval.

For any partition PP: U(f,P)=∑1⋅Δxi=1U(f, P) = \sum 1 \cdot \Delta x_i = 1 and L(f,P)=∑0⋅Δxi=0L(f, P) = \sum 0 \cdot \Delta x_i = 0. Hence ∫01‾f=1≠0=∫01‾f\overline{\int_0^1} f = 1 \neq 0 = \underline{\int_0^1} fSo ff is not Riemann integrable.

This also follows from Lebesgue’s criterion: ff is discontinuous everywhere, and [0,1][0,1] does not Have measure zero. ■\blacksquare

If you get this wrong, revise: Section 6.2 (Integrability Criteria), Theorem 6.4b.

Problem 15. Evaluate ∫01x1−x2 dx\int_0^1 \frac{x}{\sqrt{1 - x^2}}\, dx as an improper integral.

Solution

Solution. The integrand f(x)=x/1−x2f(x) = x/\sqrt{1 - x^2} is unbounded as x→1−x \to 1^-. This is a Type II Improper integral.

∫01x1−x2 dx=lim⁡b→1−∫0bx1−x2 dx\int_0^1 \frac{x}{\sqrt{1 - x^2}}\, dx = \lim_{b \to 1^-} \int_0^b \frac{x}{\sqrt{1 - x^2}}\, dx

Compute via substitution u=1−x2u = 1 - x^2, du=−2x dxdu = -2x\, dx:

=lim⁡b→1−[−1−x2]0b=lim⁡b→1−(−1−b2+1)=0+1=1= \lim_{b \to 1^-} \left[-\sqrt{1 - x^2}\right]_0^b = \lim_{b \to 1^-} \left(-\sqrt{1 - b^2} + 1\right) = 0 + 1 = 1

The improper integral converges to 11. ■\blacksquare

If you get this wrong, revise: Section 6.6 (Improper Integrals).

Problem 16. Let fn(x)=nx1+n2x2f_n(x) = \frac{nx}{1 + n^2 x^2} on (0,∞)(0, \infty). Find the pointwise limit and Determine whether the convergence is uniform on (0,∞)(0, \infty).

Solution

Solution. Pointwise limit: For fixed x>0x > 0: lim⁡n→∞fn(x)=lim⁡n→∞nx1+n2x2=lim⁡n→∞x/n1/n2+x2=0\lim_{n \to \infty} f_n(x) = \lim_{n \to \infty} \frac{nx}{1 + n^2 x^2} = \lim_{n \to \infty} \frac{x/n}{1/n^2 + x^2} = 0.

So fn→0f_n \to 0 pointwise on (0,∞)(0, \infty).

Uniform convergence? We check sup⁡x>0∣fn(x)−0∣=sup⁡x>0nx1+n2x2\sup_{x > 0} |f_n(x) - 0| = \sup_{x > 0} \frac{nx}{1 + n^2 x^2}. To maximize, differentiate with respect to xx (treating nn as fixed):

ddx(nx1+n2x2)=n(1+n2x2)−nx⋅2n2x(1+n2x2)2=n−n3x2(1+n2x2)2\frac{d}{dx}\left(\frac{nx}{1 + n^2 x^2}\right) = \frac{n(1 + n^2 x^2) - nx \cdot 2n^2 x}{(1 + n^2 x^2)^2} = \frac{n - n^3 x^2}{(1 + n^2 x^2)^2}

Setting to zero: n−n3x2=0n - n^3 x^2 = 0So x=1/nx = 1/n. The maximum value is fn(1/n)=n⋅1/n1+n2/n2=12f_n(1/n) = \frac{n \cdot 1/n}{1 + n^2/n^2} = \frac{1}{2}.

Since sup⁡x>0∣fn(x)∣=1/2\sup_{x > 0} |f_n(x)| = 1/2 for all nnThis does not tend to 00. Therefore the convergence Is not uniform on (0,∞)(0, \infty). ■\blacksquare

If you get this wrong, revise: Section 7.2 (Uniform Convergence), Section 7.1 (Pointwise Convergence).

Problem 17. Find the radius of convergence of ∑n=1∞(2n)!(n!)2xn\sum_{n=1}^{\infty} \frac{(2n)!}{(n!)^2} x^n.

Solution

Solution. Apply the ratio test to the terms:

∣an+1an∣=(2(n+1))!((n+1)!)2⋅(n!)2(2n)!⋅∣x∣=(2n+2)(2n+1)(n+1)2⋅∣x∣\left|\frac{a_{n+1}}{a_n}\right| = \frac{(2(n+1))!}{((n+1)!)^2} \cdot \frac{(n!)^2}{(2n)!} \cdot |x| = \frac{(2n+2)(2n+1)}{(n+1)^2} \cdot |x|

=2(2n+1)n+1⋅∣x∣=4n+2n+1⋅∣x∣→4∣x∣as n→∞= \frac{2(2n+1)}{n+1} \cdot |x| = \frac{4n + 2}{n + 1} \cdot |x| \to 4|x| \quad \mathrm{as\ } n \to \infty

The series converges when 4∣x∣<14|x| \lt 1I.e., ∣x∣<1/4|x| \lt 1/4And diverges when 4∣x∣>14|x| > 1. The radius of convergence is R=1/4R = 1/4. ■\blacksquare

If you get this wrong, revise: Section 7.7 (Power Series), Section 3.2 (Ratio Test).

Problem 18. Let fn(x)=xn/nf_n(x) = x^n/n on [0,1][0, 1]. Show that fn→0f_n \to 0 uniformly, but fn′(x)=xn−1f_n'(x) = x^{n-1} does not converge uniformly on (0,1)(0, 1).

Solution

Solution. Uniform convergence of fnf_n: sup⁡x∈[0,1]∣xn/n∣=1/n→0\sup_{x \in [0,1]} |x^n/n| = 1/n \to 0 as n→∞n \to \infty. So fn→0f_n \to 0 uniformly on [0,1][0, 1].

Non-uniform convergence of fn′f_n': fn′(x)=xn−1f_n'(x) = x^{n-1}. The pointwise limit is g(x)=0g(x) = 0 for 0≤x<10 \leq x \lt 1 and g(1)=1g(1) = 1. So sup⁡x∈[0,1]∣fn′(x)−g(x)∣≥∣fn′(1)−g(1)∣=∣1−1∣=0\sup_{x \in [0,1]} |f_n'(x) - g(x)| \geq |f_n'(1) - g(1)| = |1 - 1| = 0.

Actually, check sup⁡x∈[0,1)∣xn−1∣=1\sup_{x \in [0,1)} |x^{n-1}| = 1 (approached as x→1−x \to 1^-). But g(x)=0g(x) = 0 on [0,1)[0, 1)So sup⁡x∈[0,1)∣xn−1−0∣=1\sup_{x \in [0,1)} |x^{n-1} - 0| = 1 for all nn. This does not Tend to 00So fn′f_n' does not converge uniformly on [0,1)[0, 1).

This illustrates that uniform convergence of functions does not imply uniform convergence of Derivatives, which is why Theorem 7.4 requires the stronger hypothesis of uniform convergence of (fn′)(f_n'). ■\blacksquare

If you get this wrong, revise: Section 7.2 (Uniform Convergence), Section 7.6 (Uniform Convergence and Differentiation).

Problem 19. Let fn(x)=x1+nx2f_n(x) = \frac{x}{1 + nx^2} on [0,∞)[0, \infty). Find the pointwise limit and determine Whether the convergence is uniform.

Solution

Solution. Pointwise limit: For x=0x = 0: fn(0)=0f_n(0) = 0 for all nn. For x>0x > 0: lim⁡n→∞x1+nx2=lim⁡n→∞11/x+nx=0\lim_{n \to \infty} \frac{x}{1 + nx^2} = \lim_{n \to \infty} \frac{1}{1/x + nx} = 0. So fn→0f_n \to 0 pointwise.

Uniform convergence on [0,∞)[0, \infty)? We check sup⁡x≥0∣fn(x)∣\sup_{x \geq 0} |f_n(x)|. Differentiate: ddx(x1+nx2)=1−nx2(1+nx2)2\frac{d}{dx}\left(\frac{x}{1 + nx^2}\right) = \frac{1 - nx^2}{(1 + nx^2)^2}. Setting to zero: x=1/nx = 1/\sqrt{n}. The maximum value is fn(1/n)=1/n1+n/n=12nf_n(1/\sqrt{n}) = \frac{1/\sqrt{n}}{1 + n/n} = \frac{1}{2\sqrt{n}}.

Since sup⁡x≥0∣fn(x)∣=12n→0\sup_{x \geq 0} |f_n(x)| = \frac{1}{2\sqrt{n}} \to 0 as n→∞n \to \inftyThe convergence is Uniform on [0,∞)[0, \infty). ■\blacksquare

If you get this wrong, revise: Section 7.2 (Uniform Convergence).

Problem 20. Prove that the series ∑n=0∞(−1)n2n+1x2n+1\sum_{n=0}^{\infty} \frac{(-1)^n}{2n+1} x^{2n+1} converges uniformly on [−1,1][-1, 1] and identify its sum.

Solution

Solution. For ∣x∣≤1|x| \leq 1: ∣(−1)nx2n+12n+1∣≤12n+1\left|\frac{(-1)^n x^{2n+1}}{2n+1}\right| \leq \frac{1}{2n+1}. The series ∑12n+1\sum \frac{1}{2n+1} diverges (it dominates half the harmonic series), so the Weierstrass M-test does not apply directly with these bounds.

However, by the alternating series test, the series converges pointwise for every ∣x∣≤1|x| \leq 1 (since ∣x∣2n+12n+1\frac{|x|^{2n+1}}{2n+1} decreases to 00 for ∣x∣≤1|x| \leq 1). The sum is arctan⁡x\arctan x Which is the Taylor series of arctan⁡\arctan about 00.

For uniform convergence, we use Abel’s test for uniform convergence of series: if ∑fn(x)\sum f_n(x) has uniformly bounded partial sums and gn(x)g_n(x) decreases uniformly to 00Then ∑fn(x)gn(x)\sum f_n(x) g_n(x) converges uniformly. Here fn(x)=(−1)nx2n+1f_n(x) = (-1)^n x^{2n+1} and gn(x)=1/(2n+1)g_n(x) = 1/(2n+1) Is independent of xx.

The partial sums ∣∑k=0n(−1)kx2k+1∣≤∣x∣1+x2≤12\left|\sum_{k=0}^{n} (-1)^k x^{2k+1}\right| \leq \frac{|x|}{1 + x^2} \leq \frac{1}{2} for ∣x∣≤1|x| \leq 1 (geometric series bound). And 1/(2n+1)→01/(2n+1) \to 0 uniformly. By Abel’s test, the Convergence is uniform on [−1,1][-1, 1].

Setting x=1x = 1: ∑n=0∞(−1)n2n+1=arctan⁡1=π/4\sum_{n=0}^{\infty} \frac{(-1)^n}{2n+1} = \arctan 1 = \pi/4. ■\blacksquare

If you get this wrong, revise: Section 7.3 (Weierstrass M-Test), Section 7.7 (Power Series), Abel’s theorem.

  1. Confusing the domain and range of functions, or not considering restrictions (e.g., denominator cannot be zero).

  2. Misreading the question, particularly with ‘hence’ vs ‘hence or otherwise’. The former requires using previous work.

  3. Confusing pointwise and uniform convergence. Pointwise convergence does not guarantee uniform convergence.

Example 1: Epsilon-Delta Proof of Continuity

Section titled “Example 1: Epsilon-Delta Proof of Continuity”

Problem. Prove that f(x)=3x+1f(x) = 3x + 1 is continuous at x=2x = 2 using the ε\varepsilon-δ\delta definition.

Solution. Let ε>0\varepsilon > 0. Choose δ=ε/3\delta = \varepsilon / 3.

If 0<∣x−2∣<δ0 < |x - 2| < \delta, then:

∣f(x)−f(2)∣=∣3x+1−7∣=3∣x−2∣<3⋅ε3=ε|f(x) - f(2)| = |3x + 1 - 7| = 3|x - 2| < 3 \cdot \frac{\varepsilon}{3} = \varepsilon

Since for every ε>0\varepsilon > 0 we found δ>0\delta > 0 satisfying the condition, ff is continuous at x=2x = 2.

■\blacksquare

Problem. Prove that an=2n+1n+3a_n = \frac{2n+1}{n+3} converges and find its limit.

Solution. Claim: an→2a_n \to 2.

∣an−2∣=∣2n+1n+3−2∣=∣2n+1−2n−6n+3∣=5n+3|a_n - 2| = \left|\frac{2n+1}{n+3} - 2\right| = \left|\frac{2n+1 - 2n - 6}{n+3}\right| = \frac{5}{n+3}.

For any ε>0\varepsilon > 0, choose N>5ε−3N > \frac{5}{\varepsilon} - 3.

For n>Nn > N: ∣an−2∣=5n+3<5N+3<ε|a_n - 2| = \frac{5}{n+3} < \frac{5}{N+3} < \varepsilon.

Therefore an→2a_n \to 2 by definition.

■\blacksquare

  • Completeness of R\mathbb{R}: every non-empty bounded-above set has a supremum; equivalent to the monotone convergence theorem and Bolzano-Weierstrass.
  • Limits and continuity: ε\varepsilon-δ\delta definition; sequential characterisation; intermediate value theorem and extreme value theorem.
  • Differentiability: f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}; mean value theorem; Taylor’s theorem with remainder.
  • Riemann integration: defined via upper and lower sums; fundamental theorem of calculus connects integration and differentiation.
  • Sequences and series: tests for convergence (comparison, ratio, root, integral); absolute vs conditional convergence; power series and radius of convergence.
TopicSiteLink
Complex AnalysisWyattsNotesView
Linear AlgebraWyattsNotesView
Multivariable CalculusWyattsNotesView
Real Analysis — MIT 18.100MIT OCWView

:::