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