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