Here is the question:
Show that if $f: X \rightarrow Y$ is any continuous function, and if $X$ is connected, then its image $f(X) \subseteq Y$ (which has the subspace topology) is also connected.
Where we have the following:
we say a space $X$ is connected if the only separations that $X$ has are trivial separations.
A separation of a space $X$ is a continuous function $f: X \rightarrow Z,$ where $Z$ is the discrete two-point space. we say that a separation $f: X \rightarrow Z,$ of the space $X$ is a trivial separation if it is a constant function.
Still I do not know how to prove the question, could anyone help me please?
Suppose $X$ is connected, $f:X\to Y$ is continuous, and $g$ is a continuous function from the image of $f$ to the discrete two-point space $Z$. Then $g\circ f:X\to Z$ is a composition of continuous maps, so continuous, and $X$ is connected, so the composition is constant, so $g$ is constant.