Integrals like ∫ sin²x dx, ∫ sin³x cos²x dx and ∫ tan²x dx cannot be read straight from a table, but a few identities turn them into ones that can. This lesson gives you a short set of strategies for powers of sine and cosine, powers of tangent and secant, and products like sin 3x cos 2x. Each strategy uses an identity to set up a simple substitution or a standard integral.
In this lesson you will learn
- How to integrate sin²x and cos²x with double-angle identities
- The odd-power strategy for sinᵐx cosⁿx
- Integrals of tan x, sec x, tan²x and secⁿx tanᵐx
- Product-to-sum formulas for sin mx cos nx
- Integrals of sin²x over a full period and why they matter in physics
You should know u-substitution, the derivatives of trig functions and the double-angle formulas.
sin²x and cos²x: Lower the Power
From cos 2x = 1 − 2sin²x = 2cos²x − 1:
sin²x = (1 − cos 2x)/2 cos²x = (1 + cos 2x)/2
∫ sin²x dx = ∫ (1 − cos 2x)/2 dx = x/2 − (sin 2x)/4 + C
∫ cos²x dx = ∫ (1 + cos 2x)/2 dx = x/2 + (sin 2x)/4 + C
Over one full period, sin²x and cos²x each average exactly ½: ∫₀^(2π) sin²x dx = π. That is why the “root mean square” of an alternating current is its peak value divided by √2.
Powers of sin and cos: the Odd-Power Strategy
For ∫ sinᵐx cosⁿx dx:
- If the power of sin is odd: save one sin x, turn the rest into cosines with sin²x = 1 − cos²x, and let u = cos x.
- If the power of cos is odd: save one cos x, turn the rest into sines, and let u = sin x.
- If both are even: use the half-angle formulas above, perhaps more than once.
∫ sin³x cos²x dx (sin power odd)
= ∫ sin²x cos²x · sin x dx
= ∫ (1 − cos²x) cos²x · sin x dx
u = cos x, du = −sin x dx
= −∫ (1 − u²) u² du = −u³/3 + u⁵/5 + C
= −cos³x/3 + cos⁵x/5 + C
∫ cos³x dx (cos power odd)
= ∫ (1 − sin²x) cos x dx, u = sin x
= sin x − sin³x/3 + C
Both Powers Even
∫ sin²x cos²x dx
sin x cos x = ½ sin 2x, so sin²x cos²x = ¼ sin²2x = ⅛(1 − cos 4x)
= ∫ ⅛(1 − cos 4x) dx = x/8 − (sin 4x)/32 + C
Tangent and Secant
∫ tan x dx = ln|sec x| + C
∫ sec x dx = ln|sec x + tan x| + C
∫ tan²x dx = ∫ (sec²x − 1) dx = tan x − x + C
∫ sec²x tan x dx: u = tan x → tan²x/2 + C
The trick for ∫ sec x dx is clever: multiply top and bottom by (sec x + tan x). The top then becomes the derivative of the bottom, giving a logarithm.
For ∫ secⁿx tanᵐx dx, two cases cover most problems:
- Power of sec even: save sec²x, convert the rest with sec²x = 1 + tan²x, let u = tan x.
- Power of tan odd: save sec x tan x, convert the rest with tan²x = sec²x − 1, let u = sec x.
∫ sec⁴x dx = ∫ (1 + tan²x) sec²x dx, u = tan x
= tan x + tan³x/3 + C
Products with Different Angles
Product-to-sum formulas split a product into a sum:
sin A cos B = ½[sin(A − B) + sin(A + B)]
sin A sin B = ½[cos(A − B) − cos(A + B)]
cos A cos B = ½[cos(A − B) + cos(A + B)]
∫ sin 3x cos 2x dx = ½ ∫ (sin x + sin 5x) dx = −½ cos x − (1/10) cos 5x + C
Why this matters: Fourier series
For whole numbers m ≠ n, ∫₀^(2π) sin mx sin nx dx = 0. This “orthogonality” is the reason any repeating signal, such as a musical note, can be split into separate sine waves. It is the mathematics behind MP3 compression and the equaliser on a music app.
Common Mistakes
- Writing ∫ sin²x dx = sin³x/3. The power rule needs the derivative of sin x as a factor.
- Sign slips with du = −sin x dx.
- Wrong half-angle sign: sin² uses 1 − cos 2x; cos² uses 1 + cos 2x.
- Forgetting the ½ from the angle 2x when integrating cos 2x.
Practice Exercises
Exercise 1. Evaluate ∫₀^π sin²x dx.
Show answer
[x/2 − (sin 2x)/4]₀^π = π/2.
Exercise 2. Find ∫ sin²x cos³x dx.
Show answer
Cos power odd, u = sin x: ∫ u²(1 − u²) du = sin³x/3 − sin⁵x/5 + C.
Exercise 3. Find ∫ cos 5x cos 3x dx.
Show answer
½ ∫ (cos 2x + cos 8x) dx = (sin 2x)/4 + (sin 8x)/16 + C.
Frequently Asked Questions
How do you integrate sin squared x?
Use the identity sin squared x = (1 – cos 2x)/2. Then the integral is x/2 – (sin 2x)/4 + C. The same idea with cos squared x = (1 + cos 2x)/2 gives x/2 + (sin 2x)/4 + C.
What is the integral of sec x?
The integral of sec x is ln|sec x + tan x| + C. It is found by multiplying the top and bottom by sec x + tan x, which makes the top the derivative of the bottom, so the result is a natural logarithm.
Summary
- Even powers: lower them with sin²x = (1 − cos 2x)/2 and cos²x = (1 + cos 2x)/2.
- Odd power of sin: save sin x, u = cos x. Odd power of cos: save cos x, u = sin x.
- ∫ tan x dx = ln|sec x| + C; ∫ sec x dx = ln|sec x + tan x| + C.
- Even power of sec: save sec²x, u = tan x.
- Products of different angles: use product-to-sum formulas.
Next: Trigonometric Substitution.
