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