Do I need to prove a function between two topological spaces $X, Y$ is onto to prove it induces a function on $Y$

functionsgeneral-topologymetric-spaces

If there is a mapping $f: X\to Y$ between two topological spaces and $X$ has a topology $T_X$ then $Y$ will have a topology $T_f$ induced by $X$ and function $f$. But recently I got confused by something my teacher said while explaining identification functions:

"If I have a mapping from $X$ to $Y$ and $X$ has a topology and if I were able to prove the mapping was onto then I can say there is a topology $T_f$ induced on $Y$ by $T_X$ and $f$ and then we can complete our prove for identification function".

So my question is, why do I need the function to be onto in order to have an induced topology on $Y$? Now I know I need onto condition to prove identification function but I am asking for the induced topology itself why do i need onto condition for that?

Best Answer

As mentioned in the comment, it is not necessary to have a surjective function to define a topology on the codomain of $f$, but it is sufficient to have one. Indeed, if you have a function $f : (X, \tau) \rightarrow Y$ that is onto, then it induces on $Y$ a topology that is called quotient topology, where the open sets are defined in the following way:

Def: A set $B \subseteq Y$ is said to be open in $Y$ if $f^{-1}(B)$ is an open set in $X$.

Now you can see that if $f$ is not surjective, then you may have some $y \in Y$ for which $f^{-1}(\{y\})$ is the empty set, so open in $X$ by definition. Hence, these singletons result open in the topology induced by $f$ on $Y$ and you may want to avoid this (just as an example, if you assume more structure on the topology like to be $T_1$, then these sets would be both open and closed, hence the space would result always disconnected by these isolated points).

Related Question