integrate (cos(t) (cos(t) - 1/sqrt(2)))/((1 - 1/sqrt(2) cos(t))^2 - 1/4 sin^2(t)) from 0 to pi