d/dtheta 2cos(theta)+cos^2(theta)