Skip to content

Real Analysis

1. The Real Number System

1.1 Field Axioms

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

1.2 Order and the Completeness Axiom

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

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

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

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

1.3 Supremum and Infimum

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

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

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

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

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

Proposition 1.2 (Approximation Property). If u=sup(S)u = \sup(S)Then for every ε>0\varepsilon > 0There Exists sSs \in S such that uε<suu - \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={xR:x2<2}S = \{x \in \mathbb{R} : x^2 \lt 2\}. Then sup(S)=2\sup(S) = \sqrt{2}. Note that 2Q\sqrt{2} \notin \mathbb{Q}, so Q\mathbb{Q} does not satisfy the completeness axiom.

1.4 Archimedean Property

Theorem 1.1 (Archimedean Property). For every xRx \in \mathbb{R}There exists nNn \in \mathbb{N} Such that n>xn \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 s1s - 1 is not an upper bound for N\mathbb{N} So there exists nNn \in \mathbb{N} with n>s1n \gt s - 1I.e., n+1>sn + 1 \gt s. But n+1Nn + 1 \in \mathbb{N} Contradicting that ss is an upper bound. \blacksquare

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

Proof. By the Archimedean property, choose nNn \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 qQq \in \mathbb{Q} with a<q<ba \lt q \lt b.

Proof. Since ba>0b - a > 0By Corollary 1.2 there exists nNn \in \mathbb{N} with 1/n<ba1/n \lt b - a So 1<n(ba)=nbna1 \lt n(b - a) = nb - na. Let m=na+1Zm = \lfloor na \rfloor + 1 \in \mathbb{Z}. Then m1na<mm - 1 \leq na \lt m Giving mna+1<na+n(ba)=nbm \leq na + 1 \lt na + n(b - a) = nb. Hence a<m/n<ba \lt m/n \lt bAnd m/nQm/n \in \mathbb{Q}. \blacksquare

1.5 Properties of Supremum and Infimum

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:aA,bB}A + B = \{a + b : a \in A, b \in B\}.

