How do you use the chain rule to differentiate #y=cos(3x)#?