$ 2\left(\dfrac{(2sin(x/2).cos(x/2))^2}{2sin^2(x/2)}-1\right)^2-1=2(2cos^2(x/2)-1)^2-1=2cos^2x-1=cos2x$