Let $A \subset \mathbb{R}$ be a connected set and let $f:A\to \mathbb{R}$ be a continuous function. We define $f(A)$ to the image of $f$. Show that $f(A)$ is connected.
I thought about maybe using contradiction. So that we assume $\exists X,Y \in \mathbb{R}$ such that $X\cup Y =f(A)$ and $X\cap Y = \emptyset$ and use this to contradict that $f$ is continuous. I am stuck here and some hints to get me in the right direction would be much appreciated. Thanks!
