Integration Using Trigonometric Identities

The idea

Functions like cos⁡2x\cos^2 x and sin⁡2x\sin^2 x have no direct antiderivative, but the double-angle identities rewrite them as something that does:

cos⁡2x=1+cos⁡2x2,sin⁡2x=1−cos⁡2x2\cos^2 x = \dfrac{1+\cos 2x}{2}, \qquad \sin^2 x = \dfrac{1-\cos 2x}{2}

Identities used in integration

Power-reduction and product-to-sum identities, and what each one integrates
IdentityUse it to integrate
cos⁡2x=1+cos⁡2x2\cos^2 x = \dfrac{1 + \cos 2x}{2}cos⁡2x\cos^2 x
sin⁡2x=1−cos⁡2x2\sin^2 x = \dfrac{1 - \cos 2x}{2}sin⁡2x\sin^2 x
sin⁡3x=3sin⁡x−sin⁡3x4\sin^3 x = \dfrac{3\sin x - \sin 3x}{4}sin⁡3x\sin^3 x
cos⁡3x=3cos⁡x+cos⁡3x4\cos^3 x = \dfrac{3\cos x + \cos 3x}{4}cos⁡3x\cos^3 x
tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1tan⁡2x\tan^2 x
2sin⁡Acos⁡B=sin⁡(A+B)+sin⁡(A−B)2\sin A\cos B = \sin(A + B) + \sin(A - B)sin⁡mxcos⁡nx\sin mx\cos nx
2cos⁡Acos⁡B=cos⁡(A+B)+cos⁡(A−B)2\cos A\cos B = \cos(A + B) + \cos(A - B)cos⁡mxcos⁡nx\cos mx\cos nx
2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)2\sin A\sin B = \cos(A - B) - \cos(A + B)sin⁡mxsin⁡nx\sin mx\sin nx

Worked example

Find ∫cos⁡2x dx\displaystyle\int \cos^2 x\,dx and ∫sin⁡2x dx\displaystyle\int \sin^2 x\,dx.

Solution: Substituting the identities above and integrating term by term:

∫cos⁡2x dx=∫1+cos⁡2x2 dx=x2+sin⁡2x4+C\int \cos^2 x\,dx = \int \dfrac{1+\cos 2x}{2}\,dx = \dfrac{x}{2} + \dfrac{\sin 2x}{4} + C∫sin⁡2x dx=∫1−cos⁡2x2 dx=x2−sin⁡2x4+C\int \sin^2 x\,dx = \int \dfrac{1-\cos 2x}{2}\,dx = \dfrac{x}{2} - \dfrac{\sin 2x}{4} + C

Worked example: a product of sines and cosines

Find ∫sin⁡3xcos⁡2x dx\displaystyle\int \sin 3x\cos 2x\,dx.

Solution: Use 2sin⁡Acos⁡B=sin⁡(A+B)+sin⁡(A−B)2\sin A\cos B = \sin(A + B) + \sin(A - B) with A=3xA = 3x and B=2xB = 2x:

∫sin⁡3xcos⁡2x dx=12∫(sin⁡5x+sin⁡x) dx=−cos⁡5x10−cos⁡x2+C\int \sin 3x\cos 2x\,dx = \dfrac{1}{2}\int (\sin 5x + \sin x)\,dx = -\dfrac{\cos 5x}{10} - \dfrac{\cos x}{2} + C

Worked example: tan squared

Find ∫tan⁡2x dx\displaystyle\int \tan^2 x\,dx.

Solution: Replace tan⁡2x\tan^2 x with sec⁡2x−1\sec^2 x - 1, both of which have standard antiderivatives:

∫tan⁡2x dx=∫(sec⁡2x−1) dx=tan⁡x−x+C\int \tan^2 x\,dx = \int (\sec^2 x - 1)\,dx = \tan x - x + C

Worked example: splitting into known antiderivatives

Find ∫1−sin⁡xcos⁡2x dx\displaystyle\int \dfrac{1-\sin x}{\cos^2 x}\,dx.

Solution: Split the fraction into two terms:

∫1cos⁡2x dx−∫sin⁡xcos⁡2x dx=∫sec⁡2x dx−∫sec⁡xtan⁡x dx\int \dfrac{1}{\cos^2 x}\,dx - \int \dfrac{\sin x}{\cos^2 x}\,dx = \int \sec^2 x\,dx - \int \sec x\tan x\,dx

Both are standard forms:

=tan⁡x−sec⁡x+C= \tan x - \sec x + C

Common mistakes

  • Dropping the factor from cos⁡2x\cos 2x. ∫cos⁡2x dx=sin⁡2x2\int \cos 2x\,dx = \dfrac{\sin 2x}{2}, not sin⁡2x\sin 2x. The same goes for sin⁡5x\sin 5x, cos⁡3x\cos 3x and so on.
  • Getting the order wrong in 2sin⁡Asin⁡B2\sin A\sin B. It is cos⁡(A−B)−cos⁡(A+B)\cos(A - B) - \cos(A + B). Reversing it flips the sign.
  • Integrating sin⁡2x\sin^2 x as sin⁡3x3\dfrac{\sin^3 x}{3}. The power rule only works for a power of xx itself. Use the power-reduction identity.

Continue learning

Every trigonometric identity used here comes from the same core right-triangle relationships covered in trigonometry basics.