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