integral of cos^2(ax)