A.1 Chapter 1

Exercise 1.4

Let nn\in\mathbb{N}. Observe that 0n+5n+5n=6n0\leq n+5\leq n+5n=6n whilst 8n278n27n2=n2>08n^{2}-7\geq 8n^{2}-7n^{2}=n^{2}>0. Combining these observations,

0n+58n276nn2=6n60\leq\frac{n+5}{8n^{2}-7}\leq\frac{6n}{n^{2}}=\frac{6}{n}\leq 6

and so 66 is an upper bound for AA. Since an upper bound exists, AA is bounded above.

Exercise 1.7

Unless every student is at least 1.71.7 meters tall (which would be a major statistical anomaly!), (I) should be false. On the other hand, unless every student is under 1.71.7 meters tall (which would again be a major statistical anomaly!), (II) should be true.

The negations of (I) and (II) are, respectively:

  1. (¬\neg I)

    There exists a student SS such that the height of student SS is less than 1.71.7 meters.

  2. (¬\neg II)

    For all students SS, the height of student SS is less than 1.71.7 meters.

It is very likely that (¬\neg I) holds and (¬\neg II) does not hold.

Exercise 1.8

If xx\in\mathbb{R} is an upper bound for AA\subseteq\mathbb{R}, then y:=x+1y:=x+1 is also an upper bound for AA and yxy\neq x.

Exercise 1.9

(i) Write A:={a:3a4}A:=\{a\in\mathbb{R}:3\leq a\leq 4\}. We claim that every x4x\geq 4 is an upper bound for AA. Indeed, if x4x\geq 4, then a4xa\leq 4\leq x so axa\leq x for all aAa\in A.

On the other hand, we claim that every x<4x<4 is not an upper bound for AA. Indeed, if x<4x<4, then 4A4\in A and x4x\not\geq 4, so that xx is not an upper bound for AA.

The above shows that {x:x4}\{x\in\mathbb{R}:x\geq 4\} is precisely the set of upper bounds for AA.

(ii) Write B:=B1B2B:=B_{1}\cup B_{2} where B1:={a:0a1}B_{1}:=\{a\in\mathbb{R}:0\leq a\leq 1\} and B2:={a:3a4}B_{2}:=\{a\in\mathbb{R}:3\leq a\leq 4\}. We claim that every x4x\geq 4 is an upper bound for BB. Indeed, if x4x\geq 4, then a4xa\leq 4\leq x so axa\leq x for all aB1a\in B_{1}. Similarly, a1<4xa\leq 1<4\leq x so axa\leq x for all aB2a\in B_{2}. Thus, axa\leq x for all aBa\in B, so xx is an upper bound for BB.

On the other hand, we claim that every x<4x<4 is not an upper bound for BB. Indeed, if x<4x<4, then 4B4\in B and x4x\not\geq 4, so that xx is not an upper bound for BB.

The above shows that {x:x4}\{x\in\mathbb{R}:x\geq 4\} is precisely the set of upper bounds for BB.

Exercise 1.11

Suppose s1s_{1}, s2s_{2}\subseteq\mathbb{R} are both least upper bounds for AA\subseteq\mathbb{R}. Since s1s_{1} is an upper bound for AA and s2s_{2} is a least upper bound for AA, we must have s2s1s_{2}\leq s_{1}. By a symmetric argument, we also have s1s2s_{1}\leq s_{2}. Hence s1=s2s_{1}=s_{2}.

Exercise 1.13

(i) We know from Exercise 1.9 (i) that the set of upper bounds for A:={a:3a4}A:=\{a\in\mathbb{R}:3\leq a\leq 4\} is {x:x4}\{x\in\mathbb{R}:x\geq 4\}. Thus, the least upper bound for AA is 44; that is, supA=4\sup A=4.

