Exercises from Real Analysis with worked solutions.

Exercise 28. Question 5.1.A
§5.1HW 5
Use the ε–r definition of the limit of a function to showlim⁡x→2x2=4.\text{Use the $\varepsilon$–$r$ definition of the limit of a function to show} \\ \lim_{x \to 2} x^2 = 4.
Exercise 29. Question 5.1.B
§5.1HW 5
Show that the functionf(x)={xsin⁡xif 0<∣x∣<π/21if x=0is continuous at 0. Find an r>0 such that ∣f(x)−1∣<10−6for all ∣x∣<r.\text{Show that the function} \\ f(x) = \begin{cases} \dfrac{x}{\sin x} & \text{if } 0 < |x| < \pi/2 \\ 1 & \text{if } x = 0 \end{cases} \\ \text{is continuous at 0. Find an $r > 0$ such that $|f(x) - 1| < 10^{-6}$} \\ \text{for all $|x| < r$.}
Exercise 30. Question 5.1.C
§5.1HW 5
Show that the sawtooth functionf(x)={x−2nif 2n≤x≤2n+1, n∈Z2n−xif 2n−1≤x≤2n, n∈Zis continuous.\text{Show that the sawtooth function} \\ f(x) = \begin{cases} x - 2n & \text{if } 2n \leq x \leq 2n + 1, \ n \in \mathbb{Z} \\ 2n - x & \text{if } 2n - 1 \leq x \leq 2n, \ n \in \mathbb{Z} \end{cases} \\ \text{is continuous.}
Exercise 31. Question 5.1.F
§5.1HW 5
(a) Show that the definition of limit can be reformulated usingopen balls instead of norms as follows: A function f mappinga subset S⊂Rn into Rm has limit v as x approaches aprovided that for every ε>0, there is an r>0 such thatf(Br(a)∩S∖{a})⊂Bε(v).(b) Provide a similar reformulation of the statement that f iscontinuous at a.\text{(a) Show that the definition of limit can be reformulated using} \\ \text{open balls instead of norms as follows: A function $f$ mapping} \\ \text{a subset $S \subset \mathbb{R}^n$ into $\mathbb{R}^m$ has limit $\mathbf{v}$ as $\mathbf{x}$ approaches $\mathbf{a}$} \\ \text{provided that for every $\varepsilon > 0$, there is an $r > 0$ such that} \\ f(B_r(\mathbf{a}) \cap S \setminus \{\mathbf{a}\}) \subset B_\varepsilon(\mathbf{v}). \\ \text{(b) Provide a similar reformulation of the statement that $f$ is} \\ \text{continuous at $\mathbf{a}$.}
Exercise 32. Question 5.1.G
§5.1HW 5
Suppose that functions f,g,h mapping S⊂Rn into R satisfyf(x)≤g(x)≤h(x) for x∈S. Suppose that c is a limit point ofS and lim⁡x→cf(x)=lim⁡x→ch(x)=L.Show that lim⁡x→cg(x)=L.\text{Suppose that functions $f, g, h$ mapping $S \subset \mathbb{R}^n$ into $\mathbb{R}$ satisfy} \\ \text{$f(\mathbf{x}) \leq g(\mathbf{x}) \leq h(\mathbf{x})$ for $\mathbf{x} \in S$. Suppose that $\mathbf{c}$ is a limit point of} \\ \text{$S$ and $\lim_{\mathbf{x} \to \mathbf{c}} f(\mathbf{x}) = \lim_{\mathbf{x} \to \mathbf{c}} h(\mathbf{x}) = L$.} \\ \text{Show that $\lim_{\mathbf{x} \to \mathbf{c}} g(\mathbf{x}) = L$.}
Exercise 33. Question 5.1.H
§5.1HW 5
Define a function on the set S={0}∪{1n:n≥1} byf(1n)=an and f(0)=L. Prove that f is continuous on Sif and only if lim⁡n→∞an=L.\text{Define a function on the set $S = \{0\} \cup \{\frac{1}{n} : n \geq 1\}$ by} \\ \text{$f(\frac{1}{n}) = a_n$ and $f(0) = L$. Prove that $f$ is continuous on $S$} \\ \text{if and only if $\lim_{n \to \infty} a_n = L$.}
Exercise 34. Question 5.1.K
§5.1HW 5
Here πj:Rn→R is πj(x)=xj, and ϵi:R→Rm isϵi(t)=tei, so ϵiπj(x)=xjei.(a) Show that a linear transformation A:Rn→Rm withm×n matrix [aij] can be written asA=∑i=1m∑j=1naijϵiπj.(b) Show that ϵiπj is Lipschitz with constant 1.(c) Hence deduce that A is Lipschitz with constant∑i=1m∑j=1n∣aij∣.\text{Here $\pi_j : \mathbb{R}^n \to \mathbb{R}$ is $\pi_j(\mathbf{x}) = x_j$, and $\epsilon_i : \mathbb{R} \to \mathbb{R}^m$ is} \\ \text{$\epsilon_i(t) = t\mathbf{e}_i$, so $\epsilon_i \pi_j(\mathbf{x}) = x_j \mathbf{e}_i$.} \\ \text{(a) Show that a linear transformation $A : \mathbb{R}^n \to \mathbb{R}^m$ with} \\ \text{$m \times n$ matrix $[a_{ij}]$ can be written as} \\ A = \sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij} \epsilon_i \pi_j. \\ \text{(b) Show that $\epsilon_i \pi_j$ is Lipschitz with constant 1.} \\ \text{(c) Hence deduce that $A$ is Lipschitz with constant} \\ \textstyle\sum_{i=1}^{m} \sum_{j=1}^{n} |a_{ij}|.
Exercise 35. Question 5.1.L
§5.1HW 5
Consider the linear transformation on R4 given by the matrixA=[1212121212−1212−121212−12−1212−12−1212].(a) Compute the Lipschitz constant obtained in Corollary 5.1.7.(b) Show that ∥Ax∥=∥x∥ for all x∈R4. Hence deducethat the optimal Lipschitz constant is 1.\text{Consider the linear transformation on $\mathbb{R}^4$ given by the matrix} \\ A = \begin{bmatrix} \frac{1}{2} & \frac{1}{2} & \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} & -\frac{1}{2} \\ \frac{1}{2} & \frac{1}{2} & -\frac{1}{2} & -\frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \end{bmatrix}. \\ \text{(a) Compute the Lipschitz constant obtained in Corollary 5.1.7.} \\ \text{(b) Show that $\lVert A\mathbf{x} \rVert = \lVert \mathbf{x} \rVert$ for all $\mathbf{x} \in \mathbb{R}^4$. Hence deduce} \\ \text{that the optimal Lipschitz constant is 1.}
Exercise 36. Question 5.2.A
§5.2HW 6
Let A be a subset of Rn. Show that the characteristicfunction χA is continuous on the interior of A and on theinterior of its complement A′ but is discontinuous on theboundary ∂A=A‾∩A′‾.\text{Let $A$ be a subset of $\mathbb{R}^n$. Show that the characteristic} \\ \text{function $\chi_A$ is continuous on the interior of $A$ and on the} \\ \text{interior of its complement $A'$ but is discontinuous on the} \\ \text{boundary $\partial A = \overline{A} \cap \overline{A'}$.}
Exercise 37. Question 5.2.F
§5.2HW 6
Prove that L=lim⁡x→af(x) if and only if bothlim⁡x→a−f(x)=L and lim⁡x→a+f(x)=L.\text{Prove that $L = \lim_{x \to a} f(x)$ if and only if both} \\ \lim_{x \to a^-} f(x) = L \text{ and } \lim_{x \to a^+} f(x) = L.
Exercise 38. Question 5.2.G
§5.2HW 6
(A monotone convergence test for functions.) Suppose that fis an increasing function on (a,b) that is bounded above.Prove that the one-sided limit lim⁡x→b−f(x) exists.\text{(A monotone convergence test for functions.) Suppose that $f$} \\ \text{is an increasing function on $(a, b)$ that is bounded above.} \\ \text{Prove that the one-sided limit $\lim_{x \to b^-} f(x)$ exists.}
Exercise 39. Question 5.3.B
§5.3HW 6
Use Lemma 4.2.3 and the sequential characterization ofcontinuity to give a second proof for Example 5.3.6.\text{Use Lemma 4.2.3 and the sequential characterization of} \\ \text{continuity to give a second proof for Example 5.3.6.}
Exercise 40. Question 5.3.C
§5.3HW 6
Consider f mapping S⊂Rn into Rm and two points: a a limitpoint of S∖{a} and v∈Rm. Show that lim⁡x→af(x)=v if and onlyif for each sequence (xk)∈S∖{a} with lim⁡k→∞xk=a, wehave lim⁡k→∞f(xk)=v.\text{Consider $f$ mapping $S \subset \mathbb{R}^n$ into $\mathbb{R}^m$ and two points: $\mathbf{a}$ a limit} \\ \text{point of $S \setminus \{\mathbf{a}\}$ and $\mathbf{v} \in \mathbb{R}^m$. Show that $\lim_{\mathbf{x} \to \mathbf{a}} f(\mathbf{x}) = \mathbf{v}$ if and only} \\ \text{if for each sequence $(\mathbf{x}_k) \in S \setminus \{\mathbf{a}\}$ with $\lim_{k \to \infty} \mathbf{x}_k = \mathbf{a}$, we} \\ \text{have $\lim_{k \to \infty} f(\mathbf{x}_k) = \mathbf{v}$.}
Exercise 41. Question 5.3.D
§5.3HW 6
Suppose that f mapping S⊂Rn into Rm is given byf(x)=(f1(x),…,fm(x)) with fi:S→R for each i. Showthat lim⁡x→af(x)=(u1,…,um) if and only iflim⁡x→afi(x)=ui for each i.\text{Suppose that $f$ mapping $S \subset \mathbb{R}^n$ into $\mathbb{R}^m$ is given by} \\ \text{$f(\mathbf{x}) = (f_1(\mathbf{x}), \ldots, f_m(\mathbf{x}))$ with $f_i : S \to \mathbb{R}$ for each $i$. Show} \\ \text{that $\lim_{\mathbf{x} \to \mathbf{a}} f(\mathbf{x}) = (u_1, \ldots, u_m)$ if and only if} \\ \text{$\lim_{\mathbf{x} \to \mathbf{a}} f_i(\mathbf{x}) = u_i$ for each $i$.}
Exercise 42. Question 5.3.E
§5.3HW 6
Let f and g be continuous mappings of S⊂Rn into Rm. Showthat the inner product h(x)=⟨f(x),g(x)⟩ is continuous.\text{Let $f$ and $g$ be continuous mappings of $S \subset \mathbb{R}^n$ into $\mathbb{R}^m$. Show} \\ \text{that the inner product $h(\mathbf{x}) = \langle f(\mathbf{x}), g(\mathbf{x}) \rangle$ is continuous.}
Exercise 43. Question 5.3.H
§5.3HW 7
Let f be a continuous real-valued function defined on an opensubset U of Rn. Show that{(x,y):x∈U, y>f(x)}is an open subset of Rn+1.\text{Let $f$ be a continuous real-valued function defined on an open} \\ \text{subset $U$ of $\mathbb{R}^n$. Show that} \\ \{ (\mathbf{x}, y) : \mathbf{x} \in U, \ y > f(\mathbf{x}) \} \\ \text{is an open subset of $\mathbb{R}^{n+1}$.}
Exercise 44. Question 5.3.I
§5.3HW 7
(a) Show that m(x,y)=max⁡{x,y} is continuous on R2.(b) Hence show that if f and g are continuous real-valuedfunctions on a set S⊂Rn, then h(x)=max⁡{f(x),g(x)}is continuous on S.(c) Use induction to show that if fi are continuous real-valuedfunctions on S for 1≤i≤k, then h(x)=max⁡1≤i≤kfi(x)is continuous.\text{(a) Show that $m(x, y) = \max\{x, y\}$ is continuous on $\mathbb{R}^2$.} \\ \text{(b) Hence show that if $f$ and $g$ are continuous real-valued} \\ \text{functions on a set $S \subset \mathbb{R}^n$, then $h(\mathbf{x}) = \max\{f(\mathbf{x}), g(\mathbf{x})\}$} \\ \text{is continuous on $S$.} \\ \text{(c) Use induction to show that if $f_i$ are continuous real-valued} \\ \text{functions on $S$ for $1 \leq i \leq k$, then $h(\mathbf{x}) = \max_{1 \leq i \leq k} f_i(\mathbf{x})$} \\ \text{is continuous.}
Exercise 45. Question 5.3.L
§5.3HW 7
Give example of a continuous function f and an open set Usuch that f(U) is not open.\text{Give example of a continuous function $f$ and an open set $U$} \\ \text{such that $f(U)$ is not open.}
Exercise 46. Question 5.4.A
§5.4HW 7
If A is a noncompact subset of Rn, show that there is abounded continuous real-valued function on A that does notattain its maximum.\text{If $A$ is a noncompact subset of $\mathbb{R}^n$, show that there is a} \\ \text{bounded continuous real-valued function on $A$ that does not} \\ \text{attain its maximum.}
Exercise 47. Question 5.4.B
§5.4HW 7
Find a discontinuous function on [0,1] that is bounded but doesnot achieve its supremum.\text{Find a \textit{discontinuous} function on $[0, 1]$ that is bounded but does} \\ \text{not achieve its supremum.}
Exercise 48. Question 5.4.E
§5.4HW 7
Show that a function f mapping a compact set S⊂Rn into Rmis continuous if and only if its graphG(f)={(x,f(x)):x∈S}is compact.\text{Show that a function $f$ mapping a \textit{compact} set $S \subset \mathbb{R}^n$ into $\mathbb{R}^m$} \\ \text{is continuous if and only if its graph} \\ G(f) = \{ (\mathbf{x}, f(\mathbf{x})) : \mathbf{x} \in S \} \\ \text{is compact.}
Exercise 49. Question 5.4.G
§5.4HW 7
Suppose that f is a positive continuous function on Rn such thatlim⁡∥x∥→∞f(x)=0[i.e., for all ε>0, there is an N so that ∣f(x)∣<ε for allx with ∥x∥>N]. Show that f attains its maximum.\text{Suppose that $f$ is a \textit{positive} continuous function on $\mathbb{R}^n$ such that} \\ \lim_{\lVert \mathbf{x} \rVert \to \infty} f(\mathbf{x}) = 0 \\ \text{[i.e., for all $\varepsilon > 0$, there is an $N$ so that $|f(\mathbf{x})| < \varepsilon$ for all} \\ \text{$\mathbf{x}$ with $\lVert \mathbf{x} \rVert > N$]. Show that $f$ attains its maximum.}
Exercise 50. Question 5.4.H
§5.4HW 7
Let f be a periodic function on R, meaning that there is d>0with f(x+d)=f(x) for all x∈R. (We call d the period of fif it is the least positive number with this property and saythat f is d-periodic.) Show that if f is continuous, then fattains its maximum and minimum on R.\text{Let $f$ be a periodic function on $\mathbb{R}$, meaning that there is $d > 0$} \\ \text{with $f(x + d) = f(x)$ for all $x \in \mathbb{R}$. (We call $d$ the period of $f$} \\ \text{if it is the least positive number with this property and say} \\ \text{that $f$ is d-periodic.) Show that if $f$ is continuous, then $f$} \\ \text{attains its maximum and minimum on $\mathbb{R}$.}
Brown dog curled up asleep on a blanket