A question defines $$f(x)=\begin{cases}g(x)\cos\frac{1}{x}&\text{if } x\neq0\\0&\text{if } x=0\end{cases}.$$ Here, $g$ is an even function and differentiable at $0$, and $g(0)=0$. You're required to find $f'(0)$.
On differentiating $f(x)$ to find it, you get $$g'(x)\cos\frac{1}{x}+\frac{g(x)\sin\frac{1}{x}}{x^2}$$. The first term is obviously $0$ at $x=0$, but the second term is in a $\frac{0}{0}$ indeterminate form, as both $g$ and $x^2$ approach 0 at x=0. But all the solutions I've seen simplify that term to zero, too.
Isn't that incorrect? I tried using L'Hôpital's Rule on $\frac{g(x)}{x^2}$, but since we don't know what g'(x) is, it doesn't help much. So how does that term end up as 0?