We know from Exercise 1.9 (i) that the set of upper bounds for B:={a:0a1}{a:3a4}B:=\{a\in\mathbb{R}:0\leq a\leq 1\}\cup\{a\in\mathbb{R}:3\leq a\leq 4\} is {x:x4}\{x\in\mathbb{R}:x\geq 4\}. Thus, the least upper bound for BB is 44; that is, supB=4\sup B=4.

Exercise 1.18

Let a,ba,b\in\mathbb{R} with aba\leq b.

We claim that sup[a,b]=b\sup\,[a,b]=b.

  1. 1.

    Since, by definition, tbt\leq b for all t[a,b]t\in[a,b], we see that bb is an upper bound for [a,b][a,b].

  2. 2.

    Suppose xx\in\mathbb{R} and x<bx<b. Then b[a,b]b\in[a,b] and xbx\not\geq b so that xx is not an upper bound for [a,b][a,b]. Thus, any upper bound xx for [a,b][a,b] must satisfy xbx\geq b.

Hence bb is the least upper bound for [a,b][a,b]; in other words, sup[a,b]=b\sup[a,b]=b.

We claim that sup(,b]=b\sup\,(-\infty,b]=b. The argument is essentially the same as that used above.

  1. 1.

    Since, by definition, tbt\leq b for all t(,b]t\in(-\infty,b], we see that bb is an upper bound for (,b](-\infty,b].

  2. 2.

    Suppose xx\in\mathbb{R} and x<bx<b. Then b(,b]b\in(-\infty,b] and xbx\not\geq b so that xx is not an upper bound for (,b](-\infty,b]. Thus, any upper bound xx for (,b](-\infty,b] must satisfy xbx\geq b.

Hence bb is the least upper bound for (,b](-\infty,b]; in other words, sup(,b]=b\sup(-\infty,b]=b.

The sets [a,)[a,\infty) and \mathbb{R} are not bounded above, so each of these sets cannot have a supremum. On the other hand, we know from Remark 1.16 that the empty set does not have a supremum.

Exercise 1.20

The following sketch illustrates the proof that sup(0,1)=1\sup(0,1)=1: for every x(0,1)x\in(0,1), the element t:=1+x2(0,1)t:=\frac{1+x}{2}\in(0,1) lies to the right of xx on the number line.

Exercise 1.21

Let a,ba,b\in\mathbb{R} with a<ba<b.

We claim that sup(a,b)=sup(a,b]=sup[a,b)=sup(,b)=b\sup\,(a,b)=\sup\,(a,b]=\sup\,[a,b)=\sup\,(-\infty,b)=b. To treat all these cases simultaneously, let II denote one of the sets (a,b)(a,b), (a,b](a,b] or [a,b)[a,b).

  1. 1.

    Since, by definition, tbt\leq b for all tIt\in I, we see that bb is an upper bound for II.

  2. 2.

    Suppose xx\in\mathbb{R} and x<bx<b. If xax\leq a, then (a+b)/2I(a+b)/2\in I and x(a+b)/2x\not\geq(a+b)/2, so that xx is not an upper bound for II. This argument continues to make sense when I=(,b)I=(-\infty,b), provided we just choose aa\in\mathbb{R} to be some number satisfying a<ba<b. On the other hand, if a<x<ba<x<b, then the midpoint t:=b+x2t:=\frac{b+x}{2} satisfies x<t<bx<t<b. Moreover, tIt\in I and t>xt>x, so that xx is not an upper bound for II. This shows that if xx\in\mathbb{R} is an upper bound for II, then xbx\geq b.

Hence bb is the least upper bound for II; in other words, supI=b\sup I=b. A minor modification of this argument also shows sup(,b)=b\sup(-\infty,b)=b.

The sets (a,)(a,\infty) and \mathbb{R} are not bounded above, so each of these sets cannot have a supremum. On the other hand, we know from Remark 1.16 that the empty set does not have a supremum.

Exercise 1.23

