A.4 Chapter 4

Exercise 4.11

Let y>x0y>x\geq 0, so that y2+1>x2+1y^{2}+1>x^{2}+1. Hence, (y2+1)1<(x2+1)1(y^{2}+1)^{-1}<(x^{2}+1)^{-1} and therefore

f(y)=1(x2+1)1>1(x2+1)1=f(x)f(y)=1-(x^{2}+1)^{-1}>1-(x^{2}+1)^{-1}=f(x)

and so ff is increasing.

Exercise 4.12

Suppose x<yx<y. Since exp\exp is surjective, there exists a,ba,b such that x=exp(a)x=\exp(a) and y=exp(b)y=\exp(b). Since exp\exp is increasing, we must have a<ba<b. Now, log(x)=log(exp(a))=a\log(x)=\log(\exp(a))=a and log(y)=log(exp(b))=b\log(y)=\log(\exp(b))=b. Thus, since a<ba<b, we have log(x)<log(y)\log(x)<\log(y).

Exercise 4.16

Let aa, bb\in\mathbb{R} with a<ba<b. By the density of the rational numbers from Lemma 1.49, we know that there exists some a<x1<ba<x_{1}<b with x1x_{1}\in\mathbb{Q}. By the density of the irrational numbers Lemma 1.53, we know that there exists some x1<y<bx_{1}<y<b with yy\in\mathbb{R}\setminus\mathbb{Q}. Finally, again by the density of the rational numbers from Lemma 1.49, we know that there exists some y<x2<by<x_{2}<b with x2x_{2}\in\mathbb{Q}. Observe that:

  • a<x1<y<ba<x_{1}<y<b with χ(x1)=1>0=χ(y)\chi_{\mathbb{Q}}(x_{1})=1>0=\chi_{\mathbb{Q}}(y) since x1x_{1}\in\mathbb{Q} and yy\in\mathbb{R}\setminus\mathbb{Q}. Hence χ\chi_{\mathbb{Q}} is not nondecreasing on (a,b)(a,b).

  • a<y<x2<ba<y<x_{2}<b with χ(y)=0<1=χ(x2)\chi_{\mathbb{Q}}(y)=0<1=\chi_{\mathbb{Q}}(x_{2}) since x2x_{2}\in\mathbb{Q} and yy\in\mathbb{R}\setminus\mathbb{Q}. Hence χ\chi_{\mathbb{Q}} is not nonincreasing on (a,b)(a,b).

Thus, χ\chi_{\mathbb{Q}} is not monotone on the interval (a,b)(a,b).

Exercise 4.19

(i) Let δ>0\delta>0. If x(,δ][δ,)x\in(-\infty,-\delta]\cup[\delta,\infty), then |x|δ|x|\geq\delta. Consequently, |r(x)|=1/|x|1/δ|r(x)|=1/|x|\leq 1/\delta, and so rr is bounded above by 1/δ1/\delta and below by 1/δ-1/\delta on the set (,δ][δ,)(-\infty,-\delta]\cup[\delta,\infty).

(ii) Let δ>0\delta>0. Given any M>0M>0, let xx\in\mathbb{R} satisfy 0<x<min{δ,1/M}0<x<\min\{\delta,1/M\}. Then r(x)=1/x>Mr(x)=1/x>M and so MM is not an upper bound for rr on (δ,δ){0}(-\delta,\delta)\setminus\{0\}. However, since M>0M>0 was chosen arbitrarily, it follows that rr is unbounded on (δ,δ){0}(-\delta,\delta)\setminus\{0\}.

Exercise 4.23

For xx\in\mathbb{R}, we have

|(x)(1)|=|5x+6(5+6)|=5|x1|.|\ell(x)-\ell(1)|=|5x+6-(5+6)|=5|x-1|.

Let ε>0\varepsilon>0 be given and choose δ:=ε/5>0\delta:=\varepsilon/5>0. If xx\in\mathbb{R} satisfies |x1|<δ|x-1|<\delta, then

|(x)(1)|=5|x1|<5δ=ε.|\ell(x)-\ell(1)|=5|x-1|<5\delta=\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition, the function \ell is continuous at 11.

Exercise 4.24

Figure A.1: The function f(x):=x3f(x):=x^{3} for x0x\geq 0 and f(x):=xf(x):=x for x<0x<0.

We consider two cases:

  • If x<0x<0, then |f(x)f(0)|=|x0|=|x||f(x)-f(0)|=|x-0|=|x|.

  • If 0x<10\leq x<1, then |f(x)f(0)|=|x30|=|x|3<|x||f(x)-f(0)|=|x^{3}-0|=|x|^{3}<|x|.

In particular, for x<1x<1 we have |f(x)f(0)||x||f(x)-f(0)|\leq|x|.

Let ε>0\varepsilon>0 be given and choose δ:=min{ε,1}>0\delta:=\min\{\varepsilon,1\}>0. Suppose xx\in\mathbb{R} satisfies |x|<δ|x|<\delta, so that x<1x<1. By our earlier observation,

|f(x)f(0)||x|<δε.|f(x)-f(0)|\leq|x|<\delta\leq\varepsilon.

Thus, by the ε\varepsilon-δ\delta definition, ff is continuous at 0.

Exercise 4.27

Let aa\in\mathbb{R}. For xx\in\mathbb{R}, we have

|p3(x)p3(a)|=|x3a3|=|x2+ax+a2||xa|(|x|2+|a||x|+|a|2)|xa|,|p_{3}(x)-p_{3}(a)|=|x^{3}-a^{3}|=|x^{2}+ax+a^{2}||x-a|\leq\big{(}|x|^{2}+|a||% x|+|a|^{2}\big{)}|x-a|,

where the last step is by the triangle inequality. Now suppose |xa|<1|x-a|<1. Then another application of the triangle inequality yields

|x||a|+|xa|<|a|+1|x|\leq|a|+|x-a|<|a|+1

and so

|p3(x)p3(a)|<((|a|+1)2+|a|(|a|+1)+|a|2)|xa|=(3|a|2+3|a|+1)|xa|.|p_{3}(x)-p_{3}(a)|<\big{(}(|a|+1)^{2}+|a|(|a|+1)+|a|^{2}\big{)}|x-a|=(3|a|^{2% }+3|a|+1)|x-a|.

Let ε>0\varepsilon>0 be given and choose

δ:=min{(3|a|2+3|a|+1)1ε,1}>0.\delta:=\min\big{\{}(3|a|^{2}+3|a|+1)^{-1}\varepsilon,1\big{\}}>0.

Suppose xx\in\mathbb{R} satisfies |xa|<δ|x-a|<\delta. Then |xa|<1|x-a|<1 and so it follows by our earlier observations that

|p3(x)p3(a)|<(3|a|2+3|a|+1)|xa|<(3|a|2+3|a|+1)δε.|p_{3}(x)-p_{3}(a)|<(3|a|^{2}+3|a|+1)|x-a|<(3|a|^{2}+3|a|+1)\delta\leq\varepsilon.

Thus, by the ε\varepsilon-δ\delta definition, p3p_{3} is continuous at aa. Since aa\in\mathbb{R} was chosen arbitrarily, it follows that p3:p_{3}\colon\mathbb{R}\to\mathbb{R} is continuous.

Exercise 4.28

Let a(0,)a\in(0,\infty). For x(0,)x\in(0,\infty) we have

|r(x)r(a)|=|1x1a|=|xa||x||a|.|r(x)-r(a)|=\Big{|}\frac{1}{x}-\frac{1}{a}\Big{|}=\frac{|x-a|}{|x||a|}.

Now suppose |xa|<|a|/2|x-a|<|a|/2. Then the triangle inequality yields

|x||a||xa|>|a||a|/2=|a|/2|x|\geq|a|-|x-a|>|a|-|a|/2=|a|/2

and so

|r(x)r(a)|=|1x1a|=|xa||x||a|<2|xa||a|2.|r(x)-r(a)|=\Big{|}\frac{1}{x}-\frac{1}{a}\Big{|}=\frac{|x-a|}{|x||a|}<\frac{2% |x-a|}{|a|^{2}}.

