How does one instantly know that
$$(1-\cos(2x))^2$$
leads to
$$(\cos^2(x) + \sin^2(x)-(\cos^2(x)-\sin^2(x))^2$$
I know that
$$\cos(2x) = \cos(x)^2-\sin(x)^2$$
but it confuses me that I can't get to what's written above.
I got it from here (see denominator):
