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