Let ε>0\varepsilon>0 be given and choose

δ:=min{|a|2,|a|2ε2}.\delta:=\min\Big{\{}\frac{|a|}{2},\frac{|a|^{2}\varepsilon}{2}\Big{\}}.

Suppose x(0,)x\in(0,\infty) satisfies |xa|<δ|x-a|<\delta. Then |xa|<|a|/2|x-a|<|a|/2 and so it follows by our earlier observations that

|r(x)r(a)|<2|xa||a|2<2δ|a|2ε.|r(x)-r(a)|<\frac{2|x-a|}{|a|^{2}}<\frac{2\delta}{|a|^{2}}\leq\varepsilon.

Thus, by the ε\varepsilon-δ\delta definition, rr is continuous at aa.

Exercise 4.29

Here is one suggested interpretation.

ε\varepsilon-δ\delta definition (4.4) Informal idea
There exists some ε>0\varepsilon>0 There exists some distance ε>0\varepsilon>0
such that for all δ>0\delta>0 such that no matter how close we are to aa
there exists some xIx\in I with 0<|xa|<δ0<|x-a|<\delta we can find a point xx
such that |f(x)f(a)|ε|f(x)-f(a)|\geq\varepsilon. with f(x)f(x) and f(a)f(a) are at least ε\varepsilon far apart.

Exercise 4.31

Fix ε:=1/2\varepsilon:=1/2 and let δ>0\delta>0 be given. Let xx\in\mathbb{R} satisfy 0<x<δ0<x<\delta, so that |x|<δ|x|<\delta and

|f(x)f(0)|=|10|=1>ε.|f(x)-f(0)|=|1-0|=1>\varepsilon.

Hence, by definition, ff is discontinuous at 0.

Exercise 4.34

(i) We have already reduced to the case θ[0,π/2]\theta\in[0,\pi/2] and so |θ|=θ|\theta|=\theta and |tanθ|=tanθ|\tan\theta|=\tan\theta.

The triangle OACOAC in Figure 4.13(b) has area (tanθ)/2(\tan\theta)/2. On the other hand, the area of the sector OABOAB in Figure 4.13(a) is θ/2\theta/2. Since the triangle contains the sector, θ/2(tanθ)/2\theta/2\leq(\tan\theta)/2 and the result follows.

(ii) By the double angle formula, 1cosθ=2sin2(θ/2)1-\cos\theta=2\sin^{2}(\theta/2). Thus, using the inequality |sinθ||θ||\sin\theta|\leq|\theta|, we have

|1cosθ|=2|sin2(θ/2)|2|θ/2|2=θ2/2|1-\cos\theta|=2|\sin^{2}(\theta/2)|\leq 2|\theta/2|^{2}=\theta^{2}/2

as required.

Exercise 4.38

Let aa\in\mathbb{Q} be a rational point, fix ε:=1/2\varepsilon:=1/2 and let δ>0\delta>0 be given. By the density of the irrationals from Lemma 1.53, there exists some x(a,a+δ)x\in(a,a+\delta) with xx\in\mathbb{R}\setminus\mathbb{Q}. In particular,

0<|xa|<δand|χ(x)χ(a)|=|01|=1>1/2=ε.0<|x-a|<\delta\qquad\text{and}\qquad|\chi_{\mathbb{Q}}(x)-\chi_{\mathbb{Q}}(a)% |=|0-1|=1>1/2=\varepsilon.

Thus, by definition, χ\chi_{\mathbb{Q}} is discontinuous at aa.

Exercise 4.39

The function gg is continuous at 0. Indeed, for x{0}x\in\mathbb{R}\setminus\{0\}, we have

|g(x)g(0)|=|xsin(1/x)0|=|x||sin(1/x)||x|,|g(x)-g(0)|=|x\sin(1/x)-0|=|x||\sin(1/x)|\leq|x|,

since |sin(1/x)|1|\sin(1/x)|\leq 1. On the other hand, clearly |g(x)g(0)||x||g(x)-g(0)|\leq|x| also holds when x=0x=0 (since both sides are 0 in this case).

Let ε>0\varepsilon>0 be given and choose δ:=ε>0\delta:=\varepsilon>0. If |x0|<δ|x-0|<\delta, then

|g(x)g(0)||x|<δ=ε.|g(x)-g(0)|\leq|x|<\delta=\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition of continuity, gg is continuous at 0.

Exercise 4.40

Figure A.2: A schematic of the graph of the function h:h\colon\mathbb{R}\to\mathbb{R} defined by h(x):=xh(x):=x if xx\in\mathbb{Q} and h(x):=0h(x):=0 if xx\in\mathbb{R}\setminus\mathbb{Q}.

We claim that hh continuous at a=0a=0 and discontinuous at all other points.

To see hh is continuous at aa, let ε>0\varepsilon>0 be given and choose δ:=ε\delta:=\varepsilon. If xx\in\mathbb{R} satisfies |x|<δ|x|<\delta, then

|h(x)h(0)|=|h(x)||x|<δ=ε.|h(x)-h(0)|=|h(x)|\leq|x|<\delta=\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition, hh is continuous at 0.

Now let a{0}a\in\mathbb{R}\setminus\{0\} be a rational point; that is, a{0}a\in\mathbb{Q}\setminus\{0\}. We shall show hh is discontinuous at aa. Indeed, let ε:=|a|/2>0\varepsilon:=|a|/2>0 and δ>0\delta>0 be given. By the density of the irrationals from Lemma 1.53, we know that there exists some x(aδ,a+δ)x\in(a-\delta,a+\delta) with xx\in\mathbb{R}\setminus\mathbb{Q}. Thus, |xa|<δ|x-a|<\delta and

|h(x)h(a)|=|0a|=|a|>|a|/2=ε.|h(x)-h(a)|=|0-a|=|a|>|a|/2=\varepsilon.

Hence, by definition, hh is discontinuous at aa.

Now let a{0}a\in\mathbb{R}\setminus\{0\} be an irrational point. Using a similar argument to that above, we shall show hh is discontinuous at aa. Indeed, again let ε:=|a|/2>0\varepsilon:=|a|/2>0 and δ>0\delta>0 be given. Define δ0:=min{δ,|a|/2}\delta_{0}:=\min\{\delta,|a|/2\}. By the density of the rationals from Lemma 1.49, we know that there exists some x(aδ0,a+δ0)x\in(a-\delta_{0},a+\delta_{0}) with xx\in\mathbb{Q}. Thus, |xa|<δ|x-a|<\delta and, by the triangle inequality,

|h(x)h(a)|=|x0|=|x||a||xa|>|a|δ0|a|/2=ε.|h(x)-h(a)|=|x-0|=|x|\geq|a|-|x-a|>|a|-\delta_{0}\geq|a|/2=\varepsilon.

Hence, by definition, hh is discontinuous at aa.

Exercise 4.46

We know from Lemma 4.32 that |cosx1|x2/2|\cos x-1|\leq x^{2}/2 for all x[π/2,π/2]x\in[-\pi/2,\pi/2]. Consequently, if 0<|x|π/20<|x|\leq\pi/2, then

|cosx1x|x221|x|=|x|2.\Big{|}\frac{\cos x-1}{x}\Big{|}\leq\frac{x^{2}}{2}\cdot\frac{1}{|x|}=\frac{|x% |}{2}.

Let ε>0\varepsilon>0 be given and choose δ:=min{π/2,ε/2}>0\delta:=\min\{\pi/2,\varepsilon/2\}>0. If 0<|x|<δ0<|x|<\delta, then 0<|x|π/20<|x|\leq\pi/2 and it follows from our earlier observations that

|cosx1x||x|2<ε.\Big{|}\frac{\cos x-1}{x}\Big{|}\leq\frac{|x|}{2}<\varepsilon.

Thus, by the ε\varepsilon-δ\delta definition, cosx1x0\frac{\cos x-1}{x}\to 0 as x0x\to 0.

Exercise 4.47