Proof. For all aAa \in A and bBb \in B: asup(A)a \leq \sup(A) and bsup(B)b \leq \sup(B)So a+bsup(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 aAa \in A And bBb \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 SRS \subseteq \mathbb{R}, inf(S)=sup(S)\inf(S) = -\sup(-S) Where S={s:sS}-S = \{-s : s \in S\}.

Proof. Let u=sup(S)u = \sup(-S). Then su-s \leq u for all sSs \in SSo sus \geq -u for all sSs \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 uvu \leq -vI.e., uv-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=2k1n = 2k-1: (1)2k1+1/(2k1)=1+1/(2k1)(-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

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 qQq \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^*: αβ={pq:pα,qβ,p0,q0}{rQ: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={qQ: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{rQ: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

1.7 Equivalences of Completeness

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 I1I2I_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 supS\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 supS\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:nN}=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). :::

2. Sequences and Limits

2.1 Convergence

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

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

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

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

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

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

A contradiction. \blacksquare

Proposition 2.2. Every convergent sequence is bounded.

Proof. Let anLa_n \to L. Taking ε=1\varepsilon = 1There exists NN such that anL<1|a_n - L| \lt 1 for All nNn \geq N. Then anL+1|a_n| \leq |L| + 1 for nNn \geq N. Let M=max{a1,a2,,aN1,L+1}M = \max\{|a_1|, |a_2|, \ldots, |a_{N-1}|, |L| + 1\}. Then anM|a_n| \leq M for all nn. \blacksquare

2.2 Convergence Theorems

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

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

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

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

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

Proof. Let (an)(a_n) be bounded and increasing. By the completeness axiom, s=sup{an:nN}s = \sup\{a_n : n \in \mathbb{N}\} exists. Let ε>0\varepsilon > 0. By the approximation property, There exists NN such that sε<aNss - \varepsilon \lt a_N \leq s. Since (an)(a_n) is increasing, anaN>sεa_n \geq a_N > s - \varepsilon for all nNn \geq N. Also ansa_n \leq s for all nn. Hence ans<ε|a_n - s| \lt \varepsilon for all nNn \geq N. \blacksquare

2.3 Cauchy Sequences

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

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

Theorem 2.4. Every convergent sequence is Cauchy.

Proof. Let anLa_n \to L. Given ε>0\varepsilon > 0Choose NN such that anL<ε/2|a_n - L| \lt \varepsilon/2 For all nNn \geq N. Then for m,nNm, n \geq N: anamanL+amL<ε|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 anam<1|a_n - a_m| \lt 1 for m,nNm, n \geq N. Then anaN+1|a_n| \leq |a_N| + 1 for nNn \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 anLa_n \to L.

Given ε>0\varepsilon > 0Choose N1N_1 so that anam<ε/2|a_n - a_m| \lt \varepsilon/2 for m,nN1m, n \geq N_1 And KK so that ankL<ε/2|a_{n_k} - L| \lt \varepsilon/2 for kKk \geq K. For nN1n \geq N_1Choose kKk \geq K with nkN1n_k \geq N_1 (possible since nkn_k \to \infty). Then

anLanank+ankL<ε/2+ε/2=ε|a_n - L| \leq |a_n - a_{n_k}| + |a_{n_k} - L| \lt \varepsilon/2 + \varepsilon/2 = \varepsilon

\blacksquare

2.4 Subsequences

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

Proposition 2.3. If anLa_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.

2.5 The Bolzano-Weierstrass Theorem

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 I0I1I2I_0 \supseteq I_1 \supseteq I_2 \supseteq \cdots With length(Ik)=(BA)/2k0\mathrm{length}(I_k) = (B - A)/2^k \to 0. By the Nested Interval Property (which follows From completeness), k=0Ik={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 an1I1a_{n_1} \in I_1. Having chosen n1<n2<<nk1n_1 \lt n_2 \lt \cdots \lt n_{k-1}Pick nk>nk1n_k > n_{k-1} with ankIka_{n_k} \in I_k (possible since IkI_k contains infinitely many terms). Then ankIka_{n_k} \in I_k for all kkSo ankclength(Ik)0|a_{n_k} - c| \leq \mathrm{length}(I_k) \to 0. Hence ankca_{n_k} \to c. \blacksquare

2.6 Limit Superior and Limit Inferior

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

lim supnan=infn1supknak,lim infnan=supn1infknak\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 infnanlim supnan\liminf_{n \to \infty} a_n \leq \limsup_{n \to \infty} a_n

Proof. For any nn, infknakansupknan\inf_{k \geq n} a_k \leq a_n \leq \sup_{k \geq n} a_n. Taking supremum over nn on the left: lim infansupknak\liminf a_n \leq \sup_{k \geq n} a_k for every nn. Taking infimum over nn on The right gives lim infanlim supan\liminf a_n \leq \limsup a_n. \blacksquare

Proposition 2.6. (an)(a_n) converges if and only if lim infan=lim supan\liminf a_n = \limsup a_nIn which case the Common value equals liman\lim a_n.

Proof. If anLa_n \to LThen for every ε>0\varepsilon > 0There exists NN such that Lε<an<L+εL - \varepsilon \lt a_n \lt L + \varepsilon for nNn \geq N. Hence supknakL+ε\sup_{k \geq n} a_k \leq L + \varepsilon For nNn \geq NSo lim supanL+ε\limsup a_n \leq L + \varepsilon. Since ε>0\varepsilon > 0 is arbitrary, lim supanL\limsup a_n \leq L. Similarly lim infanL\liminf a_n \geq L. Combined with Proposition 2.5, lim infan=lim supan=L\liminf a_n = \limsup a_n = L.

Conversely, if lim infan=lim supan=L\liminf a_n = \limsup a_n = LThen for every ε>0\varepsilon > 0There exists N1N_1 With supknak<L+ε\sup_{k \geq n} a_k \lt L + \varepsilon for nN1n \geq N_1And N2N_2 with infknak>Lε\inf_{k \geq n} a_k > L - \varepsilon for nN2n \geq N_2. For nmax(N1,N2)n \geq \max(N_1, N_2): Lε<an<L+εL - \varepsilon \lt a_n \lt L + \varepsilonSo anLa_n \to L. \blacksquare

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

Proof. Let L=lim supan=infnsupknakL^* = \limsup a_n = \inf_n \sup_{k \geq n} a_k. Define sn=supknaks_n = \sup_{k \geq n} a_k. Then (sn)(s_n) is decreasing and snLs_n \to L^*. For each nnChoose knnk_n \geq n with akn>sn1/na_{k_n} > s_n - 1/n. Then aknLa_{k_n} \to L^* (by squeeze), producing a subsequence converging to LL^*.

If L>LL > L^* were a subsequential limit, choose a subsequence anjLa_{n_j} \to L. For large jj: anj>(L+L)/2>La_{n_j} > (L + L^*)/2 > L^*. But anjsnja_{n_j} \leq s_{n_j} for all jjAnd snjLs_{n_j} \to L^* So anjsnj<(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 supan+lim supbn\limsup(a_n + b_n) \leq \limsup a_n + \limsup b_n
  2. lim inf(an+bn)lim infan+lim infbn\liminf(a_n + b_n) \geq \liminf a_n + \liminf b_n
  3. If an0a_n \geq 0 and bn0b_n \geq 0: lim sup(anbn)(lim supan)(lim supbn)\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 supan+lim supbn\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 supan=lim infan\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+11a_{2k} = \frac{2k}{2k+1} \to 1. The odd subsequence is a2k1=2k12k1a_{2k-1} = -\frac{2k-1}{2k} \to -1.

No subsequence can have a limit greater than 11 (since ann/(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 supnan=1\limsup_{n \to \infty} a_n = 1 and lim infnan=1\liminf_{n \to \infty} a_n = -1. Since lim suplim inf\limsup \neq \liminfThe sequence diverges. \blacksquare

2.7 Worked Examples

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

Solution. Let ε>0\varepsilon > 0. We need nn+11<ε\left|\frac{n}{n+1} - 1\right| \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 nNn \geq N: n1εn \geq \frac{1}{\varepsilon}So n+1>1εn+1 > \frac{1}{\varepsilon}So 1n+1<ε\frac{1}{n+1} \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+23=3n+13(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 nNn \geq N:

3n+1n+23=5n+25N+255/ε=ε\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=22a_1 = \sqrt{2} \leq 2. If an2a_n \leq 2Then an+1=2+an2+2=2a_{n+1} = \sqrt{2 + a_n} \leq \sqrt{2 + 2} = 2.

Step 2: (an)(a_n) is increasing. We have a1=21.414a_1 = \sqrt{2} \approx 1.414 and a2=2+21.848a_2 = \sqrt{2 + \sqrt{2}} \approx 1.848. Assume anan+1a_n \leq a_{n+1}. Then an+1=2+an2+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=limanL = \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 L2L2=0L^2 - L - 2 = 0So (L2)(L+1)=0(L-2)(L+1) = 0. Since an2>0a_n \geq \sqrt{2} > 0 for all nn, L0L \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:nN}\{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. :::

3. Series

3.1 Definitions and Convergence

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

If an0a_n \geq 0 for all 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.

3.2 Convergence Tests

Theorem 3.1 (Comparison Test). If 0anbn0 \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 limnan/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 limnan+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 supnann=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 ann<r\sqrt[n]{|a_n|} \lt r for all nNn \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: ann>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=1f(n)\sum_{n=1}^{\infty} f(n) converges if and only if 1f(x)dx\int_1^{\infty} f(x)\, dx converges.

Proof. Since ff is decreasing, for kxk+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)dxkk+1f(x)dxkk+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 N1N - 1:

k=2Nf(k)1Nf(x)dxk=1N1f(k)\sum_{k=2}^{N} f(k) \leq \int_1^N f(x)\, dx \leq \sum_{k=1}^{N-1} f(k)

If 1f\int_1^{\infty} f converges, the left inequality shows f(k)\sum f(k) is bounded above, hence converges. If 1f\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 an0a_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=S2n2a2n1+a2nS_{2n} = S_{2n-2} - a_{2n-1} + a_{2n}. Since a2n1a2na_{2n-1} \geq a_{2n}We have S2nS2n2S_{2n} \leq S_{2n-2}So (S2n)(S_{2n}) is decreasing. Similarly, (S2n+1)(S_{2n+1}) is increasing. Also S2n+1=S2n+a2n+1S2nS_{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+10a_{2n+1} \to 0Their limits coincide. \blacksquare

3.3 Absolute and Conditional Convergence

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

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

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>nNm > n \geq N: k=n+1mak<ε\sum_{k=n+1}^{m} |a_k| \lt \varepsilon. Then k=n+1makk=n+1mak<ε\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

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:

SSNaN+1|S - S_N| \leq a_{N+1}

Proof. We have S2nSS2n+1=S2n+a2n+1S_{2n} \leq S \leq S_{2n+1} = S_{2n} + a_{2n+1} and S2n1SS2n=S2n1a2nS_{2n-1} \geq S \geq S_{2n} = S_{2n-1} - a_{2n}. In both cases SSNaN+1|S - S_N| \leq a_{N+1}. \blacksquare

3.5 Cauchy Condensation Test

Theorem 3.8b (Cauchy Condensation Test). If (an)(a_n) is a non-negative, decreasing sequence, then n=1an\sum_{n=1}^{\infty} a_n converges if and only if k=02ka2k\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=02ka2ka_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+11)(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+2k=12k1a2ka_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=11/np\sum_{n=1}^{\infty} 1/n^p converges if and only if p>1p > 1. Apply the condensation Test: 2k1/(2k)p=2k(1p)\sum 2^k \cdot 1/(2^k)^p = \sum 2^{k(1-p)}A geometric series with ratio 21p2^{1-p} Which converges iff 1p<01 - p \lt 0I.e., p>1p > 1.

3.6 Rearrangement of Series

Theorem 3.9 (Riemann Rearrangement Theorem). If an\sum a_n converges conditionally, then for any LRL \in \mathbb{R} (or ±\pm\infty), there exists a rearrangement σ:NN\sigma : \mathbb{N} \to \mathbb{N} such That n=1aσ(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 nPan=+\sum_{n \in P} a_n = +\infty and nNan=\sum_{n \in N} a_n = -\infty.

To achieve sum LRL \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.

3.7 Worked Examples

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

Solution. Apply the ratio test:

limnan+1an=limn(n+1)/2n+1n/2n=limnn+12n=12<1\lim_{n \to \infty} \frac{a_{n+1}}{a_n} = \lim_{n \to \infty} \frac{(n+1)/2^{n+1}}{n/2^n} = \lim_{n \to \infty} \frac{n+1}{2n} = \frac{1}{2} \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)=1n1n+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(1n1n+1)=11N+1S_N = \sum_{n=1}^{N} \left(\frac{1}{n} - \frac{1}{n+1}\right) = 1 - \frac{1}{N+1}

Therefore limNSN=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/(xlnx)f(x) = 1/(x \ln x) on [2,)[2, \infty). The function is positive, Continuous, and decreasing. Compute:

21xlnxdx=limb2b1xlnxdx=limb[ln(lnx)]2b=limbln(lnb)ln(ln2)=\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, SSNaN+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+1100N + 1 \geq 100I.e., N99N \geq 99.

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

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

Solution. Since 1n2+11n2\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(lnn)(lnlnn)a_n = \frac{1}{n (\ln n)(\ln \ln n)} for n3n \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=2k2kkln2ln(kln2)=1kln2ln(kln2)1klnk2^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 1klnk\sum \frac{1}{k \ln k} diverges (integral test, analogous to 1nlnn\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. :::

4. Continuity

4.1 Limits of Functions

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

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

4.2 Continuity

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

xa<δ    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: limxaf(x)\lim_{x \to a} f(x) exists but does not equal f(a)f(a) (or f(a)f(a) is undefined).
  • Jump: limxaf(x)\lim_{x \to a^-} f(x) and limxa+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 sinx\sin x, cosx\cos x, exe^x, lnx\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 fgf-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 gfg \circ f is continuous at aa.

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). limxcf(x)=L\lim_{x \to c} f(x) = L if and only if For every sequence (xn)(x_n) with xncx_n \to c and xncx_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 xncx_n \to cThere exists NN with xnc<δ|x_n - c| \lt \delta for nNn \geq N. Then f(xn)L<ε|f(x_n) - L| \lt \varepsilon for nNn \geq N.

(\Leftarrow) Suppose the ε\varepsilon-δ\delta condition fails. Then there exists ε>0\varepsilon > 0 such That for every nNn \in \mathbb{N}There exists xnx_n with 0<xnc<1/n0 \lt |x_n - c| \lt 1/n but f(xn)Lε|f(x_n) - L| \geq \varepsilon. Then xncx_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 xncx_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).

4.3 Intermediate Value Theorem

Theorem 4.3 (IVT). If f:[a,b]Rf : [a,b] \to \mathbb{R} is continuous and f(a)<y<f(b)f(a) \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 aSa \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+δ/2Sc + \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)<yf(bn)f(a_n) \lt y \leq f(b_n) and bnan=(ba)/2n0b_n - a_n = (b-a)/2^n \to 0. By the nested interval property, anca_n \to c and bncb_n \to c. By continuity, f(c)=limf(an)yf(c) = \lim f(a_n) \leq y And f(c)=limf(bn)yf(c) = \lim f(b_n) \geq ySo f(c)=yf(c) = y. \blacksquare

4.4 Extreme Value Theorem

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

Proof. We first show ff is bounded. Suppose not; then for each nNn \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 xnkc[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)>M1/nf(x_n) > M - 1/n. By Bolzano-Weierstrass, (xn)(x_n) has a subsequence xnkc[a,b]x_{n_k} \to c \in [a,b]. By continuity, f(c)=limf(xnk)f(c) = \lim f(x_{n_k}). Since M1/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

4.5 Uniform Continuity

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

xy<δ    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.

4.6 The Heine-Cantor Theorem

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 nNn \in \mathbb{N}There exist xn,yn[a,b]x_n, y_n \in [a,b] with xnyn<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 xnkc[a,b]x_{n_k} \to c \in [a,b]. Since xnkynk<1/nk0|x_{n_k} - y_{n_k}| \lt 1/n_k \to 0We have ynkcy_{n_k} \to c as well.

By continuity of ff at cc: there exists δ>0\delta > 0 such that xc<δ|x - c| \lt \delta implies f(x)f(c)<ε/2|f(x) - f(c)| \lt \varepsilon/2. For kk sufficiently large, xnkc<δ|x_{n_k} - c| \lt \delta and ynkc<δ|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

4.7 Worked Examples

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

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

Given ε>0\varepsilon > 0Choose δ=ε2\delta = \varepsilon^2. Then xy<δ|x - y| \lt \delta implies xyxy<δ=ε|\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 x2<δ|x - 2| \lt \delta implies f(x)5<ε|f(x) - 5| \lt \varepsilon.

Compute: f(x)5=(3x1)5=3x6=3x2|f(x) - 5| = |(3x - 1) - 5| = |3x - 6| = 3|x - 2|.

Choose δ=ε/3\delta = \varepsilon/3. Then x2<δ|x - 2| \lt \delta implies f(x)5=3x2<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=x29=x+3x3|f(x) - 9| = |x^2 - 9| = |x + 3| \cdot |x - 3|

Restrict to δ1\delta \leq 1So x3<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 x3<δ|x - 3| \lt \delta implies:

x29=x+3x3<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 nNn \in \mathbb{N} with 1/n<δ1/n \lt \delta. Set x=1/nx = 1/n and y=1/(2n)y = 1/(2n). Then xy=1/(2n)<1/n<δ|x - y| = 1/(2n) \lt 1/n \lt \deltaBut:

f(x)f(y)=11/n11/(2n)=n2n=n1=ε|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 limx0f(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 x0x \neq 0, ff is a product of continuous functions, hence continuous.

At x=0x = 0: let ε>0\varepsilon > 0. Choose δ=ε\delta = \varepsilon. For x0=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 sinusinvuv|\sin u - \sin v| \leq |u - v| for all u,vRu, v \in \mathbb{R}. (Proof: sinusinv=2cos((u+v)/2)sin((uv)/2)2sin((uv)/2)uv|\sin u - \sin v| = 2|\cos((u+v)/2)\sin((u-v)/2)| \leq 2|\sin((u-v)/2)| \leq |u - v| Using sintt|\sin t| \leq |t| and cos1|\cos| \leq 1.)

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

sinxsinaxa<δ=ε|\sin x - \sin a| \leq |x - a| \lt \delta = \varepsilon

Since δ=ε\delta = \varepsilon works independently of aa, sinx\sin x is actually uniformly continuous On R\mathbb{R}. The same argument works for cosx\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 euevemax(u,v)uv|e^u - e^v| \leq e^{\max(u,v)} |u - v|Which follows from the Mean Value Theorem applied to ete^t: euev=eξ(uv)e^u - e^v = e^\xi (u - v) for some ξ\xi between uu and vv So euev=eξuvemax(u,v)uv|e^u - e^v| = e^\xi |u - v| \leq e^{\max(u,v)} |u - v|.

Let ε>0\varepsilon > 0 and aRa \in \mathbb{R}. Restrict to xa<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 xa<δ|x - a| \lt \delta:

exeaea+1xa<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. :::

5. Differentiability

5.1 The Derivative

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

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

Exists (as a finite real number).

Proposition 5.1. If ff is differentiable at ccThen ff is continuous at cc.

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

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

5.2 Differentiation Rules

Theorem 5.1. If ff and gg are differentiable at 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. (fg)(c)=f(g(c))g(c)(f \circ g)'(c) = f'(g(c)) \cdot g'(c) (Chain Rule)

5.3 Mean Value Theorem

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

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

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

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

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

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)Mxy|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

5.4 Taylor’s Theorem

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

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

Where the remainder is

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

For some ξ\xi between aa and xx.

Proof. Fix xax \neq a and define

g(t)=f(x)k=0nf(k)(t)k!(xt)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!(xt)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

5.5 L’Hôpital’s Rule

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 limxcf(x)=limxcg(x)=0\lim_{x \to c} f(x) = \lim_{x \to c} g(x) = 0. If limxcf(x)/g(x)=L\lim_{x \to c} f'(x)/g'(x) = L exists (as a finite Number or ±\pm\infty), then limxcf(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 xcx \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 xcx \to cWe have ξc\xi \to c (since ξ\xi is trapped between cc and xx). Therefore limxcf(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 limxcf(x)=limxcg(x)=\lim_{x \to c} |f(x)| = \lim_{x \to c} |g(x)| = \infty. If limxcf(x)/g(x)=L\lim_{x \to c} f'(x)/g'(x) = L exists, Then limxcf(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 xyx \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)1f(y)/f(x)1g(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 xcx \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 x0x \to 0. Applying L’Hôpital’s rule:

limx0ex1xx2=limx0ex12x\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:

=limx0ex2=12= \lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2}

\blacksquare

5.6 Darboux’s Theorem

Theorem 5.8 (Darboux’s Theorem). If ff is differentiable on [a,b][a, b]Then ff' 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 ff' 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 x0x \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)=limh0h2sin(1/h)h=limh0hsin(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 ff' takes all values in [1,1][-1, 1] infinitely often on (0,δ)(0, \delta).

But Darboux’s theorem says ff' has the intermediate value property. Indeed, ff' 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

5.7 Worked Examples

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)=sinxf(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)=xx3/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)!xn+1xn+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)!<1010\frac{(0.1)^{n+1}}{(n+1)!} \lt 10^{-10}. Testing: for n=5n = 5 (0.1)66!=1067201.39×109>1010\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!=108403202.48×1013<1010\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.10.00016667+0.000000830.000000000.09983342= 0.1 - 0.00016667 + 0.00000083 - 0.00000000 \approx 0.09983342.

The error is at most 2.48×1013<10102.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)k1(k1)!/(1+x)kf^{(k)}(x) = (-1)^{k-1}(k-1)!/(1+x)^k for k1k \geq 1. So f(k)(0)=(1)k1(k1)!f^{(k)}(0) = (-1)^{k-1}(k-1)!.

ln(1+x)=k=1(1)k1(k1)!k!xk=k=1(1)k1kxk\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: limkak+1/ak=limkkk+1x=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 ln2\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)=cosxf(x) = \cos x, f(x)=sinxf'(x) = -\sin x, f(x)=cosxf''(x) = -\cos x, f(x)=sinxf'''(x) = \sin x f(4)(x)=cosxf^{(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)=1232(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π/3424|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π/34240.04724242.1×107|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. :::

6. Riemann Integration

6.1 Definition

Let f:[a,b]Rf : [a,b] \to \mathbb{R} be bounded. A partition of [a,b][a,b] is a finite set P={x0,x1,,xn}P = \{x_0, x_1, \ldots, x_n\} with a=x0<x1<<xn=ba = x_0 \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[xi1,xi]}M_i = \sup\{f(x) : x \in [x_{i-1}, x_i]\}, mi=inf{f(x):x[xi1,xi]}m_i = \inf\{f(x) : x \in [x_{i-1}, x_i]\}And Δxi=xixi1\Delta x_i = x_i - x_{i-1}.

The mesh of PP is P=max1inΔ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:

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

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

6.2 Integrability Criteria

Theorem 6.1 (Riemann Integrability Criterion). A bounded function f:[a,b]Rf : [a,b] \to \mathbb{R} is Riemann integrable if and only if for every ε>0\varepsilon > 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 xy<δ|x - y| \lt \delta implies f(x)f(y)<ε/(ba)|f(x) - f(y)| \lt \varepsilon/(b-a).

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

U(f,P)L(f,P)=i=1n(Mimi)Δxi<εbai=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 (ba)/n(b-a)/n. On [xi1,xi][x_{i-1}, x_i]: Mi=f(xi)M_i = f(x_i) and mi=f(xi1)m_i = f(x_{i-1}). Then:

U(f,Pn)L(f,Pn)=i=1n[f(xi)f(xi1)]ban=[f(b)f(a)]banU(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)](ba)/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]fM = \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(ba))\varepsilon/(2(b-a)). Then:

U(f,P)L(f,P)ε2(ba)(ba)+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 xQx \in \mathbb{Q} and f(x)=0f(x) = 0 for xQx \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.

6.3 Properties of the Integral

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

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

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

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

6.4 The Fundamental Theorem of Calculus

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

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

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

Proof. 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=1hxx+hf(t)dt=f(ξ)\frac{F(x+h) - F(x)}{h} = \frac{1}{h}\int_x^{x+h} f(t)\, dt = f(\xi)

As h0+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[xi1,xi]\xi_i \in [x_{i-1}, x_i] with F(xi)F(xi1)=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(xi1)]=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 P0\|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

