Hello everyone.
Suppose we have two functions $f\colon X\to \mathbb{R}$ and $g\colon Y\to \mathbb{R}$ that are continuous at $a\in X$ and $b=f(a)\in Y$ respectively. Suppose also that $f[X]\subset Y$.
To show that composition of continuous functions is continuous, that is, that $g\circ f$ is continuous, we just define the restriction $g\restriction_{f[X]}\colon f[X]\to \mathbb{R}$. I've already shown that restriction of continuous is continuous. Is that it?