We claim that limx1f(x)=0\lim_{x\to 1}f(x)=0. To see this, let ε>0\varepsilon>0 be given. We break the proof up into two parts.

  • Since sin:\sin\colon\mathbb{R}\to\mathbb{R} is continuous by Lemma 4.33 (and, in particular, continuous at the point π\pi), there exists some η1>0\eta_{1}>0 such that

    |sin(πx)0|=|sin(πx)sin(π)|<εif x satisfies |πxπ|<η1.|\sin(\pi x)-0|=|\sin(\pi x)-\sin(\pi)|<\varepsilon\qquad\text{if $x\in\mathbb% {R}$ satisfies $|\pi x-\pi|<\eta_{1}$.}

    If we define δ1:=η1/π>0\delta_{1}:=\eta_{1}/\pi>0, then it follows that

    |sin(πx)0|<εif x satisfies |x1|<δ1.|\sin(\pi x)-0|<\varepsilon\qquad\text{if $x\in\mathbb{R}$ satisfies $|x-1|<% \delta_{1}$.}
  • For xx\in\mathbb{R}, we have

    |x210|=|x+1||x1||x^{2}-1-0|=|x+1||x-1|

    If |x1|<1|x-1|<1, then it follows from the triangle inequality that

    |x+1|=|x1+2||x1|+2<3.|x+1|=|x-1+2|\leq|x-1|+2<3.

    Thus, in this case we have

    |x210|=|x+1||x1|<3|x1|.|x^{2}-1-0|=|x+1||x-1|<3|x-1|.

    Now choose δ2:=min{1,ε/3}>0\delta_{2}:=\min\{1,\varepsilon/3\}>0. If xx\in\mathbb{R} satisfies |x1|<δ2|x-1|<\delta_{2}, then |x1|<1|x-1|<1 and it follows from the above observations that

    |x210|<3|x1|<3δ2ε.|x^{2}-1-0|<3|x-1|<3\delta_{2}\leq\varepsilon.

Now set δ:=min{δ1,δ2}>0\delta:=\min\{\delta_{1},\delta_{2}\}>0. If xx\in\mathbb{R} satisfies 0<|x1|<δ0<|x-1|<\delta, then it follows from the above that |f(x)0|<ε|f(x)-0|<\varepsilon. Hence, by the ε\varepsilon-δ\delta definition of a limit, f(x)0f(x)\to 0 as x1x\to 1.

Finally, note that

limx1f(x)=01066=f(1)\lim_{x\to 1}f(x)=0\neq 1066=f(1)

and so the function ff is not continuous at 11 by the limit characterisation of continuity from Lemma 4.42.

Exercise 4.48

(i) There are many examples. For instance, let f(x):=xf(x):=x for all xx\in\mathbb{R}. Then we know that limx0f(x)=0\lim_{x\to 0}f(x)=0, but ff is unbounded.

(ii) Let II\subseteq\mathbb{R} be an interval, aIa\in I and f:I{a}f\colon I\setminus\{a\}\to\mathbb{R} and suppose :=limxaf(x)\ell:=\lim_{x\to a}f(x) exists. By the definition of a limit with ε:=1\varepsilon:=1, there exists some δ0>0\delta_{0}>0 such that

|f(x)|<1for all xI satisfying 0<|xa|<δ0.|f(x)-\ell|<1\qquad\text{for all $x\in I$ satisfying $0<|x-a|<\delta_{0}$.}

Define M:=||+1M:=|\ell|+1 and suppose x(aδ0,a+δ0)I{a}x\in(a-\delta_{0},a+\delta_{0})\cap I\setminus\{a\}. Then, by the triangle inequality,

|f(x)|||+|f(x)|<||+1M,|f(x)|\leq|\ell|+|f(x)-\ell|<|\ell|+1\leq M,

as required.

Exercise 4.50

Let :=limxaf(x)\displaystyle\ell:=\lim_{x\to a}f(x) and m:=limxag(x)\displaystyle m:=\lim_{x\to a}g(x).

1. Let ε>0\varepsilon>0 be given. Since f(x)f(x)\to\ell and g(x)mg(x)\to m as xax\to a, by the ε\varepsilon-δ\delta definition of a limit, there exists some δ1\delta_{1}, δ2>0\delta_{2}>0 such that

|f(x)|<ε2for all xI satisfying 0<|xa|<δ1|f(x)-\ell|<\frac{\varepsilon}{2}\qquad\text{for all $x\in I$ satisfying $0<|x% -a|<\delta_{1}$}

and

|g(x)m|<ε2for all xI satisfying 0<|xa|<δ2.|g(x)-m|<\frac{\varepsilon}{2}\qquad\text{for all $x\in I$ satisfying $0<|x-a|% <\delta_{2}$.}

Choose δ:=min{δ1,δ2}>0\delta:=\min\{\delta_{1},\delta_{2}\}>0. By the triangle inequality,

|f(x)+g(x)(+m)|\displaystyle|f(x)+g(x)-(\ell+m)| |f(x)|+|g(x)m|\displaystyle\leq|f(x)-\ell|+|g(x)-m|
<ε2+ε2=εfor all xI satisfying 0<|xa|<δ.\displaystyle<\frac{\varepsilon}{2}+\frac{\varepsilon}{2}=\varepsilon\qquad% \text{for all $x\in I$ satisfying $0<|x-a|<\delta$.}

Thus, by the ε\varepsilon-δ\delta definition of a limit, f(x)+g(x)+mf(x)+g(x)\to\ell+m as xax\to a.

2. By Exercise 4.48, since f(x)f(x)\to\ell as xax\to a, the function ff is locally bounded around aa. More precisely, there exists some δ0>0\delta_{0}>0 and some M>0M>0 such that |f(x)|M|f(x)|\leq M for all xIx\in I satisfying 0<|xa|<δ00<|x-a|<\delta_{0}.

Let ε>0\varepsilon>0 be given. Since f(x)af(x)\to a and g(x)bg(x)\to b as xax\to a, by the ε\varepsilon-δ\delta definition of a limit, there exists some δ1\delta_{1}, δ2>0\delta_{2}>0 such that

|f(x)|<ε2(|m|+1)for all xI satisfying 0<|xa|<δ1|f(x)-\ell|<\frac{\varepsilon}{2(|m|+1)}\qquad\text{for all $x\in I$ % satisfying $0<|x-a|<\delta_{1}$}

and

|g(x)m|<ε2Mfor all xI satisfying 0<|xa|<δ2.|g(x)-m|<\frac{\varepsilon}{2M}\qquad\text{for all $x\in I$ satisfying $0<|x-a% |<\delta_{2}$.}

Choose δ:=min{δ0,δ1,δ2}>0\delta:=\min\{\delta_{0},\delta_{1},\delta_{2}\}>0. By the triangle inequality,

|f(x)g(x)m|\displaystyle|f(x)\cdot g(x)-\ell\cdot m| =|m(f(x))+f(x)(g(x)m)|\displaystyle=\big{|}m(f(x)-\ell)+f(x)(g(x)-m)\big{|}
|m||f(x)|+|f(x)||g(x)m|\displaystyle\leq|m||f(x)-\ell|+|f(x)||g(x)-m|
|m||f(x)|+M|g(x)m|\displaystyle\leq|m||f(x)-\ell|+M|g(x)-m|
<ε2(|m|+1)|m|+ε2MM\displaystyle<\frac{\varepsilon}{2(|m|+1)}\cdot|m|+\frac{\varepsilon}{2M}\cdot M
εfor all xI satisfying 0<|xa|<δ.\displaystyle\leq\varepsilon\qquad\qquad\text{for all $x\in I$ satisfying $0<|% x-a|<\delta$.}

Thus, by the ε\varepsilon-δ\delta definition of a limit, f(x)g(x)mf(x)\cdot g(x)\to\ell\cdot m as xax\to a.

3. We first show that limxa1/g(x)=1/m\displaystyle\lim_{x\to a}1/g(x)=1/m.

Let ε>0\varepsilon>0. Since g(x)bg(x)\to b as nn\to\infty and b0b\neq 0, by the ε\varepsilon-δ\delta definition of a limit, there exists some δ>0\delta>0 such that