Suppose M1M_{1} and M2M_{2} are both maxima for AA. Then M1AM_{1}\in A and so, since M2M_{2} is a maximum (and therefore an upper bound) for AA, we have M1M2M_{1}\leq M_{2}. By a symmetric argument, M2M1M_{2}\leq M_{1} and so we must have M1=M2M_{1}=M_{2}.

Exercise 1.25

(i) Let A:={1,2,3}A:=\{1,2,3\}. Since 3A3\in A and 131\leq 3, 232\leq 3 and 333\leq 3, it follows that 33 is a maximum for AA; that is, maxA=3\max A=3.

On the other hand, we claim supA=3\sup A=3.

  1. 1.

    The above observations show 33 is an upper bound for AA.

  2. 2.

    If x<3x<3, then 3A3\in A and x3x\not\geq 3 so that xx is not an upper bound for AA. Thus, any upper bound xx\in\mathbb{R} for AA must satisfy x3x\geq 3.

This shows 33 is the least upper bound for AA; that is, supA=3\sup A=3.

(ii) Let B:={2/n:n}B:=\{2/n:n\in\mathbb{N}\}. Since 2=2/1B2=2/1\in B and 2/n2/1=22/n\leq 2/1=2 for all nn\in\mathbb{N} (and so a2a\leq 2 for all aBa\in B), it follows that 22 is a maximum for BB; that is, maxB=2\max B=2.

On the other hand, we claim supB=2\sup B=2.

  1. 1.

    The above observations show 22 is an upper bound for BB.

  2. 2.

    If x<2x<2, then 2B2\in B and x2x\not\geq 2 so that xx is not an upper bound for BB. Thus, any upper bound xx\in\mathbb{R} for BB must satisfy x2x\geq 2.

This shows 22 is the least upper bound for BB; that is, supB=2\sup B=2.

Exercise 1.27

(i) Suppose a maximum MM for (0,1)(0,1) exists. Then aMa\leq M for all a(0,1)a\in(0,1), so that MM is an upper bound for (0,1)(0,1). Since sup(0,1)=1\sup(0,1)=1 is the least upper bound for (0,1)(0,1), it follows that 1M1\leq M.

(ii) Since M1M\geq 1, it follows that M1M\not<1 and so M(0,1)M\notin(0,1). But this contradicts the fact that MM is a maximum for (0,1)(0,1) and therefore satisfies M(0,1)M\in(0,1).

Exercise 1.29

Let A:={21/n:n}A:=\{2-1/n:n\in\mathbb{N}\}. We know that supA=2\sup A=2 and that 2A2\not\in A (since 21/n<22-1/n<2 for all nn\in\mathbb{N}). Hence, by a result of Worksheet 1, we know that AA does not have a maximum.

Alternatively, if aAa\in A, then a=21/na=2-1/n for some nn\in\mathbb{N}. However, b:=21/(n+1)Ab:=2-1/(n+1)\in A and b>ab>a. Thus, aa cannot be a maximum. Since aAa\in A was chosen arbitrarily, this shows no maximum exists.

Exercise 1.30

(i) For B:={3n21n2:n}B:=\Big{\{}\frac{3n^{2}-1}{n^{2}}:n\in\mathbb{N}\Big{\}}, we claim that supB=3\sup B=3

  1. 1.

    We may write 3n21n2=31n2<3\frac{3n^{2}-1}{n^{2}}=3-\frac{1}{n^{2}}<3 for all nn\in\mathbb{N}. Hence 33 is an upper bound for BB.

  2. 2.

    Suppose xx\in\mathbb{R} with x<3x<3, so that r:=3x>0r:=3-x>0. Then there exists some NN\in\mathbb{N} such that N>1/rN>1/r and therefore 1/N<r1/N<r. Moreover, 31/N2B3-1/N^{2}\in B and 31/N231/N>3r=x3-1/N^{2}\geq 3-1/N>3-r=x, so that xx is not an upper bound for BB. Here we have used the fact N1N\geq 1, so that N2NN^{2}\geq N. This shows that if xx\in\mathbb{R} is an upper bound for BB, then x3x\geq 3.

