cos2x-2(√3)sinxcosx
=cos2x-√3sin2x
=2(cos2x*1/2-√3/2*sin2x)
=2cos(2x+π/3)
2cos(2x+π/3)=k+1
k=2cos(2x+π/3)-1