Using the product rule, we have $f'(x) = 2x \sin x + x^2 \cos x$.

Blog at WordPress.com.