Thus, 33 is the least upper bound for BB; that is, supB=3\sup B=3.

We observed above that 3n21n2<3\frac{3n^{2}-1}{n^{2}}<3 for all nn\in\mathbb{N}, and so a<3a<3 for all aBa\in B. In particular, supB=3B\sup B=3\notin B. Since BB does not contain its supremum, it does not have a maximum by a result of Worksheet 1.

Alternatively, if aBa\in B, then a=31/n2a=3-1/n^{2} for some nn\in\mathbb{N}. However, b:=31/(n+1)2Bb:=3-1/(n+1)^{2}\in B and b>ab>a. Thus, aa cannot be a maximum. Since aBa\in B was chosen arbitrarily, this shows no maximum exists.

(ii) For C:=(0,1)C:=\mathbb{Q}\cap(0,1), we claim supC=1\sup C=1.

  1. 1.

    Since, by definition, a<1a<1 for all a(0,1)a\in(0,1), we have a<1a<1 for all aCa\in C and so 11 is an upper bound for CC.

  2. 2.

    Let x<1x<1. If x0x\leq 0, then 1/2C1/2\in C and x1/2x\not\geq 1/2, so xx is not an upper bound for CC. On the other hand, suppose 0<x<10<x<1, so that r:=1x>0r:=1-x>0. There exists some NN\in\mathbb{N} such that N>1/rN>1/r and therefore 1/N<r1/N<r. Moreover, 11/N>1r=1(1x)=x1-1/N>1-r=1-(1-x)=x. Since 11/NC1-1/N\in C and x11/Nx\not\geq 1-1/N, it follows that xx is not an upper bound for CC. This shows that if xx\in\mathbb{R} is an upper bound for CC, then x1x\geq 1.

Thus, 11 is the least upper bound for CC; that is, supC=1\sup C=1.

We observed above that a<1a<1 for all aCa\in C. In particular, supC=1C\sup C=1\notin C. Since CC does not contain its supremum, it does not have a maximum by a result of Worksheet 1.

Alternatively, if aCa\in C, then aa\in\mathbb{Q} and 0<a<10<a<1. If we define b:=(1+a)/2b:=(1+a)/2, then it follows that bb\in\mathbb{Q} and 0<b<(1+1)/2=10<b<(1+1)/2=1. Thus, bCb\in C and b>ab>a and so aa cannot be a maximum. Since aCa\in C was chosen arbitrarily, this shows no maximum exists.

Exercise 1.33

We claim that for A:={21/n:n}A:=\left\{2-1/n:n\in\mathbb{N}\right\}, supA=2\sup A=2.

  1. 1.

    Since 21/n22-1/n\leq 2 for all nn\in\mathbb{N}, it follows that 22 is an upper bound for AA.

  2. 2.

    Let ε>0\varepsilon>0 be given. There exists some NN\in\mathbb{N} such that N>1/εN>1/\varepsilon and therefore 0<1/N<ε0<1/N<\varepsilon. If we define a:=21/Na:=2-1/N, then aAa\in A and

    a=21N>2ε.a=2-\frac{1}{N}>2-\varepsilon.

    Thus, for any given ε>0\varepsilon>0 we can find aAa\in A such that 2ε<a22-\varepsilon<a\leq 2, which verifies the approximation property.

By Lemma 1.31, we conclude that supA=2\sup A=2, as claimed.

Exercise 1.34

