- Foundation
- About 20 min
- 5 practice questions
Integration by substitution and trigonometric identities
Change the variable to turn an integral into a standard form, learn the integrals of tan x, cot x, sec x and cosec x, and use trigonometric identities to integrate powers and products.
If something looks wrong, please tell us.
Inspection works only when we can spot the answer. Most integrands are not in a standard form, but many can be brought into one by changing the variable. This method, integration by substitution, is the reverse of the chain rule and is the most used tool in the whole chapter. Trigonometric identities give a second way of rewriting an integrand.
The substitution rule
Consider I = ∫ f(x) dx. Put x = g(t), so that dx/dt = g′(t), which we write as dx = g′(t) dt. Then I = ∫ f(g(t)) g′(t) dt. In practice we usually work the other way round: we look for a function inside the integrand whose derivative is also present (up to a constant factor), call it t, and replace that function and its derivative together.
Steps of integration by substitution
- Spot a function t = u(x) whose derivative u′(x) also appears
- Write dt = u′(x) dx and replace every x-term
- Integrate the new integral in t
- Put back t = u(x) and add C
Two patterns are worth memorising. (1) Linear substitution: if ∫ f(x) dx = F(x) + C, then ∫ f(ax + b) dx = (1/a) F(ax + b) + C, because t = ax + b gives dx = dt/a. For example ∫ cos(4x + 1) dx = (1/4) sin(4x + 1) + C. (2) Derivative over function: ∫ f′(x)/f(x) dx = log |f(x)| + C, because t = f(x) gives ∫ dt/t.
∫ f(ax + b) dx = (1/a) F(ax + b) + C, and ∫ f′(x)/f(x) dx = log |f(x)| + C.
Four important trigonometric integrals
∫ tan x dx. Write tan x = sin x/cos x and put t = cos x, so dt = −sin x dx. Then ∫ tan x dx = −∫ dt/t = −log |cos x| + C = log |sec x| + C. ∫ cot x dx. Put t = sin x, dt = cos x dx: ∫ cot x dx = ∫ dt/t = log |sin x| + C.
∫ sec x dx. Multiply and divide by (sec x + tan x): ∫ sec x (sec x + tan x)/(sec x + tan x) dx. Put t = sec x + tan x; then dt = (sec x tan x + sec² x) dx = sec x (sec x + tan x) dx, which is exactly the numerator. So ∫ sec x dx = ∫ dt/t = log |sec x + tan x| + C. ∫ cosec x dx. Multiply and divide by (cosec x + cot x) and put t = cosec x + cot x, dt = −cosec x (cosec x + cot x) dx. This gives −log |cosec x + cot x| + C, which simplifies (multiply inside by (cosec x − cot x) and use cosec² x − cot² x = 1) to log |cosec x − cot x| + C.
| Integral | Result |
|---|---|
| ∫ tan x dx | log |sec x| + C |
| ∫ cot x dx | log |sin x| + C |
| ∫ sec x dx | log |sec x + tan x| + C |
| ∫ cosec x dx | log |cosec x − cot x| + C |
Worked examples on substitution
Worked example 1
Find ∫ x² cos(x³) dx. The derivative of x³ is 3x², and x² is present. Put t = x³, so dt = 3x² dx, i.e. x² dx = dt/3. Then the integral is (1/3) ∫ cos t dt = (1/3) sin t + C = (1/3) sin(x³) + C. Check by differentiating: d/dx [(1/3) sin(x³)] = (1/3) cos(x³) · 3x² = x² cos(x³). ✓
Worked example 2
Find ∫ (log x)³/x dx, x > 0. The derivative of log x is 1/x, which is present. Put t = log x, dt = dx/x. Then ∫ t³ dt = t⁴/4 + C = (log x)⁴/4 + C.
Worked example 3
Find ∫ (2x + 3)/(x² + 3x + 7) dx. The numerator 2x + 3 is exactly the derivative of the denominator, so this is the form ∫ f′/f. Answer: log |x² + 3x + 7| + C. (Here x² + 3x + 7 is always positive, since its discriminant 9 − 28 is negative, so the modulus can be dropped.)
Worked example 4: an odd power of sine
Find ∫ sin³ x cos² x dx. Keep one sin x for dx and convert the rest: sin³ x cos² x = (1 − cos² x) cos² x · sin x. Put t = cos x, dt = −sin x dx. The integral becomes −∫ (1 − t²) t² dt = −∫ (t² − t⁴) dt = −t³/3 + t⁵/5 + C = −(cos³ x)/3 + (cos⁵ x)/5 + C.
Integration using trigonometric identities
Squares and products of sines and cosines are not standard forms, but identities turn them into sums of single sines and cosines, which are.
| Integrand | Rewrite as |
|---|---|
| sin² x | (1 − cos 2x)/2 |
| cos² x | (1 + cos 2x)/2 |
| sin³ x | (3 sin x − sin 3x)/4 |
| cos³ x | (3 cos x + cos 3x)/4 |
| 2 sin A cos B | sin(A + B) + sin(A − B) |
| 2 cos A cos B | cos(A + B) + cos(A − B) |
| 2 sin A sin B | cos(A − B) − cos(A + B) |
Example (i). ∫ sin² x dx = ∫ (1 − cos 2x)/2 dx = x/2 − (sin 2x)/4 + C. Example (ii). ∫ cos 3x cos x dx = (1/2) ∫ [cos 4x + cos 2x] dx = (sin 4x)/8 + (sin 2x)/4 + C. Example (iii). From cos 3x = 4cos³ x − 3 cos x we get cos³ x = (3 cos x + cos 3x)/4, so ∫ cos³ x dx = (3/4) sin x + (1/12) sin 3x + C. The same integral can be done by substitution (write cos³ x = (1 − sin² x) cos x and put t = sin x), giving sin x − (sin³ x)/3 + C; using sin 3x = 3 sin x − 4 sin³ x you can check the two answers are equal.
Key takeaways
- Substitute t for a function whose derivative also appears in the integrand.
- ∫ f(ax + b) dx = (1/a) F(ax + b) + C; ∫ f′/f dx = log |f| + C.
- ∫ tan x dx = log |sec x| + C, ∫ cot x dx = log |sin x| + C, ∫ sec x dx = log |sec x + tan x| + C, ∫ cosec x dx = log |cosec x − cot x| + C.
- Use double-angle, triple-angle and product-to-sum identities to integrate powers and products.
- Two correct answers may look different but differ only by a constant.
Check your understanding
-
1. ∫ cos(5x − 2) dx equals
- 5 sin(5x − 2) + C
- (1/5) sin(5x − 2) + C
- −(1/5) sin(5x − 2) + C
- sin(5x − 2) + C
Show answer
Answer: B. Linear substitution t = 5x − 2 gives dx = dt/5, so the integral is (1/5) ∫ cos t dt = (1/5) sin(5x − 2) + C. Check: the derivative is (1/5) · 5 cos(5x − 2) = cos(5x − 2).
-
2. ∫ 2x e^(x²) dx equals
- e^(x²) + C
- x² e^(x²) + C
- 2e^(x²) + C
- e^(x²)/(2x) + C
Show answer
Answer: A. Put t = x², dt = 2x dx. The integral becomes ∫ eᵗ dt = eᵗ + C = e^(x²) + C.
-
3. ∫ cos x/(3 + sin x) dx equals
- log |cos x| + C
- −log (3 + sin x) + C
- (3 + sin x)²/2 + C
- log (3 + sin x) + C
Show answer
Answer: D. The numerator cos x is the derivative of the denominator 3 + sin x, so the integral is log |3 + sin x| + C. Since 3 + sin x ≥ 2 > 0, this is log (3 + sin x) + C.
-
4. ∫ sin² x dx equals
- x/2 + (sin 2x)/4 + C
- sin³ x/3 + C
- x/2 − (sin 2x)/4 + C
- −cos² x + C
Show answer
Answer: C. sin² x = (1 − cos 2x)/2. Integrating: x/2 − (1/2)(sin 2x)/2 = x/2 − (sin 2x)/4, plus C.
-
5. Assertion (A): ∫ tan x dx = log |sec x| + C. Reason (R): d/dx (log |cos x|) = tan x.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- A is false, but R is true
Show answer
Answer: C. A is true: with t = cos x, ∫ tan x dx = −log |cos x| + C = log |sec x| + C. R is false: d/dx (log |cos x|) = (−sin x)/cos x = −tan x, not tan x.
Sign in to keep track of the lessons you finish.