integrate 2*cos(t)+(cos(t))^2 from t=pi/2 to pi