Integrate[1/(1+k cos t)^2, {t}]