# How do you differentiate f(x) = 2x cos(x²)?

$\frac{\mathrm{df}}{\mathrm{dx}} = 2 \cdot \cos \left({x}^{2}\right) - 2 x \cdot \sin \left({x}^{2}\right) \cdot \left(2 x\right) = 2 \cos \left({x}^{2}\right) - 4 {x}^{2} \cdot \sin \left({x}^{2}\right)$