Find the derivative of the following functions.
f:x\longmapsto 3\cos\left(x\right)
f : x \longmapsto \sin\left(3x + 2\right)
f : x \longmapsto \cos\left(\sin\left(x\right)\right)
x \longmapsto -6\tan\left(\dfrac{1}{3}x\right)
f : x \longmapsto \cos^2\left(3x\right)
f : x \longmapsto \dfrac{1}{5}\tan\left(-4x\right)
f : x \longmapsto \dfrac{1}{2}\sin\left(6x^2\right)