Skip to main content

Homework 8

If not stated otherwise, we assume that the metric spaces R\mathbb{R} and Q\mathbb{Q} are quipped with the Euclidean metric d(x,y)=∣x−y∣d(x,y)=|x-y|.

Exercise: Prove using the definition of continuity that the function f:[0,∞)→Rf:[0,\infty)\rightarrow\mathbb{R} defined by f(x)=xf(x)=\sqrt{x} is continuous at every point p∈[0,∞)p\in[0,\infty).

Proof. Suppose ϵ>0\epsilon>0. Let δ=ϵ2\delta=\epsilon^2. If ∣p−q∣<δ|p-q|<\delta, then ∣f(p)−f(q)∣2≤∣p−q∣∣p+q∣=∣p−q∣<ϵ2|f(p)-f(q)|^2\leq|\sqrt{p}-\sqrt{q}||\sqrt{p}+\sqrt{q}|=|p-q|<\epsilon^2, i.e., ∣f(p)−f(q)∣<ϵ|f(p)-f(q)|<\epsilon.

Exercise: Consider the function f:R→Rf:\mathbb{R}\rightarrow\mathbb{R} defined by

f(x)={1/2kif ∣x∣∈[1/2k,1/2k−1), for some k∈Z,0if x=0f(x)=\bigg\{{\begin{array}{cl}1/2^k&\text{if }|x|\in[1/2^k,1/2^{k-1}),\text{ for some } k\in\mathbb{Z},\\0&\text{if }x=0\end{array}}

Prove that ff is continuous at x=0x=0.

Proof. Let g(x)=0g(x)=0 and h(x)=∣x∣h(x)=|x|. Since g(x)≤f(x)≤h(x)g(x)\leq f(x)\leq h(x) and g(0)=f(0)=h(0)g(0)=f(0)=h(0), by problem 5 and the continuity of g(x)g(x) and h(x)h(x), we know that ff is continuous at $$.

Exercise: Suppose f:R→Rf:\mathbb{R}\rightarrow\mathbb{R} satisfies lim⁡h→0[f(x+h)−f(x−h)]=0\lim_{h\rightarrow 0}[f(x+h)-f(x-h)]=0 for every x∈Rx\in\mathbb{R}. Does this imply ff is continuous? Give a proof or a counterexample.

Proof. Suppose f(x)=0f(x) = 0 for all x∈Rx\in\mathbb{R} but $$, and f(0)=1f(0)=1. Then ff satisfies the requirement, but fails to be continuous.

Exercise: Suppose (X,d)(X,d) is a metric space and f,g:X→Rf,g:X\rightarrow\mathbb{R}. State whether the following statements are true or false. If the statement is true, prove it. If it is false, give a counterexample.

  1. If ff is continuous on XX, then ∣f∣|f| is continuous on XX, where ∣f∣(x)=∣f(x)∣|f|(x)=|f(x)| for all x∈Xx\in X.
  2. If |f| is continuous at p∈Xp\in X, then ff is continuous at pp.
  3. Define h:X→Rh: X\rightarrow\mathbb{R} by h(x)=max⁡{f(x),g(x)}h(x)=\max\{f(x),g(x)\} for all x∈Xx\in X. If ff and gg are continuous at p∈Xp\in X, then hh is continuous at pp.
  4. If ff is continuous at p∈Xp\in X, and if f(p)>Mf(p)>M for some M∈RM\in\mathbb{R}, then there is a neighborhood NN of pp in XX, such that f(x)>Mf(x)>M for all x∈Nx\in N.
  5. Suppose dd is the discrete metric on XX. Then every map f:X→Rf:X\rightarrow\mathbb{R} is continuous on XX.

Proof.

  1. Since |f| is really the composition of two continuous functions, i.e., the function ff followed by the absolute value function, so it’s continuous.
  2. Suppose X=RX=\mathbb{R} and f(x)=1f(x)=1 if x≥0x\geq 0, otherwise f(x)=−1f(x)=-1. Then ∣f∣|f| is a constant function, which is continuous, but ff itself fails to be continuous at x=0x=0.
  3. As h(x)=max⁡{f(x),g(x)}=(f(x)+g(x)−∣f(x)−g(x)∣)/2h(x)=\max\{f(x),g(x)\}=(f(x)+g(x)-|f(x)-g(x)|)/2, hh is continuos.
  4. Consider the pre-image of (M,∞](M,\infty]. Since its an open set containing f(p)f(p), by the continuity of ff at pp, the pre-image is a neighborhood of pp. Let N=f−1(M,∞]N=f^{-1}(M,\infty]. It works.
  5. Choose your favorite map f:X→Rf:X\rightarrow\mathbb{R}. Whatever x∈Xx\in X and ϵ>0\epsilon>0 are, always pick δ=1\delta=1. If ∣x−x′∣<δ=1|x-x'|<\delta=1, then x=x′x=x', hence f(x)−f(x′)=0<ϵf(x)-f(x')=0<\epsilon.

Exercise: Suppose ff,gg and hh are functions from R\mathbb{R} to R\mathbb{R} satisfying g(x)≤h(x)≤f(x)g(x)\leq h(x)\leq f(x) for all x∈Rx\in\mathbb{R}. Further, suppose ff and gg are continuous at x=ax=a and f(a)=g(a)f(a)=g(a). Then, prove that hh is continuous at x=ax=a.

Proof. Let b=f(a)=g(a)=h(a)b=f(a)=g(a)=h(a). As ff and gg are continuous at x=ax=a, for every ϵ>0\epsilon > 0, there are δ1>0\delta_1 > 0 and δ2>0\delta_2 > 0, such that if ∣x−a∣<δ1|x-a|<\delta_1, then ∣f(x)−b∣<ϵ|f(x)-b|<\epsilon, and if ∣x−a∣<δ2|x-a|<\delta_2, then ∣g(x)−b∣<ϵ|g(x)-b|<\epsilon. Let δ\delta be the minimum of δ1\delta_1 and δ2\delta_2. If ∣x−a∣<δ|x-a|<\delta, then h(x)−b≤f(x)−b<ϵh(x)-b\leq f(x)-b<\epsilon and b−h(x)≤b−g(x)<ϵb-h(x)\leq b-g(x)<\epsilon. This finishes the proof of the continuity at aa.