How do find the derivative of y = cos^2(x)?