|g(x)m|<min{|m|2,|m|2ε2}for all xI satisfying 0<|xa|<δ.|g(x)-m|<\min\Big{\{}\frac{|m|}{2},\frac{|m|^{2}\varepsilon}{2}\Big{\}}\qquad% \text{for all $x\in I$ satisfying $0<|x-a|<\delta$.}

Thus, if xIx\in I satisfies 0<|xa|<δ0<|x-a|<\delta, then it follows by the triangle inequality that

|g(x)||m||g(x)m|>|m||m|/2=|m|/2|g(x)|\geq|m|-|g(x)-m|>|m|-|m|/2=|m|/2

and so

|1g(x)1m|=|g(x)m||m||g(x)|2|g(x)m||m|2<2|m|2|m|2ε2=ε.\Big{|}\frac{1}{g(x)}-\frac{1}{m}\Big{|}=\frac{|g(x)-m|}{|m||g(x)|}\leq\frac{2% |g(x)-m|}{|m|^{2}}<\frac{2}{|m|^{2}}\cdot\frac{|m|^{2}\varepsilon}{2}=\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition of a limit, 1/g(x)1/m1/g(x)\to 1/m as xax\to a.

Since f(x)f(x)\to\ell as xax\to a and 1/g(x)1/m1/g(x)\to 1/m as xax\to a, we can use the result from part 2 to conclude that f(x)/g(x)/mf(x)/g(x)\to\ell/m as xax\to a, as required.

Exercise 4.52

Let II\subseteq\mathbb{R} be an interval and ff, g:Ig\colon I\to\mathbb{R} be continuous. Given aIa\in I, by the characterisation of continuity from Lemma 4.42, we know that

(A.12) (A.12) limxaf(x)=f(a)andlimxag(x)=g(a).\lim_{x\to a}f(x)=f(a)\qquad\text{and}\qquad\lim_{x\to a}g(x)=g(a).

1) By Theorem 4.49 1) and (A.12), we know that

limxa(f+g)(x)=limxaf(x)+limxag(x)=f(a)+g(a)=(f+g)(a).\lim_{x\to a}(f+g)(x)=\lim_{x\to a}f(x)+\lim_{x\to a}g(x)=f(a)+g(a)=(f+g)(a).

Hence, by Lemma 4.42, it follows that f+g:If+g\colon I\to\mathbb{R} is continuous at aa.

2) By Theorem 4.49 2) and (A.12), we know that

limxa(fg)(x)=limxaf(x)limxag(x)=f(a)g(a)=(fg)(a).\lim_{x\to a}(f\cdot g)(x)=\lim_{x\to a}f(x)\cdot\lim_{x\to a}g(x)=f(a)g(a)=(f% \cdot g)(a).

Hence, by Lemma 4.42, it follows that fg:If\cdot g\colon I\to\mathbb{R} is continuous at aa.

3) Suppose g(x)0g(x)\neq 0 for all xIx\in I. By Theorem 4.49 3) and (A.12), we know that

limxa(f/g)(x)=limxaf(x)limxag(x)=f(a)g(a)=(f/g)(a).\lim_{x\to a}(f/g)(x)=\frac{\lim_{x\to a}f(x)}{\lim_{x\to a}g(x)}=\frac{f(a)}{% g(a)}=(f/g)(a).

Hence, by Lemma 4.42, it follows that (f/g):I(f/g)\colon I\to\mathbb{R} is continuous at aa.

The above argument shows that f+gf+g, fgf\cdot g and, under the above additional hypothesis, f/gf/g are all continuous at aIa\in I. Since aIa\in I was chosen arbitrarily, it follows that these functions are continuous.

Exercise 4.54

We know from Lemma 4.33 that the functions sin:\sin\colon\mathbb{R}\to\mathbb{R} and cos:\cos\colon\mathbb{R}\to\mathbb{R} are both continuous. Furthermore, from Example 4.53, we know any polynomial function is continuous. It therefore follows from the limit laws that the functions

xsin2x+10x5+cosxandxsin4x+5x2+2for all xx\mapsto\sin^{2}x+10x^{5}+\cos x\qquad\text{and}\qquad x\mapsto\sin^{4}x+5x^{2% }+2\qquad\text{for all $x\in\mathbb{R}$}

are both continuous. Finally, since sin4x+5x2+22>0\sin^{4}x+5x^{2}+2\geq 2>0 for all xx\in\mathbb{R}, it again follows by the limit laws that

f(x):=sin2x+10x5+cosxsin4x+5x2+2for all xf(x):=\frac{\sin^{2}x+10x^{5}+\cos x}{\sin^{4}x+5x^{2}+2}\qquad\text{for all $% x\in\mathbb{R}$}

is continuous.

Exercise 4.58

We know from Lemma 4.33 that sin:\sin\colon\mathbb{R}\to\mathbb{R} is continuous. We also know that sinx+21>0\sin x+2\geq 1>0 for all xx\in\mathbb{R}. Thus, from the limit laws, the function x(sinx+2)1x\mapsto(\sin x+2)^{-1} is continuous. Finally, again by Lemma 4.33, we know that cos:\cos\colon\mathbb{R}\to\mathbb{R} is continuous. Hence, the function f:f\colon\mathbb{R}\to\mathbb{R} given by f(x):=cos(1sinx+2)f(x):=\cos\Big{(}\frac{1}{\sin x+2}\Big{)} for all xx\in\mathbb{R} is a composition of the continuous functions cos\cos and x(sinx+2)1x\mapsto(\sin x+2)^{-1}, and hence by the composition law (Theorem 4.55), ff is continuous.

Exercise 4.63

(i) Note that 1/n20-1/n^{2}\to 0 as nn\to\infty. We know from (the borrowed!) Lemma 4.35 that the exponential function exp:\exp\colon\mathbb{R}\to\mathbb{R} is continuous. Thus, by the sequential continuity theorem,

limnexp(1/n2)=exp(limn1/n2)=exp(0)=1.\lim_{n\to\infty}\exp(-1/n^{2})=\exp\Big{(}\lim_{n\to\infty}-1/n^{2}\Big{)}=% \exp(0)=1.

(ii) We may write

2ne+n2n+4=2n(e+n2n)2n(1+22n)=e+n2n1+22n.\frac{2^{n}e+n}{2^{n}+4}=\frac{2^{n}(e+n2^{-n})}{2^{n}(1+2^{2-n})}=\frac{e+n2^% {-n}}{1+2^{2-n}}.

We know that n2n0n2^{-n}\to 0 and 22n02^{2-n}\to 0 as nn\to\infty. Thus,

2ne+n2n+4eas n.\frac{2^{n}e+n}{2^{n}+4}\to e\qquad\text{as $n\to\infty$.}

We know from (the borrowed!) Lemma 4.35 that the natural logarithm log:(0,)\log\colon(0,\infty)\to\mathbb{R} is continuous. Thus, by the sequential continuity theorem,

limnlog(2ne+n2n+4)=log(limn2ne+n2n+4)=log(e)=1.\lim_{n\to\infty}\log\Big{(}\frac{2^{n}e+n}{2^{n}+4}\Big{)}=\log\Big{(}\lim_{n% \to\infty}\frac{2^{n}e+n}{2^{n}+4}\Big{)}=\log(e)=1.

Exercise 4.66

For xx\in\mathbb{R}, observe that

3x2+5x+22x2+x+432=6x2+10x+42(2x2+x+4)6x2+3x+122(2x2+x+4).\frac{3x^{2}+5x+2}{2x^{2}+x+4}-\frac{3}{2}=\frac{6x^{2}+10x+4}{2(2x^{2}+x+4)}-% \frac{6x^{2}+3x+12}{2(2x^{2}+x+4)}.

Thus, if we assume x>8/7x>8/7, then

|3x2+5x+22x2+x+432|=7x82x2+x+47x2x2<4x.\Big{|}\frac{3x^{2}+5x+2}{2x^{2}+x+4}-\frac{3}{2}\Big{|}=\frac{7x-8}{2x^{2}+x+% 4}\leq\frac{7x}{2x^{2}}<\frac{4}{x}.