6.5 Worked Examples

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

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

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

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

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

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 [(i1)/n,i/n][(i-1)/n, i/n], f(x)=xf(x) = \sqrt{x} has Mi=i/nM_i = \sqrt{i/n} and mi=(i1)/nm_i = \sqrt{(i-1)/n}.

U(f,Pn)=i=1nin1n=1n3/2i=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 0nxdx\int_0^n \sqrt{x}\, dx):

limnU(f,Pn)=limn1n3/223n3/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 01xdx=2/3\int_0^1 \sqrt{x}\, dx = 2/3. \blacksquare

6.6 Improper Integrals

Definition. An improper integral is a Riemann integral where either the interval of integration Is unbounded or the integrand is unbounded.

Type I (Infinite Intervals). If ff is Riemann integrable on [a,b][a, b] for every b>ab > aDefine:

af(x)dx=limbabf(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=limca+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 0f(x)g(x)0 \leq f(x) \leq g(x) for xax \geq a:

  • If ag\int_a^{\infty} g converges, then af\int_a^{\infty} f converges.
  • If af\int_a^{\infty} f diverges, then ag\int_a^{\infty} g diverges.

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

Theorem 6.12 (pp-Test for Improper Integrals).

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

Proof. For Type I with p1p \neq 1:

1xpdx=limb[x1p1p]1b=limbb1p11p\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 1p<01 - p < 0I.e., p>1p > 1. For p=1p = 1: 11/xdx=limblnb=\int_1^{\infty} 1/x\, dx = \lim_{b \to \infty} \ln b = \infty.

For Type II: 01xpdx=limc0+1c1p1p\int_0^1 x^{-p}\, dx = \lim_{c \to 0^+} \frac{1 - c^{1-p}}{1-p}. This converges when 1p>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:

0exdx=limb0bexdx=limb[ex]0b=limb(eb+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 1sinxxdx\int_1^{\infty} \left|\frac{\sin x}{x}\right|\, dx diverges (compare with 1sinxxdxk=1kπ(k+1)πsinxxdxk=12(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, 1sinxxdx\int_1^{\infty} \frac{\sin x}{x}\, dx converges by Dirichlet’s test for integrals. Let F(b)=1bsinxdx=cos1cosbF(b) = \int_1^b \sin x\, dx = \cos 1 - \cos bWhich is bounded by cos1cosb2|\cos 1 - \cos b| \leq 2. Since 1/x1/x decreases to 00By integration by parts:

1bsinxxdx=cosxx1b1bcosxx2dx\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 bb \to \inftyThe boundary term cosb/b0\cos b / b \to 0 and 1cosxx2dx11x2dx=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 x0+x \to 0^+. Compute:

011xdx=limc0+c1x1/2dx=limc0+[2x]c1=limc0+(22c)=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 01xpdx\int_0^1 x^{-p}\, dx converges for p<1p \lt 1 and Diverges for p1p \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): 1xpdx\int_1^{\infty} x^{-p}\, dx converges iff p>1p > 1.

Specifically:

  • p=2p = 2: 11/x2dx=limb[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: 11/xdx=limblnb=\int_1^{\infty} 1/x\, dx = \lim_{b \to \infty} \ln b = \infty. Diverges.
  • p=1/2p = 1/2: 11/xdx=limb[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:

0xexdx=lima0+limbabxexdx\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=exdxdv = e^{-x}\, dxSo du=dxdu = dx, v=exv = -e^{-x}:

xexdx=xex+exdx=xexex=(x+1)ex\int x e^{-x}\, dx = -xe^{-x} + \int e^{-x}\, dx = -xe^{-x} - e^{-x} = -(x+1)e^{-x}

Evaluating: limb[(b+1)eb]lima0+[(a+1)ea]=0(1)=1\lim_{b \to \infty} [-(b+1)e^{-b}] - \lim_{a \to 0^+} [-(a+1)e^{-a}] = 0 - (-1) = 1.

So 0xexdx=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. :::

7. Sequences and Series of Functions

7.1 Pointwise Convergence

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

Definition. (fn)(f_n) converges pointwise to ff on EE if for every xEx \in E and every ε>0\varepsilon > 0There exists NNN \in \mathbb{N} (depending on both xx and ε\varepsilon) such that fn(x)f(x)<ε|f_n(x) - f(x)| \lt \varepsilon for all nNn \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)=xn0f_n(x) = x^n \to 0And fn(1)=1f_n(1) = 1 for all nn. So fnf_n converges pointwise to

f(x)={0if 0x<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.

7.2 Uniform Convergence

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

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

Equivalently, supxEfn(x)f(x)0\sup_{x \in E} |f_n(x) - f(x)| \to 0 as nn \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 supx[0,1]fn(x)f(x)=supx[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 x1x \to 1^-). This does not tend to 00.

However, on [0,r][0, r] for any r<1r \lt 1: supx[0,r]xn=rn0\sup_{x \in [0,r]} |x^n| = r^n \to 0So the convergence Is uniform on [0,r][0, r].

7.3 The Weierstrass M-Test

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 xEx \in E and all nnAnd n=1Mn<\sum_{n=1}^{\infty} M_n \lt \inftyThen n=1fn\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>nNm > n \geq N:

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

Then for all xEx \in E and m>nNm > n \geq N:

Sm(x)Sn(x)=k=n+1mfk(x)k=n+1mfk(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

7.4 Uniform Convergence and Continuity

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 cEc \in E and ε>0\varepsilon > 0. Since fnff_n \to f uniformly, choose NN such that fN(x)f(x)<ε/3|f_N(x) - f(x)| \lt \varepsilon/3 for all xEx \in E. Since fNf_N is continuous at ccChoose δ>0\delta > 0 such that xc<δ|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

7.5 Uniform Convergence and Integration

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

limnabfn(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 supfN(x)f(x)<ε/(2(ba))\sup |f_N(x) - f(x)| \lt \varepsilon/(2(b-a)) for all x[a,b]x \in [a, b]. Then fNε/(2(ba))f(x)fN(x)+ε/(2(ba))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ε2abfabfabfN+ε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 ffε\overline{\int} f - \underline{\int} f \leq \varepsilonProving ff is integrable. For the limit:

abfnabfabfnf(ba)sup[a,b]fnf0\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

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)=limnfn(x)f'(x) = \lim_{n \to \infty} f_n'(x).

Proof. Let g=limfng = \lim f_n' (uniform limit). Define f(x)=limn[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)dtcxg(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)+abfn(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

7.7 Power Series

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

Theorem 7.5 (Radius of Convergence). Every power series cn(xa)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 xa<R|x - a| \lt R
  • The series diverges for xa>R|x - a| > R
  • The behavior at xa=R|x - a| = R must be checked separately

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

Proof. Apply the root test to cn(xa)n\sum |c_n (x-a)^n|: lim supcnnxa=xa/R\limsup \sqrt[n]{|c_n|} |x-a| = |x-a|/R (where 1/R=lim supcnn1/R = \limsup \sqrt[n]{|c_n|}). The root test gives convergence when xa/R<1|x-a|/R \lt 1 And divergence when xa/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=0cn(xa)nf(x) = \sum_{n=0}^{\infty} c_n (x-a)^n Has radius of convergence R>0R > 0Then:

  1. ff is differentiable on (aR,a+R)(a - R, a + R) and f(x)=n=1ncn(xa)n1f'(x) = \sum_{n=1}^{\infty} n c_n (x - a)^{n-1} (same RR).
  2. ff is infinitely differentiable on (aR,a+R)(a - R, a + R)And f(k)(x)=n=kn!(nk)!cn(xa)nkf^{(k)}(x) = \sum_{n=k}^{\infty} \frac{n!}{(n-k)!} c_n (x - a)^{n-k}.
  3. axf(t)dt=n=0cnn+1(xa)n+1\int_a^x f(t)\, dt = \sum_{n=0}^{\infty} \frac{c_n}{n+1}(x - a)^{n+1} for xa<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(xa)n1\sum n c_n (x-a)^{n-1} has the same radius of convergence as The original (by the Cauchy-Hadamard formula, since nn1\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=0cn\sum_{n=0}^{\infty} c_n converges to LLThen

limx1n=0cnxn=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 snLs_n \to L. Write the partial sum k=0nckxk=k=0n(sksk1)xk\sum_{k=0}^{n} c_k x^k = \sum_{k=0}^{n}(s_k - s_{k-1})x^k (with s1=0s_{-1} = 0) and use summation by Parts to express this as snxn+k=0n1sk(xkxk+1)s_n x^n + \sum_{k=0}^{n-1} s_k(x^k - x^{k+1}). Letting nn \to \infty and using That snLs_n \to L and xn0x^n \to 0 for x<1|x| \lt 1One shows the expression tends to LL as x1x \to 1^-. \blacksquare

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

7.8 Taylor Series Convergence

The Taylor series of ff at aa is n=0f(n)(a)n!(xa)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 CC^{\infty} function is analytic. The standard counterexample is:

f(x)={e1/x2x00x=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 x0x \neq 0.

7.9 Worked Examples

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]: xnn21n2\left|\frac{x^n}{n^2}\right| \leq \frac{1}{n^2}. Since n=11n2\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: limncn+1cn=limnn!(n+1)!=limn1n+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 xRx \in \mathbb{R}. This is the power series for exe^x. By Theorem 7.4, the derivative of the sum equals n=1nxn1n!=n=1xn1(n1)!=k=0xkk!=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:

limncn+1cn=limn(n+1)!n!=limn(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 x1x \geq 1: limnx1+nx=limn11/x+n=0\lim_{n \to \infty} \frac{x}{1 + nx} = \lim_{n \to \infty} \frac{1}{1/x + n} = 0.

Uniform convergence: supx[1,)x1+nx0=supx1x1+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:

supx1x1+nx=limxx1+nx=1n\sup_{x \geq 1} \frac{x}{1 + nx} = \lim_{x \to \infty} \frac{x}{1 + nx} = \frac{1}{n}

Since supfn=1/n0\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.

8. Problem Set

Problem 1. Let A,BRA, B \subseteq \mathbb{R} be non-empty and bounded above. Prove that sup(AB)=max(supA,supB)\sup(A \cup B) = \max(\sup A, \sup B).

Solution

Solution. Let M=max(supA,supB)M = \max(\sup A, \sup B). Without loss, assume supAsupB\sup A \geq \sup BSo M=supAM = \sup A. For all xABx \in A \cup B: either xAx \in ASo xsupA=Mx \leq \sup A = M; or xBx \in BSo xsupBMx \leq \sup B \leq M. Thus MM is an upper bound for ABA \cup B.

For the least property: since M=supAM = \sup A and AABA \subseteq A \cup BEvery upper bound of ABA \cup B Is an upper bound of AAHence supA=M\geq \sup A = M. Therefore sup(AB)=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 infA=sup(A)\inf A = -\sup(-A) for any non-empty bounded set ARA \subseteq \mathbb{R}.

Solution

Solution. Let u=sup(A)u = \sup(-A). For all aAa \in A: aA-a \in -ASo au-a \leq uGiving aua \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 uvu \leq -vI.e., uv-u \geq v. Hence u-u is the greatest lower bound, so infA=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 limnn2+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+112=2(n2+3n)(2n2+1)2(2n2+1)=6n12(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 n1n \geq 1: 6n1<6n6n - 1 \lt 6n and 2n2+1>2n22n^2 + 1 > 2n^2So

6n12(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 nNn \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)an2/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 n2n \geq 2. Note a1=1a_1 = 1, a2=3/2a_2 = 3/2. an+1an=12(an+2/an)an=12(2/anan)=2an22ana_{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 an2a_n \geq \sqrt{2} for n2n \geq 2, an22a_n^2 \geq 2So an+1an0a_{n+1} - a_n \leq 0.

Step 3: By the Monotone Convergence Theorem, L=limanL = \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 an2a_n \geq \sqrt{2} for n2n \geq 2, L0L \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 supnan\limsup_{n \to \infty} a_n and lim infnan\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)nnn+1a_n = 2 + (-1)^n \cdot \frac{n}{n+1}.

For even n=2kn = 2k: a2k=2+2k2k+12+1=3a_{2k} = 2 + \frac{2k}{2k+1} \to 2 + 1 = 3. For odd n=2k1n = 2k - 1: a2k1=22k12k21=1a_{2k-1} = 2 - \frac{2k-1}{2k} \to 2 - 1 = 1.

Since these are the only two subsequential limits: lim supan=3\limsup a_n = 3 and lim infan=1\liminf a_n = 1. The sequence diverges since lim suplim inf\limsup \neq \liminf. \blacksquare

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

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

Solution

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

21x(lnx)2dx=ln21u2du=[1u]ln2=1ln2<\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 an0a_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=11n(n+2)\sum_{n=1}^{\infty} \frac{1}{n(n+2)}.

Solution

Solution. Use partial fractions: 1n(n+2)=12(1n1n+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[(1113)+(1214)+(1315)++(1N1N+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+121N+11N+2)S_N = \frac{1}{2}\left(1 + \frac{1}{2} - \frac{1}{N+1} - \frac{1}{N+2}\right)

As NN \to \infty: SN12(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=11/2=1/2>0S_2 = 1 - 1/2 = 1/2 > 0. S3=11/21/4=1/4>0S_3 = 1 - 1/2 - 1/4 = 1/4 > 0. S4=11/21/41/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/41/8=1/8>0S_6 = 1/4 - 1/8 = 1/8 > 0. S7=1/81/10=1/40>0S_7 = 1/8 - 1/10 = 1/40 > 0. S8=1/401/12=7/120<0S_8 = 1/40 - 1/12 = -7/120 \lt 0.

Continue this process. Since 1/(2k1)=\sum 1/(2k-1) = \infty and 1/(2k)=\sum 1/(2k) = \inftyWe can always Continue. Since 1/n01/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 aRa \in \mathbb{R}.

Solution

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

f(x)f(a)=x3a3=xax2+ax+a2|f(x) - f(a)| = |x^3 - a^3| = |x - a| \cdot |x^2 + ax + a^2|

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

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

x3a3xaM<εMM=ε|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 x0=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 x0x \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 CRC \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.31200.00032=1.3×0.000321203.47×106|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×1063.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 01x3dx\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 [(i1)/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=((i1)/n)3m_i = ((i-1)/n)^3.

U(f,Pn)=i=1ni3n31n=1n4i=1ni3=1n4n2(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 nn \to \infty:

limnU(f,Pn)=limn(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 01x3dx=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)={1xQ0xQf(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 [xi1,xi][x_{i-1}, x_i] of any partition contains both rational and Irrational numbers (by density of Q\mathbb{Q} and density of RQ\mathbb{R} \setminus \mathbb{Q}). So Mi=supf=1M_i = \sup f = 1 and mi=inff=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 01f=10=01f\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 01x1x2dx\int_0^1 \frac{x}{\sqrt{1 - x^2}}\, dx as an improper integral.

Solution

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

01x1x2dx=limb10bx1x2dx\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=1x2u = 1 - x^2, du=2xdxdu = -2x\, dx:

=limb1[1x2]0b=limb1(1b2+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: limnfn(x)=limnnx1+n2x2=limnx/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 fn0f_n \to 0 pointwise on (0,)(0, \infty).

Uniform convergence? We check supx>0fn(x)0=supx>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)nx2n2x(1+n2x2)2=nn3x2(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: nn3x2=0n - n^3 x^2 = 0So x=1/nx = 1/n. The maximum value is fn(1/n)=n1/n1+n2/n2=12f_n(1/n) = \frac{n \cdot 1/n}{1 + n^2/n^2} = \frac{1}{2}.

Since supx>0fn(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)2x\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+1x=4n+2n+1x4xas 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 4x<14|x| \lt 1I.e., x<1/4|x| \lt 1/4And diverges when 4x>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 fn0f_n \to 0 uniformly, but fn(x)=xn1f_n'(x) = x^{n-1} does not converge uniformly on (0,1)(0, 1).

Solution

Solution. Uniform convergence of fnf_n: supx[0,1]xn/n=1/n0\sup_{x \in [0,1]} |x^n/n| = 1/n \to 0 as nn \to \infty. So fn0f_n \to 0 uniformly on [0,1][0, 1].

Non-uniform convergence of fnf_n': fn(x)=xn1f_n'(x) = x^{n-1}. The pointwise limit is g(x)=0g(x) = 0 for 0x<10 \leq x \lt 1 and g(1)=1g(1) = 1. So supx[0,1]fn(x)g(x)fn(1)g(1)=11=0\sup_{x \in [0,1]} |f_n'(x) - g(x)| \geq |f_n'(1) - g(1)| = |1 - 1| = 0.

Actually, check supx[0,1)xn1=1\sup_{x \in [0,1)} |x^{n-1}| = 1 (approached as x1x \to 1^-). But g(x)=0g(x) = 0 on [0,1)[0, 1)So supx[0,1)xn10=1\sup_{x \in [0,1)} |x^{n-1} - 0| = 1 for all nn. This does not Tend to 00So fnf_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: limnx1+nx2=limn11/x+nx=0\lim_{n \to \infty} \frac{x}{1 + nx^2} = \lim_{n \to \infty} \frac{1}{1/x + nx} = 0. So fn0f_n \to 0 pointwise.

Uniform convergence on [0,)[0, \infty)? We check supx0fn(x)\sup_{x \geq 0} |f_n(x)|. Differentiate: ddx(x1+nx2)=1nx2(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 supx0fn(x)=12n0\sup_{x \geq 0} |f_n(x)| = \frac{1}{2\sqrt{n}} \to 0 as nn \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 x1|x| \leq 1: (1)nx2n+12n+112n+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 x1|x| \leq 1 (since x2n+12n+1\frac{|x|^{2n+1}}{2n+1} decreases to 00 for x1|x| \leq 1). The sum is arctanx\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+1x1+x212\left|\sum_{k=0}^{n} (-1)^k x^{2k+1}\right| \leq \frac{|x|}{1 + x^2} \leq \frac{1}{2} for x1|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=arctan1=π/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.

Common Pitfalls

  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.

Worked Examples

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<x2<δ0 < |x - 2| < \delta, then:

f(x)f(2)=3x+17=3x2<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

Example 2: Convergence of a Sequence

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

Solution. Claim: an2a_n \to 2.

an2=2n+1n+32=2n+12n6n+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: an2=5n+3<5N+3<ε|a_n - 2| = \frac{5}{n+3} < \frac{5}{N+3} < \varepsilon.

Therefore an2a_n \to 2 by definition.

\blacksquare

Summary

  • 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)=limh0f(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.

Cross-References

TopicSiteLink
Complex AnalysisWyattsNotesView
Linear AlgebraWyattsNotesView
Multivariable CalculusWyattsNotesView
Real Analysis — MIT 18.100MIT OCWView

:::