Use ∫tanx dx=ln∣secx∣+C\int \tan x \, dx = \ln|\sec x| + C∫tanxdx=ln∣secx∣+C, ∫secx dx=ln∣secx+tanx∣+C\int \sec x \, dx = \ln|\sec x + \tan x| + C∫secxdx=ln∣secx+tanx∣+C.