Student-provided answers to the exercises found in Chapter 1: Preliminaries of Introduction to Real Analysis by Robert G. Bartle and Donald R. Sherbert, third edition (not to be handed in and thus not marked). The material covered in this chapter (along with the material covered in Appendix A) is assumed to be familiar to the student. It is recommended that you attempt these exercises on your own before viewing the proposed solutions below. The content on this page is solely intended to function as a study aid for students and should constitute fair dealing under Canadian copyright law.
If you notice any errors, please register or log in and edit this page, or contact @dellsystem about it.
1Section 1.1¶
1.1Question 1¶
If $A$ and $B$ are sets, show that $A \subseteq B$ if and only if $A \cap B = A$.
First, we show that if $A \subseteq B$, then $A \cap B = A$. Well, if $a \in A$, then $a \in B$ by virtue of the fact that $A$ is a subset of $B$. So every element in $A$ is also in $B$. Recall that the intersection of $A$ and $B$ contains all elements that are contained in both $A$ and $B$. An element $b \in B$ that is not an element of $A$ would also not be in their intersection. So the intersection $A \cap B$ would only contain elements in $A$, and so $A cap B \subseteq A$. Since every element in $A$ is also an element of $A \cap B$ (as $A \subseteq B$) then we also have that $A \subseteq A \cap B$ and so $A \cap B = A$.
Next, we prove the statement in the other direction: if $A \cap B = A$, then $A \subseteq B$. $A \cap B = A$ tells is that for any $a \in A$, $a \in A \cap B$ as well. So all the elements that are in $A$ are also part of the intersection of $A$ and $B$. But this can only happen if all the elements in $A$ are also in $B$, and so it must be that $A \subseteq B$.
Since $A \subseteq B$ and $B \subseteq$, $A = B$. $\blacksquare$
1.2Question 2¶
Prove the second De Morgan Law: $A \setminus (B \cap C) = (A \setminus B) \cup (A \setminus C)$.
First, we show that $(A \setminus (B \cap C)) \subseteq ((A \setminus B) \cup (A \setminus C))$. Let $d \in (A \setminus (B \cap C))$ represent an arbitrary element in that set. $d$ must be in $A$, but must not be in the intersection of $B$ and $C$, meaning that it can be at most one of $B$ or $C$. If it is in $B$ but not in $C$, then it is in $A \setminus C$ but not $A \setminus B$; if it is $C$ but not in $B$, then it is in $A \setminus B$ but not $A \setminus C$; and if it is in neither $B$ nor $C$ then it is in both $A \setminus B$ and $A \setminus C$. In all three cases, $d$ must be in the union of $A \setminus B$ and $A \setminus C$, and so any element in $A \setminus (B \cap C)$ must also be in $(A \setminus B) \cup (A \setminus C)$. This tells us that $(A \setminus (B \cap C)) \subseteq ((A \setminus B) \cup (A \setminus C))$, which completes the first part of the proof.
Next, we show that $((A \setminus B) \cup (A \setminus C)) \subseteq (A \setminus (B \cap C))$. Let $e \in ((A \setminus B) \cup (A \setminus C))$. $e$ must be in $A$, and at most one of $B$ or $C$ (for if it were in both, then neither $A \setminus B$ nor $A \setminus C$ would contain it and so it would not be in the union). Consequently, $e \notin B \cap C$, as it cannot be in both $B$ and $C$. Therefore, $e \in (A \setminus (B \cap C))$, and so $((A \setminus B) \cup (A \setminus C)) \subseteq (A \setminus (B \cap C))$.
$\blacksquare$
1.3Question 3¶
Prove the distributive laws:
(a) $A \cap (B \cup C) = (A \cap B) \cup (A \cap C)$
(b) $A \cup (B \cap C) = (A \cup B) \cap (A \cup C)$
(a) Let $d \ in A \cap (B \cup C)$. So $d$ must be in $A$, and it must also be in $B \cup C$, i.e., either $B$ or $C$ or both. If it is in $B$, and not $C$, it is in $A \cap B$, but not $A \cap C$; consequently, it would be in $(A \cap B) \cup (A \cap C)$. Similarly, if $d \in C$ and $d \notin B$, then it is in $A \cap C$ but not $A \cap B$ and so it would again be in their union. If it is in both $B$ and $C$, then it would be in both $A \cap B$ and $A \cap C$ and so would again be in their union. Consequently, for any $d \in A \cap (B \cup C)$, $d \in (A \cap B) \cup (A \cap C)$, and so $A \cap (B \cup C) \subseteq (A \cap B) \cup (A \cap C)$.
Now we prove the other direction. Let $e \in (A \cap B) \cup (A \cap C)$. $e$ must be in either $A \cap B$ or $A \cap C$, or both. If it is the first case, then it's in $A \cap B$ and so in both $A$ and $B$, but not $C$. In this case it would be in $A$, and in the union of $B \cup C$, and consequently it would be in $A \cap (B \cup C)$. The argument is pretty similar for the other cases. Consequently, for any $e \in (A \cap B) \cup (A \cap C)$, $e \in A \cap (B \cup C)$, and so $(A \cap B) \cup (A \cap C) \subseteq A \cap (B \cup C)$.
By the previous parts, we conclude that $A \cap (B \cup C) = (A \cap B) \cup (A \cap C)$
(b) This proof is pretty similar to the above.
1.4Question 4¶
(a) Show that the symmetric difference (can also be thought of as XOR), $D$, of $A$ and $B$ is equivalent to $(A \setminus B) \cup (B\setminus A)$.
(b) Show that $D$ is also given by $(A \cup B) \setminus (A \cap B)$.
(a) Let $d \in D$. From the definition, we know that $d$ is in exactly one of $A$ and $B$. If $d \in A$, then $d \notin B$, and so it would be in $A \setminus B$. Otherwise, if $d \in B$, then $d \notin A$, and so $d \in (B \setminus A)$. Either way, it would be in the unions of $A \setminus B$ and $B \setminus A$. Consequently, for any $d \in D$, $d \in (A \setminus B) \cup (B \setminus A)$, and so $D \subseteq (A \setminus B) \cup (B \setminus A)$.
Now we prove the other direction. Let $e \in (A \setminus B) \cup (B \setminus A)$. So it must be in $(A \setminus B)$, or $(B \setminus A)$, or both. If it is in only $(A \setminus B)$, then it is in $A$ and not $B$, so it is in $D$ by definition. Similarly if it is in $B \setminus A$. It can't actually be in both, for then it would have to be in $A$ and not in $B$, and also in $B$ but not in $A$, which is a contradiction. So it must be that $e \in D$. Consequently, for any $e \in (A \setminus B) \cup (B \setminus A)$, $e \in D$, and so $(A \setminus B) \cup (B \setminus A) \subseteq D$.
By the previous parts, we conclude that $(A \setminus B) \cup (B \setminus A) = D$.
(b) If $d \in D$, then it could be in $A$ but not $B$ or $B$ but not $A$. If it's in the former, then it's in $A \cup B$ but not in $A \cap B$, so it would be in $(A \cup B) \setminus (A \cap B)$. Similarly, if it's in the latter, it would also be in $(A \cup B) \setminus (A \cap B)$. Consequently, for any $d \in D$, $d \in (A \cup B) / (A \cap B)$ and so $D \subseteq (A \cup B) / (A \cap B)$.
Now we prove the other direction. Let $e \in (A \cup B) / (B \cup A)$. So $e$ must be in at least one of $A$ and $B$, to be in their union, but it cannot be in their intersection, so it cannot be in both $A$ and $B$. Consequently, it must be in exactly one of $A$ or $B$, which is in fact the definition of $D$. So $(A \cup B) / (A \cap B) \subseteq D$.
By the previous parts, we conclude that $D = (A \cup B) / (A \cap B)$.
1.5Question 5¶
For each $n \in \mathbb{N}$, let $A_n = \{(n + 1)k : k \in \mathbb{N}\}$.
(a) What is $A_1 \cap A_2$?
(b) Determine the sets $\bigcup \{A_n:n\in \mathbb{N}\}$ and $\bigcap \{A_n : n \in \mathbb{N}\}$.
(a) $A_1 = \{2, 4, 6, 8, \ldots \}$. $A_2 = \{3, 6, 9, 12, \ldots \}$. Their intersection is given by $\{6, 12, 18, 24, \ldots \}$, i.e., $\{6k: k \in \mathbb{N}\}$. So, all numbers that are divisible by the product of $(1 + 1)$ and $(2 + 1)$, which is 6.
(b) The union is $\{n: n \in \mathbb{N} / \{1\}\}$ (so $\{2, 3, 4, 5, \ldots \}$). The intersection is empty.
1.6Question 6¶
Just diagrams. Easy enough. Skipping.
1.7Question 7¶
Let $A = B = \{x \in\mathbb{R}: -1 \leq x \leq 1\}$ and consider the subset $C = \{(x, y): x^2 + y^2 = 1\}$ of $A \times B$. Is $C$ a function?
No. There would have to be a unique $y$ for each $x$. But for $x = 0$, for example, both $y = 1$ and $y = -1$ satisfy the equation, and so we have $(0, 1)$ and $(0, -1)$ in the subset. But that violates one of the defining properties of a function (specifically, the "vertical line test").
1.8Question 8¶
Let $f(x) = \frac{1}{x^2}$, $x \neq 0$, $x \in \mathbb{R}$.
(a) Determine the direct image $f(E)$ where $E = \{x \in \mathbb{R}: 1 \leq x \leq 2\}$.
(b) Determine the inverse image $f^{-1}(G)$ where $G = \{x \in \mathbb{R}: 1 \leq x \leq 4\}$.
(a) $f(E) = \{x \in \mathbb{R}: \frac{1}{4} \leq x \leq 1\}$
(b) The singleton $\{1\}$.
1.9Question 9¶
Let $g(x) = x^2$ and $f(x) = x+2$ for $x \in \mathbb{R}$, and let $h$ be the composite function $h = g \circ f$.
(a) Find the direct image $h(E)$ of $E = \{ x \in \mathbb{R}: 0 \leq x \leq 1\}$.
(b) Find the inverse image $h^{-1}(G)$ of $G = \{x \in \mathbb{R}: 0 \leq x \leq 4\}$.
$h(x) = (x+2)^2$.
(a) $\{4 \leq x \leq 9\}$
(b) $\{-2 \leq x \leq 0\}$
1.10Question 10¶
Really long question for which I don't have a valid answer, so, skipped for now. Basically $E \cap F = \varnothing$? Is that important?
1.11Question 11¶
Skipped for now
1.12Question 12¶
Show that if $f: A \to B$ and $E, F$ and subsets of $A$, then $f(E \cup F) = F(E) \cup f(F)$ and f(E \cap F) \subseteq f(E) \cap f(F)$.
Later
1.13Question 13¶
Later
1.14Question 14¶
Show that the function $f$ defined by $f(x) = x / \sqrt{x^2+1}, x\in \mathbb{R}$, is a bijection of $R$ onto $\{y : -1 < y < 1\}$.
To show that it is injective: Assume that $f(x_1) = f(x_2)$, somehow prove that $x_1 = x_2$.
To show that it is surjective: Show that the range is indeed $-1 < y < 1$.
To be continued
2Section 1.2¶
2.1Question 1¶
Prove that that the following holds for all $n \in \mathbb N$.
$$\frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \ldots + \frac{1}{n(n+1)} = \frac{n}{n+1}$$
Proof by induction. Base case, $n=1$:
$$\frac{1}{1\cdot 2} = \frac{1}{2} \, \checkmark$$
Assume that it holds for $n=k$. Then:
$$\begin{align}\frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \ldots + \frac{1}{k(k+1)} + \frac{1}{(k+1)(k+2)} & = \frac{k}{k+1} + \frac{1}{(k+1)(k+2)} \tag{by IH} \\ & = \frac{k(k+2) + 1}{(k+1)(k+2)} \\ & = \frac{k^2+2k + 1}{(k+1)(k+2)} \\ & = \frac{(k+1)^2}{(k+1)(k+2)} = \frac{k+1}{k+2} \\ & = \frac{k+1}{(k+1) +1} \, \checkmark \end{align}$$
2.2Question 2¶
Prove that that the following holds for all $n \in \mathbb N$.
$$1^3+2^3+\ldots + n^3 = \left ( \frac{1}{2} n(n+1) \right )^2$$
Base case: $1^3 = 1 = 1^2$ $\checkmark$
IH: assume that it holds for $n=k$. Then:
$$\begin{align}1^3+3^3+\ldots+k^3+(k+1)^3 & = \left ( \frac{1}{2} k(k+1) \right )^2 + (k+1)^3 \tag{by IH} \\ & = \left( \frac{1}{2} \right )^2 k^2 (k+1)^2 + k^3 + 3k^2 + 3k + 1 \\ & = \frac{1}{4}(k^2(k^2+2k+1)) + \frac{1}{4}(4k^3+12k^2+12k + 4) \\ & = \frac{1}{4}(k^4+2k^3+k^2 + 4k^3+12k^2+12k + 4) \\ & = \frac{1}{4}(k^4+6k^3 + 13k^2+12k + 4) \\ & = \frac{1}{4} (k^2+3k+2)^2 = \frac{1}{4}((k+1)(k+2))^2 \\ & = \left ( \frac{1}{2}(k+1)(k+2) \right )^2 \,\checkmark \end{align}$$
2.3Question 3¶
Prove that the following holds for all $n \in \mathbb N$:
$$3 + 11 + \ldots + (8n-5) = 4n^2-n$$
Base case: $3 = 4 -1$ $\checkmark$
IH: assume it holds for $n=k$. Then:
$$\begin{align} 3+11+(8k-5) + (8(k+1)-5) & = 4k^2-k + (8(k+1) - 5 \tag{by IH} \\ & = 4k^2-k + (8k+3) = 4k^2-k+8k + 3 \\ & = (4k^2 + 8k + 4) -k - 1 = 4(k^2+2k+1) - (k+1) \\ & = 4(k+1)^2 - (k+1) \,\checkmark\end{align}$$
2.4Question 6¶
(Skipped 4-5 because they're pretty the same as the previous ones.)
Prove that $n^3+5n$ is divisible by 6 for all $n \in \mathbb N$.
Base case: $1^3+5(1) = 6$ which 6 does divide $\checkmark$
Assume $6 \mid k^3 + 5k$. Then:
$$\begin{align} (k+1)^3 + 5(k+1) & = k^3+3k^2+3k + 1 + 5k + 5 \\ & = (k^3 + 5k) + (3k^2+3k+6) = (k^3+5k) + 3(k^2+k+2) \end{align}$$
Incomplete
2.5Question 10¶
Conjecture and prove a formula for the sum
$$\frac{1}{1\cdot 3} + \frac{1}{3\cdot 5} + \ldots + \frac{1}{(2n-1)(2n+1)}$$
Conjectured formula: $\displaystyle \frac{n}{2n+1}$
Base case, $n=1$: $\displaystyle \frac{1}{1\cdot 3} = \frac{1}{3} \checkmark$
Assume IH for $n=k$. Then:
$$\begin{align} \frac{1}{1\cdot 3} + \ldots + \frac{1}{(2n-1)(2n+1)} + \frac{1}{2(n+1)-1)(2(n+1)+1)} & = \frac{n}{2n+1} + \frac{1}{2(n+1)-1)(2(n+1)+1)} \tag{by IH} \\ & = \frac{n}{2n+1} + \frac{1}{(2n+1)(2n+3)} = \frac{n(2n+3)}{(2n+1)(2n+3)} \\ & = \frac{n(2n+3) + 1}{(2n+1)(2n+3)} = \frac{2n^2+3n+1}{(2n+1)(2n+3)} \\ & = \frac{(2n+1)(n+1)}{(2n+1)(2n+3)} = \frac{n+1}{2n+3} \\ & = \frac{n+1}{2(n+1)+1} \,\checkmark \end{align}$$
2.6Question 11¶
Conjecture and prove a formula for the sum of the first odd natural numbers:
$$1+3+\ldots+(2n-1)$$
Conjectured formula: $n^2$.
Base case, $n=1$: $1 = 1^2 \checkmark$ lol
Assume IH for $n=k$. Then:
$$\begin{align} 1 + 3 + \ldots(2n-1) + (2(n+1) -1) & = n^2 + (2(n+1) -1) \tag{by IH} \\ & = n^2+(2n+1) = (n+1)^2\, ♥ \,\checkmark \tag{that was easy} \end{align}$$