integral of 1-(cos t +sin t +2)/((cos t +1)^2+(sin t +1)^2) dt from 0 to 2pi