1 \Rightarrow 2. Suppose supA\sup A exists and s=supAs=\sup A. Let ε>0\varepsilon>0 be given, so that sε<ss-\varepsilon<s. It follows that sεs-\varepsilon cannot be an upper bound for AA, since ss is the least upper bound for AA (by property 2 of Definition 1.10). This mean that there must exist some aAa\in A such that sε<as-\varepsilon<a. On the other hand, since ss is an upper bound for AA (by property 1 of Definition 1.10), we also have asa\leq s. Combining these observations, sε<ass-\varepsilon<a\leq s, as required.

Exercise 1.35

Consider the set A:={12n+53n+2:n}A:=\big{\{}\frac{12n+5}{3n+2}:n\in\mathbb{N}\big{\}}. We claim that supA=4\sup A=4.

  1. 1.

    Writing 12n+5=4(3n+2)312n+5=4(3n+2)-3, it follows that 12n+53n+2=433n+24\frac{12n+5}{3n+2}=4-\frac{3}{3n+2}\leq 4 for all nn\in\mathbb{N}. Thus, 44 is an upper bound for AA.

  2. 2.

    We now show 44 satisfies the approximation property from Lemma 1.31.

    Let ε>0\varepsilon>0 be given. There exists some NN\in\mathbb{N} such that N>3/εN>3/\varepsilon and therefore 0<1/N<ε/30<1/N<\varepsilon/3. If we define a:=12N+53N+2a:=\frac{12N+5}{3N+2}, then aAa\in A and

    a=433N+2>43N>4ε,a=4-\frac{3}{3N+2}>4-\frac{3}{N}>4-\varepsilon,

    where we used the fact that 33N+2<3N\frac{3}{3N+2}<\frac{3}{N} for NN\in\mathbb{N}. Thus, 4ε<a44-\varepsilon<a\leq 4, which verifies the approximation property.

By Lemma 1.31, we conclude that supA=4\sup A=4, as claimed.

Note: In this proof, we chose NN such that N>3εN>\frac{3}{\varepsilon}, but here (and often elsewhere) other choices are possible. For instance, we could choose MM such that M>1εM>\frac{1}{\varepsilon} and note that for a=12M+53M+2a=\frac{12M+5}{3M+2} we have

a=433M+2>41M>4ε,a=4-\frac{3}{3M+2}>4-\frac{1}{M}>4-\varepsilon,

using the fact that 3M+2>3M3M+2>3M to see that 33M+2<33M=1M\frac{3}{3M+2}<\frac{3}{3M}=\frac{1}{M}.

Exercise 1.37

The additional statements mean the following:

  1. (III)

    Every pencil is used by at least one student; there are no leftover pencils which go unused.

  2. (IV)

    There is at least one student who writes with every single pencil.

Note that (I), (II), (III) and (IV) all have different meanings. However, (II) \Rightarrow (I), as we already observed, and (IV) \Rightarrow (III) (indeed, if one student uses every single pencil, then every single pencil is used by at least one student).

For the negations:

  1. (¬\neg I)

    There exists a student SS such that for all pencils PP student SS does not write with pencil PP.

  2. (¬\neg II)

    For all pencils PP, there exists a student SS such that student SS does not write with pencil PP.

  3. (¬\neg III)

    There exists a pencil PP such that for all students SS, student SS does not write with pencil PP.

  4. (¬\neg IV)

    For all students SS there exists a pencil PP such that student SS does not write with pencil PP.

These statements can be expressed in more everyday language as follows:

  1. (¬\neg I)

    There is a student who does not write with any pencil.

  2. (¬\neg II)

    No pencil is used by all the students.

  3. (¬\neg III)

    There is a pencil no students writes with.

  4. (¬\neg IV)

    No student writes with all the pencils.

Exercise 1.38

The additional statements mean the following:

  1. (V)

    Every pencil is used by every student.

  2. (VI)

    There is at least one student who writes with at least one pencil.

Note that (I) – (VI) all have different meanings. However, (V) \Rightarrow (II) \Rightarrow (I) \Rightarrow (VI) and (V) \Rightarrow (IV) \Rightarrow (III) \Rightarrow (VI).

