Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Integrate Powers of Sine and Cosine

Products like sin⁡mxcos⁡nx\sin^m x\cos^n x are handled by saving one factor for dudu and converting the rest with sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1, or, when both powers are even, by halving the angle with the power-reducing formulas.

Recognize the task

Powers and products of sin⁡x\sin x and cos⁡x\cos x: sin⁡3x\sin^3 x, sin⁡2xcos⁡3x\sin^2 x\cos^3 x, cos⁡4x\cos^4 x, sin⁡2x\sin^2 x. The same idea handles tan⁡mxsec⁡nx\tan^m x\sec^n x with sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x. Test: is at least one power odd? Save one factor. Both even? Reduce the power.
The two identities are the Pythagorean identity and the power-reducing formulas; the results are listed under trigonometric functions in the special integrals lesson.

Two ways to do it

Odd power: save one factorusual choice
sin⁡3x=(1−cos⁡2x)sin⁡x,u=cos⁡x\sin^3 x = (1 - \cos^2 x)\sin x, \qquad u = \cos x
Split one factor off the odd power, convert the rest with the Pythagorean identity, substitute uu = the other function.
Even powers: reduce the powerwhen both powers are even
sin⁡2x=1−cos⁡2x2,cos⁡2x=1+cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}, \qquad \cos^2 x = \frac{1 + \cos 2x}{2}
The power-reducing formulas trade a square for a double angle; repeat until every power is 11.

Steps

StepOn ∫sin⁡3x dx\int \sin^3 x\,dx
1Find an odd power and split one factor off it. That factor will become dudu.sin⁡3x=sin⁡2x⋅sin⁡x\sin^3 x = \sin^2 x\cdot\sin x
2Convert the remaining even power to the other function. Pythagorean identity: sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x.(1−cos⁡2x)sin⁡x(1 - \cos^2 x)\sin x
3Substitute u = the other function; the saved factor is du. Mind the sign: u=cos⁡xu = \cos x gives du=−sin⁡x dxdu = -\sin x\,dx.u=cos⁡xu = \cos x:   −∫(1−u2) du\;-\int (1 - u^2)\,du
4Integrate the polynomial in u and substitute back. Power rule in uu, then u=cos⁡xu = \cos x.Power rule for integrals ↗−u+u33+C=−cos⁡x+cos⁡3x3+C-u + \frac{u^3}{3} + C = -\cos x + \frac{\cos^3 x}{3} + C

Worked examples

Example 1 · odd power of sine

save one factor
∫sin⁡3x dx=∫(1−cos⁡2x)sin⁡x dx\int \sin^3 x\,dx = \int (1 - \cos^2 x)\sin x\,dx
save sin⁡x\sin x
=−∫(1−u2) du= -\int (1 - u^2)\,du
u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx
=−cos⁡x+13cos⁡3x+C= -\cos x + \tfrac{1}{3}\cos^3 x + C

Example 2 · even sine, odd cosine

save the odd one
∫sin⁡2xcos⁡3x dx=∫sin⁡2x (1−sin⁡2x)cos⁡x dx\int \sin^2 x\cos^3 x\,dx = \int \sin^2 x\,(1 - \sin^2 x)\cos x\,dx
save cos⁡x\cos x, convert cos⁡2x\cos^2 x
=∫(u2−u4) du= \int (u^2 - u^4)\,du
u=sin⁡xu = \sin x, du=cos⁡x dxdu = \cos x\,dx
=13sin⁡3x−15sin⁡5x+C= \tfrac{1}{3}\sin^3 x - \tfrac{1}{5}\sin^5 x + C

Example 3 · even power of cosine

reduce the power
∫cos⁡2x dx=∫1+cos⁡2x2 dx\int \cos^2 x\,dx = \int \frac{1 + \cos 2x}{2}\,dx
power-reducing formula
=x2+sin⁡2x4+C= \frac{x}{2} + \frac{\sin 2x}{4} + C
∫cos⁡2x dx=12sin⁡2x\int \cos 2x\,dx = \tfrac{1}{2}\sin 2x

See it happen

The saved factor is what makes the substitution legal: sin⁡x dx\sin x\,dx is exactly −du-du for u=cos⁡xu = \cos x. Everything else must be written in uu, and the Pythagorean identity is the translator between the two functions. With no odd power there is nothing to save, so the angle is halved instead.

Common mistakes

Losing the sign of du

✗ du=sin⁡x dxdu = \sin x\,dx for u=cos⁡xu = \cos x
✓ du=−sin⁡x dxdu = -\sin x\,dx

Converting the saved factor too

✗ sin⁡3x=(1−cos⁡2x)3/2\sin^3 x = (1 - \cos^2 x)^{3/2}
✓ keep one sin⁡x\sin x as it is; convert only the even part

Trying the odd-power trick on even powers

✗ ∫cos⁡2x dx\int \cos^2 x\,dx with u=sin⁡xu = \sin x leaves a cos⁡x\cos x unmatched
✓ use the power-reducing formula

Forgetting to halve

✗ cos⁡2x=1+cos⁡2x\cos^2 x = 1 + \cos 2x
✓ cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}