In topology we defined a continuous map to be a map between 2 spaces $f: X \mapsto Y$ such that if $U\subset Y$ is open then $f^{-1}(U)$ is open.
Why did we use the preimage; why not say 'a continuous map always maps open sets to open sets'?
In topology we defined a continuous map to be a map between 2 spaces $f: X \mapsto Y$ such that if $U\subset Y$ is open then $f^{-1}(U)$ is open.
Why did we use the preimage; why not say 'a continuous map always maps open sets to open sets'?
The statement "a coninuous map always maps open sets to open sets" is false. A counter example is $f(x)=x^2$ on $\mathbb R \rightarrow \mathbb R$ . Then the open set $(-1,1)$ is sent to the non-open set $[0,1)$.
Because with your definition we would have to agree that the function $f:\mathbb{R}\to\mathbb{R}$ defined by $f(x)=0$ (constant function) is not continuous in the standard topology on $\mathbb{R}$. We don't want that to happen.
Now, in metric spaces we can define continuity with $\epsilon-\delta$ like it is being done in analysis. But then there is a theorem that a function $f:(X,d_1)\to (Y,d_2)$ between metric spaces is continuous if and only if for each open set $U\subset Y$ the set $f^{-1}(U)\subset X$ is open. You can take it as a good exercise to prove this theorem. And this is the motivation for the definition of continuity in topological spaces which are not necessary metric spaces. With this definition we get a generalization.