How to integrate a trigonometric product

Integrating trigonometric products of the form sinm(x)cosn(x)dx\int \sin^m(x) \cos^n(x) \, dx requires trigonometric identities and uu-substitution. It applies when at least one power is a positive integer, or when both are even non-negative integers. If one power is odd, save one factor and convert the remaining even powers using the Pythagorean identity. If both are even, use half-angle identities to reduce the degree of the integrand.

The setup

Identify the exponents mm and nn in the integral sinm(x)cosn(x)dx\int \sin^m(x) \cos^n(x) \, dx. Determine if at least one is odd, or if both are even. Choose the appropriate trigonometric identities: use the Pythagorean identity (sin2(x)+cos2(x)=1\sin^2(x) + \cos^2(x) = 1) to convert even powers when an odd power is present. Use the half-angle identities (sin2(x)=1cos(2x)2\sin^2(x) = \frac{1 - \cos(2x)}{2} and \cos^2(x) = \frac{1 + \cos(2x)}{2}) when both powers are even to step down the exponents.

The steps

  1. If mm is odd, save one sin(x)\sin(x) factor for dudu and use sin2(x)=1cos2(x)\sin^2(x) = 1 - \cos^2(x) to express the remaining sine factors in terms of cosine. Let u=cos(x)u = \cos(x). 2. If nn is odd, save one cos(x)\cos(x) factor for dudu and use cos2(x)=1sin2(x)\cos^2(x) = 1 - \sin^2(x) to express the remaining cosine factors in terms of sine. Let u=sin(x)u = \sin(x). 3. If both mm and nn are even, apply half-angle identities to reduce the powers until all terms can be integrated directly. 4. Integrate the resulting polynomial in uu or the reduced trigonometric terms. 5. Substitute the original variable back and add the constant of integration CC.

Checking the result

Differentiate the computed antiderivative using the chain rule and the product rule. Simplify the resulting expression using algebraic expansion and the Pythagorean identity. The fully simplified derivative must exactly match the original integrand.

Common errors

A frequent error is forgetting the negative sign when substituting u=cos(x)u = \cos(x) since du=sin(x)dxdu = -\sin(x) \, dx. Students also often expand binomials incorrectly when converting higher powers, such as (1u2)2(1 - u^2)^2. When both powers are even, failing to properly apply the half-angle identity, particularly mixing up the internal signs for sine and cosine, will ruin the integration.

Worked example

Evaluate sin3(x)cos2(x)dx\int \sin^3(x) \cos^2(x) \, dx.

The power of sine is odd (m=3m=3). Save one sin(x)\sin(x) factor: sin2(x)cos2(x)sin(x)dx\int \sin^2(x) \cos^2(x) \sin(x) \, dx. Convert sin2(x)\sin^2(x) to 1cos2(x)1 - \cos^2(x): (1cos2(x))cos2(x)sin(x)dx\int (1 - \cos^2(x)) \cos^2(x) \sin(x) \, dx. Let u=cos(x)u = \cos(x), so du=sin(x)dxdu = -\sin(x) \, dx. Substitute uu: (1u2)u2(du)\int (1 - u^2) u^2 (-du). Distribute the negative sign and u2u^2: (u4u2)du\int (u^4 - u^2) \, du. Integrate with respect to uu: u55u33+C\frac{u^5}{5} - \frac{u^3}{3} + C. Substitute back u=cos(x)u = \cos(x): cos5(x)5cos3(x)3+C\frac{\cos^5(x)}{5} - \frac{\cos^3(x)}{3} + C.

FAQ

Run your own problem

References: Stewart Calculus, 8th Edition · OpenStax Calculus Volume 2, Chapter 3 · Khan Academy: Trigonometric integrals

See also