integrate 1/2*(1-cos(x))^2 dx from x=0 to 2pi