contestada

Can someone explain to me why the answer is 3cos3x (it has something to do with chain rule i think)

Can someone explain to me why the answer is 3cos3x it has something to do with chain rule i think class=