Suppose $(M, d)$ is a metric space, $E \subseteq M$, $f, g : E \to \R$, and $p$ is a cluster limit point of $E$.
Suppose further that for some $r \gt 0$, the set $f(E\cap B_r(p)) = \set{f(x) \mid x \in E\cap B_r(p)} \subseteq \R$ is bounded, and that \[\lim_{x\to p}g(x) = 0.\]
Show that \[\lim_{x\to p} f(x)g(x) = 0.\]
(Note: you should not assume that $f$ has a limit at $p$, unless you prove it from these hypotheses.)
Suppose that $(M, d)$ and $(X, d_X)$ are metric spaces, $E \subseteq M$, $f : E \to X$, and $p$ is a cluster limit point of $E$.
Suppose that $X, Y, Z$ are metric spaces, that $f : X \to Y$ and $g : Y\to Z$, that $x_0 \in X$, and that $f$ is continuous at $x_0$ while $g$ is continuous at $f(x_0)$. Verify that $g\circ f$ is continuous at $x_0$.
(You should not assume that $f$ or $g$ are continuous anywhere else. If you use the open set chracterisation mentioned in extra problems below, you should prove it, although I don't think that is the easiest way forward for this problem.)
Within this question, we will equip $\R^n$ with the Euclidean distance $d_2$ given by \[d_2(\vec x, \vec y) = \sqrt{\sum_{i=1}^n \abs{x_i-y_i}^2}.\]
Let $f : \R \to \R^n$ and for each $i$ define $f_i = \pi_i \circ f : \R \to \R$. Prove that if each $f_i$ is continuous, then so is $f$.
(In fact, $f$ is continuous if and only if each $f_i$ is; the other direction follows immediately from part A and a statement we will prove soon, that the composition of continuous functions is continuous.)
Let $f : [0,1] \to \R$ be defined as follows: \[ f(x) = \begin{cases} 0 & \text{ if } x \notin \Q \\ 1 & \text{ if } x = 0 \\ \frac1q & \text{ if } x = \frac{p}{q} \text{ with } p \in \Z, q \in \N, \text{ and } p, q \text{ have no common factor}.\end{cases}\] (For example, $f(0) = f(1) = 1$, $f(1/2) = 1/2$, $f(1/4) = f(3/4) = 1/4$.)
Prove that $f$ is continuous at every irrational number, but discontinuous at every rational number.
Suppose that $f, g : X \to Y$ are continuous, and $E \subseteq X$ is dense; recall that by definition this means $\overline E = X$.
(This time you may use the additional characterisations of density given below, but if you do you should convince yourself that you can prove them.)
Here are some further problems to think about out of interest. You do not need to attempt them, nor should you submit them with the assignment.
Suppose that $(M, d)$ is a metric space and $X \subseteq M$. Prove that the following are equivalent:
I'm not sure if I proved these useful facts in lecture or not. Prove them now, without looking things up in the notes or the text.
Suppose that $(M, d)$ is a metric space.
Suppose that $X, Y$ are metric spaces, $f : X \to Y$, and $x_0 \in X$. Show that $f$ is continuous at $x_0$ if and only if whenever $U \subseteq Y$ is open with $f(x_0) \in Y$, there is an open set $V \subseteq X$ with $x \in V \subseteq f^{-1}(U)$.
This is unfortunately not as nice as the case for functions that are continuous on all of $X$.
Suppose that $K \subseteq M$ is compact and $F \subseteq M$ is closed and bounded. Prove that there are $x \in K, y \in F$ so that \[d(x, y) = \inf\set{d(s, t) \mid s \in J, t \in K},\] or show by example that this may not be the case.
Let $(M, d)$ be a metric space, and $X \subseteq M$. Define $\iota$ to be the inclusion $\iota : X \hookrightarrow M$ defined by $x \mapsto x$. Ponder the relation between Assignment 4, Problem 3 and the continuity of $\iota$.
Recall that a set $S$ is said to be countable if there is an injective function $S \hookrightarrow \N$. A metric space $(M, d)$ is said to be separable if it has a countable dense subset.