Problem: Suppose $X$ is a topological space and both $f, g$ are continuous functions from $X$ to $\Bbb R$, I wish to show that $(f+g)(x)$ with the same domain and range is continuous.
My attempt: First of all it's worth noting that my definition of a map being continuous is that the inverse image of an open set in the co-domain is open in the domain. So take an open subset $U$ of $\Bbb R$, with the set of all bounded open intervals as the basis of the topology $\Bbb R$, then it suffices to consider the inverse image of a basis element of $\Bbb R$, say B centered at $r \in \Bbb R$ with radius $\epsilon>0$,
Then by the continuity of $f,g$ there exist neighbourhooods (pre-images) $N,M$ of $X$ such that $f(x) \in B_{\epsilon/2}(r)$ when $x \in N$, $g(x) \in B_{\epsilon/2}(r)$ when $x \in M$ , and so by taking $x \in N \cap M$ (an open set), we have
$|f(x)+g(x)-r| \leq |f(x)|+|g(x)-r|< r+ \epsilon/2 + \epsilon/2 ,$ and so $f(x)+g(x) \in B_{\epsilon}(r)$
It's worth noting that this problem has been asked several times on Math SE, but I believe my particular approach is somewhat unique, and I want to know if I am on the right track. Is the set $N \cap M = (f+g)^{-1} (U)$ (pre-image)?
The map $f \nabla g: X \to \mathbb{R} \times \mathbb{R}$ given by $(f \nabla g)(x) = (f(x), g(x))$ is continuous as the composition with both projections are continuous (universal property of products): $\pi_1 \circ (f \nabla g) = f$ and $\pi_2 \circ (f \nabla g) = g$. You only need to show that $p: \mathbb{R} \times \mathbb{R} \to \mathbb{R}$ given by $p(x,y) = x+y$ is continuous, to conclude that $$f+g = p \circ (f \nabla g) $$ is continuous.
And that $p$ is continuous is quite easy to see, using some inequalities involving metrics on $\mathbb{R}^2$.