# How do you differentiate f(x)=xcosx using the product rule?

$\left(f g\right) ' = f ' g + f g '$
$f ' = 1 \times \cos x + \left(x\right) \times \sin x$