For the negations:

  1. (¬\neg V)

    There exists a pencil PP and there exists a student SS such that student SS does not write with pencil PP.

  2. (¬\neg VI)

    For all pencil PP and for all students SS, student SS does not write with pencil PP.

These statements can be expressed in more everyday language as follows:

  1. (¬\neg V)

    Not every student writes with every pencil.

  2. (¬\neg VI)

    No student writes with any pencil.

Exercise 1.43

(i) If mm\in\mathbb{R} is a minimum for AA, then mAm\in A so AA is nonempty. Furthermore, ama\geq m for all aAa\in A and so mm is a lower bound for AA. Hence AA is nonempty and bounded below, so infA\inf A exists. Moreover, since infA\inf A is the greatest lower bound for AA, it follows that infAm\inf A\geq m. However, we also have mAm\in A and since infA\inf A is a lower bound for AA, it follows that minfAm\geq\inf A. Hence, m=infAm=\inf A as required.

(ii) Simply take (0,1](0,1]. Then given any m(0,1)m\in(0,1) we can form a:=m/2a:=m/2. It follows that a(0,1]a\in(0,1] and a<ma<m, so that mm cannot be a minimum for (0,1](0,1]. Since mAm\in A was chosen arbitrarily, this shows no minimum exists.

Exercise 1.45

We have (s1/n)2=s22s/n+1/n2s22s/n(s-1/n)^{2}=s^{2}-2s/n+1/n^{2}\geq s^{2}-2s/n. To bound this below by 2, we need to choose nn so that

s22s/n>2s22>2s/nn>2ss22s^{2}-2s/n>2\quad\iff\quad s^{2}-2>2s/n\quad\iff\quad n>\frac{2s}{s^{2}-2}

or, equivalently, 1/n<(s22)/2s1/n<(s^{2}-2)/2s.

Exercise 1.46

(i) We claim that the set A:={a:a2<x}A:=\{a\in\mathbb{R}:a^{2}<x\} is nonempty and bounded above. To see this, we consider the cases 0<x<10<x<1 and x1x\geq 1 separately. If 0<x<10<x<1, then x2<xx^{2}<x and so xAx\in A and the set is nonempty. Furthermore, we must have a<1a<1 for all aAa\in A (since if a1a\geq 1, then a21a^{2}\geq 1 and so aAa\notin A). Hence, 11 is an upper bound for AA. On the other hand, if x1x\geq 1, then 1/4<1x1/4<1\leq x so 1/2A1/2\in A and the set is nonempty. Furthermore, x2xx^{2}\geq x and so xx must be an upper bound for AA (since if axa\geq x, then a2x2xa^{2}\geq x^{2}\geq x and so aAa\notin A). In either case, we see that AA is nonempty and bounded above.

Since AA is nonempty and bounded above, by the completeness axiom s:=supAs:=\sup A exists. In the case 0<x<10<x<1, we know xAx\in A and so, since ss is an upper bound for AA, we must have sx>0s\geq x>0. On the other hand, if x1x\geq 1, then a similar line of reasoning shows s1/2>0s\geq 1/2>0. In either case, s>0s>0.

(ii) We claim that s2=xs^{2}=x: in other words, s=xs=\sqrt{x}.

Suppose s2>xs^{2}>x, so that s2x>0s^{2}-x>0 and we can therefore find some nn\in\mathbb{N} with 0<1/n<(s2x)/2s0<1/n<(s^{2}-x)/2s. Thus,

(A.1) (A.1) (s1/n)2=s22s/n+1/n2s22s/n>x,(s-1/n)^{2}=s^{2}-2s/n+1/n^{2}\geq s^{2}-2s/n>x,

where the second step is due to the fact that 1/n201/n^{2}\geq 0 for n1n\geq 1 and the choice of nn. From (A.1) and the definition of AA, it follows that s>s1/n>as>s-1/n>a for all aAa\in A. However, this contradicts the fact ss is the least upper bound for AA, and so s2xs^{2}\not>x.

