d/dx (2 (cos(x^2 + 2))^2.)