In our study of substitution, we observed how trigonometric identities simplify algebraic radicals.
Equally important is the reverse challenge: how to evaluate integrals consisting entirely of powers and products of trigonometric functions :
∫ sin m x cos n x d x , ∫ tan m x sec n x d x , ∫ cot m x csc n x d x \int \sin^m x \cos^n x\,dx, \qquad \int \tan^m x \sec^n x\,dx, \qquad \int \cot^m x \csc^n x\,dx ∫ sin m x cos n x d x , ∫ tan m x sec n x d x , ∫ cot m x csc n x d x
Such integrals occur repeatedly throughout calculus. They arise not only as standalone problems, but very frequently as the culmination of earlier algebraic, trigonometric, or geometric substitutions (such as setting x = a sin θ x = a\sin\theta x = a sin θ or x = a tan θ x = a\tan\theta x = a tan θ ).
The method of evaluation is dictated systematically by the parity (odd or even nature) of the exponents and their algebraic sum.
Powers of Sine and Cosine§
We begin with single trigonometric powers:
∫ sin n x d x and ∫ cos n x d x \int \sin^n x\,dx \qquad \text{and} \qquad \int \cos^n x\,dx ∫ sin n x d x and ∫ cos n x d x
Case 1: The Exponent is Odd§
When n = 2 k + 1 n = 2k + 1 n = 2 k + 1 is an odd positive integer, we peel off one factor of sin x \sin x sin x (or cos x \cos x cos x ) to serve as the differential. The remaining even power is then converted using the fundamental identity sin 2 x + cos 2 x = 1 \sin^2 x + \cos^2 x = 1 sin 2 x + cos 2 x = 1 .
For ∫ sin 2 k + 1 x d x \int \sin^{2k+1} x\,dx ∫ sin 2 k + 1 x d x :
∫ sin 2 k + 1 x d x = ∫ ( sin 2 x ) k sin x d x = ∫ ( 1 − cos 2 x ) k sin x d x \int \sin^{2k+1} x\,dx = \int (\sin^2 x)^k \sin x\,dx = \int (1 - \cos^2 x)^k \sin x\,dx ∫ sin 2 k + 1 x d x = ∫ ( sin 2 x ) k sin x d x = ∫ ( 1 − cos 2 x ) k sin x d x
Letting t = cos x ⟹ d t = − sin x d x t = \cos x \implies dt = -\sin x\,dx t = cos x ⟹ d t = − sin x d x , the integrand transforms into a simple polynomial in t t t .
Similarly, for ∫ cos 2 k + 1 x d x \int \cos^{2k+1} x\,dx ∫ cos 2 k + 1 x d x :
∫ cos 2 k + 1 x d x = ∫ ( cos 2 x ) k cos x d x = ∫ ( 1 − sin 2 x ) k cos x d x \int \cos^{2k+1} x\,dx = \int (\cos^2 x)^k \cos x\,dx = \int (1 - \sin^2 x)^k \cos x\,dx ∫ cos 2 k + 1 x d x = ∫ ( cos 2 x ) k cos x d x = ∫ ( 1 − sin 2 x ) k cos x d x
Letting t = sin x ⟹ d t = cos x d x t = \sin x \implies dt = \cos x\,dx t = sin x ⟹ d t = cos x d x , the integral again reduces directly to a polynomial.
Example 1§
Evaluate:
I = ∫ sin 3 x d x I = \int \sin^3 x\,dx I = ∫ sin 3 x d x
Solution:
Peel off one factor of sin x \sin x sin x :
I = ∫ sin 2 x sin x d x = ∫ ( 1 − cos 2 x ) sin x d x I = \int \sin^2 x \sin x\,dx = \int (1 - \cos^2 x)\sin x\,dx I = ∫ sin 2 x sin x d x = ∫ ( 1 − cos 2 x ) sin x d x
Let:
t = cos x ⟹ d t = − sin x d x ⟹ sin x d x = − d t t = \cos x \implies dt = -\sin x\,dx \implies \sin x\,dx = -dt t = cos x ⟹ d t = − sin x d x ⟹ sin x d x = − d t
Substitute into the integral:
I = ∫ ( 1 − t 2 ) ( − d t ) = ∫ ( t 2 − 1 ) d t I = \int (1 - t^2)(-dt) = \int (t^2 - 1)\,dt I = ∫ ( 1 − t 2 ) ( − d t ) = ∫ ( t 2 − 1 ) d t
I = t 3 3 − t + C I = \frac{t^3}{3} - t + C I = 3 t 3 − t + C
Returning to x x x :
I = cos 3 x 3 − cos x + C I = \frac{\cos^3 x}{3} - \cos x + C I = 3 cos 3 x − cos x + C
Example 2§
Evaluate:
I = ∫ cos 5 x d x I = \int \cos^5 x\,dx I = ∫ cos 5 x d x
Solution:
Separate one factor of cos x \cos x cos x :
I = ∫ cos 4 x cos x d x = ∫ ( cos 2 x ) 2 cos x d x = ∫ ( 1 − sin 2 x ) 2 cos x d x I = \int \cos^4 x \cos x\,dx = \int (\cos^2 x)^2 \cos x\,dx = \int (1 - \sin^2 x)^2 \cos x\,dx I = ∫ cos 4 x cos x d x = ∫ ( cos 2 x ) 2 cos x d x = ∫ ( 1 − sin 2 x ) 2 cos x d x
Let:
t = sin x ⟹ d t = cos x d x t = \sin x \implies dt = \cos x\,dx t = sin x ⟹ d t = cos x d x
Substitute into the integral:
I = ∫ ( 1 − t 2 ) 2 d t = ∫ ( 1 − 2 t 2 + t 4 ) d t I = \int (1 - t^2)^2\,dt = \int (1 - 2t^2 + t^4)\,dt I = ∫ ( 1 − t 2 ) 2 d t = ∫ ( 1 − 2 t 2 + t 4 ) d t
Integrating term by term:
I = t − 2 t 3 3 + t 5 5 + C I = t - \frac{2t^3}{3} + \frac{t^5}{5} + C I = t − 3 2 t 3 + 5 t 5 + C
Returning to x x x :
I = sin x − 2 sin 3 x 3 + sin 5 x 5 + C I = \sin x - \frac{2\sin^3 x}{3} + \frac{\sin^5 x}{5} + C I = sin x − 3 2 sin 3 x + 5 sin 5 x + C
Case 2: The Exponent is Even§
When n = 2 k n = 2k n = 2 k is an even positive integer, the substitution method fails: stripping off one factor leaves an odd power that cannot be expressed as a polynomial without square roots.
Instead, we convert even powers into linear multiple-angle terms using the half-angle reduction identities:
sin 2 x = 1 − cos 2 x 2 , cos 2 x = 1 + cos 2 x 2 \sin^2 x = \frac{1 - \cos 2x}{2}, \qquad \cos^2 x = \frac{1 + \cos 2x}{2} sin 2 x = 2 1 − cos 2 x , cos 2 x = 2 1 + cos 2 x
Any resulting even powers of cos 2 x \cos 2x cos 2 x are reduced again by reapplying the formula with doubled arguments, such as:
cos 2 2 x = 1 + cos 4 x 2 \cos^2 2x = \frac{1 + \cos 4x}{2} cos 2 2 x = 2 1 + cos 4 x
Example 3§
Evaluate:
I = ∫ cos 2 x d x I = \int \cos^2 x\,dx I = ∫ cos 2 x d x
Solution:
Apply the half-angle reduction formula:
cos 2 x = 1 + cos 2 x 2 \cos^2 x = \frac{1 + \cos 2x}{2} cos 2 x = 2 1 + cos 2 x
Substitute into the integral:
I = ∫ 1 + cos 2 x 2 d x = 1 2 ∫ 1 d x + 1 2 ∫ cos 2 x d x I = \int \frac{1 + \cos 2x}{2}\,dx = \frac{1}{2}\int 1\,dx + \frac{1}{2}\int \cos 2x\,dx I = ∫ 2 1 + cos 2 x d x = 2 1 ∫ 1 d x + 2 1 ∫ cos 2 x d x
I = x 2 + sin 2 x 4 + C I = \frac{x}{2} + \frac{\sin 2x}{4} + C I = 2 x + 4 sin 2 x + C
Example 4§
Evaluate:
I = ∫ sin 4 x d x I = \int \sin^4 x\,dx I = ∫ sin 4 x d x
Solution:
Express sin 4 x \sin^4 x sin 4 x as the square of sin 2 x \sin^2 x sin 2 x :
sin 4 x = ( sin 2 x ) 2 = ( 1 − cos 2 x 2 ) 2 \sin^4 x = (\sin^2 x)^2 = \left( \frac{1 - \cos 2x}{2} \right)^2 sin 4 x = ( sin 2 x ) 2 = ( 2 1 − cos 2 x ) 2
Expand the numerator:
sin 4 x = 1 − 2 cos 2 x + cos 2 2 x 4 \sin^4 x = \frac{1 - 2\cos 2x + \cos^2 2x}{4} sin 4 x = 4 1 − 2 cos 2 x + cos 2 2 x
Reduce the remaining quadratic term cos 2 2 x \cos^2 2x cos 2 2 x :
cos 2 2 x = 1 + cos 4 x 2 \cos^2 2x = \frac{1 + \cos 4x}{2} cos 2 2 x = 2 1 + cos 4 x
Substitute this back:
sin 4 x = 1 4 ( 1 − 2 cos 2 x + 1 + cos 4 x 2 ) = 1 4 ( 3 2 − 2 cos 2 x + cos 4 x 2 ) \sin^4 x = \frac{1}{4} \left( 1 - 2\cos 2x + \frac{1 + \cos 4x}{2} \right) = \frac{1}{4} \left( \frac{3}{2} - 2\cos 2x + \frac{\cos 4x}{2} \right) sin 4 x = 4 1 ( 1 − 2 cos 2 x + 2 1 + cos 4 x ) = 4 1 ( 2 3 − 2 cos 2 x + 2 cos 4 x )
sin 4 x = 3 8 − 1 2 cos 2 x + 1 8 cos 4 x \sin^4 x = \frac{3}{8} - \frac{1}{2}\cos 2x + \frac{1}{8}\cos 4x sin 4 x = 8 3 − 2 1 cos 2 x + 8 1 cos 4 x
Now integrate term by term:
I = ∫ ( 3 8 − 1 2 cos 2 x + 1 8 cos 4 x ) d x I = \int \left( \frac{3}{8} - \frac{1}{2}\cos 2x + \frac{1}{8}\cos 4x \right) dx I = ∫ ( 8 3 − 2 1 cos 2 x + 8 1 cos 4 x ) d x
I = 3 x 8 − sin 2 x 4 + sin 4 x 32 + C I = \frac{3x}{8} - \frac{\sin 2x}{4} + \frac{\sin 4x}{32} + C I = 8 3 x − 4 sin 2 x + 32 sin 4 x + C
Products of Powers of Sine and Cosine§
We now turn to the general product:
I = ∫ sin m x cos n x d x I = \int \sin^m x \cos^n x\,dx I = ∫ sin m x cos n x d x
The choice of method depends on whether m m m and n n n are odd or even.
Case A: At Least One Exponent is Odd§
If either exponent is an odd positive integer, we use substitution.
Subcase 1: The power of sin x \sin x sin x is odd (m = 2 k + 1 m = 2k + 1 m = 2 k + 1 )
Peel off sin x d x \sin x\,dx sin x d x to form the differential, convert the remaining even power of sine to cosine using sin 2 x = 1 − cos 2 x \sin^2 x = 1 - \cos^2 x sin 2 x = 1 − cos 2 x , and substitute:
t = cos x ⟹ d t = − sin x d x t = \cos x \implies dt = -\sin x\,dx t = cos x ⟹ d t = − sin x d x
Subcase 2: The power of cos x \cos x cos x is odd (n = 2 k + 1 n = 2k + 1 n = 2 k + 1 )
Peel off cos x d x \cos x\,dx cos x d x to form the differential, convert the remaining even power of cosine to sine using cos 2 x = 1 − sin 2 x \cos^2 x = 1 - \sin^2 x cos 2 x = 1 − sin 2 x , and substitute:
t = sin x ⟹ d t = cos x d x t = \sin x \implies dt = \cos x\,dx t = sin x ⟹ d t = cos x d x
Subcase 3: Both exponents are odd
Either substitution works. In practice, choose to peel off the factor with the smaller exponent to minimize the degree of the binomial expansion.
Example 5§
Evaluate:
I = ∫ sin 3 x cos 2 x d x I = \int \sin^3 x \cos^2 x\,dx I = ∫ sin 3 x cos 2 x d x
Solution:
Here the power of sin x \sin x sin x is odd (m = 3 m = 3 m = 3 ). Separate one factor of sin x \sin x sin x :
I = ∫ sin 2 x cos 2 x sin x d x = ∫ ( 1 − cos 2 x ) cos 2 x sin x d x I = \int \sin^2 x \cos^2 x \sin x\,dx = \int (1 - \cos^2 x)\cos^2 x \sin x\,dx I = ∫ sin 2 x cos 2 x sin x d x = ∫ ( 1 − cos 2 x ) cos 2 x sin x d x
Let:
t = cos x ⟹ d t = − sin x d x ⟹ sin x d x = − d t t = \cos x \implies dt = -\sin x\,dx \implies \sin x\,dx = -dt t = cos x ⟹ d t = − sin x d x ⟹ sin x d x = − d t
Substitute into the integral:
I = ∫ ( 1 − t 2 ) t 2 ( − d t ) = ∫ ( t 4 − t 2 ) d t I = \int (1 - t^2)t^2 (-dt) = \int (t^4 - t^2)\,dt I = ∫ ( 1 − t 2 ) t 2 ( − d t ) = ∫ ( t 4 − t 2 ) d t
Integrating gives:
I = t 5 5 − t 3 3 + C I = \frac{t^5}{5} - \frac{t^3}{3} + C I = 5 t 5 − 3 t 3 + C
Returning to x x x :
I = cos 5 x 5 − cos 3 x 3 + C I = \frac{\cos^5 x}{5} - \frac{\cos^3 x}{3} + C I = 5 cos 5 x − 3 cos 3 x + C
Example 6§
Evaluate:
I = ∫ sin 3 x cos 5 x d x I = \int \sin^3 x \cos^5 x\,dx I = ∫ sin 3 x cos 5 x d x
Solution:
Both exponents are odd (m = 3 m = 3 m = 3 and n = 5 n = 5 n = 5 ). We peel off the smaller power (sin x \sin x sin x ):
I = ∫ sin 2 x cos 5 x sin x d x = ∫ ( 1 − cos 2 x ) cos 5 x sin x d x I = \int \sin^2 x \cos^5 x \sin x\,dx = \int (1 - \cos^2 x)\cos^5 x \sin x\,dx I = ∫ sin 2 x cos 5 x sin x d x = ∫ ( 1 − cos 2 x ) cos 5 x sin x d x
Let:
t = cos x ⟹ d t = − sin x d x t = \cos x \implies dt = -\sin x\,dx t = cos x ⟹ d t = − sin x d x
Substitute into the integral:
I = − ∫ ( 1 − t 2 ) t 5 d t = ∫ ( t 7 − t 5 ) d t I = -\int (1 - t^2)t^5\,dt = \int (t^7 - t^5)\,dt I = − ∫ ( 1 − t 2 ) t 5 d t = ∫ ( t 7 − t 5 ) d t
I = t 8 8 − t 6 6 + C I = \frac{t^8}{8} - \frac{t^6}{6} + C I = 8 t 8 − 6 t 6 + C
Returning to x x x :
I = cos 8 x 8 − cos 6 x 6 + C I = \frac{\cos^8 x}{8} - \frac{\cos^6 x}{6} + C I = 8 cos 8 x − 6 cos 6 x + C
Case B: Both Exponents are Even Non-Negative Integers§
When both m m m and n n n are even non-negative integers (m = 2 p , n = 2 q m = 2p, n = 2q m = 2 p , n = 2 q ), neither function can provide a single odd factor for substitution.
We must convert both terms to multiple angles using:
sin 2 x = 1 − cos 2 x 2 , cos 2 x = 1 + cos 2 x 2 , sin x cos x = sin 2 x 2 \sin^2 x = \frac{1 - \cos 2x}{2}, \qquad \cos^2 x = \frac{1 + \cos 2x}{2}, \qquad \sin x\cos x = \frac{\sin 2x}{2} sin 2 x = 2 1 − cos 2 x , cos 2 x = 2 1 + cos 2 x , sin x cos x = 2 sin 2 x
Grouping factors into ( sin x cos x ) (\sin x\cos x) ( sin x cos x ) whenever possible drastically reduces the required algebra.
Example 7§
Evaluate:
I = ∫ sin 2 x cos 2 x d x I = \int \sin^2 x \cos^2 x\,dx I = ∫ sin 2 x cos 2 x d x
Solution:
Group the factors using the double-angle identity:
sin x cos x = sin 2 x 2 ⟹ sin 2 x cos 2 x = sin 2 2 x 4 \sin x\cos x = \frac{\sin 2x}{2} \implies \sin^2 x\cos^2 x = \frac{\sin^2 2x}{4} sin x cos x = 2 sin 2 x ⟹ sin 2 x cos 2 x = 4 sin 2 2 x
Now apply the half-angle identity to sin 2 2 x \sin^2 2x sin 2 2 x :
sin 2 2 x = 1 − cos 4 x 2 \sin^2 2x = \frac{1 - \cos 4x}{2} sin 2 2 x = 2 1 − cos 4 x
The integrand becomes:
sin 2 x cos 2 x = 1 4 ⋅ 1 − cos 4 x 2 = 1 8 ( 1 − cos 4 x ) \sin^2 x\cos^2 x = \frac{1}{4} \cdot \frac{1 - \cos 4x}{2} = \frac{1}{8}(1 - \cos 4x) sin 2 x cos 2 x = 4 1 ⋅ 2 1 − cos 4 x = 8 1 ( 1 − cos 4 x )
Integrating directly:
I = 1 8 ∫ ( 1 − cos 4 x ) d x I = \frac{1}{8}\int (1 - \cos 4x)\,dx I = 8 1 ∫ ( 1 − cos 4 x ) d x
I = 1 8 ( x − sin 4 x 4 ) + C = x 8 − sin 4 x 32 + C I = \frac{1}{8}\left( x - \frac{\sin 4x}{4} \right) + C = \frac{x}{8} - \frac{\sin 4x}{32} + C I = 8 1 ( x − 4 sin 4 x ) + C = 8 x − 32 sin 4 x + C
Example 8§
Evaluate:
I = ∫ sin 4 x cos 2 x d x I = \int \sin^4 x \cos^2 x\,dx I = ∫ sin 4 x cos 2 x d x
Solution:
Factor out ( sin x cos x ) 2 (\sin x\cos x)^2 ( sin x cos x ) 2 :
sin 4 x cos 2 x = sin 2 x ( sin x cos x ) 2 = sin 2 x ( sin 2 x 2 ) 2 = 1 4 sin 2 x sin 2 2 x \sin^4 x \cos^2 x = \sin^2 x (\sin x\cos x)^2 = \sin^2 x \left(\frac{\sin 2x}{2}\right)^2 = \frac{1}{4}\sin^2 x \sin^2 2x sin 4 x cos 2 x = sin 2 x ( sin x cos x ) 2 = sin 2 x ( 2 sin 2 x ) 2 = 4 1 sin 2 x sin 2 2 x
Convert sin 2 x \sin^2 x sin 2 x using the half-angle formula:
1 4 ( 1 − cos 2 x 2 ) sin 2 2 x = 1 8 sin 2 2 x − 1 8 sin 2 2 x cos 2 x \frac{1}{4} \left( \frac{1 - \cos 2x}{2} \right) \sin^2 2x = \frac{1}{8}\sin^2 2x - \frac{1}{8}\sin^2 2x \cos 2x 4 1 ( 2 1 − cos 2 x ) sin 2 2 x = 8 1 sin 2 2 x − 8 1 sin 2 2 x cos 2 x
Split into two separate integrals:
I = 1 8 ∫ sin 2 2 x d x − 1 8 ∫ sin 2 2 x cos 2 x d x I = \frac{1}{8}\int \sin^2 2x\,dx - \frac{1}{8}\int \sin^2 2x \cos 2x\,dx I = 8 1 ∫ sin 2 2 x d x − 8 1 ∫ sin 2 2 x cos 2 x d x
For the first integral:
1 8 ∫ sin 2 2 x d x = 1 8 ∫ 1 − cos 4 x 2 d x = 1 16 ( x − sin 4 x 4 ) \frac{1}{8}\int \sin^2 2x\,dx = \frac{1}{8}\int \frac{1 - \cos 4x}{2}\,dx = \frac{1}{16}\left( x - \frac{\sin 4x}{4} \right) 8 1 ∫ sin 2 2 x d x = 8 1 ∫ 2 1 − cos 4 x d x = 16 1 ( x − 4 sin 4 x )
For the second integral, the factor cos 2 x d x \cos 2x\,dx cos 2 x d x is the differential of sin 2 x \sin 2x sin 2 x :
1 8 ∫ sin 2 2 x cos 2 x d x = 1 16 ∫ sin 2 2 x ( 2 cos 2 x d x ) = 1 16 ⋅ sin 3 2 x 3 = sin 3 2 x 48 \frac{1}{8}\int \sin^2 2x \cos 2x\,dx = \frac{1}{16}\int \sin^2 2x (2\cos 2x\,dx) = \frac{1}{16} \cdot \frac{\sin^3 2x}{3} = \frac{\sin^3 2x}{48} 8 1 ∫ sin 2 2 x cos 2 x d x = 16 1 ∫ sin 2 2 x ( 2 cos 2 x d x ) = 16 1 ⋅ 3 sin 3 2 x = 48 sin 3 2 x
Combining both results:
I = x 16 − sin 4 x 64 − sin 3 2 x 48 + C I = \frac{x}{16} - \frac{\sin 4x}{64} - \frac{\sin^3 2x}{48} + C I = 16 x − 64 sin 4 x − 48 sin 3 2 x + C
The Negative Even Exponent Sum Condition§
A particularly important class of integrals occurs when the exponents m m m and n n n satisfy:
m + n = − 2 k ( k ∈ N ) m + n = -2k \qquad (k \in \mathbb{N}) m + n = − 2 k ( k ∈ N )
That is, the sum of the exponents of sin x \sin x sin x and cos x \cos x cos x is a negative even integer (such as − 2 , − 4 , − 6 -2, -4, -6 − 2 , − 4 , − 6 ).
Such integrals typically appear when powers of sine and cosine are in the denominator, or as the result of earlier substitutions in fractional and radical problems.
When m + n m + n m + n is a negative even integer, we can transform the entire integral into a rational algebraic expression in tan x \tan x tan x :
Factor out cos m + n x \cos^{m+n} x cos m + n x from the integrand, or equivalently divide the numerator and denominator by cos ∣ m + n ∣ x \cos^{|m+n|} x cos ∣ m + n ∣ x .
Because ∣ m + n ∣ |m+n| ∣ m + n ∣ is an even positive integer (2 , 4 , 6 , … 2, 4, 6, \dots 2 , 4 , 6 , … ), at least one factor of sec 2 x d x \sec^2 x\,dx sec 2 x d x is produced to serve as the differential d ( tan x ) d(\tan x) d ( tan x ) .
Any additional even powers of secant are converted to tangents using sec 2 x = 1 + tan 2 x \sec^2 x = 1 + \tan^2 x sec 2 x = 1 + tan 2 x .
Substitute:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
(Note: Alternatively, if powers of cot x \cot x cot x and csc 2 x \csc^2 x csc 2 x are preferred, one may divide by sin ∣ m + n ∣ x \sin^{|m+n|} x sin ∣ m + n ∣ x and substitute t = cot x t = \cot x t = cot x .)
Example 9§
Evaluate:
I = ∫ d x sin x cos 3 x I = \int \frac{dx}{\sin x \cos^3 x} I = ∫ sin x cos 3 x d x
Solution:
In power notation, the integrand is:
sin − 1 x cos − 3 x \sin^{-1} x \cos^{-3} x sin − 1 x cos − 3 x
Here m = − 1 m = -1 m = − 1 and n = − 3 n = -3 n = − 3 , giving:
m + n = − 1 + ( − 3 ) = − 4 m + n = -1 + (-3) = -4 m + n = − 1 + ( − 3 ) = − 4
Since the sum is a negative even integer, divide the numerator and denominator by cos 4 x \cos^4 x cos 4 x :
d x sin x cos 3 x = d x cos 4 x sin x cos 3 x cos 4 x = sec 4 x d x tan x = ( 1 + tan 2 x ) sec 2 x d x tan x \frac{dx}{\sin x \cos^3 x} = \frac{\frac{dx}{\cos^4 x}}{\frac{\sin x \cos^3 x}{\cos^4 x}} = \frac{\sec^4 x\,dx}{\tan x} = \frac{(1 + \tan^2 x)\sec^2 x\,dx}{\tan x} sin x cos 3 x d x = c o s 4 x s i n x c o s 3 x c o s 4 x d x = tan x sec 4 x d x = tan x ( 1 + tan 2 x ) sec 2 x d x
Let:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
Substitute into the integral:
I = ∫ 1 + t 2 t d t = ∫ ( 1 t + t ) d t I = \int \frac{1 + t^2}{t}\,dt = \int \left( \frac{1}{t} + t \right) dt I = ∫ t 1 + t 2 d t = ∫ ( t 1 + t ) d t
I = ln ∣ t ∣ + t 2 2 + C I = \ln|t| + \frac{t^2}{2} + C I = ln ∣ t ∣ + 2 t 2 + C
Returning to x x x :
I = ln ∣ tan x ∣ + 1 2 tan 2 x + C I = \ln|\tan x| + \frac{1}{2}\tan^2 x + C I = ln ∣ tan x ∣ + 2 1 tan 2 x + C
Example 10§
Evaluate:
I = ∫ sin 2 x cos 6 x d x I = \int \frac{\sin^2 x}{\cos^6 x}\,dx I = ∫ cos 6 x sin 2 x d x
Solution:
Here m = 2 m = 2 m = 2 and n = − 6 n = -6 n = − 6 , so:
m + n = 2 + ( − 6 ) = − 4 m + n = 2 + (-6) = -4 m + n = 2 + ( − 6 ) = − 4
Decompose the denominator into cos 2 x ⋅ cos 4 x \cos^2 x \cdot \cos^4 x cos 2 x ⋅ cos 4 x :
sin 2 x cos 6 x = ( sin 2 x cos 2 x ) 1 cos 4 x = tan 2 x sec 4 x = tan 2 x ( 1 + tan 2 x ) sec 2 x \frac{\sin^2 x}{\cos^6 x} = \left( \frac{\sin^2 x}{\cos^2 x} \right) \frac{1}{\cos^4 x} = \tan^2 x \sec^4 x = \tan^2 x (1 + \tan^2 x)\sec^2 x cos 6 x sin 2 x = ( cos 2 x sin 2 x ) cos 4 x 1 = tan 2 x sec 4 x = tan 2 x ( 1 + tan 2 x ) sec 2 x
Let:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
Substitute into the integral:
I = ∫ t 2 ( 1 + t 2 ) d t = ∫ ( t 2 + t 4 ) d t I = \int t^2(1 + t^2)\,dt = \int (t^2 + t^4)\,dt I = ∫ t 2 ( 1 + t 2 ) d t = ∫ ( t 2 + t 4 ) d t
I = t 3 3 + t 5 5 + C I = \frac{t^3}{3} + \frac{t^5}{5} + C I = 3 t 3 + 5 t 5 + C
Returning to x x x :
I = tan 3 x 3 + tan 5 x 5 + C I = \frac{\tan^3 x}{3} + \frac{\tan^5 x}{5} + C I = 3 tan 3 x + 5 tan 5 x + C
Example 11§
Evaluate:
I = ∫ d x sin 2 x cos 4 x I = \int \frac{dx}{\sin^2 x \cos^4 x} I = ∫ sin 2 x cos 4 x d x
Solution:
Here m = − 2 m = -2 m = − 2 and n = − 4 n = -4 n = − 4 , so m + n = − 6 m + n = -6 m + n = − 6 .
Divide numerator and denominator by cos 6 x \cos^6 x cos 6 x :
d x sin 2 x cos 4 x = sec 6 x d x ( sin 2 x cos 2 x ) = sec 4 x sec 2 x d x tan 2 x = ( 1 + tan 2 x ) 2 sec 2 x d x tan 2 x \frac{dx}{\sin^2 x \cos^4 x} = \frac{\sec^6 x\,dx}{\left(\frac{\sin^2 x}{\cos^2 x}\right)} = \frac{\sec^4 x \sec^2 x\,dx}{\tan^2 x} = \frac{(1 + \tan^2 x)^2 \sec^2 x\,dx}{\tan^2 x} sin 2 x cos 4 x d x = ( c o s 2 x s i n 2 x ) sec 6 x d x = tan 2 x sec 4 x sec 2 x d x = tan 2 x ( 1 + tan 2 x ) 2 sec 2 x d x
Let:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
Substitute into the integral:
I = ∫ ( 1 + t 2 ) 2 t 2 d t = ∫ 1 + 2 t 2 + t 4 t 2 d t I = \int \frac{(1 + t^2)^2}{t^2}\,dt = \int \frac{1 + 2t^2 + t^4}{t^2}\,dt I = ∫ t 2 ( 1 + t 2 ) 2 d t = ∫ t 2 1 + 2 t 2 + t 4 d t
Split into separate terms:
I = ∫ ( t − 2 + 2 + t 2 ) d t = − 1 t + 2 t + t 3 3 + C I = \int (t^{-2} + 2 + t^2)\,dt = -\frac{1}{t} + 2t + \frac{t^3}{3} + C I = ∫ ( t − 2 + 2 + t 2 ) d t = − t 1 + 2 t + 3 t 3 + C
Returning to x x x :
I = − cot x + 2 tan x + tan 3 x 3 + C I = -\cot x + 2\tan x + \frac{\tan^3 x}{3} + C I = − cot x + 2 tan x + 3 tan 3 x + C
Example 12§
Evaluate:
I = ∫ d x sin 3 / 4 x cos 5 / 4 x I = \int \frac{dx}{\sin^{3/4} x \cos^{5/4} x} I = ∫ sin 3/4 x cos 5/4 x d x
Solution:
Here the exponents are fractional: m = − 3 / 4 m = -3/4 m = − 3/4 and n = − 5 / 4 n = -5/4 n = − 5/4 .
Summing the exponents:
m + n = − 3 4 − 5 4 = − 8 4 = − 2 m + n = -\frac{3}{4} - \frac{5}{4} = -\frac{8}{4} = -2 m + n = − 4 3 − 4 5 = − 4 8 = − 2
Because m + n = − 2 m + n = -2 m + n = − 2 is a negative even integer, the tangent substitution applies directly.
Divide numerator and denominator by cos 2 x \cos^2 x cos 2 x :
d x sin 3 / 4 x cos 5 / 4 x = d x cos 2 x sin 3 / 4 x cos 5 / 4 x cos 2 x = sec 2 x d x sin 3 / 4 x cos 3 / 4 x = sec 2 x d x tan 3 / 4 x \frac{dx}{\sin^{3/4} x \cos^{5/4} x} = \frac{\frac{dx}{\cos^2 x}}{\frac{\sin^{3/4} x \cos^{5/4} x}{\cos^2 x}} = \frac{\sec^2 x\,dx}{\frac{\sin^{3/4} x}{\cos^{3/4} x}} = \frac{\sec^2 x\,dx}{\tan^{3/4} x} sin 3/4 x cos 5/4 x d x = c o s 2 x s i n 3/4 x c o s 5/4 x c o s 2 x d x = c o s 3/4 x s i n 3/4 x sec 2 x d x = tan 3/4 x sec 2 x d x
Let:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
Substitute into the integral:
I = ∫ t − 3 / 4 d t = t 1 / 4 1 / 4 + C = 4 t 1 / 4 + C I = \int t^{-3/4}\,dt = \frac{t^{1/4}}{1/4} + C = 4t^{1/4} + C I = ∫ t − 3/4 d t = 1/4 t 1/4 + C = 4 t 1/4 + C
Returning to x x x :
I = 4 ( tan x ) 1 / 4 + C I = 4(\tan x)^{1/4} + C I = 4 ( tan x ) 1/4 + C
Powers of Tangent and Cotangent§
Integrals of pure powers of tangent and cotangent follow a direct algebraic reduction based on the Pythagorean identity:
tan 2 x = sec 2 x − 1 , cot 2 x = csc 2 x − 1 \tan^2 x = \sec^2 x - 1, \qquad \cot^2 x = \csc^2 x - 1 tan 2 x = sec 2 x − 1 , cot 2 x = csc 2 x − 1
Factoring out tan 2 x \tan^2 x tan 2 x gives:
tan n x = tan n − 2 x ⋅ tan 2 x = tan n − 2 x ( sec 2 x − 1 ) = tan n − 2 x sec 2 x − tan n − 2 x \tan^n x = \tan^{n-2} x \cdot \tan^2 x = \tan^{n-2} x (\sec^2 x - 1) = \tan^{n-2} x \sec^2 x - \tan^{n-2} x tan n x = tan n − 2 x ⋅ tan 2 x = tan n − 2 x ( sec 2 x − 1 ) = tan n − 2 x sec 2 x − tan n − 2 x
The first term integrates immediately because sec 2 x d x = d ( tan x ) \sec^2 x\,dx = d(\tan x) sec 2 x d x = d ( tan x ) :
∫ tan n − 2 x sec 2 x d x = tan n − 1 x n − 1 \int \tan^{n-2} x \sec^2 x\,dx = \frac{\tan^{n-1} x}{n - 1} ∫ tan n − 2 x sec 2 x d x = n − 1 tan n − 1 x
The remaining term − ∫ tan n − 2 x d x -\int \tan^{n-2} x\,dx − ∫ tan n − 2 x d x has its power reduced by 2 2 2 . Repeating this reduction eventually terminates in either ∫ 1 d x = x \int 1\,dx = x ∫ 1 d x = x (when n n n is even) or ∫ tan x d x = ln ∣ sec x ∣ + C \int \tan x\,dx = \ln|\sec x| + C ∫ tan x d x = ln ∣ sec x ∣ + C (when n n n is odd).
The exact same logic applies to cot n x \cot^n x cot n x .
Example 13§
Evaluate:
I = ∫ tan 3 x d x I = \int \tan^3 x\,dx I = ∫ tan 3 x d x
Solution:
Separate a factor of tan 2 x \tan^2 x tan 2 x :
tan 3 x = tan x ⋅ tan 2 x = tan x ( sec 2 x − 1 ) = tan x sec 2 x − tan x \tan^3 x = \tan x \cdot \tan^2 x = \tan x (\sec^2 x - 1) = \tan x \sec^2 x - \tan x tan 3 x = tan x ⋅ tan 2 x = tan x ( sec 2 x − 1 ) = tan x sec 2 x − tan x
Integrating both terms:
I = ∫ tan x sec 2 x d x − ∫ tan x d x I = \int \tan x \sec^2 x\,dx - \int \tan x\,dx I = ∫ tan x sec 2 x d x − ∫ tan x d x
In the first integral, let t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x :
∫ tan x sec 2 x d x = tan 2 x 2 \int \tan x \sec^2 x\,dx = \frac{\tan^2 x}{2} ∫ tan x sec 2 x d x = 2 tan 2 x
The second integral is standard: ∫ tan x d x = ln ∣ sec x ∣ \int \tan x\,dx = \ln|\sec x| ∫ tan x d x = ln ∣ sec x ∣ .
Therefore:
I = tan 2 x 2 − ln ∣ sec x ∣ + C I = \frac{\tan^2 x}{2} - \ln|\sec x| + C I = 2 tan 2 x − ln ∣ sec x ∣ + C
Example 14§
Evaluate:
I = ∫ tan 4 x d x I = \int \tan^4 x\,dx I = ∫ tan 4 x d x
Solution:
Peel off tan 2 x \tan^2 x tan 2 x :
tan 4 x = tan 2 x ( sec 2 x − 1 ) = tan 2 x sec 2 x − tan 2 x \tan^4 x = \tan^2 x (\sec^2 x - 1) = \tan^2 x \sec^2 x - \tan^2 x tan 4 x = tan 2 x ( sec 2 x − 1 ) = tan 2 x sec 2 x − tan 2 x
Express the remaining tan 2 x \tan^2 x tan 2 x again as sec 2 x − 1 \sec^2 x - 1 sec 2 x − 1 :
tan 4 x = tan 2 x sec 2 x − ( sec 2 x − 1 ) = tan 2 x sec 2 x − sec 2 x + 1 \tan^4 x = \tan^2 x \sec^2 x - (\sec^2 x - 1) = \tan^2 x \sec^2 x - \sec^2 x + 1 tan 4 x = tan 2 x sec 2 x − ( sec 2 x − 1 ) = tan 2 x sec 2 x − sec 2 x + 1
Now integrate term by term:
I = ∫ tan 2 x sec 2 x d x − ∫ sec 2 x d x + ∫ 1 d x I = \int \tan^2 x \sec^2 x\,dx - \int \sec^2 x\,dx + \int 1\,dx I = ∫ tan 2 x sec 2 x d x − ∫ sec 2 x d x + ∫ 1 d x
I = tan 3 x 3 − tan x + x + C I = \frac{\tan^3 x}{3} - \tan x + x + C I = 3 tan 3 x − tan x + x + C
Example 15§
Evaluate:
I = ∫ cot 4 x d x I = \int \cot^4 x\,dx I = ∫ cot 4 x d x
Solution:
Apply the cotangent identity cot 2 x = csc 2 x − 1 \cot^2 x = \csc^2 x - 1 cot 2 x = csc 2 x − 1 :
cot 4 x = cot 2 x ( csc 2 x − 1 ) = cot 2 x csc 2 x − cot 2 x = cot 2 x csc 2 x − ( csc 2 x − 1 ) \cot^4 x = \cot^2 x (\csc^2 x - 1) = \cot^2 x \csc^2 x - \cot^2 x = \cot^2 x \csc^2 x - (\csc^2 x - 1) cot 4 x = cot 2 x ( csc 2 x − 1 ) = cot 2 x csc 2 x − cot 2 x = cot 2 x csc 2 x − ( csc 2 x − 1 )
cot 4 x = cot 2 x csc 2 x − csc 2 x + 1 \cot^4 x = \cot^2 x \csc^2 x - \csc^2 x + 1 cot 4 x = cot 2 x csc 2 x − csc 2 x + 1
Recall that d d x ( cot x ) = − csc 2 x \frac{d}{dx}(\cot x) = -\csc^2 x d x d ( cot x ) = − csc 2 x :
I = − ∫ cot 2 x ( − csc 2 x d x ) − ∫ csc 2 x d x + ∫ 1 d x I = -\int \cot^2 x (-\csc^2 x\,dx) - \int \csc^2 x\,dx + \int 1\,dx I = − ∫ cot 2 x ( − csc 2 x d x ) − ∫ csc 2 x d x + ∫ 1 d x
I = − cot 3 x 3 − ( − cot x ) + x + C I = -\frac{\cot^3 x}{3} - (-\cot x) + x + C I = − 3 cot 3 x − ( − cot x ) + x + C
I = − cot 3 x 3 + cot x + x + C I = -\frac{\cot^3 x}{3} + \cot x + x + C I = − 3 cot 3 x + cot x + x + C
Powers of Secant and Cosecant§
When integrating ∫ sec n x d x \int \sec^n x\,dx ∫ sec n x d x or ∫ csc n x d x \int \csc^n x\,dx ∫ csc n x d x , the behavior splits sharply between even and odd exponents.
Case 1: Even Powers of Secant§
When the exponent is an even integer n ≥ 2 n \ge 2 n ≥ 2 , peel off sec 2 x d x \sec^2 x\,dx sec 2 x d x to serve as the differential d t dt d t , and rewrite the remaining even power sec 2 k − 2 x \sec^{2k-2} x sec 2 k − 2 x using sec 2 x = 1 + tan 2 x \sec^2 x = 1 + \tan^2 x sec 2 x = 1 + tan 2 x :
∫ sec 2 k x d x = ∫ ( sec 2 x ) k − 1 sec 2 x d x = ∫ ( 1 + tan 2 x ) k − 1 sec 2 x d x \int \sec^{2k} x\,dx = \int (\sec^2 x)^{k-1} \sec^2 x\,dx = \int (1 + \tan^2 x)^{k-1} \sec^2 x\,dx ∫ sec 2 k x d x = ∫ ( sec 2 x ) k − 1 sec 2 x d x = ∫ ( 1 + tan 2 x ) k − 1 sec 2 x d x
Letting t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x , the integral becomes a polynomial in t t t .
Example 16§
Evaluate:
I = ∫ sec 4 x d x I = \int \sec^4 x\,dx I = ∫ sec 4 x d x
Solution:
Separate sec 2 x \sec^2 x sec 2 x :
sec 4 x = sec 2 x ⋅ sec 2 x = ( 1 + tan 2 x ) sec 2 x \sec^4 x = \sec^2 x \cdot \sec^2 x = (1 + \tan^2 x)\sec^2 x sec 4 x = sec 2 x ⋅ sec 2 x = ( 1 + tan 2 x ) sec 2 x
Let:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
Substitute into the integral:
I = ∫ ( 1 + t 2 ) d t = t + t 3 3 + C I = \int (1 + t^2)\,dt = t + \frac{t^3}{3} + C I = ∫ ( 1 + t 2 ) d t = t + 3 t 3 + C
Returning to x x x :
I = tan x + tan 3 x 3 + C I = \tan x + \frac{\tan^3 x}{3} + C I = tan x + 3 tan 3 x + C
Case 2: Odd Powers of Secant and Cosecant§
When the power is odd, substitution does not work directly. As seen in our study of integration by parts, odd powers must be evaluated using integration by parts by writing:
sec 2 k + 1 x = sec 2 k − 1 x ⋅ sec 2 x \sec^{2k+1} x = \sec^{2k-1} x \cdot \sec^2 x sec 2 k + 1 x = sec 2 k − 1 x ⋅ sec 2 x
and setting I = sec 2 k − 1 x \text{I} = \sec^{2k-1} x I = sec 2 k − 1 x and II = sec 2 x \text{II} = \sec^2 x II = sec 2 x .
Example 17§
Evaluate:
I = ∫ csc 3 x d x I = \int \csc^3 x\,dx I = ∫ csc 3 x d x
Solution:
Decompose the integrand as:
I = ∫ csc x ⋅ csc 2 x d x I = \int \csc x \cdot \csc^2 x\,dx I = ∫ csc x ⋅ csc 2 x d x
Apply integration by parts:
I = csc x ⟹ d d x ( csc x ) = − csc x cot x \text{I} = \csc x \implies \frac{d}{dx}(\csc x) = -\csc x \cot x I = csc x ⟹ d x d ( csc x ) = − csc x cot x
II = csc 2 x ⟹ ∫ csc 2 x d x = − cot x \text{II} = \csc^2 x \implies \int \csc^2 x\,dx = -\cot x II = csc 2 x ⟹ ∫ csc 2 x d x = − cot x
Applying the product formula:
I = − csc x cot x − ∫ ( − csc x cot x ) ( − cot x ) d x = − csc x cot x − ∫ csc x cot 2 x d x I = -\csc x \cot x - \int (-\csc x \cot x)(-\cot x)\,dx = -\csc x \cot x - \int \csc x \cot^2 x\,dx I = − csc x cot x − ∫ ( − csc x cot x ) ( − cot x ) d x = − csc x cot x − ∫ csc x cot 2 x d x
Use cot 2 x = csc 2 x − 1 \cot^2 x = \csc^2 x - 1 cot 2 x = csc 2 x − 1 :
I = − csc x cot x − ∫ csc x ( csc 2 x − 1 ) d x = − csc x cot x − ∫ csc 3 x d x + ∫ csc x d x I = -\csc x \cot x - \int \csc x(\csc^2 x - 1)\,dx = -\csc x \cot x - \int \csc^3 x\,dx + \int \csc x\,dx I = − csc x cot x − ∫ csc x ( csc 2 x − 1 ) d x = − csc x cot x − ∫ csc 3 x d x + ∫ csc x d x
Notice that ∫ csc 3 x d x = I \int \csc^3 x\,dx = I ∫ csc 3 x d x = I :
I = − csc x cot x − I + ln ∣ csc x − cot x ∣ I = -\csc x \cot x - I + \ln|\csc x - \cot x| I = − csc x cot x − I + ln ∣ csc x − cot x ∣
Add I I I to both sides:
2 I = − csc x cot x + ln ∣ csc x − cot x ∣ 2I = -\csc x \cot x + \ln|\csc x - \cot x| 2 I = − csc x cot x + ln ∣ csc x − cot x ∣
I = − 1 2 csc x cot x + 1 2 ln ∣ csc x − cot x ∣ + C I = -\frac{1}{2}\csc x \cot x + \frac{1}{2}\ln|\csc x - \cot x| + C I = − 2 1 csc x cot x + 2 1 ln ∣ csc x − cot x ∣ + C
Products of Tangent and Secant§
We now examine products of the form:
∫ tan m x sec n x d x \int \tan^m x \sec^n x\,dx ∫ tan m x sec n x d x
The strategy is organized around which differential is readily formed:
sec 2 x d x = d ( tan x ) or sec x tan x d x = d ( sec x ) \sec^2 x\,dx = d(\tan x) \qquad \text{or} \qquad \sec x \tan x\,dx = d(\sec x) sec 2 x d x = d ( tan x ) or sec x tan x d x = d ( sec x )
Case 1: The Exponent of Secant is Even§
Peel off sec 2 x d x \sec^2 x\,dx sec 2 x d x to serve as the differential. Convert the remaining even power sec n − 2 x = ( 1 + tan 2 x ) ( n − 2 ) / 2 \sec^{n-2} x = (1 + \tan^2 x)^{(n-2)/2} sec n − 2 x = ( 1 + tan 2 x ) ( n − 2 ) /2 to tangents, and substitute:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
This method works regardless of whether m m m is even, odd, or fractional.
Example 18§
Evaluate:
I = ∫ tan 3 x sec 4 x d x I = \int \tan^3 x \sec^4 x\,dx I = ∫ tan 3 x sec 4 x d x
Solution:
The power of secant is even (n = 4 n = 4 n = 4 ). Separate sec 2 x d x \sec^2 x\,dx sec 2 x d x :
I = ∫ tan 3 x sec 2 x ( sec 2 x d x ) = ∫ tan 3 x ( 1 + tan 2 x ) sec 2 x d x I = \int \tan^3 x \sec^2 x (\sec^2 x\,dx) = \int \tan^3 x (1 + \tan^2 x)\sec^2 x\,dx I = ∫ tan 3 x sec 2 x ( sec 2 x d x ) = ∫ tan 3 x ( 1 + tan 2 x ) sec 2 x d x
Let:
t = tan x ⟹ d t = sec 2 x d x t = \tan x \implies dt = \sec^2 x\,dx t = tan x ⟹ d t = sec 2 x d x
Substitute into the integral:
I = ∫ t 3 ( 1 + t 2 ) d t = ∫ ( t 3 + t 5 ) d t I = \int t^3 (1 + t^2)\,dt = \int (t^3 + t^5)\,dt I = ∫ t 3 ( 1 + t 2 ) d t = ∫ ( t 3 + t 5 ) d t
I = t 4 4 + t 6 6 + C I = \frac{t^4}{4} + \frac{t^6}{6} + C I = 4 t 4 + 6 t 6 + C
Returning to x x x :
I = tan 4 x 4 + tan 6 x 6 + C I = \frac{\tan^4 x}{4} + \frac{\tan^6 x}{6} + C I = 4 tan 4 x + 6 tan 6 x + C
(Note: Because the power of tangent is also odd, one could alternatively peel off sec x tan x d x \sec x\tan x\,dx sec x tan x d x and substitute t = sec x t = \sec x t = sec x . The resulting antiderivative sec 6 x 6 − sec 4 x 4 + C 1 \frac{\sec^6 x}{6} - \frac{\sec^4 x}{4} + C_1 6 s e c 6 x − 4 s e c 4 x + C 1 differs from this one by a purely numerical constant.)
Case 2: The Exponent of Tangent is Odd§
Peel off sec x tan x d x \sec x \tan x\,dx sec x tan x d x to serve as the differential. Convert the remaining even power tan m − 1 x = ( sec 2 x − 1 ) ( m − 1 ) / 2 \tan^{m-1} x = (\sec^2 x - 1)^{(m-1)/2} tan m − 1 x = ( sec 2 x − 1 ) ( m − 1 ) /2 to secants, and substitute:
t = sec x ⟹ d t = sec x tan x d x t = \sec x \implies dt = \sec x \tan x\,dx t = sec x ⟹ d t = sec x tan x d x
Example 19§
Evaluate:
I = ∫ tan 5 x sec 3 x d x I = \int \tan^5 x \sec^3 x\,dx I = ∫ tan 5 x sec 3 x d x
Solution:
Here the power of tangent is odd (m = 5 m = 5 m = 5 ) and n ≥ 1 n \ge 1 n ≥ 1 . Separate sec x tan x d x \sec x \tan x\,dx sec x tan x d x :
I = ∫ tan 4 x sec 2 x ( sec x tan x d x ) = ∫ ( sec 2 x − 1 ) 2 sec 2 x ( sec x tan x d x ) I = \int \tan^4 x \sec^2 x (\sec x \tan x\,dx) = \int (\sec^2 x - 1)^2 \sec^2 x (\sec x \tan x\,dx) I = ∫ tan 4 x sec 2 x ( sec x tan x d x ) = ∫ ( sec 2 x − 1 ) 2 sec 2 x ( sec x tan x d x )
Let:
t = sec x ⟹ d t = sec x tan x d x t = \sec x \implies dt = \sec x \tan x\,dx t = sec x ⟹ d t = sec x tan x d x
Substitute into the integral:
I = ∫ ( t 2 − 1 ) 2 t 2 d t = ∫ ( t 4 − 2 t 2 + 1 ) t 2 d t = ∫ ( t 6 − 2 t 4 + t 2 ) d t I = \int (t^2 - 1)^2 t^2\,dt = \int (t^4 - 2t^2 + 1)t^2\,dt = \int (t^6 - 2t^4 + t^2)\,dt I = ∫ ( t 2 − 1 ) 2 t 2 d t = ∫ ( t 4 − 2 t 2 + 1 ) t 2 d t = ∫ ( t 6 − 2 t 4 + t 2 ) d t
Integrating term by term:
I = t 7 7 − 2 t 5 5 + t 3 3 + C I = \frac{t^7}{7} - \frac{2t^5}{5} + \frac{t^3}{3} + C I = 7 t 7 − 5 2 t 5 + 3 t 3 + C
Returning to x x x :
I = sec 7 x 7 − 2 sec 5 x 5 + sec 3 x 3 + C I = \frac{\sec^7 x}{7} - \frac{2\sec^5 x}{5} + \frac{\sec^3 x}{3} + C I = 7 sec 7 x − 5 2 sec 5 x + 3 sec 3 x + C
Case 3: Tangent is Even and Secant is Odd§
If the power of tangent is even and the power of secant is odd (m = 2 p , n = 2 q + 1 m = 2p, n = 2q + 1 m = 2 p , n = 2 q + 1 ), neither substitution works directly: peeling off sec 2 x \sec^2 x sec 2 x leaves an odd power of secant (which cannot be expressed in terms of tangent without a radical), while peeling off sec x tan x \sec x\tan x sec x tan x leaves an odd power of tangent (which cannot be expressed in terms of secant without a radical).
The standard method is to convert all tangents into secants using tan 2 x = sec 2 x − 1 \tan^2 x = \sec^2 x - 1 tan 2 x = sec 2 x − 1 . The integrand expands into a sum of odd powers of secant, which are integrated by parts.
Example 20§
Evaluate:
I = ∫ tan 2 x sec x d x I = \int \tan^2 x \sec x\,dx I = ∫ tan 2 x sec x d x
Solution:
Convert tan 2 x \tan^2 x tan 2 x to secants:
tan 2 x sec x = ( sec 2 x − 1 ) sec x = sec 3 x − sec x \tan^2 x \sec x = (\sec^2 x - 1)\sec x = \sec^3 x - \sec x tan 2 x sec x = ( sec 2 x − 1 ) sec x = sec 3 x − sec x
Split into two integrals:
I = ∫ sec 3 x d x − ∫ sec x d x I = \int \sec^3 x\,dx - \int \sec x\,dx I = ∫ sec 3 x d x − ∫ sec x d x
From our work on cyclic integrals in integration by parts:
∫ sec 3 x d x = 1 2 sec x tan x + 1 2 ln ∣ sec x + tan x ∣ \int \sec^3 x\,dx = \frac{1}{2}\sec x \tan x + \frac{1}{2}\ln|\sec x + \tan x| ∫ sec 3 x d x = 2 1 sec x tan x + 2 1 ln ∣ sec x + tan x ∣
The second integral is standard: ∫ sec x d x = ln ∣ sec x + tan x ∣ \int \sec x\,dx = \ln|\sec x + \tan x| ∫ sec x d x = ln ∣ sec x + tan x ∣ .
Subtracting the two results:
I = ( 1 2 sec x tan x + 1 2 ln ∣ sec x + tan x ∣ ) − ln ∣ sec x + tan x ∣ + C I = \left( \frac{1}{2}\sec x \tan x + \frac{1}{2}\ln|\sec x + \tan x| \right) - \ln|\sec x + \tan x| + C I = ( 2 1 sec x tan x + 2 1 ln ∣ sec x + tan x ∣ ) − ln ∣ sec x + tan x ∣ + C
I = 1 2 sec x tan x − 1 2 ln ∣ sec x + tan x ∣ + C I = \frac{1}{2}\sec x \tan x - \frac{1}{2}\ln|\sec x + \tan x| + C I = 2 1 sec x tan x − 2 1 ln ∣ sec x + tan x ∣ + C
Interchanging Between Systems§
When products or quotients of tan x \tan x tan x , sec x \sec x sec x , cot x \cot x cot x , or csc x \csc x csc x appear confusing, fractional, or unbalanced, converting the entire expression into sines and cosines often clears away the complexity immediately:
tan x = sin x cos x , cot x = cos x sin x , sec x = 1 cos x , csc x = 1 sin x \tan x = \frac{\sin x}{\cos x}, \qquad \cot x = \frac{\cos x}{\sin x}, \qquad \sec x = \frac{1}{\cos x}, \qquad \csc x = \frac{1}{\sin x} tan x = cos x sin x , cot x = sin x cos x , sec x = cos x 1 , csc x = sin x 1
Example 21§
Evaluate:
I = ∫ sec x tan 2 x d x I = \int \frac{\sec x}{\tan^2 x}\,dx I = ∫ tan 2 x sec x d x
Solution:
Convert directly into sines and cosines:
sec x tan 2 x = 1 cos x sin 2 x cos 2 x = 1 cos x ⋅ cos 2 x sin 2 x = cos x sin 2 x \frac{\sec x}{\tan^2 x} = \frac{\frac{1}{\cos x}}{\frac{\sin^2 x}{\cos^2 x}} = \frac{1}{\cos x} \cdot \frac{\cos^2 x}{\sin^2 x} = \frac{\cos x}{\sin^2 x} tan 2 x sec x = c o s 2 x s i n 2 x c o s x 1 = cos x 1 ⋅ sin 2 x cos 2 x = sin 2 x cos x
Now the numerator is the derivative of sin x \sin x sin x .
Let:
t = sin x ⟹ d t = cos x d x t = \sin x \implies dt = \cos x\,dx t = sin x ⟹ d t = cos x d x
Substitute into the integral:
I = ∫ d t t 2 = − 1 t + C I = \int \frac{dt}{t^2} = -\frac{1}{t} + C I = ∫ t 2 d t = − t 1 + C
Returning to x x x :
I = − 1 sin x + C = − csc x + C I = -\frac{1}{\sin x} + C = -\csc x + C I = − sin x 1 + C = − csc x + C
Example 22§
Evaluate:
I = ∫ d x tan x + cot x I = \int \frac{dx}{\tan x + \cot x} I = ∫ tan x + cot x d x
Solution:
Convert the denominator into sines and cosines:
tan x + cot x = sin x cos x + cos x sin x = sin 2 x + cos 2 x sin x cos x = 1 sin x cos x \tan x + \cot x = \frac{\sin x}{\cos x} + \frac{\cos x}{\sin x} = \frac{\sin^2 x + \cos^2 x}{\sin x\cos x} = \frac{1}{\sin x\cos x} tan x + cot x = cos x sin x + sin x cos x = sin x cos x sin 2 x + cos 2 x = sin x cos x 1
The reciprocal inverts:
I = ∫ sin x cos x d x = 1 2 ∫ sin 2 x d x I = \int \sin x\cos x\,dx = \frac{1}{2}\int \sin 2x\,dx I = ∫ sin x cos x d x = 2 1 ∫ sin 2 x d x
I = − 1 4 cos 2 x + C I = -\frac{1}{4}\cos 2x + C I = − 4 1 cos 2 x + C
The Artifice of Inserting Identity Numerators§
When an integrand consists of products of sin x \sin x sin x and cos x \cos x cos x in the denominator and standard algebraic substitutions seem out of reach, a celebrated technique is to replace the constant 1 1 1 in the numerator with the Pythagorean identity:
1 = sin 2 x + cos 2 x or 1 = ( sin 2 x + cos 2 x ) 2 1 = \sin^2 x + \cos^2 x \qquad \text{or} \qquad 1 = (\sin^2 x + \cos^2 x)^2 1 = sin 2 x + cos 2 x or 1 = ( sin 2 x + cos 2 x ) 2
This decomposition splits an intractable fraction into separate, simpler fractions where terms cancel out directly.
Example 23§
Evaluate:
I = ∫ d x sin 2 x cos 2 x I = \int \frac{dx}{\sin^2 x \cos^2 x} I = ∫ sin 2 x cos 2 x d x
Solution:
Replace 1 1 1 in the numerator with sin 2 x + cos 2 x \sin^2 x + \cos^2 x sin 2 x + cos 2 x :
I = ∫ sin 2 x + cos 2 x sin 2 x cos 2 x d x I = \int \frac{\sin^2 x + \cos^2 x}{\sin^2 x \cos^2 x}\,dx I = ∫ sin 2 x cos 2 x sin 2 x + cos 2 x d x
Split into two fractions:
I = ∫ ( sin 2 x sin 2 x cos 2 x + cos 2 x sin 2 x cos 2 x ) d x = ∫ ( 1 cos 2 x + 1 sin 2 x ) d x I = \int \left( \frac{\sin^2 x}{\sin^2 x \cos^2 x} + \frac{\cos^2 x}{\sin^2 x \cos^2 x} \right) dx = \int \left( \frac{1}{\cos^2 x} + \frac{1}{\sin^2 x} \right) dx I = ∫ ( sin 2 x cos 2 x sin 2 x + sin 2 x cos 2 x cos 2 x ) d x = ∫ ( cos 2 x 1 + sin 2 x 1 ) d x
I = ∫ ( sec 2 x + csc 2 x ) d x I = \int (\sec^2 x + \csc^2 x)\,dx I = ∫ ( sec 2 x + csc 2 x ) d x
Both terms are standard elementary integrals:
I = tan x − cot x + C I = \tan x - \cot x + C I = tan x − cot x + C
Example 24§
Evaluate:
I = ∫ d x sin x cos 2 x I = \int \frac{dx}{\sin x \cos^2 x} I = ∫ sin x cos 2 x d x
Solution:
Replace 1 1 1 in the numerator with sin 2 x + cos 2 x \sin^2 x + \cos^2 x sin 2 x + cos 2 x :
I = ∫ sin 2 x + cos 2 x sin x cos 2 x d x = ∫ sin 2 x sin x cos 2 x d x + ∫ cos 2 x sin x cos 2 x d x I = \int \frac{\sin^2 x + \cos^2 x}{\sin x \cos^2 x}\,dx = \int \frac{\sin^2 x}{\sin x \cos^2 x}\,dx + \int \frac{\cos^2 x}{\sin x \cos^2 x}\,dx I = ∫ sin x cos 2 x sin 2 x + cos 2 x d x = ∫ sin x cos 2 x sin 2 x d x + ∫ sin x cos 2 x cos 2 x d x
Simplify each term:
I = ∫ sin x cos 2 x d x + ∫ 1 sin x d x I = \int \frac{\sin x}{\cos^2 x}\,dx + \int \frac{1}{\sin x}\,dx I = ∫ cos 2 x sin x d x + ∫ sin x 1 d x
The first term is sec x tan x \sec x\tan x sec x tan x , and the second term is csc x \csc x csc x :
I = ∫ sec x tan x d x + ∫ csc x d x I = \int \sec x \tan x\,dx + \int \csc x\,dx I = ∫ sec x tan x d x + ∫ csc x d x
Integrating:
I = sec x + ln ∣ csc x − cot x ∣ + C I = \sec x + \ln|\csc x - \cot x| + C I = sec x + ln ∣ csc x − cot x ∣ + C
Example 25§
Evaluate:
I = ∫ d x sin 3 x cos x I = \int \frac{dx}{\sin^3 x \cos x} I = ∫ sin 3 x cos x d x
Solution:
Insert 1 = sin 2 x + cos 2 x 1 = \sin^2 x + \cos^2 x 1 = sin 2 x + cos 2 x in the numerator:
I = ∫ sin 2 x + cos 2 x sin 3 x cos x d x = ∫ sin 2 x sin 3 x cos x d x + ∫ cos 2 x sin 3 x cos x d x I = \int \frac{\sin^2 x + \cos^2 x}{\sin^3 x \cos x}\,dx = \int \frac{\sin^2 x}{\sin^3 x \cos x}\,dx + \int \frac{\cos^2 x}{\sin^3 x \cos x}\,dx I = ∫ sin 3 x cos x sin 2 x + cos 2 x d x = ∫ sin 3 x cos x sin 2 x d x + ∫ sin 3 x cos x cos 2 x d x
I = ∫ d x sin x cos x + ∫ cos x sin 3 x d x I = \int \frac{dx}{\sin x \cos x} + \int \frac{\cos x}{\sin^3 x}\,dx I = ∫ sin x cos x d x + ∫ sin 3 x cos x d x
For the first integral, replace 1 1 1 again with sin 2 x + cos 2 x \sin^2 x + \cos^2 x sin 2 x + cos 2 x :
∫ d x sin x cos x = ∫ sin 2 x + cos 2 x sin x cos x d x = ∫ sin x cos x d x + ∫ cos x sin x d x = ∫ tan x d x + ∫ cot x d x \int \frac{dx}{\sin x \cos x} = \int \frac{\sin^2 x + \cos^2 x}{\sin x \cos x}\,dx = \int \frac{\sin x}{\cos x}\,dx + \int \frac{\cos x}{\sin x}\,dx = \int \tan x\,dx + \int \cot x\,dx ∫ sin x cos x d x = ∫ sin x cos x sin 2 x + cos 2 x d x = ∫ cos x sin x d x + ∫ sin x cos x d x = ∫ tan x d x + ∫ cot x d x
The second integral ∫ sin − 3 x ( cos x d x ) \int \sin^{-3} x (\cos x\,dx) ∫ sin − 3 x ( cos x d x ) is a direct power of sin x \sin x sin x :
∫ sin − 3 x ( cos x d x ) = sin − 2 x − 2 = − 1 2 sin 2 x = − 1 2 csc 2 x \int \sin^{-3} x (\cos x\,dx) = \frac{\sin^{-2} x}{-2} = -\frac{1}{2\sin^2 x} = -\frac{1}{2}\csc^2 x ∫ sin − 3 x ( cos x d x ) = − 2 sin − 2 x = − 2 sin 2 x 1 = − 2 1 csc 2 x
Combining all three parts:
I = ln ∣ sec x ∣ + ln ∣ sin x ∣ − 1 2 csc 2 x + C I = \ln|\sec x| + \ln|\sin x| - \frac{1}{2}\csc^2 x + C I = ln ∣ sec x ∣ + ln ∣ sin x ∣ − 2 1 csc 2 x + C
Using the logarithm product rule ln ∣ sec x ∣ + ln ∣ sin x ∣ = ln ∣ sin x cos x ∣ = ln ∣ tan x ∣ \ln|\sec x| + \ln|\sin x| = \ln\left|\frac{\sin x}{\cos x}\right| = \ln|\tan x| ln ∣ sec x ∣ + ln ∣ sin x ∣ = ln c o s x s i n x = ln ∣ tan x ∣ :
I = ln ∣ tan x ∣ − 1 2 csc 2 x + C I = \ln|\tan x| - \frac{1}{2}\csc^2 x + C I = ln ∣ tan x ∣ − 2 1 csc 2 x + C