How to integrate (cos2x)^2?

I figured how to do it ^^