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