# How do you differentiate x^2 sin(1/x) - 2?

$2 x \sin \left(\frac{1}{x}\right) - \cos \left(\frac{1}{x}\right)$
$f ' = 2 x \sin \left(\frac{1}{x}\right) + {x}^{2} \cos \left(\frac{1}{x}\right) \cdot \left(- \frac{1}{x} ^ 2\right)$