integrate (cos(x))^(1/2) dx from x=pi to 3pi