Suppose s2<xs^{2}<x, so that xs2>0x-s^{2}>0 and we can therefore find some nn\in\mathbb{N} with 0<1/n<(xs2)/(1+2s)0<1/n<(x-s^{2})/(1+2s). Thus,

(A.2) (A.2) (s+1/n)2=s2+2s/n+1/n2s2+(1+2s)/n<x,(s+1/n)^{2}=s^{2}+2s/n+1/n^{2}\leq s^{2}+(1+2s)/n<x,

where the second step is similar to that in (A.1), this time using 1/n21/n1/n^{2}\leq 1/n for n1n\geq 1. From (A.2) and the definition of AA, it follows that s+1/nAs+1/n\in A and clearly s+1/n>ss+1/n>s. However, this contradicts the fact ss is an upper bound for AA, and so s2xs^{2}\not<x.

We have shown s2xs^{2}\not>x and s2xs^{2}\not<x. It therefore follows that s2=xs^{2}=x, as claimed.

Exercise 1.48

Clearly 1S1\in S and a2a\leq 2 for all aSa\in S, so SS is nonempty and bounded above. Repeating the argument used in Example 1.44 shows that any least upper bound ss for SS must satisfy s2=2s^{2}=2. However, there is no rational number with this property. Thus, SS does not have a least upper bound in \mathbb{Q}.

Exercise 1.54

(i) Let xx\in\mathbb{R} and ε>0\varepsilon>0. Choosing y:=xy:=x\in\mathbb{R}, we have |xy|=0<ε|x-y|=0<\varepsilon. Hence \mathbb{R} is dense in \mathbb{R}.

(ii) Let xx\in\mathbb{R} and ε>0\varepsilon>0. If x0x\neq 0, then choosing y:=x×y:=x\in\mathbb{R}^{\times}, we have |xy|=0<ε|x-y|=0<\varepsilon. On the other hand, if x=0x=0, then we can choose y:=ε/2y:=\varepsilon/2 so that |xy|=|0ε/2|=ε/2<ε|x-y|=|0-\varepsilon/2|=\varepsilon/2<\varepsilon. Hence ×\mathbb{R}^{\times} is dense in \mathbb{R}.

(iii) Let xx\in\mathbb{R} and ε>0\varepsilon>0. If xx\in\mathbb{R}\setminus\mathbb{Z}, then choosing y:=xy:=x\in\mathbb{R}, we have |xy|=0<ε|x-y|=0<\varepsilon. On the other hand, if xx\in\mathbb{Z}, then we can choose y:=x+min{1/2,ε/2}y:=x+\min\{1/2,\varepsilon/2\}. Then yy\in\mathbb{R}\setminus\mathbb{Z} and |xy|ε/2<ε|x-y|\leq\varepsilon/2<\varepsilon. Hence \mathbb{R}\setminus\mathbb{Z} is dense in \mathbb{R}.

Exercise 1.55

(i) Let x:=2x:=2 and ε:=1/2\varepsilon:=1/2. If |yx|<ε|y-x|<\varepsilon, then y21/2=3/2y\geq 2-1/2=3/2 and so y[0,1]y\not\in[0,1]. Thus, there does not exist any element y[0,1]y\in[0,1] satisfying |yx|<ε|y-x|<\varepsilon, so [0,1][0,1] is not dense in \mathbb{R}.

(ii) Let x:=1/2x:=1/2 and ε:=1/4\varepsilon:=1/4. If |yx|<ε|y-x|<\varepsilon, then 1/4<y<3/41/4<y<3/4 and so yy\not\in\mathbb{Z}. Thus, there does not exist any element yy\in\mathbb{Z} satisfying |yx|<ε|y-x|<\varepsilon, so \mathbb{Z} is not dense in \mathbb{R}.