Trigonometric integrals Powers and products of sine, cosine, tangent and secant.
This page integrates powers and products of sine, cosine, tangent and secant. Each case is recognised by the shape of the integrand:
One power odd in ∫ cos m x sin n x d x \int \cos^m x \sin^n x \, dx ∫ cos m x sin n x d x : peel one factor and substitute u = sin x u=\sin x u = sin x or u = cos x u=\cos x u = cos x .
Both powers even: use the double-angle identities to lower the powers.
Different frequencies, such as ∫ cos ( m x ) sin ( n x ) d x \int \cos(mx)\sin(nx) \, dx ∫ cos ( m x ) sin ( n x ) d x : use a product-to-sum identity.
Powers of tan x \tan x tan x and sec x \sec x sec x : use 1 + tan 2 x = sec 2 x 1+\tan^2 x=\sec^2 x 1 + tan 2 x = sec 2 x with d d x tan x = sec 2 x \frac{d}{dx}\tan x=\sec^2 x d x d tan x = sec 2 x and d d x sec x = tan x sec x \frac{d}{dx}\sec x=\tan x\sec x d x d sec x = tan x sec x .
For high powers that recur with a lower index, reduction formulae organise the repeated integration by parts. A quadratic surd calls for trigonometric and hyperbolic substitutions instead.
Throughout, m m m and n n n are non-negative integers. An indefinite
antiderivative involving tan x \tan x tan x or sec x \sec x sec x holds on an interval that does
not cross a zero of cos x \cos x cos x .
[ METHOD ] To evaluate ∫ cos m x sin n x d x \int \cos^m x \sin^n x \, dx ∫ cos m x sin n x d x when at least one of m , n m,n m , n is odd:
If m m m is odd, factor out cos x \cos x cos x to obtain ∫ cos m − 1 x sin n x cos x d x \int \cos^{m-1} x \sin^n x \cos x \, dx ∫ cos m − 1 x sin n x cos x d x . If n n n is odd, factor out sin x \sin x sin x to obtain ∫ cos m x sin n − 1 x sin x d x \int \cos^m x \sin^{n-1} x \sin x \, dx ∫ cos m x sin n − 1 x sin x d x .
The leftover power is even. Replace it using sin 2 x + cos 2 x = 1 \sin^2 x+\cos^2 x=1 sin 2 x + cos 2 x = 1 .
Substitute u = sin x u=\sin x u = sin x or u = cos x u=\cos x u = cos x . The binomial expansion ( a + b ) k (a+b)^k ( a + b ) k is usually needed before the powers of u u u can be integrated.
Always peel from an odd power. Peeling from an even power leaves an odd remainder, which 1 = sin 2 x + cos 2 x 1=\sin^2 x+\cos^2 x 1 = sin 2 x + cos 2 x cannot turn into a polynomial in the substitution variable. If both m m m and n n n are odd, either factor works, although the two antiderivatives need not look the same.
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Here m m m is even and n n n is odd. Peel sin x \sin x sin x and replace sin 2 x = 1 − cos 2 x \sin^2 x=1-\cos^2 x sin 2 x = 1 − cos 2 x :
∫ cos 4 x sin 3 x d x = ∫ cos 4 x sin 2 x sin x d x = ∫ cos 4 x ( 1 − cos 2 x ) sin x d x = ∫ ( cos 4 x − cos 6 x ) sin x d x . \begin{aligned}
\int \cos^4 x \sin^3 x \, dx
&=\int \cos^4 x \sin^2 x \sin x \, dx \\
&=\int \cos^4 x (1-\cos^2 x) \sin x \, dx \\
&=\int (\cos^4 x-\cos^6 x) \sin x \, dx.
\end{aligned} ∫ cos 4 x sin 3 x d x = ∫ cos 4 x sin 2 x sin x d x = ∫ cos 4 x ( 1 − cos 2 x ) sin x d x = ∫ ( cos 4 x − cos 6 x ) sin x d x . Let u = cos x u=\cos x u = cos x , so d u = − sin x d x du=-\sin x \, dx d u = − sin x d x . The integral is
− ∫ ( u 4 − u 6 ) d u = − u 5 5 + u 7 7 + C = − cos 5 x 5 + cos 7 x 7 + C . -\int (u^4-u^6) \, du=-\frac{u^5}{5}+\frac{u^7}{7}+C=-\frac{\cos^5 x}{5}+\frac{\cos^7 x}{7}+C. − ∫ ( u 4 − u 6 ) d u = − 5 u 5 + 7 u 7 + C = − 5 cos 5 x + 7 cos 7 x + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Here m m m is odd and n n n is even. Peel cos x \cos x cos x and replace cos 2 x = 1 − sin 2 x \cos^2 x=1-\sin^2 x cos 2 x = 1 − sin 2 x :
∫ cos 5 x sin 4 x d x = ∫ cos 4 x sin 4 x cos x d x = ∫ ( 1 − sin 2 x ) 2 sin 4 x cos x d x = ∫ ( sin 4 x − 2 sin 6 x + sin 8 x ) cos x d x . \begin{aligned}
\int \cos^5 x \sin^4 x \, dx
&=\int \cos^4 x \sin^4 x \cos x \, dx \\
&=\int (1-\sin^2 x)^2 \sin^4 x \cos x \, dx \\
&=\int \bigl(\sin^4 x-2\sin^6 x+\sin^8 x\bigr) \cos x \, dx.
\end{aligned} ∫ cos 5 x sin 4 x d x = ∫ cos 4 x sin 4 x cos x d x = ∫ ( 1 − sin 2 x ) 2 sin 4 x cos x d x = ∫ ( sin 4 x − 2 sin 6 x + sin 8 x ) cos x d x . Let u = sin x u=\sin x u = sin x , so d u = cos x d x du=\cos x \, dx d u = cos x d x . The integral is
∫ ( u 4 − 2 u 6 + u 8 ) d u = u 5 5 − 2 u 7 7 + u 9 9 + C = sin 5 x 5 − 2 sin 7 x 7 + sin 9 x 9 + C . \int (u^4-2u^6+u^8) \, du=\frac{u^5}{5}-\frac{2u^7}{7}+\frac{u^9}{9}+C=\frac{\sin^5 x}{5}-\frac{2\sin^7 x}{7}+\frac{\sin^9 x}{9}+C. ∫ ( u 4 − 2 u 6 + u 8 ) d u = 5 u 5 − 7 2 u 7 + 9 u 9 + C = 5 sin 5 x − 7 2 sin 7 x + 9 sin 9 x + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Both m m m and n n n are odd. Factoring out cos x \cos x cos x and substituting u = sin x u=\sin x u = sin x (so d u = cos x d x du=\cos x \, dx d u = cos x d x ),
∫ cos 5 x sin 5 x d x = ∫ cos 4 x sin 5 x cos x d x = ∫ ( 1 − sin 2 x ) 2 sin 5 x cos x d x = ∫ ( sin 5 x − 2 sin 7 x + sin 9 x ) cos x d x = ∫ ( u 5 − 2 u 7 + u 9 ) d u = u 6 6 − 2 u 8 8 + u 10 10 + C = sin 6 x 6 − sin 8 x 4 + sin 10 x 10 + C . \begin{aligned}
\int \cos^5 x \sin^5 x \, dx
&=\int \cos^4 x \sin^5 x \cos x \, dx \\
&=\int (1-\sin^2 x)^2 \sin^5 x \cos x \, dx \\
&=\int \bigl(\sin^5 x-2\sin^7 x+\sin^9 x\bigr) \cos x \, dx \\
&=\int (u^5-2u^7+u^9) \, du \\
&=\frac{u^6}{6}-\frac{2u^8}{8}+\frac{u^{10}}{10}+C \\
&=\frac{\sin^6 x}{6}-\frac{\sin^8 x}{4}+\frac{\sin^{10} x}{10}+C.
\end{aligned} ∫ cos 5 x sin 5 x d x = ∫ cos 4 x sin 5 x cos x d x = ∫ ( 1 − sin 2 x ) 2 sin 5 x cos x d x = ∫ ( sin 5 x − 2 sin 7 x + sin 9 x ) cos x d x = ∫ ( u 5 − 2 u 7 + u 9 ) d u = 6 u 6 − 8 2 u 8 + 10 u 10 + C = 6 sin 6 x − 4 sin 8 x + 10 sin 10 x + C . Factoring out sin x \sin x sin x instead produces a different-looking formula. Both
formulas have derivative cos 5 x sin 5 x \cos^5x\sin^5x cos 5 x sin 5 x , so on any interval they differ by a
constant.
[RIGHT CLICK] [ASK AI]
[ METHOD ] To evaluate ∫ cos m x sin n x d x \int \cos^m x \sin^n x \, dx ∫ cos m x sin n x d x when both m m m and n n n are even, use
cos 2 α = 1 + cos 2 α 2 , sin 2 α = 1 − cos 2 α 2 \cos^2\alpha=\frac{1+\cos 2\alpha}{2},\qquad \sin^2\alpha=\frac{1-\cos 2\alpha}{2} cos 2 α = 2 1 + cos 2 α , sin 2 α = 2 1 − cos 2 α to rewrite the integrand as a sum of integrals of the form ∫ cos k ( 2 x ) d x \int \cos^k(2x) \, dx ∫ cos k ( 2 x ) d x . Integrate any odd k k k by the odd-power substitution in 2 x 2x 2 x ; apply the double-angle identities again to any remaining even k k k .
After expanding, the constant and cos 2 x \cos 2x cos 2 x terms integrate immediately. Because the argument is 2 x 2x 2 x , the odd-power substitution is u = sin 2 x u=\sin 2x u = sin 2 x , with d u = 2 cos 2 x d x du=2\cos 2x\, dx d u = 2 cos 2 x d x .
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] When one of m m m or n n n is zero the identities are the whole calculation:
∫ cos 2 x d x = ∫ 1 + cos 2 x 2 d x = x 2 + sin 2 x 4 + C , \int \cos^2 x \, dx=\int \frac{1+\cos 2x}{2} \, dx=\frac{x}{2}+\frac{\sin 2x}{4}+C, ∫ cos 2 x d x = ∫ 2 1 + cos 2 x d x = 2 x + 4 sin 2 x + C , ∫ sin 2 x d x = ∫ 1 − cos 2 x 2 d x = x 2 − sin 2 x 4 + C . \int \sin^2 x \, dx=\int \frac{1-\cos 2x}{2} \, dx=\frac{x}{2}-\frac{\sin 2x}{4}+C. ∫ sin 2 x d x = ∫ 2 1 − cos 2 x d x = 2 x − 4 sin 2 x + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Both powers are even, so
∫ cos 2 x sin 4 x d x = ∫ 1 + cos 2 x 2 ( 1 − cos 2 x 2 ) 2 d x = 1 8 ∫ ( 1 + cos 2 x ) ( 1 − cos 2 x ) 2 d x . \int \cos^2 x \sin^4 x \, dx=\int \frac{1+\cos 2x}{2}\left(\frac{1-\cos 2x}{2}\right)^2 \, dx=\frac{1}{8}\int (1+\cos 2x)(1-\cos 2x)^2 \, dx. ∫ cos 2 x sin 4 x d x = ∫ 2 1 + cos 2 x ( 2 1 − cos 2 x ) 2 d x = 8 1 ∫ ( 1 + cos 2 x ) ( 1 − cos 2 x ) 2 d x . Expanding and cancelling − cos 2 x -\cos 2x − cos 2 x against + cos 2 x +\cos 2x + cos 2 x gives
( 1 + cos 2 x ) ( 1 − 2 cos 2 x + cos 2 2 x ) = 1 − cos 2 x − cos 2 2 x + cos 3 2 x , (1+\cos 2x)(1-2\cos 2x+\cos^2 2x)=1-\cos 2x-\cos^2 2x+\cos^3 2x, ( 1 + cos 2 x ) ( 1 − 2 cos 2 x + cos 2 2 x ) = 1 − cos 2 x − cos 2 2 x + cos 3 2 x , so the integral is
1 8 ( ∫ 1 d x − ∫ cos 2 x d x − ∫ cos 2 2 x d x + ∫ cos 3 2 x d x ) . \frac{1}{8}\left(\int 1 \, dx-\int\cos 2x \, dx-\int\cos^2 2x \, dx+\int\cos^3 2x \, dx\right). 8 1 ( ∫ 1 d x − ∫ cos 2 x d x − ∫ cos 2 2 x d x + ∫ cos 3 2 x d x ) . The first two integrals evaluate to x x x and 1 2 sin 2 x \frac{1}{2}\sin 2x 2 1 sin 2 x . For the even square, cos 2 2 x = 1 + cos 4 x 2 \cos^2 2x=\frac{1+\cos 4x}{2} cos 2 2 x = 2 1 + c o s 4 x . For the odd cube, cos 3 2 x = ( 1 − sin 2 2 x ) cos 2 x \cos^3 2x=(1-\sin^2 2x)\cos 2x cos 3 2 x = ( 1 − sin 2 2 x ) cos 2 x . Thus the integral equals
1 8 [ x − sin 2 x 2 − ∫ 1 + cos 4 x 2 d x + ∫ ( 1 − sin 2 2 x ) cos 2 x d x ] . \frac{1}{8}\left[x-\frac{\sin 2x}{2}-\int\frac{1+\cos 4x}{2} \, dx+\int(1-\sin^2 2x)\cos 2x \, dx\right]. 8 1 [ x − 2 sin 2 x − ∫ 2 1 + cos 4 x d x + ∫ ( 1 − sin 2 2 x ) cos 2 x d x ] . The remaining cosine-square integral is x 2 + sin 4 x 8 \frac{x}{2}+\frac{\sin 4x}{8} 2 x + 8 s i n 4 x . For the last integral, let u = sin 2 x u=\sin 2x u = sin 2 x , so d u = 2 cos 2 x d x du=2\cos 2x \, dx d u = 2 cos 2 x d x and cos 2 x d x = 1 2 d u \cos 2x \, dx=\tfrac12 \, du cos 2 x d x = 2 1 d u . Collecting factors,
x 8 − sin 2 x 16 − x 16 − sin 4 x 64 + 1 16 ∫ ( 1 − u 2 ) d u = x 16 − sin 2 x 16 − sin 4 x 64 + 1 16 ( u − u 3 3 ) + C . \frac{x}{8}-\frac{\sin 2x}{16}-\frac{x}{16}-\frac{\sin 4x}{64}+\frac{1}{16}\int (1-u^2) \, du
=\frac{x}{16}-\frac{\sin 2x}{16}-\frac{\sin 4x}{64}+\frac{1}{16}\left(u-\frac{u^3}{3}\right)+C. 8 x − 16 sin 2 x − 16 x − 64 sin 4 x + 16 1 ∫ ( 1 − u 2 ) d u = 16 x − 16 sin 2 x − 64 sin 4 x + 16 1 ( u − 3 u 3 ) + C . Back-substituting u = sin 2 x u=\sin 2x u = sin 2 x yields
x 16 − sin 2 x 16 − sin 4 x 64 + sin 2 x 16 − sin 3 2 x 48 + C = x 16 − sin 4 x 64 − sin 3 2 x 48 + C . \frac{x}{16}-\frac{\sin 2x}{16}-\frac{\sin 4x}{64}+\frac{\sin 2x}{16}-\frac{\sin^3 2x}{48}+C=\frac{x}{16}-\frac{\sin 4x}{64}-\frac{\sin^3 2x}{48}+C. 16 x − 16 sin 2 x − 64 sin 4 x + 16 sin 2 x − 48 sin 3 2 x + C = 16 x − 64 sin 4 x − 48 sin 3 2 x + C . [RIGHT CLICK] [ASK AI]
The methods above treat powers of sin x \sin x sin x and cos x \cos x cos x at a single argument. The integrals ∫ cos ( m x ) sin ( n x ) d x \int \cos(mx)\sin(nx) \, dx ∫ cos ( m x ) sin ( n x ) d x , ∫ cos ( m x ) cos ( n x ) d x \int \cos(mx)\cos(nx) \, dx ∫ cos ( m x ) cos ( n x ) d x and ∫ sin ( m x ) sin ( n x ) d x \int \sin(mx)\sin(nx) \, dx ∫ sin ( m x ) sin ( n x ) d x mix two frequencies and a product-to-sum identity separates them.
[ METHOD ] Convert the product to a sum, then integrate term by term:
sin A cos B = 1 2 ( sin ( A + B ) + sin ( A − B ) ) \sin A\cos B=\tfrac12\bigl(\sin(A+B)+\sin(A-B)\bigr) sin A cos B = 2 1 ( sin ( A + B ) + sin ( A − B ) ) cos A cos B = 1 2 ( cos ( A + B ) + cos ( A − B ) ) \cos A\cos B=\tfrac12\bigl(\cos(A+B)+\cos(A-B)\bigr) cos A cos B = 2 1 ( cos ( A + B ) + cos ( A − B ) ) sin A sin B = − 1 2 ( cos ( A + B ) − cos ( A − B ) ) \sin A\sin B=-\tfrac12\bigl(\cos(A+B)-\cos(A-B)\bigr) sin A sin B = − 2 1 ( cos ( A + B ) − cos ( A − B ) ) The minus sign on sin A sin B \sin A\sin B sin A sin B is the one most often dropped.
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] With A = 3 x A=3x A = 3 x and B = 2 x B=2x B = 2 x ,
∫ sin 3 x sin 2 x d x = − 1 2 ∫ ( cos 5 x − cos x ) d x = − 1 2 ( sin 5 x 5 − sin x ) + C = − sin 5 x 10 + sin x 2 + C . \begin{aligned}
\int \sin 3x \sin 2x \, dx
&=-\frac{1}{2}\int \bigl(\cos 5x-\cos x\bigr) \, dx \\
&=-\frac{1}{2}\left(\frac{\sin 5x}{5}-\sin x\right)+C \\
&=-\frac{\sin 5x}{10}+\frac{\sin x}{2}+C.
\end{aligned} ∫ sin 3 x sin 2 x d x = − 2 1 ∫ ( cos 5 x − cos x ) d x = − 2 1 ( 5 sin 5 x − sin x ) + C = − 10 sin 5 x + 2 sin x + C . [RIGHT CLICK] [ASK AI]
[ DEFINITION ] The identities used to integrate ∫ tan m x sec n x d x \int \tan^m x \sec^n x \, dx ∫ tan m x sec n x d x are
1 + tan 2 x = sec 2 x , d d x tan x = sec 2 x , d d x sec x = tan x sec x . 1+\tan^2 x=\sec^2 x,\qquad \frac{d}{dx}\tan x=\sec^2 x,\qquad \frac{d}{dx}\sec x=\tan x\sec x. 1 + tan 2 x = sec 2 x , d x d tan x = sec 2 x , d x d sec x = tan x sec x . The two derivative identities are why u = tan x u=\tan x u = tan x and u = sec x u=\sec x u = sec x match a leftover factor of sec 2 x \sec^2 x sec 2 x or tan x sec x \tan x\sec x tan x sec x .
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Writing tan x = sin x cos x \tan x=\frac{\sin x}{\cos x} tan x = c o s x s i n x ,
∫ tan x d x = ∫ sin x cos x d x = − ln ∣ cos x ∣ + C . \int \tan x \, dx=\int \frac{\sin x}{\cos x} \, dx=-\ln|\cos x|+C. ∫ tan x d x = ∫ cos x sin x d x = − ln ∣ cos x ∣ + C . For the secant integral, multiply numerator and denominator by sec x + tan x \sec x+\tan x sec x + tan x :
∫ sec x d x = ∫ sec x ( sec x + tan x ) sec x + tan x d x = ∫ sec 2 x + sec x tan x sec x + tan x d x = ln ∣ sec x + tan x ∣ + C , \int \sec x \, dx=\int \frac{\sec x(\sec x+\tan x)}{\sec x+\tan x} \, dx=\int \frac{\sec^2 x+\sec x\tan x}{\sec x+\tan x} \, dx=\ln|\sec x+\tan x|+C, ∫ sec x d x = ∫ sec x + tan x sec x ( sec x + tan x ) d x = ∫ sec x + tan x sec 2 x + sec x tan x d x = ln ∣ sec x + tan x ∣ + C , since the numerator is then the derivative of the denominator.
[RIGHT CLICK] [ASK AI]
[ DEFINITION ] Tangent and secant The identities used to integrate ∫ tan m x sec n x d x \int \tan^m x \sec^n x \, dx ∫ tan m x sec n x d x are
1 + tan 2 x = sec 2 x , d d x tan x = sec 2 x , d d x sec x = tan x sec x . 1+\tan^2 x=\sec^2 x,\qquad \frac{d}{dx}\tan x=\sec^2 x,\qquad \frac{d}{dx}\sec x=\tan x\sec x. 1 + tan 2 x = sec 2 x , d x d tan x = sec 2 x , d x d sec x = tan x sec x . [RIGHT CLICK] [ASK AI]
[ METHOD ] To evaluate ∫ tan m x sec n x d x \int \tan^m x \sec^n x \, dx ∫ tan m x sec n x d x :
If n n n is a positive even integer, factor out sec 2 x \sec^2 x sec 2 x and substitute u = tan x u=\tan x u = tan x . Convert remaining powers of sec \sec sec by 1 + tan 2 x = sec 2 x 1+\tan^2 x=\sec^2 x 1 + tan 2 x = sec 2 x .
If n = 0 n=0 n = 0 , use tan 2 x = sec 2 x − 1 \tan^2 x=\sec^2 x-1 tan 2 x = sec 2 x − 1 to lower the power of tan \tan tan by two, with ∫ d x \int dx ∫ d x and ∫ tan x d x \int\tan x\,dx ∫ tan x d x as base cases.
If n n n is odd:
If m m m is odd, factor out tan x sec x \tan x\sec x tan x sec x and substitute u = sec x u=\sec x u = sec x . Convert remaining powers of tan \tan tan by tan 2 x = sec 2 x − 1 \tan^2 x=\sec^2 x-1 tan 2 x = sec 2 x − 1 .
If m m m is even, write tan m x = ( sec 2 x − 1 ) m / 2 \tan^m x=(\sec^2 x-1)^{m/2} tan m x = ( sec 2 x − 1 ) m /2 and expand into powers of sec x \sec x sec x . Reduce odd secant powers by parts until only ∫ sec x d x \int\sec x\,dx ∫ sec x d x remains.
The first rule needs n n n even: factoring out sec 2 x \sec^2 x sec 2 x when n n n is odd leaves an unmatched sec x \sec x sec x , so u = tan x u=\tan x u = tan x does not absorb the whole integrand.
For the odd secant powers S ℓ = ∫ sec ℓ x d x S_\ell=\int\sec^\ell x\,dx S ℓ = ∫ sec ℓ x d x , the integration by parts used below for S 3 S_3 S 3 gives the reduction formula
S ℓ = sec ℓ − 2 x tan x ℓ − 1 + ℓ − 2 ℓ − 1 S ℓ − 2 , ℓ ≥ 3. S_\ell=\frac{\sec^{\ell-2}x\tan x}{\ell-1}+\frac{\ell-2}{\ell-1}S_{\ell-2},\qquad \ell\ge3. S ℓ = ℓ − 1 sec ℓ − 2 x tan x + ℓ − 1 ℓ − 2 S ℓ − 2 , ℓ ≥ 3. To derive it, split sec ℓ x = sec ℓ − 2 x sec 2 x \sec^\ell x=\sec^{\ell-2}x\sec^2x sec ℓ x = sec ℓ − 2 x sec 2 x to get S ℓ = sec ℓ − 2 x tan x − ( ℓ − 2 ) ∫ sec ℓ − 2 x tan 2 x d x S_\ell=\sec^{\ell-2}x\tan x-(\ell-2)\int\sec^{\ell-2}x\tan^2x\,dx S ℓ = sec ℓ − 2 x tan x − ( ℓ − 2 ) ∫ sec ℓ − 2 x tan 2 x d x , substitute tan 2 x = sec 2 x − 1 \tan^2x=\sec^2x-1 tan 2 x = sec 2 x − 1 and collect the resulting copy of S ℓ S_\ell S ℓ . Stop at S 1 = ln ∣ sec x + tan x ∣ S_1=\ln|\sec x+\tan x| S 1 = ln ∣ sec x + tan x ∣ and add one arbitrary constant at the end.
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Write I = ∫ sec 3 x d x I=\int \sec^3 x \, dx I = ∫ sec 3 x d x . Split the integrand as sec x ⋅ sec 2 x \sec x\cdot\sec^2 x sec x ⋅ sec 2 x and integrate by parts with u = sec x u=\sec x u = sec x and d v = sec 2 x d x dv=\sec^2 x \, dx d v = sec 2 x d x , so d u = sec x tan x d x du=\sec x\tan x \, dx d u = sec x tan x d x and v = tan x v=\tan x v = tan x . Then
I = sec x tan x − ∫ sec x tan 2 x d x . I=\sec x\tan x-\int \sec x\tan^2 x \, dx. I = sec x tan x − ∫ sec x tan 2 x d x . Replace tan 2 x = sec 2 x − 1 \tan^2 x=\sec^2 x-1 tan 2 x = sec 2 x − 1 :
I = sec x tan x − ∫ sec x ( sec 2 x − 1 ) d x = sec x tan x − ∫ sec 3 x d x + ∫ sec x d x . I=\sec x\tan x-\int \sec x(\sec^2 x-1) \, dx=\sec x\tan x-\int \sec^3 x \, dx+\int \sec x \, dx. I = sec x tan x − ∫ sec x ( sec 2 x − 1 ) d x = sec x tan x − ∫ sec 3 x d x + ∫ sec x d x . The first integral on the right is I I I again, so
2 I = sec x tan x + ∫ sec x d x = sec x tan x + ln ∣ sec x + tan x ∣ + C . 2I=\sec x\tan x+\int \sec x \, dx=\sec x\tan x+\ln|\sec x+\tan x|+C. 2 I = sec x tan x + ∫ sec x d x = sec x tan x + ln ∣ sec x + tan x ∣ + C . After dividing by 2 2 2 (and absorbing the factor into the arbitrary constant),
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 . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] The power of sec \sec sec is even, so factor out sec 2 x \sec^2 x sec 2 x :
∫ sec 4 x tan 2 x d x = ∫ sec 2 x tan 2 x sec 2 x d x . \int \sec^4 x \tan^2 x \, dx=\int \sec^2 x \tan^2 x \sec^2 x \, dx. ∫ sec 4 x tan 2 x d x = ∫ sec 2 x tan 2 x sec 2 x d x . Let u = tan x u=\tan x u = tan x , so d u = sec 2 x d x du=\sec^2 x \, dx d u = sec 2 x d x . The remaining sec 2 x \sec^2 x sec 2 x is 1 + tan 2 x 1+\tan^2 x 1 + tan 2 x and the integral becomes
∫ ( 1 + tan 2 x ) tan 2 x sec 2 x d x = ∫ ( 1 + u 2 ) u 2 d u = ∫ ( u 2 + u 4 ) d u = u 3 3 + u 5 5 + C = tan 3 x 3 + tan 5 x 5 + C . \int (1+\tan^2 x)\tan^2 x \sec^2 x \, dx=\int (1+u^2)u^2 \, du=\int (u^2+u^4) \, du=\frac{u^3}{3}+\frac{u^5}{5}+C=\frac{\tan^3 x}{3}+\frac{\tan^5 x}{5}+C. ∫ ( 1 + tan 2 x ) tan 2 x sec 2 x d x = ∫ ( 1 + u 2 ) u 2 d u = ∫ ( u 2 + u 4 ) d u = 3 u 3 + 5 u 5 + C = 3 tan 3 x + 5 tan 5 x + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Here m m m and n n n are both odd, so factor out tan x sec x \tan x\sec x tan x sec x :
∫ sec x tan 3 x d x = ∫ tan 2 x ( tan x sec x ) d x . \int \sec x \tan^3 x \, dx=\int \tan^2 x\,(\tan x\sec x) \, dx. ∫ sec x tan 3 x d x = ∫ tan 2 x ( tan x sec x ) d x . Let u = sec x u=\sec x u = sec x , so d u = sec x tan x d x du=\sec x\tan x \, dx d u = sec x tan x d x . Replace tan 2 x = sec 2 x − 1 \tan^2 x=\sec^2 x-1 tan 2 x = sec 2 x − 1 :
∫ ( sec 2 x − 1 ) tan x sec x d x = ∫ ( u 2 − 1 ) d u = u 3 3 − u + C = sec 3 x 3 − sec x + C . \int (\sec^2 x-1)\tan x\sec x \, dx=\int (u^2-1) \, du=\frac{u^3}{3}-u+C=\frac{\sec^3 x}{3}-\sec x+C. ∫ ( sec 2 x − 1 ) tan x sec x d x = ∫ ( u 2 − 1 ) d u = 3 u 3 − u + C = 3 sec 3 x − sec x + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Here n n n is odd and m m m is even. Replace tan 2 x = sec 2 x − 1 \tan^2 x=\sec^2 x-1 tan 2 x = sec 2 x − 1 :
∫ sec x tan 2 x d x = ∫ sec x ( sec 2 x − 1 ) d x = ∫ sec 3 x d x − ∫ sec x d x . \int \sec x \tan^2 x \, dx=\int \sec x(\sec^2 x-1) \, dx=\int \sec^3 x \, dx-\int \sec x \, dx. ∫ sec x tan 2 x d x = ∫ sec x ( sec 2 x − 1 ) d x = ∫ sec 3 x d x − ∫ sec x d x . The antiderivatives of sec x \sec x sec x and sec 3 x \sec^3 x sec 3 x found above give
1 2 sec x tan x + 1 2 ln ∣ sec x + tan x ∣ − ln ∣ sec x + tan x ∣ + C = 1 2 sec x tan x − 1 2 ln ∣ sec x + tan x ∣ + C . \frac{1}{2}\sec x\tan x+\frac{1}{2}\ln|\sec x+\tan x|-\ln|\sec x+\tan x|+C=\frac{1}{2}\sec x\tan x-\frac{1}{2}\ln|\sec x+\tan x|+C. 2 1 sec x tan x + 2 1 ln ∣ sec x + tan x ∣ − ln ∣ sec x + tan x ∣ + C = 2 1 sec x tan x − 2 1 ln ∣ sec x + tan x ∣ + C . [RIGHT CLICK] [ASK AI] Trigonometric integrals Leads to Seen questions .