Let ε>0\varepsilon>0 and choose R:=max{4/ε,8/7}R:=\max\{4/\varepsilon,8/7\}. If x>Rx>R, then our earlier observations show that

|3x2+5x+22x2+x+432|<4x<4Rε.\Big{|}\frac{3x^{2}+5x+2}{2x^{2}+x+4}-\frac{3}{2}\Big{|}<\frac{4}{x}<\frac{4}{% R}\leq\varepsilon.

Hence, by the ε\varepsilon-RR definition of a limit, 3x2+5x+22x2+x+432\tfrac{3x^{2}+5x+2}{2x^{2}+x+4}\to\tfrac{3}{2} as xx\to\infty.

Exercise 4.69

(i) For x>0x>0 we may write

exp(x)+10x3+4x2exp(x)1=10x3exp(x)+4x2exp(x).\frac{\exp(x)+10x^{3}+4x^{2}}{\exp(x)}-1=\frac{10x^{3}}{\exp(x)}+\frac{4x^{2}}% {\exp(x)}.

Let ε>0\varepsilon>0 be given. We know from Lemma 4.67 that there exists:

  • Some R11R_{1}\geq 1 such that exp(x)20ε1x3\exp(x)\geq 20\varepsilon^{-1}x^{3} for all x>R1x>R_{1};

  • Some R21R_{2}\geq 1 such that exp(x)8ε1x2\exp(x)\geq 8\varepsilon^{-1}x^{2} for all x>R2x>R_{2}.

Let R:=max{R1,R2}1R:=\max\{R_{1},R_{2}\}\geq 1. Then for all x>Rx>R we have

010x3exp(x)1020ε1=ε2and04x2exp(x)48ε1=ε2.0\leq\frac{10x^{3}}{\exp(x)}\leq\frac{10}{20\varepsilon^{-1}}=\frac{% \varepsilon}{2}\qquad\text{and}\qquad 0\leq\frac{4x^{2}}{\exp(x)}\leq\frac{4}{% 8\varepsilon^{-1}}=\frac{\varepsilon}{2}.

In particular,

|exp(x)+10x3+4x2exp(x)1|<ε2+ε2=εfor all x>R.\Big{|}\frac{\exp(x)+10x^{3}+4x^{2}}{\exp(x)}-1\Big{|}<\frac{\varepsilon}{2}+% \frac{\varepsilon}{2}=\varepsilon\quad\text{for all $x>R$.}

Hence, by the ε\varepsilon-RR definition of a limit, exp(x)+10x3+4x2exp(x)1\frac{\exp(x)+10x^{3}+4x^{2}}{\exp(x)}\to 1 as xx\to\infty.

(ii) Let ε>0\varepsilon>0 be given. By Lemma 4.67 we know there exists some S1S\geq 1 such that logx(εx)1/100\log x\leq(\varepsilon x)^{1/100} for all x>Sx>S. Consequently,

0(logx)100xεxx=εfor all x>S.0\leq\frac{(\log x)^{100}}{x}\leq\frac{\varepsilon x}{x}=\varepsilon\qquad% \text{for all $x>S$.}

Hence, by the ε\varepsilon-RR definition of a limit, (logx)100x0\frac{(\log x)^{100}}{x}\to 0 as xx\to\infty.

Exercise 4.72

1 \Rightarrow 2. Suppose 1 holds; that is, limxaf(x)\displaystyle\lim_{x\to a}f(x) exists and satisfies limxaf(x)=\displaystyle\lim_{x\to a}f(x)=\ell.

Let ε>0\varepsilon>0 be given. By definition, there exists some δ>0\delta>0 such that for all xIx\in I satisfying 0<|xa|<δ0<|x-a|<\delta, we have |f(x)|<ε|f(x)-\ell|<\varepsilon. In particular:

  • For all xIx\in I satisfying a<x<a+δa<x<a+\delta, we have |f(x)|<ε|f(x)-\ell|<\varepsilon. Thus, by the ε\varepsilon-δ\delta definition, limxa+f(x)=\displaystyle\lim_{x\to a_{+}}f(x)=\ell.

  • For all xIx\in I satisfying aδ<x<aa-\delta<x<a, we have |f(x)|<ε|f(x)-\ell|<\varepsilon. Thus, by the ε\varepsilon-δ\delta definition, limxaf(x)=\displaystyle\lim_{x\to a_{-}}f(x)=\ell.

2 \Rightarrow 1. Suppose 2 holds; that is, limxaf(x)\displaystyle\lim_{x\to a_{-}}f(x) and limxa+f(x)\displaystyle\lim_{x\to a_{+}}f(x) both exist and satisfy

limxaf(x)=limxa+f(x)=.\lim_{x\to a_{-}}f(x)=\lim_{x\to a_{+}}f(x)=\ell.

Let ε>0\varepsilon>0 be given. By definition, there exists some δ1\delta_{1}, δ2>0\delta_{2}>0 such that

  • For all xIx\in I satisfying a<x<a+δ1a<x<a+\delta_{1}, we have |f(x)|<ε|f(x)-\ell|<\varepsilon.

  • For all xIx\in I satisfying aδ2<x<aa-\delta_{2}<x<a, we have |f(x)|<ε|f(x)-\ell|<\varepsilon.

Let δ:=min{δ1,δ2}>0\delta:=\min\{\delta_{1},\delta_{2}\}>0. Then, by the above, for all xIx\in I satisfying 0<|xa|<δ0<|x-a|<\delta we have |f(x)|<ε|f(x)-\ell|<\varepsilon. Thus, by the ε\varepsilon-δ\delta definition, limxaf(x)=\displaystyle\lim_{x\to a}f(x)=\ell.

Exercise 4.74

We claim that limx1+f(x)=1\displaystyle\lim_{x\to 1_{+}}f(x)=1.

For x>1x>1, observe that

|f(x)1|=|x21|=|x+1||x1|(|x|+1)|x1|.|f(x)-1|=|x^{2}-1|=|x+1||x-1|\leq(|x|+1)|x-1|.

Thus, if we have 1<x<21<x<2, then

|f(x)1|(x+1)|x1|<3(x1).|f(x)-1|\leq(x+1)|x-1|<3(x-1).

Let ε>0\varepsilon>0 and choose δ:=min{1,ε/3}\delta:=\min\{1,\varepsilon/3\}. If 1<x<1+δ21<x<1+\delta\leq 2, then it follows from our earlier observation that

|f(x)1|3(x1)<ε.|f(x)-1|\leq 3(x-1)<\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition, limx1+f(x)=1\displaystyle\lim_{x\to 1_{+}}f(x)=1.

We claim that limx1f(x)=1\displaystyle\lim_{x\to 1_{-}}f(x)=1.

Let ε>0\varepsilon>0 and recall from Lemma 4.33 that sin:\sin\colon\mathbb{R}\to\mathbb{R} is continuous. Hence there exists some δ0>0\delta_{0}>0 such that

(A.13) (A.13) if |yπ/2|<δ0|y-\pi/2|<\delta_{0}, then |siny1|=|sinysin(π/2)|<ε|\sin y-1|=|\sin y-\sin(\pi/2)|<\varepsilon.

On the other hand, observe that for 1/2<x<11/2<x<1 we have

|π2xπ2|=π2|x1|x<π(1x).\Big{|}\frac{\pi}{2x}-\frac{\pi}{2}\Big{|}=\frac{\pi}{2}\cdot\frac{|x-1|}{x}<% \pi(1-x).

Now let δ:=min{1/2,δ0/π}>0\delta:=\min\big{\{}1/2,\delta_{0}/\pi\}>0. If 1/2<1δ<x<11/2<1-\delta<x<1, then it follows from our earlier observations that

|π2xπ2|<π(1x)<πδδ0.\Big{|}\frac{\pi}{2x}-\frac{\pi}{2}\Big{|}<\pi(1-x)<\pi\delta\leq\delta_{0}.

