There is no need to use contradiction for Part (1). Itís totally straightforward.
Let . You want to show that f is continuous at x. Given , simply set and you have that , .
f is a function from M onto N; in other words, it is surjective.
Let . Then
So f is injective as well. Hence it is a homeomorphism.