Answer
$2x \cos x+2 \sin x-2x $
Work Step by Step
We have: $r(x)=2x \sin x-x^2$
We need to differentiate both sides with respect to $x$.
$r^{\prime}(x)=\dfrac{d}{dx} (2x \sin x-x^2)\\=2x\cos x+\sin x \times 2-2x$
Therefore, $r^{\prime}(x)=2x \cos x+2 \sin x-2x $