Consider the substitution u = cos ( x ) {\displaystyle u=\cos(x)} and use an appropriate trigonometric identity.