ok cool, so the first term will simplify to (3)(cos6x).
Hmm now we have a (cos6x)' on the right side.
We'll take the derivative of the outermost function (cosine)
Then "chain" (multiply by the derivative of the inside (6x)' )
So whats the derivative of cos6x? :D