Concept:Use partial fraction decomposition and standard integrals: ∫secxdx=log∣secx+tanx∣+c and ∫sec22xdx=2tan2x+c.Explanation:Rewrite the integrand ascosx(1+cosx)1=cosx1−1+cosx1.Therefore,I=∫secxdx−∫1+cosx1dx.Use the identity 1+cosx=2cos22x to getI=∫secxdx−∫21sec22xdx.Evaluate each integral:∫secxdx=log∣secx+tanx∣,and∫21sec22xdx=tan2x.Thus,I=log∣secx+tanx∣−tan2x+c.Answer:Option D: log(secx+tanx)−tan(2x)+c, where c is the constant of integration.