We can therefore apply (A.13) with y=π/(2x)y=\pi/(2x) to conclude that

|f(x)1|=|sin(π/(2x))sin(π/2)|<ε.|f(x)-1|=\big{|}\sin\big{(}\pi/(2x)\big{)}-\sin(\pi/2)\big{|}<\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition, limx1f(x)=1\displaystyle\lim_{x\to 1_{-}}f(x)=1.

From the above, limx1+f(x)=1=limx1f(x)\lim_{x\to 1_{+}}f(x)=1=\lim_{x\to 1_{-}}f(x). Hence, by Exercise 4.72, we know that limx1f(x)=1\displaystyle\lim_{x\to 1}f(x)=1.

Finally, since limx1f(x)=1f(1)=1485\displaystyle\lim_{x\to 1}f(x)=1\neq f(1)=-1485, we conclude from Lemma 4.42 that ff is not continuous at 11.

Exercise 4.77

Here is a suggested interpretation.

MM-δ\delta definition (4.4) Informal idea
For all M>0M>0 Given any threshold M>0M>0
there exists some δ>0\delta>0 there exists some small distance δ\delta
such that if xIx\in I satisfies 0<|xa|<δ0<|x-a|<\delta, such that if the point xx is within δ\delta of aa
then f(x)>Mf(x)>M. then f(x)f(x) lies beyond the threshold MM.

Exercise 4.79

(i) For 2x42\leq x\leq 4, we have

(A.14) (A.14) |x327|=|x2+3x+9||x3|(16+12+9)|x3|<40|x3|.|x^{3}-27|=|x^{2}+3x+9||x-3|\leq(16+12+9)|x-3|<40|x-3|.

Given M>0M>0, choose δ:=min{1,1/(40M)}>0\delta:=\min\{1,1/(40\sqrt{M})\}>0. If xx\in\mathbb{R} satisfies 0<|x3|<δ0<|x-3|<\delta, then 2x42\leq x\leq 4 and so (A.14) holds and 5x1015x\geq 10\geq 1. Hence,

5x(x327)211600|x3|2>M,\frac{5x}{(x^{3}-27)^{2}}\geq\frac{1}{1600|x-3|^{2}}>M,

since 0<|x3|2<δ21/(1600M)0<|x-3|^{2}<\delta^{2}\leq 1/(1600M). Hence, by definition, 5x(x327)2\frac{5x}{(x^{3}-27)^{2}}\to\infty as x3x\to 3.

(ii) We know from Example 4.44 that limx0sinxx=1\lim_{x\to 0}\frac{\sin x}{x}=1. Hence, by the ε\varepsilon-δ\delta definition of a limit with ε:=1/2\varepsilon:=1/2, there exists some δ0>0\delta_{0}>0 such that

if 0<|x|<δ0,then|sinx||x|=sinxx>1/2.\text{if $0<|x|<\delta_{0}$,}\quad\text{then}\quad\frac{|\sin x|}{|x|}=\frac{% \sin x}{x}>1/2.

Now, let M>0M>0 be given and choose δ:=min{1/2M,δ0}\delta:=\min\{1/2M,\delta_{0}\}. If 0<|x|<δ0<|x|<\delta, then it follows that

|sinx|x2=|sinx||x|1|x|>121|x|>122M=M.\frac{|\sin x|}{x^{2}}=\frac{|\sin x|}{|x|}\cdot\frac{1}{|x|}>\frac{1}{2}\cdot% \frac{1}{|x|}>\frac{1}{2}\cdot 2M=M.

Thus, by definition, |sinx|x2\frac{|\sin x|}{x^{2}}\to\infty as x0x\to 0.

Exercise 4.80

(i) For all M<0M<0, there exists some δ>0\delta>0 such that if xIx\in I satisfies 0<|xa|<δ0<|x-a|<\delta, then f(x)<Mf(x)<M.

(ii) For all M>0M>0, there exists some δ>0\delta>0 such that if xIx\in I satisfies a<x<a+δa<x<a+\delta, then f(x)>Mf(x)>M.

(iii) For all M<0M<0, there exists some δ>0\delta>0 such that if xIx\in I satisfies aδ<x<aa-\delta<x<a, then f(x)<Mf(x)<M.

Exercise 4.81

(i) For all M>0M>0, there exists some R>0R>0 such that if x>Rx>R, then f(x)>Mf(x)>M.

(ii) For all M>0M>0, there exists some R<0R<0 such that if x<Rx<R, then f(x)>Mf(x)>M.

Exercise 4.82

(i) Let M>0M>0 be given and choose δ:=1/M>0\delta:=1/M>0. If 0<x<δ0<x<\delta, then 1/x>1/δ=M1/x>1/\delta=M. Hence, by definition, limx0+1x=\lim_{x\to 0_{+}}\frac{1}{x}=\infty.

(ii) Let M<0M<0 be given and choose δ:=1/|M|>0\delta:=1/|M|>0. If δ<x<0-\delta<x<0, then 1/x<1/δ=|M|=M1/x<-1/\delta=-|M|=M. Hence, by definition, limx01x=\lim_{x\to 0_{-}}\frac{1}{x}=-\infty.

(iii) Let M>0M>0 be given and choose R:=MR:=M. If x>Rx>R, then we know from the definition of the exponential function that

exp(x)=k=0xkk!=1+x+k=2xkk!1+x>1+R>R=M.\exp(x)=\sum_{k=0}^{\infty}\frac{x^{k}}{k!}=1+x+\sum_{k=2}^{\infty}\frac{x^{k}% }{k!}\geq 1+x>1+R>R=M.

Hence, by definition, limxexp(x)=\displaystyle\lim_{x\to\infty}\exp(x)=\infty.

Exercise 4.84

We apply the change of variables h=1/x2h=1/x^{2} to get

x2sin(1/x2)=sinhhfor h=1/x2>0 with x>0.x^{2}\sin(1/x^{2})=\frac{\sin h}{h}\qquad\text{for $h=1/x^{2}>0$ with $x>0$.}

Recall from Example 4.44 that limh0+sin(h)h=1\lim_{h\to 0_{+}}\frac{\sin(h)}{h}=1. Since x=1/h2x=1/h^{2}\to\infty as h0+h\to 0_{+}, it follows from the composition law that limxx2sin(1/x2)=1\lim_{x\to\infty}x^{2}\sin(1/x^{2})=1, as required.

Exercise 4.90

(i) We claim that limx4+f(x)=\displaystyle\lim_{x\to 4_{+}}f(x)=\infty, and so ff has an essential discontinuity at a=4a=4.

To see this, let M>0M>0 be given and choose δ:=min{1/M,1}>0\delta:=\min\{1/M,1\}>0. If 4<x<4+δ4<x<4+\delta, then 0<x4<δ0<x-4<\delta and so

f(x)=5(x4)3>5δ31δM.f(x)=\frac{5}{(x-4)^{3}}>\frac{5}{\delta^{3}}\geq\frac{1}{\delta}\geq M.

Hence, by definition, limx4+f(x)=\displaystyle\lim_{x\to 4_{+}}f(x)=\infty.

(ii) We claim that limx0+f(x)=limx0f(x)=0\displaystyle\lim_{x\to 0_{+}}f(x)=\lim_{x\to 0_{-}}f(x)=0.

Let ε>0\varepsilon>0 be given and choose δ:=min{1,ε}>0\delta:=\min\{1,\varepsilon\}>0. If 0<|x|<δ0<|x|<\delta, then it follows from Lemma 4.32 that

|f(x)0|=|sinx2||x|2<δ2δε.|f(x)-0|=|\sin x^{2}|\leq|x|^{2}<\delta^{2}\leq\delta\leq\varepsilon.

Hence, by the ε\varepsilon-δ\delta definition of a limit, f(x)0f(x)\to 0 as x0x\to 0, and the claim now follows from the equivalence in Exercise 4.72.

Since,

f(0)=20=limx0+f(x)=limx0f(x),f(0)=2\neq 0=\lim_{x\to 0_{+}}f(x)=\lim_{x\to 0_{-}}f(x),

