I had these two statements in some exam recently and I still wonder how to tackle them to decide which one is correct.
$f$ is continuous at $0$, $g$ is differentiable at $0$, $g(0)=0$, $fg$ is differentiable at $0$.
$f$ is continuous at $0$, $g$ is differentiable at $0$, $f(0)=0$, $fg$ is differentiable at $0$.
I know that if $g$ is differentiable at a certain point $x_0$, then $g$ must also be continuous at $x_0$. Also, $f$ is differentiable at $x_0$ iff $\lim \limits_{x \to x_0 } \frac{f(x) - f(x_0)}{x - x_0}$ exists and that value is denoted by $f'(x_0)$. But I'm confused about the importance of $g(0)=0$ and $f(0)=0$.
Here's the idea of why that's important. Suppose we try applying the product rule. Then
$$ (fg)'(0) = f(0)g'(0) + f'(0)g(0) $$
Now we don't know that $f'(0)$ exists so if $g(0) = 0$ then we "don't have to worry about the last term." That is, if $g(0) = 0$ we might expect
$$ (fg)'(0) = f(0)g'(0). $$