Fiveable

Calculus II Unit 3 Review

QR code for Calculus II practice questions

3.2 Trigonometric Integrals

3.2 Trigonometric Integrals

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus II
Unit & Topic Study Guides

Trigonometric Integrals

Trigonometric integrals involve integrating products and powers of trig functions like sine, cosine, tangent, and secant. The core challenge is that you can't just use the power rule on something like sin5xcos2x\sin^5 x \cos^2 x. Instead, you need specific strategies depending on whether the powers are odd or even, and which trig functions are involved.

This section covers those strategies: Pythagorean identity tricks, half-angle formulas, product-to-sum conversions, and reduction formulas.

Integration of Sine and Cosine Products

The general form here is sinmxcosnxdx\int \sin^m x \cos^n x \, dx. Your approach depends entirely on whether mm and nn are odd or even.

When at least one power is odd

If either mm or nn is odd, you can peel off one factor of that function to pair with dxdx, then convert everything remaining using the Pythagorean identity.

Steps (say nn is odd):

  1. Peel off one cosx\cos x and set it aside with dxdx

  2. Rewrite the remaining cosn1x\cos^{n-1} x (now an even power) using cos2x=1sin2x\cos^2 x = 1 - \sin^2 x

  3. Substitute u=sinxu = \sin x, so du=cosxdxdu = \cos x \, dx

  4. You now have a polynomial in uu that you can integrate with the power rule

The same logic works if mm is odd: peel off one sinx\sin x, convert the rest using sin2x=1cos2x\sin^2 x = 1 - \cos^2 x, and substitute u=cosxu = \cos x.

Example: For sin2xcos3xdx\int \sin^2 x \cos^3 x \, dx, the cosine power (3) is odd. Peel off one cosx\cos x, rewrite cos2x=1sin2x\cos^2 x = 1 - \sin^2 x, and substitute u=sinxu = \sin x.

When both powers are even

If both mm and nn are even, the Pythagorean identity won't help because it just trades one even power for another. Instead, use the half-angle formulas to reduce the powers:

  • sin2x=1cos2x2\sin^2 x = \frac{1 - \cos 2x}{2}
  • cos2x=1+cos2x2\cos^2 x = \frac{1 + \cos 2x}{2}

Substitute these in, multiply out, and integrate. You may need to apply the half-angle formulas more than once if higher even powers remain.

Example: For sin2xcos2xdx\int \sin^2 x \cos^2 x \, dx, replace both using half-angle formulas, then expand and simplify before integrating.

Integration of sine and cosine products, List of integrals of trigonometric functions - Wikipedia

Products with different arguments

For integrals like sin(mx)cos(nx)dx\int \sin(mx) \cos(nx) \, dx where the arguments differ, use product-to-sum formulas:

  • sinAcosB=12[sin(A+B)+sin(AB)]\sin A \cos B = \frac{1}{2}[\sin(A+B) + \sin(A-B)]
  • cosAsinB=12[sin(A+B)sin(AB)]\cos A \sin B = \frac{1}{2}[\sin(A+B) - \sin(A-B)]
  • sinAsinB=12[cos(AB)cos(A+B)]\sin A \sin B = \frac{1}{2}[\cos(A-B) - \cos(A+B)]
  • cosAcosB=12[cos(AB)+cos(A+B)]\cos A \cos B = \frac{1}{2}[\cos(A-B) + \cos(A+B)]

These convert the product into a sum of single trig functions, which you can integrate directly.

Integrals with Tangent and Secant

These follow a different set of strategies built around the identity tan2x=sec2x1\tan^2 x = \sec^2 x - 1.

Powers of tangent: tannxdx\int \tan^n x \, dx

For even powers, factor out tan2x\tan^2 x and replace it with sec2x1\sec^2 x - 1. This breaks the integral into a piece with sec2x\sec^2 x (which pairs nicely with u=tanxu = \tan x) and a lower-power tangent integral.

For odd powers, the same identity works. Peel off a tan2x\tan^2 x, replace with sec2x1\sec^2 x - 1, and repeat until you reduce to tanxdx=lnsecx+C\int \tan x \, dx = \ln|\sec x| + C.

