Prove that if $f, g$ : $X$ → $\mathbb R$ are continuous at $a$ ∈ $\mathbb R$, then $f · g$ is continuous in $a$.
If $f$ is continuous at $a$, then $∀ε_f > 0, ∃δ_f > 0$ such that
$|x-a| < δ_f$ iff $|f(x) - f(a)| < ε_f$
and if $g$ is continuous at $a$, then $∀ε_g > 0, ∃δ_g > 0$ such that
$|x-a| < δ_g$ iff $|g(x) - g(a)| < ε_g$.
Now make $|f(x)g(x) - f(a)g(a)|$ = $|f(x)g(x) - f(x)g(a) + f(x)g(a) - f(a)g(a)|$ $≤$ $|f(x)||g(x)-g(a)| + |g(a)||f(x)-f(a)|$ < $ε_f|g(a)| + ε_g|f(x)|$. (1)
Notice that if $|f(x) - f(a)| < ε_f$ then $|f(x)| - |f(a)| < ε_f$, so $|f(x)| < ε_f + |f(a)|$.
That implies, from (1): $|f(x)g(x) - f(a)g(a)| < ε_f|g(a)| + ε_g(ε_f + |f(a)|) = ε_f(|g(a)| + ε_g|f(a)|)$.
Now I'm a little lost. From the proofs I've seen, it seems to me that I could simply take $δ = min(δ_g, δ_f)$. Also, since $ε_f$ and $ε_g$ can be made as small as one wants, there will be some δ that satisfies the conditions for continuity. But from what I read, I should explicitly show a δ in terms of ε. Anyway, I reasoned that since $f$ and $g$ are continuous, I can make bounds on $x$ symmetrically* as done to $f(x)g(x)$ and got the following:
δ = $δ_f(|a| + δ_g|a|)$ = $δ_f|a|(1 + δ_g)$
so:
$|x-a| < δ_f|a|(1 + δ_g)$ iff $|f(x)g(x) - f(a)g(a)| < ε_f(|g(a)| + ε_g|f(a)|)$
- I need to clarify/better define this, but it is basically the notion that making the same operations I made on the bounds of $f(x)g(x)$ in relation to the bounds of $f(x)$ and $g(x)$ individually over the bounds of $x$ for each function, should leave me with the adequate bounds for $x$ on the composite function.
You seem to have the foundations of a correct proof. Here are some things to think about when doing proofs of real analysis. Essentially you want to prove that, given any $ε > 0$, there exists some $\delta>0$ s.t. $|x-a| < \delta \rightarrow |f(x)g(x) - f(a)g(a)| < ε$.
So let us pick an $ε$. We need to prove there is some $\delta$ that can satisfy the aforementioned property. Now before we find this $\delta$ we need to investigate how we can get it. Looking at your (1) below:
$$ \begin{split} &|f(x)g(x) - f(a)g(a)| \\ &=|f(x)g(x) - f(x)g(a) + f(x)g(a) - f(a)g(a)| \\ &≤ |f(x)||g(x)-g(a)| + |g(a)||f(x)-f(a)| \\ &< ε_f|g(a)| + ε_g|f(x)|. \end{split} $$ Now if you can pick a $\delta$ such that $ ε_f|g(a)| + ε_g|f(x)| \leq ε$ then we are done. Our aim will be to get $ε_f|g(a)| \leq \frac{ε}{2}$ and $ε_g|f(x)| \leq \frac{ε}{2}$ so their sum will be less than or equal to $ε$.
It is important to remember that, because of the continuity of f and g, you have the choice to pick $ε_f$ and $ε_g$ to have whatever values you want.
So let $\delta_f$ be the appropriate value such that $ε_f = \frac{ε}{2|g(a)|+1}$ (2) and thus $ε_f|g(a)| = \frac{ε|g(a)|}{2|g(a)|+1}< \frac{ε}{2}$ (the +1 in the denominator is there to avoid division by 0).
Picking $ε_g$ is harder because we need $ε_g|f(x)| \leq \frac{ε}{2}$ and the $f(x)$ term is not a constant like $g(a)$ was in the previous case. We need to bound the $f(x)$ somehow. Well since f is continuous, if we let $x$ and $a$ be close enough to each other, we can bound f. Let us pick a $\delta_b$ s.t. for $|x-a|<\delta_b$, we have $|f(x) - f(a)| < ε \implies |f(x)| < ε + |f(a)|$ (3) by triangle ineq. And so we have, for $x$ and $a$ close enough, $ε_g|f(x)| < ε_g(ε + |f(a)|)$ and so we let $\delta_g$ be the appropriate value such that $ε_g = \frac{ε}{2(ε +|f(a)|)}$ (4) and so $ε_g|f(x)| < \frac{ε}{2(ε +|f(a)|)}(ε + |f(a)|) = \frac{ε}{2} $
Thus given that $x$ and $a$ are close enough to each other (explained at the end), we can get $ε_f|g(a)| \leq \frac{ε}{2}$ and $ε_g|f(x)| \leq \frac{ε}{2}$ and so $ε_f|g(a)| + ε_g|f(x)| \leq ε$ and so
$$ \begin{split} &|f(x)g(x) - f(a)g(a)| < ε_f|g(a)| + ε_g|f(x)| \leq ε \\ &\implies |f(x)g(x) - f(a)g(a)| < ε \end{split} $$ as required.
But what does it mean for $x$ and $a$ to be close enough? We need to specify how close they actually need to be (this is ultimately our $\delta$ that we are trying to find). Well we need $|x-a| < \delta_f$ for (2) and we need $|x-a| < \delta_b$ for (3) and we need $|x-a| < \delta_g$ for (4) and so we can say $x$ and $a$ are close enough if $|x-a| < min\{\delta_f,\delta_g,\delta_b\}$ and so $\delta=min\{\delta_f,\delta_g,\delta_b\}$
I hope this helps.