## Calculus (3rd Edition)

$2xcos(x)-x^{2}sin(x)$
Use the product rule for differentiation, or $[uv]'=u'v+uv'$, the derivative equals $(x^{2})'cos(x)+x^{2}(cos(x))',$ or $2xcos(x)-x^{2}sin(x)$.