Trigonometric Integrals

Trigonometric integrals are simplified using trig identities.

Common Identities

Example

Example 1 ∫sin⁡2x dx\int \sin^2 x \, dx
Use sin⁡2x=1−cos⁡2x2\sin^2 x = \tfrac{1-\cos2x}{2} → 12x−14sin⁡2x+C\tfrac12 x - \tfrac14 \sin 2x + C.

Example 2 ∫sin⁡xcos⁡x dx\int \sin x \cos x \, dx
Use sin⁡xcos⁡x=12sin⁡2x\sin x \cos x = \tfrac12 \sin 2x → −14cos⁡2x+C-\tfrac14 \cos 2x + C.


Exercises

Exercise 1

Use the power-reduction formula to compute the indefinite integral ∫cos⁡2x dx\int \cos^2 x \, dx.

trigonometric integraltrigonometric identitypower-reduction formulaindefinite integral

Approach: cos⁡2x\cos^2 x is not one of the basic integration formulas, so rewrite it with the identity cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1+\cos 2x}{2} as a constant plus a single trigonometric term, and integrate the two parts separately.

Steps:

  1. Rewrite with the power-reduction formula: cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}.
  2. Substitute and use linearity: ∫cos⁡2x dx=∫12 dx+12∫cos⁡2x dx\int \cos^2 x \, dx = \int \frac{1}{2} \, dx + \frac{1}{2}\int \cos 2x \, dx.
  3. Integrate each part: ∫12 dx=x2\int \frac{1}{2} \, dx = \frac{x}{2} and 12∫cos⁡2x dx=12⋅12sin⁡2x=14sin⁡2x\frac{1}{2}\int \cos 2x \, dx = \frac{1}{2} \cdot \frac{1}{2}\sin 2x = \frac{1}{4}\sin 2x.
  4. Combining gives ∫cos⁡2x dx=x2+14sin⁡2x+C\int \cos^2 x \, dx = \frac{x}{2} + \frac{1}{4}\sin 2x + C.
  5. Verify by differentiating: ddx(x2+14sin⁡2x)=12+12cos⁡2x=1+cos⁡2x2=cos⁡2x\frac{d}{dx}\left(\frac{x}{2} + \frac{1}{4}\sin 2x\right) = \frac{1}{2} + \frac{1}{2}\cos 2x = \frac{1 + \cos 2x}{2} = \cos^2 x, which matches the original integrand.

Answer: ∫cos⁡2x dx=x2+14sin⁡2x+C\int \cos^2 x \, dx = \frac{x}{2} + \frac{1}{4}\sin 2x + C.

Exercise 2

Use a trigonometric identity to compute the indefinite integral ∫sin⁡3x dx\int \sin^3 x \, dx.

trigonometric integraltrigonometric identitysubstitutionindefinite integral

Approach: The power-reduction formula cannot be applied directly to an odd power, because reducing it produces terms such as cos⁡2x\cos 2x that are not integrable by the basic formulas. The right move is to use the identity sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 to keep one factor of sin⁡x\sin x, rewrite the rest in terms of cos⁡x\cos x, and then substitute u=cos⁡xu = \cos x.

Steps:

  1. Rewrite with sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x: sin⁡3x=sin⁡x⋅sin⁡2x=sin⁡x(1−cos⁡2x)\sin^3 x = \sin x \cdot \sin^2 x = \sin x (1 - \cos^2 x).
  2. Let u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x \, dx.
  3. Substitute and integrate: ∫sin⁡3x dx=∫sin⁡x(1−cos⁡2x) dx=−∫(1−u2) du=−u+u33+C\int \sin^3 x \, dx = \int \sin x (1 - \cos^2 x) \, dx = -\int (1 - u^2) \, du = -u + \frac{u^3}{3} + C.
  4. Back-substitute u=cos⁡xu = \cos x: ∫sin⁡3x dx=−cos⁡x+13cos⁡3x+C\int \sin^3 x \, dx = -\cos x + \frac{1}{3}\cos^3 x + C.
  5. Verify by differentiating: ddx(−cos⁡x+13cos⁡3x)=sin⁡x−cos⁡2xsin⁡x=sin⁡x(1−cos⁡2x)=sin⁡3x\frac{d}{dx}\left(-\cos x + \frac{1}{3}\cos^3 x\right) = \sin x - \cos^2 x \sin x = \sin x (1 - \cos^2 x) = \sin^3 x, which matches the original integrand.

Answer: ∫sin⁡3x dx=−cos⁡x+13cos⁡3x+C\int \sin^3 x \, dx = -\cos x + \frac{1}{3}\cos^3 x + C.

Exercise 3

Use the trigonometric substitution x=atan⁡tx = a\tan t to compute the indefinite integral ∫dxa2+x2\int \frac{dx}{a^2+x^2} (a>0a > 0).

trigonometric integraltrigonometric identitytrigonometric substitutionindefinite integral

