Concept: - 1+tan2x=sec2x. - ∫tanxdx=ln∣secx∣+C−∫secxdx=ln∣secx+tanx∣+CCalculation: Let I=∫secx+tanxdx By rationalizing the denominator of the integrand we get: ⇒I=∫(secx+tanx)⋅(secx−tanx)(secx−tanx)dx⇒I=∫sec2xtan2x(secx−tanx)dx As we know that, sec2x−tan2x=1, therefore: ⇒I=∫(secx−tanx)dx⇒I=∫secxdx−∫tanxdx⇒I=ln∣secx+tanx∣−ln∣secx∣+C