The following:
Let $f,g : D \rightarrow \mathbb{R}$ be functions with $D \subset \mathbb{R}$ such that $f$ is continuous and $g$ is bounded. Let $x_0 \in D$ and define $h(x) = (f(x) - f(x_0)) \cdot g(x)$. Prove that $h$ is continuous at $x_0$.
I have an idea how to solve it, but it looks wrong:
Let $(x_n)$ be a sequence such that $\lim_{n \rightarrow \infty} x_n = x_0$. Because $f$ is continuous, it follows that
$$\lim_{n \rightarrow \infty} (f(x_n) - f(x_0)) = f(\lim_{x \rightarrow \infty}x_n) - f(x_0) = f(x_0) -f(x_0) = 0 $$
So $ f(x_n) - f(x_0)$ is a null sequence. Up to this point everything seems fine. But now I don't know if my argumentation is correct:
Because $g$ is bounded, it follows that the sequence $(g(x_n))$ is bounded too ($\color{red}{???}$)
Because $(f(x_n) - f(x_0))$ is a null sequence and because $(g(x_n))$ is a bounded sequence it follows that:
$$\lim_{n \rightarrow \infty} h(x_n) = \lim_{n \rightarrow \infty} (f(x_n) - f(x_0)) \cdot g(x_n) = 0 =h(x_0)$$
So $h$ is continuous at $x_0$.
Yes, $g$ bounded means there is a constant $M$ such that $|g(x)|< M$ for every $x$, so in particular for each $x_n$