Integration of sine and cosine products, Lists of integrals - Wikipedia, the free encyclopedia

Powers of secant: secnxdx\int \sec^n x \, dx

Even powers are the easier case:

  1. Peel off sec2x\sec^2 x and set it aside with dxdx
  2. Convert the remaining secn2x\sec^{n-2} x using sec2x=1+tan2x\sec^2 x = 1 + \tan^2 x
  3. Substitute u=tanxu = \tan x, so du=sec2xdxdu = \sec^2 x \, dx

Odd powers (for n3n \geq 3) are harder and typically require integration by parts. The standard approach for sec3xdx\int \sec^3 x \, dx is a classic IBP problem worth memorizing:

sec3xdx=12secxtanx+12lnsecx+tanx+C\int \sec^3 x \, dx = \frac{1}{2}\sec x \tan x + \frac{1}{2}\ln|\sec x + \tan x| + C

Products of secant and tangent: secmxtannxdx\int \sec^m x \tan^n x \, dx

The strategy depends on the powers:

  • If nn is odd: Peel off secxtanx\sec x \tan x (which is the derivative of secx\sec x), convert remaining tan2x\tan^2 x factors to sec2x1\sec^2 x - 1, and substitute u=secxu = \sec x
  • If mm is even: Peel off sec2x\sec^2 x (the derivative of tanx\tan x), convert remaining sec2x\sec^2 x factors to 1+tan2x1 + \tan^2 x, and substitute u=tanxu = \tan x

Reduction Formulas for Trigonometric Integrals

Reduction formulas let you express an integral with power nn in terms of the same integral with a lower power. They're derived using integration by parts and are especially useful for high powers.

Sine: sinnxdx=1nsinn1xcosx+n1nsinn2xdx\int \sin^n x \, dx = -\frac{1}{n} \sin^{n-1} x \cos x + \frac{n-1}{n} \int \sin^{n-2} x \, dx

Cosine: cosnxdx=1ncosn1xsinx+n1ncosn2xdx\int \cos^n x \, dx = \frac{1}{n} \cos^{n-1} x \sin x + \frac{n-1}{n} \int \cos^{n-2} x \, dx

Tangent: tannxdx=1n1tann1xtann2xdx\int \tan^n x \, dx = \frac{1}{n-1} \tan^{n-1} x - \int \tan^{n-2} x \, dx

Secant: secnxdx=1n1secn2xtanx+n2n1secn2xdx\int \sec^n x \, dx = \frac{1}{n-1} \sec^{n-2} x \tan x + \frac{n-2}{n-1} \int \sec^{n-2} x \, dx

Each formula reduces the power by 2 (except tangent, which reduces by 2 as well since you go from nn to n2n-2). You apply them repeatedly until you reach a base case you know:

  • sinxdx=cosx+C\int \sin x \, dx = -\cos x + C or sin0xdx=x+C\int \sin^0 x \, dx = x + C
  • tanxdx=lnsecx+C\int \tan x \, dx = \ln|\sec x| + C or tan0xdx=x+C\int \tan^0 x \, dx = x + C
  • secxdx=lnsecx+tanx+C\int \sec x \, dx = \ln|\sec x + \tan x| + C or sec2xdx=tanx+C\int \sec^2 x \, dx = \tan x + C

Quick Strategy Summary

Integral TypeConditionStrategy
sinmxcosnx\sin^m x \cos^n xOne power oddPeel off one factor, Pythagorean identity, uu-sub
sinmxcosnx\sin^m x \cos^n xBoth powers evenHalf-angle formulas
sin(mx)cos(nx)\sin(mx)\cos(nx)Different argumentsProduct-to-sum formulas
tannx\tan^n xAny nnUse tan2x=sec2x1\tan^2 x = \sec^2 x - 1 to reduce
secnx\sec^n xnn evenPeel off sec2x\sec^2 x, sub u=tanxu = \tan x
secnx\sec^n xnn oddIntegration by parts or reduction formula
secmxtannx\sec^m x \tan^n xnn oddPeel off secxtanx\sec x \tan x, sub u=secxu = \sec x
secmxtannx\sec^m x \tan^n xmm evenPeel off sec2x\sec^2 x, sub u=tanxu = \tan x