∫IntegralPasoEspañol
Integration techniques

Integrals of tangent, secant and cosecant

Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.

1+tan⁡2x=sec⁡2x1+\tan^2x=\sec^2x

For even secant powers, reserve sec²x and use u=tan x. For odd tangent powers, reserving sec x tan x and using u=sec x may help. Cotangent/cosecant families are analogous with their derivative signs.

Common mistake

These are guidelines; special powers can require integration by parts.

Step-by-step example

  1. Reserve sec²x.

    ∫tan⁡3xsec⁡2x dx\int\tan^3x\sec^2x\,dx
  2. Substitute u = tan x.

    du=sec⁡2x dx,I=∫u3 dudu=\sec^2x\,dx,\quad I=\int u^3\,du
  3. Return to x.

    I=14tan⁡4x+CI=\frac14\tan^4x+C

Antiderivatives of secant, cosecant and cotangent

  1. For secant, multiply and divide by sec x + tan x. Its derivative is sec x times that same sum.

    ∫sec⁡x dx=∫(sec⁡x+tan⁡x)′sec⁡x+tan⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+C\int\sec x\,dx=\int\frac{(\sec x+\tan x)'}{\sec x+\tan x}\,dx=\ln|\sec x+\tan x|+C

    Valid on intervals where cos x is nonzero.

  2. For cosecant, use csc x − cot x. Its derivative is csc x times that same difference.

    ∫csc⁡x dx=∫(csc⁡x−cot⁡x)′csc⁡x−cot⁡x dx=ln⁡∣csc⁡x−cot⁡x∣+C\int\csc x\,dx=\int\frac{(\csc x-\cot x)'}{\csc x-\cot x}\,dx=\ln|\csc x-\cot x|+C

    Valid on intervals where sin x is nonzero.

  3. For cotangent, write cos x / sin x and recognize the derivative of the denominator.

    ∫cot⁡x dx=∫cos⁡xsin⁡x dx=ln⁡∣sin⁡x∣+C\int\cot x\,dx=\int\frac{\cos x}{\sin x}\,dx=\ln|\sin x|+C

    Valid on intervals where sin x is nonzero.

Practice trigonometric integrals with hints

View all cases in this familyPractice this method