expand cos^2(x)