integrate 1/pi*(a/2*(1+cos(2*b*(x-c)))+d) dx from -pi to pi