• Practice
  • About 15 min
  • 5 practice questions

Trigonometric integrals: reciprocal forms and powers of tan and sec

Integrate 1/(sin x cos x), 1/(sin²x cos²x), 1/(1 ± cos x), and powers such as tan³x and sec⁴x by the right identity or by the substitution u = tan x.

If something looks wrong, please tell us.

Earlier lessons covered sin²x, cos³x and products like sin 5x cos 3x. A different family appears as fractions with sines and cosines in the denominator, and as powers of tan x and sec x. Each has a standard trick: rewrite using an identity, divide the top and bottom by cos²x, or save a factor of sec²x. Once you know which trick goes with which shape, these are fast marks.

Fractions with sin x and cos x

1/(sin x cos x). Divide the top and bottom by cos²x: it becomes sec²x/tan x. With u = tan x, du = sec²x dx, so the integral is ∫ du/u = ln|tan x| + C.

1/(sin²x cos²x). Replace the 1 in the numerator by sin²x + cos²x: (sin²x + cos²x)/(sin²x cos²x) = 1/cos²x + 1/sin²x = sec²x + cosec²x. The integral is tan x − cot x + C.

1/(1 + cos x) and 1/(1 − cos x). Use the half-angle identities 1 + cos x = 2cos²(x/2) and 1 − cos x = 2 sin²(x/2). Then ∫ dx/(1 + cos x) = ∫ (1/2) sec²(x/2) dx = tan(x/2) + C and ∫ dx/(1 − cos x) = −cot(x/2) + C.

Divide by cos²x and put u = tan x for 1/(sin x cos x). Write 1 = sin²x + cos²x for 1/(sin²x cos²x). Use 1 ± cos x = 2cos²(x/2) or 2sin²(x/2). For tanⁿx write tan²x = sec²x − 1; for secⁿx save a sec²x.

Worked example 1: a definite integral

Evaluate ∫ from π/6 to π/3 of dx/(sin²x cos²x). The antiderivative is tan x − cot x. At π/3: √3 − 1/√3 = 2/√3. At π/6: 1/√3 − √3 = −2/√3. The difference is 2/√3 + 2/√3 = 4/√3 = 4√3/3, about 2.31.

Worked example 2: another half-angle integral

Evaluate ∫ from 0 to π/2 of dx/(1 + cos x). The antiderivative is tan(x/2). At π/2, tan(π/4) = 1; at 0, tan 0 = 0. So the value is 1. A quick check on the size: at x = 0 the integrand is 1/2, at x = π/2 it is 1, and the interval has length about 1.57, so an answer near 1 is sensible.

Powers of tan x

For ∫ tan³x dx, write tan³x = tan x · tan²x = tan x (sec²x − 1) = tan x sec²x − tan x. The first part is ∫ tan x sec²x dx = tan²x/2 (put u = tan x). The second is ∫ tan x dx = −ln|cos x|. So ∫ tan³x dx = tan²x/2 + ln|cos x| + C. From 0 to π/4 this equals 1/2 + ln(√2/2) − 0 = 1/2 − (1/2) ln 2.

Worked example 3: even powers of sec

For ∫ sec⁴x dx, keep one sec²x for du and rewrite the other using sec²x = 1 + tan²x: sec⁴x = (1 + tan²x) sec²x. With u = tan x, the integral is ∫ (1 + u²) du = u + u³/3, that is tan x + tan³x/3 + C. Over [0, π/4] the value is 1 + 1/3 = 4/3.

Which trick goes with which shape?

ShapeFirst move
1/(sin x cos x)divide by cos²x; u = tan x
1/(sin²x cos²x)write 1 = sin²x + cos²x
1/(1 ± cos x)half-angle identity
tanⁿxtan²x = sec²x − 1
sec²ᵐxsave one sec²x; u = tan x

Key takeaways: each reciprocal form has one identity that solves it; powers of tan peel off tan²x = sec²x − 1; even powers of sec keep a sec²x and use u = tan x. Remember that ∫ tan x dx has a minus sign: −ln|cos x|.

Check your understanding

  1. 1. What is ∫ dx/(sin x cos x)?

    1. ln|sin x cos x| + C
    2. tan x − cot x + C
    3. −cot x + C
    4. ln|tan x| + C
    Show answer

    Answer: D. Divide the top and bottom by cos²x: sec²x/tan x. With u = tan x the integral is ∫ du/u = ln|tan x|.

  2. 2. What is ∫ dx/(sin²x cos²x)?

    1. tan x + cot x + C
    2. tan x − cot x + C
    3. ln|tan x| + C
    4. −1/(sin x cos x) + C
    Show answer

    Answer: B. Write 1 = sin²x + cos²x, giving sec²x + cosec²x. The integral is tan x − cot x.

  3. 3. What is ∫ dx/(1 + cos x)?

    1. −cot(x/2) + C
    2. tan x + C
    3. tan(x/2) + C
    4. 2 tan(x/2) + C
    Show answer

    Answer: C. 1 + cos x = 2cos²(x/2), so the integrand is (1/2) sec²(x/2). The integral is tan(x/2).

  4. 4. What is the value of ∫ from 0 to π/4 of sec⁴x dx?

    1. 4/3
    2. 1
    3. 2/3
    4. 5/3
    Show answer

    Answer: A. sec⁴x = (1 + tan²x) sec²x, with antiderivative tan x + tan³x/3. At π/4 it is 1 + 1/3 = 4/3 and at 0 it is 0.

  5. 5. What is ∫ tan³x dx?

    1. tan²x/2 − ln|cos x| + C
    2. tan⁴x/4 + C
    3. tan²x/2 + ln|cos x| + C
    4. sec³x/3 + ln|cos x| + C
    Show answer

    Answer: C. tan³x = tan x sec²x − tan x. The first part integrates to tan²x/2 and ∫ tan x dx = −ln|cos x|. Subtracting the second part gives tan²x/2 + ln|cos x|.

Privacy · Terms · Refunds · Delivery