Showing if something is continuous in Topology If $f : X \to \mathbb{R}$ is continuous,
I want to show that $(cf)(x) = cf(x)$ is continuous, where $c$ is a constant.
Attempt: If $f$ is continuous, then we want to show that the inverse image of every open set in $\mathbb{R}$ is an open set of $X$. Choose an open interval in $\mathbb{R}$. 
Thats as far as I got. :(

An alternative answer, that does not require you to prove the composition of continuous functions is continuous:
Let $U\subset\mathbb{R}$ be open. In fact we may assume $U=(a,b)$ by taking the open balls as a base for $\mathbb{R}$.
Now,
$$
(cf)^{-1}(U) = \{ x\in X: \exists y\in(a,b): (cf)(x) = y\}
= \left\{x\in X:\exists y\in(a,b): f(x)=\frac{y}{c}\right\}
$$
$$
=\left\{x\in X: \exists z\in \left(\frac{a}{c},\frac{b}{c}\right): f(x)=z\right\}
$$
and this last set is precisely $$f^{-1}\left\{\left(\frac{a}{c},\frac{b}{c}\right)\right\},$$ which is open since $f$ is continuous.