it follows that ff has a removable discontinuity at a=0a=0.

(iii) We claim that limx0+f(x)\displaystyle\lim_{x\to 0_{+}}f(x) does not exist, so ff has an essential discontinuity at a=0a=0.

Arguing by contradiction, suppose limx0+f(x)\lim_{x\to 0_{+}}f(x) exists and, in particular, limx0+f(x)=\lim_{x\to 0_{+}}f(x)=\ell for some \ell\in\mathbb{R}.

Choose ε:=1/2\varepsilon:=1/2. By the ε\varepsilon-δ\delta definition of a one-sided limit, there exists some δ>0\delta>0 such that

(A.15) (A.15) |f(x)|<1/2for all 0<x<δ.|f(x)-\ell|<1/2\qquad\text{for all $0<x<\delta$.}

Note that there exists some nn\in\mathbb{N} such that 0<xn,yn<δ0<x_{n},y_{n}<\delta where

xn:=2π(4n+1)satisfies1xn2=2πn+π2x_{n}:=\sqrt{\frac{2}{\pi(4n+1)}}\qquad\text{satisfies}\qquad\frac{1}{x_{n}^{2% }}=2\pi n+\frac{\pi}{2}

and

yn:=2π(4n+3)satisfies1yn2=2πn+3π2.y_{n}:=\sqrt{\frac{2}{\pi(4n+3)}}\qquad\text{satisfies}\qquad\frac{1}{y_{n}^{2% }}=2\pi n+\frac{3\pi}{2}.

In particular, by the periodicity of the sin\sin function,

f(xn)\displaystyle f(x_{n}) =sin(1/xn2)=sin(2πn+π/2)=sin(π/2)=1,\displaystyle=\sin(1/x_{n}^{2})=\sin(2\pi n+\pi/2)=\sin(\pi/2)=1,
f(yn)\displaystyle f(y_{n}) =sin(1/xn2)=sin(2πn+3π/2)=sin(3π/2)=1.\displaystyle=\sin(1/x_{n}^{2})=\sin(2\pi n+3\pi/2)=\sin(3\pi/2)=-1.

Thus, 0<xn,yn<δ0<x_{n},y_{n}<\delta and |f(xn)f(yn)|=2ε|f(x_{n})-f(y_{n})|=2\geq\varepsilon. However, by (A.15) we must have

|f(xn)|<1/2and|f(yn)|<1/2.|f(x_{n})-\ell|<1/2\qquad\text{and}\qquad|f(y_{n})-\ell|<1/2.

Thus, by the triangle inequality,

2=|f(xn)f(yn)|=|f(xn)+f(yn)|\displaystyle 2=|f(x_{n})-f(y_{n})|=|f(x_{n})-\ell+\ell-f(y_{n})| |f(xn)|+|f(yn)|\displaystyle\leq|f(x_{n})-\ell|+|f(y_{n})-\ell|
<1/2+1/2=1<2,\displaystyle<1/2+1/2=1<2,

a contradiction. Thus, the one-sided limit must fail to exist.

Alternatively, we can argue using a one-sided variant of Lemma 4.59. Assume limx0+f(x)=\lim_{x\to 0_{+}}f(x)=\ell as above. Since xn0x_{n}\to 0 and yn0y_{n}\to 0 as nn\to\infty and xnx_{n}, yn>0y_{n}>0 for all nn\in\mathbb{N}, it is not difficult to show (arguing as in the proof of Lemma 4.59) that we must have

limnf(xn)=andlimnf(yn)=.\lim_{n\to\infty}f(x_{n})=\ell\quad\text{and}\quad\lim_{n\to\infty}f(y_{n})=\ell.

However, we have already shown that f(xn)=1f(x_{n})=1 and f(yn)=1f(y_{n})=-1 for all nn\in\mathbb{N}. This implies that

1=limnf(xn)==limnf(yn)=1,1=\lim_{n\to\infty}f(x_{n})=\ell=\lim_{n\to\infty}f(y_{n})=-1,

which is again a contradiction.

(iv) We claim that limx1+f(x)=0\displaystyle\lim_{x\to 1_{+}}f(x)=0 and limx1f(x)=0\displaystyle\lim_{x\to 1_{-}}f(x)=0, so ff has a jump discontinuity at a=1a=1.

For the left-sided limit, for x1x\leq 1 note that

|f(x)1|=|x21|=|x+1||x1|.|f(x)-1|=|x^{2}-1|=|x+1||x-1|.

Hence, if 0<x<10<x<1, then it follows that 1<x+1<21<x+1<2 and so

|f(x)1|=|x+1||x1|=(x+1)|x1|<2(1x).|f(x)-1|=|x+1||x-1|=(x+1)|x-1|<2(1-x).

Let ε>0\varepsilon>0 be given and choose δ:=min{1,ε/2}>0\delta:=\min\{1,\varepsilon/2\}>0. If 1δ<x<11-\delta<x<1, then 0<x<10<x<1 and it follows from our earlier observations that

|f(x)1|<2(1x)<2δε.|f(x)-1|<2(1-x)<2\delta\leq\varepsilon.

Hence, by definition, limx1f(x)=1\displaystyle\lim_{x\to 1_{-}}f(x)=1.

For the right-sided limit, for x>1x>1 note that

|f(x)0|=|1x3|=|x2+x+1||x1|=(x2+x+1)|x1|.|f(x)-0|=|1-x^{3}|=|x^{2}+x+1||x-1|=(x^{2}+x+1)|x-1|.

If 1<x<21<x<2, then it follows that

|f(x)0|<(22+2+1)|x1|=7(x1).|f(x)-0|<(2^{2}+2+1)|x-1|=7(x-1).

Let ε>0\varepsilon>0 be given and choose δ:=min{1,ε/7}>0\delta:=\min\{1,\varepsilon/7\}>0. If 1<x<1+δ21<x<1+\delta\leq 2, then 1<x<21<x<2 and it follows from our earlier observations that

|f(x)0|<7(x1)<7δε.|f(x)-0|<7(x-1)<7\delta\leq\varepsilon.

Hence, by definition, limx1+f(x)=0\displaystyle\lim_{x\to 1_{+}}f(x)=0.

Alternatively, we can use what we know from earlier examples to study ff. For instance, we know from Example 4.26 that the function p2:p_{2}\colon\mathbb{R}\to\mathbb{R} given by p2(x):=x2p_{2}(x):=x^{2} for all xx\in\mathbb{R} is continuous. Hence, by Lemma 4.42, we have p2(x)1p_{2}(x)\to 1 as x1x\to 1 and therefore, by Exercise 4.72 we have p2(x)1p_{2}(x)\to 1 as x1x\to 1_{-}. Since ff agrees with p2p_{2} for all x1x\leq 1, it follows that f(x)1f(x)\to 1 as x1x\to 1_{-}. A similar argument shows that f(x)0f(x)\to 0 as x1+x\to 1_{+}.

Exercise 4.93

(i) Fix x00x_{0}\geq 0 and let a:=0a:=0 and b:=1+x0b:=1+x_{0}, so that a<ba<b. Consider the function f:[a,b]f\colon[a,b]\to\mathbb{R} given by f(x):=x2f(x):=x^{2} for all x[a,b]x\in[a,b]. Then ff is continuous and f(a)=f(0)=0<x0f(a)=f(0)=0<x_{0} and f(b)=(1+x0)2=1+2x0+x02>x0f(b)=(1+x_{0})^{2}=1+2x_{0}+x_{0}^{2}>x_{0}. Thus, by the intermediate value theorem, there exists some s0s\geq 0 such that s2=f(s)=x0s^{2}=f(s)=x_{0}, as required.

