How do you differentiate #f(x)=sin(3x+1)# using the chain rule?