Approach: The denominator has the form a2+x2a^2+x^2, so put x=atan⁡tx = a\tan t and use the identity 1+tan⁡2t=sec⁡2t1 + \tan^2 t = \sec^2 t to turn the denominator into a perfect square, which then cancels against the differential. Taking t∈(−π2,π2)t \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right) gives sec⁡t>0\sec t > 0, so no absolute value is needed for a2+x2=asec⁡t\sqrt{a^2+x^2} = a\sec t.

Steps:

  1. Let x=atan⁡tx = a\tan t with t∈(−π2,π2)t \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right), so dx=asec⁡2t dtdx = a\sec^2 t \, dt and a2+x2=a2(1+tan⁡2t)=a2sec⁡2ta^2 + x^2 = a^2(1 + \tan^2 t) = a^2 \sec^2 t.
  2. Substitute: ∫dxa2+x2=∫asec⁡2ta2sec⁡2t dt=1a∫dt=ta+C\int \frac{dx}{a^2+x^2} = \int \frac{a\sec^2 t}{a^2 \sec^2 t} \, dt = \frac{1}{a}\int dt = \frac{t}{a} + C.
  3. Back-substitute: from tan⁡t=xa\tan t = \frac{x}{a} we get t=arctan⁡xat = \arctan\frac{x}{a}.
  4. Verify by differentiating: ddx[1aarctan⁡xa]=1a⋅1/a1+x2/a2=1a2+x2\frac{d}{dx}\left[\frac{1}{a}\arctan\frac{x}{a}\right] = \frac{1}{a} \cdot \frac{1/a}{1 + x^2/a^2} = \frac{1}{a^2 + x^2}, which matches the original integrand.

Answer: ∫dxa2+x2=1aarctan⁡xa+C\int \frac{dx}{a^2+x^2} = \frac{1}{a}\arctan\frac{x}{a} + C.

Exercise 4

Use a trigonometric identity to compute the indefinite integral ∫dx1+cos⁡x\int \frac{dx}{1+\cos x}.

trigonometric integraltrigonometric identityhalf-angle formulaindefinite integral

Approach: The denominator 1+cos⁡x1+\cos x is turned into 2cos⁡2x22\cos^2\frac{x}{2} by the half-angle formula cos⁡x=2cos⁡2x2−1\cos x = 2\cos^2\frac{x}{2} - 1, so the integrand becomes 12sec⁡2x2\frac{1}{2}\sec^2\frac{x}{2} and can be integrated like a basic formula. (The general method mentioned on this page for ∫dxa+bcos⁡x\int \frac{dx}{a+b\cos x} is the universal substitution t=tan⁡x2t = \tan\frac{x}{2}; for a=b=1a = b = 1 the half-angle formula is more direct.)

Steps:

  1. By the half-angle formula, 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}, so 11+cos⁡x=12sec⁡2x2\frac{1}{1+\cos x} = \frac{1}{2}\sec^2\frac{x}{2}.
  2. Let u=x2u = \frac{x}{2}, so du=12dxdu = \frac{1}{2}dx and therefore dx=2 dudx = 2\,du.
  3. Substitute and integrate: ∫dx1+cos⁡x=12∫sec⁡2u⋅2 du=∫sec⁡2u du=tan⁡u+C\int \frac{dx}{1+\cos x} = \frac{1}{2}\int \sec^2 u \cdot 2\,du = \int \sec^2 u \, du = \tan u + C.
  4. Back-substitute u=x2u = \frac{x}{2}: the original integral is tan⁡x2+C\tan\frac{x}{2} + C.
  5. Verify by differentiating: ddxtan⁡x2=12sec⁡2x2=12cos⁡2x2=11+cos⁡x\frac{d}{dx}\tan\frac{x}{2} = \frac{1}{2}\sec^2\frac{x}{2} = \frac{1}{2\cos^2\frac{x}{2}} = \frac{1}{1+\cos x}, which matches the original integrand.

Answer: ∫dx1+cos⁡x=tan⁡x2+C\int \frac{dx}{1+\cos x} = \tan\frac{x}{2} + C.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫\intmathematical symbolintegralIndefinite/definite integral sign
sin⁡2x\sin^2 xmathematical symbolsine squared of xThe squared sine rewritten by the power-reduction identity
cos⁡2x\cos^2 xmathematical symbolcosine squared of xThe squared cosine rewritten by the power-reduction identity
sin⁡xcos⁡x\sin x \cos xmathematical symbolsine of x times cosine of xThe product rewritten by the product-to-sum identity
sin⁡2x,cos⁡2x\sin 2x, \cos 2xmathematical symbolsine of 2x, cosine of 2xThe double-angle terms that appear after the rewriting
2x2xmathematical symbol2xThe doubled argument produced by the double-angle identities
dxdxmathematical symboldifferential of xThe differential element of the integration variable xx
CCconstantconstant of integrationThe arbitrary constant in every antiderivative

Found an issue with this content?

Tell us what could be improved.