(ii) Fix x00x_{0}\geq 0 and let a:=0a:=0 and b:=1+x0b:=1+x_{0}, so that a<ba<b. Let nn\in\mathbb{N} and consider the function f:[a,b]f\colon[a,b]\to\mathbb{R} given by f(x):=xnf(x):=x^{n} for all x[a,b]x\in[a,b]. Then ff is continuous and f(a)=f(0)=0<x0f(a)=f(0)=0<x_{0} and f(b)=(1+x0)n1+nx0>x0f(b)=(1+x_{0})^{n}\geq 1+nx_{0}>x_{0}, by the Bernoulli inequality. Thus, by the intermediate value theorem, there exists some s0s\geq 0 such that sn=f(s)=x0s^{n}=f(s)=x_{0}, as required.

Exercise 4.96

Consider function f:[1,1]f\colon[-1,1]\to\mathbb{R} given by f(x):=1f(x):=1 if x=1x=1 and f(x):=0f(x):=0 if x[1,1]{0}x\in[-1,1]\setminus\{0\}. Then the image of ff is the set {0,1}\{0,1\}, which is not an interval.

Exercise 4.98

Let y0y_{0}\in\mathbb{R}. Our goal is to show there exists some x0x_{0}\in\mathbb{R} such that f(x0)=y0f(x_{0})=y_{0}.

Since limxf(x)=\lim_{x\to\infty}f(x)=\infty, it follows that there exists some M>0M>0 such that f(x)>y0f(x)>y_{0} for all x>Mx>M. Similarly, since limxf(x)=\lim_{x\to-\infty}f(x)=-\infty, there exists some L<0L<0 such that f(x)<y0f(x)<y_{0} for x<Lx<L.

Let a:=L1a:=L-1 and b:=M+1b:=M+1, so that a<ba<b. Then the restriction of ff to [a,b][a,b] is a continuous function which satisfies f(a)<y0f(a)<y_{0} and f(b)>y0f(b)>y_{0}. By the intermediate value theorem, there must exist some x0(a,b)x_{0}\in(a,b) such that f(x0)=y0f(x_{0})=y_{0}, as required.

Exercise 4.99

Let aa, bb\in\mathbb{R} with a<ba<b and consider the closed, bounded interval [a,b][a,b].

For all x[a,b]x\in[a,b], we have 0x2max{|a|,|b|}20\leq x^{2}\leq\max\{|a|,|b|\}^{2}, and so x2x^{2} is bounded on [a,b][a,b].

Suppose [a,b](0,1)[a,b]\subset(0,1). For all x[a,b]x\in[a,b], we have 0<1/x1/a0<1/x\leq 1/a, and so 1/x1/x is bounded on [a,b][a,b].

Exercise 4.101

Take f:[0,1]f\colon[0,1]\to\mathbb{R} given by

f(x):={1xif 0<x1,0if x=0.f(x):=\begin{cases}\frac{1}{x}&\text{if $0<x\leq 1$,}\\ 0&\text{if $x=0$.}\end{cases}

It is easy to see ff is unbounded. Note, however, that ff is not continuous at 0.

Exercise 4.104

Clearly, (1+x2)10(1+x^{2})^{-1}\geq 0 and so f(x)=1(1+x2)11f(x)=1-(1+x^{2})^{-1}\leq 1 for all xx\in\mathbb{R}. Thus, ff is bounded above by 11.

Given x0x_{0}\in\mathbb{R}, let xx\in\mathbb{R} satisfy x>|x0|x>|x_{0}|. Then x2>x02x^{2}>x_{0}^{2} and so (1+x2)1<(1+x02)1(1+x^{2})^{-1}<(1+x_{0}^{2})^{-1} . Hence,

f(x)=1(1+x2)1>1(1+x02)1=f(x0).f(x)=1-(1+x^{2})^{-1}>1-(1+x_{0}^{2})^{-1}=f(x_{0}).

Thus, there exists some xx\in\mathbb{R} such that f(x)>f(x0)f(x)>f(x_{0}), so that x0x_{0} is not a maximum point of ff. Since this is true for any x0x_{0}\in\mathbb{R}, it follows that ff has no maximum point.

Exercise 4.105

We claim that 11 is a maximum point of p2:[0,1]p_{2}\colon[0,1]\to\mathbb{R}. Indeed,

p2(x)=x21=p2(1)for all x[0,1].p_{2}(x)=x^{2}\leq 1=p_{2}(1)\qquad\text{for all $x\in[0,1]$.}

On the other hand, the restriction p2|(0,1):(0,1)p_{2}|_{(0,1)}\colon(0,1)\to\mathbb{R} has no maximum point. Indeed, given any x0(0,1)x_{0}\in(0,1), we can find some x0<x<1x_{0}<x<1 (for instance, we could choose x:=(1+x0)/2x:=(1+x_{0})/2). Then

p2|(0,1)(x0)=x02<x2=p2|(0,1)(x).p_{2}|_{(0,1)}(x_{0})=x_{0}^{2}<x^{2}=p_{2}|_{(0,1)}(x).

This shows that x0x_{0} is not a maximum point of p2|(0,1)p_{2}|_{(0,1)}. Since this is true for any x0(0,1)x_{0}\in(0,1), it follows that p2|(0,1)p_{2}|_{(0,1)} has no maximum point.

Exercise 4.107

Let f:(1,1)f\colon(-1,1)\to\mathbb{R} be given by

f(x):={xif 1<x0,1+xif 0<x<1.f(x):=\begin{cases}-x&\text{if $-1<x\leq 0$,}\\ 1+x&\text{if $0<x<1$.}\end{cases}

Note that 0f(x)10\leq f(x)\leq 1 for x(1,0]x\in(-1,0] and 1<f(x)<21<f(x)<2 for x(0,1)x\in(0,1).

We claim ff is injective. Indeed, suppose f(x)=f(y)f(x)=f(y) for some xx, y(1,1)y\in(-1,1).

  • If f(x)=f(y)>1f(x)=f(y)>1, then if follows from our earlier observation that xx, y(0,1)y\in(0,1) and so 1+x=f(x)=f(y)=1+y1+x=f(x)=f(y)=1+y. This implies x=yx=y.

  • On the other hand, if f(x)=f(y)1f(x)=f(y)\leq 1, then xx, y(1,0]y\in(-1,0] and so x=f(x)=f(y)=y-x=f(x)=f(y)=-y. This again implies x=yx=y.

Thus, in either case x=yx=y and so ff is injective.

Finally, we claim ff is not monotone. To see this, it suffices to note that:

  • f(1/2)=1/2>f(0)=0f(-1/2)=1/2>f(0)=0 and so ff is not nondecreasing;

  • f(0)=0<3/2=f(1/2)f(0)=0<3/2=f(1/2) and so ff is not nonincreasing.

Thus, the function ff has all the desired properties.

Exercise 4.109

Figure A.3: The graph of the function p2:(1,1)p_{2}\colon(-1,1)\to\mathbb{R} given by p2(x):=x2p_{2}(x):=x^{2} for x(1,1)x\in(-1,1). Although the domain is the open interval (1,1)(-1,1), the image Im(f)=[0,1)\mathrm{Im}(f)=[0,1) is not an open interval.

We claim that Im(p2):={p2(x):x(1,1)}=[0,1)\mathrm{Im}(p_{2}):=\{p_{2}(x):x\in(-1,1)\}=[0,1).

Given 1<x<1-1<x<1, it immediately follows that 0x2<10\leq x^{2}<1 and so Im(p2)[0,1)\mathrm{Im}(p_{2})\subseteq[0,1).

On the other hand, since p2p_{2} extends to a continuous function on [1,1][-1,1] satisfying p2(0)=0p_{2}(0)=0 and p2(1)=1p_{2}(1)=1, by the intermediate value theorem for every x[0,1)x\in[0,1) there exists some y[0,1)y\in[0,1) such that p2(x)=yp_{2}(x)=y. Hence [0,1)Im(p2)[0,1)\subseteq\mathrm{Im}(p_{2}).

Since we have shown Im(p2)[0,1)\mathrm{Im}(p_{2})\subseteq[0,1) and [0,1)Im(p2)[0,1)\subseteq\mathrm{Im}(p_{2}), it follows that Im(p2)=[0,1)\mathrm{Im}(p_{2})=[0,1). Note that the image [0,1)[0,1) is therefore an interval, but not an open interval. See Figure A.3.