Let $X$ and $Y$ be two topological spaces, $A \subset X$, $B \subset Y$ and $f: X \longrightarrow Y$ a function, such that $f(A) \subset B$. Then $f$ determines a function $f|_{A,B} : A \longrightarrow B$. Show that:
- if $f$ is continuous, then $f|_{A,B}$ is also continuous
- $f$ is continuous $\Leftrightarrow$ $f|_{X,f(X)}$ is continuous
This is one of the problems in my topology textbook. I gave it a try but I could not succed. Can anyone help me?