How To Calculate Cosine Squared Integral