Suppose we have a multivariable, real, vector-valued function $f:\mathbb{R}^n \to \mathbb{R}^m$ where $f = (f_1, f_2, ..., f_m)$. How can I prove that $f$ is continuous iff all of its component functions $f_i$ are continuous? This is where where $f_i$ is a multivariable, real function $f_i:\mathbb{R}^n \to \mathbb{R}$
FORWARDS:
suppose that $f$ is continuous and $a = (a_1, a_2, ..., a_n) \in \mathbb{R}^n$
$\implies \forall a, \forall \epsilon > 0, \exists \delta > 0$ s.t. $d(a, x) < \delta \implies d(f(a), f(x)) < \epsilon$
$\implies ||f(x) - f(a)|| < \epsilon$
$\implies \sqrt{\sum_{i = 1}^{m}(f_i(x) - f_i(a))^2} < \epsilon$
$\implies \sum_{i = 1}^{m}(f_i(x) - f_i(a))^2 < \epsilon^2$
$\implies (f_i(x) - f_i(a))^2\ < \epsilon^2$
$\implies |f_i(x) - f_i(a)| < \epsilon$
BACKWARDS:
suppose that each $f_i$ is continuous and $a = (a_1, a_2, ..., a_n) \in \mathbb{R}^n$
$\implies \forall a, \forall \epsilon > 0, \exists \delta_i > 0$ s.t. $d(a, x) < \delta_i \implies d(f_i(a), f_i(x)) < \epsilon$
if we let $\delta = min\{\delta_1, \delta_2, ..., \delta_n\}$ , we can say that...
$\implies \forall a, \forall \epsilon > 0, \exists \delta > 0$ s.t. $d(a, x) < \delta \implies d(f_i(a), f_i(x)) < \epsilon$
Now, because the above statement holds true $\forall \epsilon$, we can say that...
$\implies \forall a, \forall \epsilon > 0,\exists \delta > 0$ s.t. $d(a, x) < \delta \implies d(f_i(a), f_i(x)) < \frac{\epsilon}{\sqrt{m}}$
$\implies |f_i(x) - f_i(a)| < \frac{\epsilon}{\sqrt{m}}$
$\implies (f_i(x) - f_i(a))^2 < (\frac{\epsilon}{\sqrt{m}})^2$
$\implies \sum_{i = 1}^{m}(f_i(x) - f_i(a))^2\ < m(\frac{\epsilon}{\sqrt{m}})^2 = \epsilon^2$
$\implies \sqrt{\sum_{i = 1}^{m}(f_i(x) - f_i(a))^2} < \epsilon$
$\implies ||f(x) - f(a)|| < \epsilon$
Also, does this proof only hold true when d is the stadard euclidean distance on $\mathbb{R}^n$ and $\mathbb{R}$. Why would other norms or metrics suffice? I've seen a few other posts online about this proof. However, I'm still unsure about a few things.