Differentiate cos^2 x w/ respect to x

d/dx [cos(x)]^2 = 2 cos(x) * [-sin(x)]