integrate 2t + cos t from -pi/2 to pi/2