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