differentiate y=cos(x^2) with respect to x