Function is defined as it follows : $x \neq 0$ and $f(0)=0$
My work is:
$\frac{d}{dx}(x|\cos{\frac{\pi}{x}}|)$ = $|\cos{\frac{\pi}{x}}|$ + $x(\frac{d}{dx}|\cos{\frac{\pi}{x}}|)$ = $|cos{\frac{\pi}{x}}|$ + $\frac{\pi}{x}(\operatorname{sgn}(\cos{\frac{\pi}{x}}))(\sin{\frac{\pi}{x}})$ = $\operatorname{sgn}(\cos{\frac{\pi}{x}})[(\cos{\frac{\pi}{x}}) + \frac{\pi}{x}(\sin{\frac{\pi}{x}})]$
Should I consider any points on the domain and find the derivative of the function on those points?
Thank you