y=2cos(x+π/3)-1,x=0 to π