Soln hw4
Soln hw4
Exercise 3.3: Let X = {x, y, z}, the set with 3 elements. Figure out as many topologies for X
as you can, and represent them both schematically and by listing their open sets.
Solution: For this solution, I’ll only list out the open sets of each topology, as generating the
necessary figures is hard to do on a computer.
Since X has three elements, it has 23 = 8 possible subsets, namely
P (X) = {∅, {x}, {y}, {z}, {x, y}, {x, z}, {y, z}, X}.
(The set of all subsets of X is called the “power set” of X.) A topology on X is a subset of P (X),
subject to certain conditions. A priori there are 28 = 256 different subsets of P (X), and each of
these is a candidate for a topology on X. We need to find how many of these subsets of P (X)
satisfy the conditions of a topology - namely that the subset contains X, ∅, that it is closed under
arbitrary union, and it is closed under finite intersection.
The first condition gives that X, ∅ must be contained in the topology, and therefore reduces the
number of subsets of P (X) we need to test to 26 = 64. One could list out all of these subsets by
hand and check each one to see if it is a valid topology, but this is still a lot of work, so it will be
easier to work the other way, by starting with the smallest topology possible and adding subsets of
X to it one by one, making sure that after each addition we still have a topology.
The topology with the smallest number of elements is the indiscrete topology, T1 = {X, ∅}.
From there, we see what happens when we add sets to this topology. We observe that if we add
any other subset of X to T1 , we still get a valid topology, because the new set will still be closed
under union and intersection. This gives the topologies.
T2 = {X, ∅, {x}} T5 = {X, ∅, {x, y}}
T3 = {X, ∅, {y}} T6 = {X, ∅, {x, z}}
T4 = {X, ∅, {z}} T7 = {X, ∅, {y, z}}
We now consider adding more sets to the topology T2 . We first consider what happens if we
add only 2-element sets to this topology. Adding any of {x, y}, {x, z}, or {y, z} still gives a valid
topology, so we have found the topologies.
T8 = {X, ∅, {x}, {x, y}} T9 = {X, ∅, {x}, {x, z}} T10 = {X, ∅, {x}, {y, z}}
We can continue adding sets to these topologies. For example, we could add the set {x, z} to T8 ,
yielding the topology T11 = {X, ∅, {x}, {x, y}, {x, z}}. If we add the set {y, z} to T8 , we will also
have to add the set {y} to the topology, since {y, z} ∩ {x, y} = {y} and topologies must be closed
under finite intersection. This will give a topology with two 1-element subsets, which we will discuss
more below.
We can apply the same arguments as above to T3 and T4 , again adding only 2-element sets, or
to T5 , T6 , and T7 , this time adding only 1-element sets. This gives the following list, which includes
all topologies that include exactly one single-element set-
T2 = {X, ∅, {x}} T3 = {X, ∅, {y}} T4 = {X, ∅, {z}}
T8 = {X, ∅, {x}, {x, y}} T12 = {X, ∅, {y}, {x, y}} T16 = {X, ∅, {z}, {x, y}}
T9 = {X, ∅, {x}, {x, z}} T13 = {X, ∅, {y}, {x, z}} T17 = {X, ∅, {z}, {x, z}}
T10 = {X, ∅, {x}, {y, z}} T14 = {X, ∅, {y}, {y, z}} T18 = {X, ∅, {z}, {y, z}}
T11 = {X, ∅, {x}, {x, y}, {x, z}} T15 = {X, ∅, {y}, {x, y}, {y, z}} T19 = {X, ∅, {z}, {x, z}, {y, z}}
1
We can also add 2-element sets to T5 , T6 , and T7 . For example, if we add the set {x, z} to T5 ,
then for the new set to still be a topology we need to also add {x}. This yields the topology T11
that we have already found. Similar arguments show that adding any two-element set to one of
T5 , T6 , or T7 will require also adding a 1-element subset, and thus will produce one of the topologies
listed above. Therefore, an exhaustive list of the topologies on X that contain no 1-element sets is
T1 , T5 , T6 , and T8 .
We now move on to seeing what happens if we add a 1-element subset to any of the topologies
listed above, to try to find a list of all possible topologies that contain exactly two 1-element subsets.
For example, we could add the set {y} to T2 . This would require also adding the set {x, y}, so that
the topology remains closed under unions. This yields the topology T20 = {X, ∅, {x}, {y}, {x, y}}.
We could add 2-element sets to this topology. Adding either {x, z} or {y, z} yields the topologies
T21 = {X, ∅, {x}, {y}, {x, y}, {x, z}} and T22 = {X, ∅, {x}, {y}, {x, y}, {y, z}}. If we add another
2-element set to either of these topologies, we would also have to add the set {z} so that the
topology is closed under intersection, and for now we are only trying to list topologies with exactly
two 1-element subsets. Thus we stop here. We can apply the same thinking to adding one-element
subsets to any of the topologies listed above, to obtain the following list of all topologies on X that
contain exactly two 1-element subsets of X:
Finally, we consider the topologies that contain all three 1-element subsets. But then because
a topologies must be closed under unions, we see that such a topology must contain all subsets of
X. Thus the final topology is the discrete topology,
T29 = {X, ∅, {x}, {y}, {z}, {x, y}, {x, z}, {y, z}}
Exercise 3.4: Prove Theorem 2.8 from the text. That is, prove that if X is a topological space,
then
(a) X, ∅ are closed.
(b) The intersection of any collection of closed sets is closed.
(c) The union of any finite collection of closed sets in closed.
Solution: Recall the definition of closed sets for abstract topological spaces - C ⊂ X is closed if
and only if the complement X − C is an open set.
2
(a) Following the definition, we consider the complements of X and ∅. We observe that X −X =
∅. Every topology includes ∅ as an open set, so X is closed. Similarly, X −∅ = X, and every topology
on X includes X as an open set, so ∅ is closed.
(b) Let {Cα }α∈I be a collection of closed sets for I any index set - in particular, we are not
assuming that I is finite or even countable. Let C = ∩α∈I Cα . Then the complement of C is
\ [
X −C =X − Cα = (X − Cα ),
α∈I α∈I
using DeMorgan’s laws. Observe that because each Cα is a closed set, the complement X − Cα is
an open set. The definition of a topology says that the union of any collection of open sets is again
open, so we have that ∪α∈I (X − Cα ) is open. Then X − C is open, so C is a closed set.
(c) Let Ci , 1 ≤ i ≤ n be a finite collection of closed sets. Let C = ∪ni=1 Ci . Then the complement
of C is n n
[ \
X −C =X − Ci = (X − Ci ),
i=1 i=1
again using DeMorgan’s laws. Each X − Ci is an open set, since Ci is closed. The definition of a
topology says that the intersection of a finite collection of open sets is again open, so we have that
∩ni=1 (X − Ci ) is open, hence X − C is open, and therefore C is closed.
Exercise 3.9: Let X, Y be topological spaces, and let f : X → Y be a function. Show that f
is continuous if and only if for every C ⊂ Y closed, the set f −1 (C) ⊂ X is closed.
Solution: (⇒) Assume that f is continuous. Let C ⊂ Y be a closed set. Then by definition
Y − C is an open set. Then the set f −1 (Y − C) is open, because the function f is continuous. We
observe that f −1 (Y − C) = X − f −1 (C), so we have that the complement of the set f −1 (C) is open,
that is, f −1 (C) is closed.
(⇐) Assume that for every closed set C ⊂ Y , we have that f −1 (C) is closed. Let U ⊂ Y be
an open set. Then by definition the complement Y − U is a closed set, and therefore the preimage
f −1 (Y − U ) is closed. Observing that f −1 (Y − U ) = X − f −1 (U ), we have that the complement
of f −1 (U ) is a closed set, that is f −1 (U ) is open. Thus for every U ⊂ Y open, we have f −1 (U ) is
open, that is, f is continuous.
Exercise 3.10: Let X be a topological space, and let A, B ⊂ X be closed subsets of X such
that X = A ∪ B. Let f : A → Y and g : B → Y be continuous functions such that for every
x ∈ A ∩ B, f (x) = g(x). Define (f ∪ g) : X → Y by
f (x) x ∈ A
(f ∪ g)(x) =
g(x) x ∈ B
Solution: (a) We will consider the characterization of continuous functions using closed sets
from the previous exercise.
Let C ⊂ Y be a closed set. Then f −1 (C) ⊂ A is closed because f is continuous. The topology
on A is the subspace topology, so saying that f −1 (C) is closed in A means that there exists D ⊂ X
3
a closed set such that f −1 (C) = D ∩ A. Now D and A are both closed in X (this is where we
use the necessary hypothesis that A is closed), so their intersection is also a closed set in X from
exercise 3.4. Thus the set f −1 (C) is in fact a closed subset of X.
We repeat the same argument using g and B. This gives that the sets f −1 (C) and g −1 (C) are
both closed in X, hence the union f −1 (C) ∪ g −1 (C) is a closed set, again using exercise 3.4. Observe
that (f ∪ g)−1 (C) = f −1 (C) ∪ g −1 (C), so (f ∪ g)−1 (C) is closed. Thus for every C ⊂ Y closed,
(f ∪ g)−1 (C) is closed, so exercise 3.9 says that (f ∪ g) is continuous.
(b) There are many possible answers to this question. Here is one.
Let X = [0, 1] with the usual topology as a subset of R. Let A = [0, 21 ] and B = ( 12 , 1], so that
X = A ∪ B. Observe that B is not a closed subset of X - you’ve proved similar statements on
earlier homeworks. Let f : A → [0, 1] be constant with value 0, and let g : B → [0, 1] be constant
function with value 1. We are again using the standard topology on the target space [0, 1]. Recall
from a previous homework that constant functions are always continuous. Note that A ∩ B = ∅, so
we can define the function (f ∪ g).
Then consider the open set [0, 1/2) ⊂ [0, 1] (Recall that [0, 1] has the subspace topology). The
preimage of this set under (f ∪ g) is (f ∪ g)−1 ([0, 1/2)) = A = [0, 1/2], which is not open in [0, 1] -
1/2 is not interior. Thus the function (f ∪ g) fails to be continuous.
Remarks: Many peoples’ proofs in part (1) never made use of the fact that A and B are closed.
But we can see from part (2) that any proof that leaves this fact out must be incorrect. Otherwise
that proof would imply that the function (f ∪g) we described in part (b) above would be continuous.
When writing proofs, it’s often useful to check where you use each of the hypotheses of the theorem.
If you didn’t use them all, you might have made a mistake in your proof. (Of course, this doesn’t
necessarily mean you’ve made a mistake - sometimes a theorem may be written with extraneous
hypotheses. In this case, though, we know that the condition that A and B are closed is necessary).
Question 2: Show that (0, 1), (0, ∞), and (−∞, ∞) are all homeomorphic.
so that f is surjective. We therefore have that f is a bijective, and the inverse function f −1 :
(0, ∞) → (0, 1) is given by f −1 (x) = x+1
1
.
To show that f is a homeomorphism, it remains to show that both f and f −1 are continuous.
We begin by showing that f is continuous. We can use the δ − definition of continuity from
Theorem 2.17 in the text. To use this, we fix x ∈ (0, 1), and let > 0 be given. We can choose
δ > 0 such that δ < min{1 − x, x/2, x2 /2}. Note that our choice of δ depends only on x and .
4
This gives three inequalities. The first two are that δ < 1 − x and δ < x/2. Together, these
guarantee that the interval (x − δ, x + δ) is contained in (0, 1). We also have that if |x − y| < δ,
then x − δ < y. Since δ < x/2, we have
x x 1 2
=x− <x−δ <y ⇔ < (†)
2 2 y x
Our choice of δ also gives the the third inequality δ < x2 /2. Thus, if |x − y| < δ, we have
|x − y| < x2 /2, so that if |x − y| < δ,
x2 /2 · 2
1 1 y − x |y − x| |y − x| 2
|f (x) − f (y)| = −1 − − 1 = = < · < =
x y xy xy x x x2
as desired. Note that we use the inequality (†) and the fact that both x and y are positive. This
establishes that f is continuous.
We then use Theorem 2.17 to show that f −1 is continuous as well. Fix x ∈ (0, ∞) and > 0.
Choose δ < min{x/2, }.
We choose δ < x/2 so that the interval (x − δ, x + δ) is contained in the domain (0, ∞). Our
1
choice of δ also guarantees that δ < . Note also that y+1 < x + 1. This follows from the inequality
1
y > 0, which after adding 1 to both sides and inverting yields y+1 < 1, and the fact that since
1
x > 0, we have 1 < x + 1. Combing these gives y+1 < 1 < x + 1, which is the desired inequality.
Then assuming that |x − y| < δ, hence |x − y| < , we have
(y + 1) − (x + 1)
= |y − x| · 1 < |y − x| ·(x+1) = |x−y| <
1 1
|f (x)−f (y)| = − =
x+1 y+1 (x + 1)(y + 1) (x + 1) y + 1 (x + 1)
Solution: The topology on X is the subspace topology. The open sets of X are exactly the sets
of the form U ∩ X, where U is an open subset of Rn .
Let U ⊂ Rn be an open set. Then
g −1 (U ) = {x ∈ X : g(x) ∈ U }
= {x ∈ X : f (x) ∈ U }
= {x ∈ Rn : f (x) ∈ U } ∩ X
= f −1 (U ) ∩ X
The second line above follows because by definition g(x) = f (x) for x ∈ X.
Observe that f −1 (U ) is open in Rn , since U ⊂ Rn is open and f is assumed continuous. There-
fore, the set g −1 (U ) is the intersection of an open set in Rn and the set X, hence g −1 (U ) is open in
5
X. Thus for every open U ⊂ Rn , we have g −1 (U ) is open in X, and therefore g is continuous.
Solution: (a) Let X have the discrete topology. This means that all subsets of X are open sets.
Then let U ⊂ Y be an open set. The set f −1 (U ) is open in X since all subsets of X are open.
Therefore, for every U ⊂ Y open, f −1 (U ) ⊂ X is open, that is, the function f is continuous.
(b) Let Y have the discrete topology. This means that the only open subsets of Y are Y itself
and ∅. Then let U ⊂ Y be an open set. There are two cases. In the first case, we have U = Y , so
that f −1 (Y ) = X is open in X since any topology on X contains X. In the second case, we have
U = ∅, so that f −1 (∅) = ∅, which is open since any topology on X contains ∅. Thus for any U ⊂ Y
open, we have f −1 (U ) ⊂ X is open, and therefore f is continuous.
Question 4: Let Y = {a, b, c} with the topology {∅, {a}, {a, b}, {a, b, c}}. Give an example of
a non-constant, continuous function f : [0, 1] → Y , where [0, 1] ⊂ R has the usual topology. Will
the function remain continuous if you instead take the discrete topology on Y . Why?
Solution: There are many possible answers to this question. One possible answer -
Define f : [0, 1] → Y by
a 0 ≤ x < 12
f (x) =
c 21 ≤ x ≤ 1
Clearly f is non-constant, as it takes two different values. To observe that it is continuous, we
consider the preimages of the open sets of Y -
Observe that each of these preimages is an open set in [0, 1], the first and last by the definition of
all topologies and the last because [0, 1/2) = (−∞, 1/2) ∩ [0, 1] and (−∞, 1/2) is open in R (the
standard topology on [0, 1] is the subspace topology inherited from R.). Since the preimage of every
open set in Y is an open set in [0, 1], the function is continuous.
The function will not remain continuous if the topology on Y is the discrete topology. If Y has
the discrete topology, then {c} is an open set in Y , and f −1 ({c}) = [1/2, 1] is not an open set in
[0, 1], as 1/2 is not an interior point.
Remark: One can prove that any non-constant function from [0, 1] with the standard topology
to any topological space with the discrete topology cannot be continuous using connectedness - see
Section 3.2 and Theorem 3.15 in the text.