Find the derivative of $g(x)= (\tan \left|x\right| + x )\sin(x) $ at $x_o = \pi$.
I tried to solve it using $\lim_{h \to 0} \frac{f(x+h)-f(x)}{h}$, but I got stuck at this point:
$\lim_{h \to 0} \ \frac {\tan \left|\pi+ h\right| + \pi+h )\sin(\pi+h)-\tan \left|\pi\right| + \pi )\sin(\pi)}{h}$.
Since $h \to 0$, it seems to me that the derivative is $0$, but I have no idea how to prove it.
Using the product rule:
$$g'(x) = (\tan^2 |x| +1) \sin x + \cos x \tan|x| + \sin x + x\cos x$$ $$g'(x) = \tan^2 |x| \sin x +\sin x + \cos x \tan|x| + \sin x + x\cos x$$ at $x_0= \pi$
$$g'(\pi) = -\pi$$