- Advanced
- About 19 min
- 5 practice questions
Harder substitutions and algebraic tricks
Integrate 1/(a + b cos x) with t = tan(x/2), divide by cos²x for a sin²x + b cos²x, use x ∓ 1/x for quartics, xⁿ for 1/(x(xⁿ + 1)), and split (a sin x + b cos x)/(c sin x + d cos x) into the denominator and its derivative.
If something looks wrong, please tell us.
The practice course reduced most integrands to the standard table by partial fractions, completing the square and a few patterns. Harder problems hide the substitution: the integrand must first be divided, multiplied or rewritten before a good u appears. This lesson collects the substitutions that unlock the commonest hard integrands, and the clue in each integrand that points to them.
The half-angle substitution t = tan(x/2)
Any rational function of sin x and cos x becomes a rational function of t when t = tan(x/2), because sin x = 2t/(1 + t²), cos x = (1 − t²)/(1 + t²) and dx = 2 dt/(1 + t²). It is the tool of last resort for trigonometric fractions, and the standard method for 1/(a + b cos x) and 1/(a + b sin x + c cos x).
Worked example 1
∫ 1/(5 + 4 cos x) dx. With t = tan(x/2): 5 + 4 cos x = [5(1 + t²) + 4(1 − t²)]/(1 + t²) = (9 + t²)/(1 + t²). So the integral is ∫ 2 dt/(9 + t²) = (2/3) tan⁻¹(t/3), that is (2/3) tan⁻¹((1/3) tan(x/2)) + C.
Divide by cos²x
When every term of the denominator has degree two in sin x and cos x (sin²x, cos²x, sin x cos x), divide top and bottom by cos²x. The numerator becomes sec²x dx = d(tan x) and the denominator becomes a quadratic in tan x.
Worked example 2
∫ 1/(4 sin²x + 9 cos²x) dx = ∫ sec²x/(4 tan²x + 9) dx. Put u = tan x: ∫ du/(4u² + 9) = (1/4) ∫ du/(u² + 9/4) = (1/4)(2/3) tan⁻¹(2u/3) = (1/6) tan⁻¹(2 tan x/3) + C. In general ∫ dx/(a² sin²x + b² cos²x) = (1/(ab)) tan⁻¹(a tan x/b) + C.
Quartics: divide by x²
For (x² ± 1)/(x⁴ + kx² + 1), divide top and bottom by x². The numerator becomes 1 ± 1/x², which is the derivative of x ∓ 1/x, and the denominator becomes (x ∓ 1/x)² + constant.
Worked example 3
∫ (x² + 1)/(x⁴ + 1) dx = ∫ (1 + 1/x²)/(x² + 1/x²) dx. Since x² + 1/x² = (x − 1/x)² + 2, put u = x − 1/x, du = (1 + 1/x²) dx: ∫ du/(u² + 2) = (1/√2) tan⁻¹(u/√2), that is (1/√2) tan⁻¹((x² − 1)/(√2 x)) + C. For x² − 1 on top use u = x + 1/x instead, which leads to a logarithm.
Making the derivative appear: 1/(x(xⁿ + 1))
Multiply top and bottom by xⁿ⁻¹: the integrand becomes xⁿ⁻¹/(xⁿ(xⁿ + 1)), and u = xⁿ gives (1/n) ∫ du/(u(u + 1)).
Worked example 4
∫ 1/(x(x⁵ + 1)) dx. With u = x⁵, du = 5x⁴ dx, the integral is (1/5) ∫ du/(u(u + 1)) = (1/5) ln|u/(u + 1)|, that is (1/5) ln|x⁵/(x⁵ + 1)| + C.
For (a sin x + b cos x)/(c sin x + d cos x): write the numerator = A × (denominator) + B × (derivative of the denominator). Then the integral is Ax + B ln|c sin x + d cos x| + C.
Worked example 5
∫ sin x/(sin x + cos x) dx. The derivative of the denominator is cos x − sin x. Write sin x = A(sin x + cos x) + B(cos x − sin x). Comparing sin x: A − B = 1; cos x: A + B = 0. So A = 1/2, B = −1/2, and the integral is x/2 − (1/2) ln|sin x + cos x| + C. (The practice course found the definite version from 0 to π/2 with King's rule; this gives the antiderivative itself.)
Key takeaways: t = tan(x/2) rationalises any trigonometric fraction; divide by cos²x when the denominator is quadratic in sin and cos; divide by x² for symmetric quartics; multiply by xⁿ⁻¹ to create du; and write a trigonometric numerator as a combination of the denominator and its derivative.
Check your understanding
-
1. Find ∫ 1/(2 + cos x) dx.
- (2/√3) tan⁻¹(tan(x/2)/√3) + C
- (1/√3) tan⁻¹(tan(x/2)/√3) + C
- (2/√3) tan⁻¹(√3 tan(x/2)) + C
- −ln|2 + cos x| + C
Show answer
Answer: A. t = tan(x/2): 2 + cos x = (2 + 2t² + 1 − t²)/(1 + t²) = (3 + t²)/(1 + t²), and dx = 2 dt/(1 + t²). So the integral is ∫ 2 dt/(t² + 3) = (2/√3) tan⁻¹(t/√3) + C.
-
2. Find ∫ (x² − 1)/(x⁴ + 1) dx.
- (1/√2) tan⁻¹((x² − 1)/(√2 x)) + C
- (1/(2√2)) ln|(x² + √2 x + 1)/(x² − √2 x + 1)| + C
- (1/√2) ln|(x² − √2 x + 1)/(x² + √2 x + 1)| + C
- (1/(2√2)) ln|(x² − √2 x + 1)/(x² + √2 x + 1)| + C
Show answer
Answer: D. Divide by x²: (1 − 1/x²)/(x² + 1/x²). With u = x + 1/x, du = (1 − 1/x²) dx and x² + 1/x² = u² − 2. So ∫ du/(u² − 2) = (1/(2√2)) ln|(u − √2)/(u + √2)|. Multiplying top and bottom inside by x gives (1/(2√2)) ln|(x² − √2 x + 1)/(x² + √2 x + 1)| + C.
-
3. Find ∫ 1/(x(x⁴ + 1)) dx.
- ln|x⁴/(x⁴ + 1)| + C
- (1/4) ln|(x⁴ + 1)/x⁴| + C
- (1/4) ln|x⁴/(x⁴ + 1)| + C
- (1/4) tan⁻¹(x²) + C
Show answer
Answer: C. Multiply top and bottom by x³ and put u = x⁴, du = 4x³ dx: (1/4) ∫ du/(u(u + 1)) = (1/4) ln|u/(u + 1)| = (1/4) ln|x⁴/(x⁴ + 1)| + C.
-
4. Find ∫ 1/(sin²x + 4 cos²x) dx.
- tan⁻¹(tan x/2) + C
- (1/2) tan⁻¹(tan x/2) + C
- (1/2) tan⁻¹(2 tan x) + C
- 2 tan⁻¹(tan x/2) + C
Show answer
Answer: B. Divide by cos²x: ∫ sec²x/(tan²x + 4) dx. With u = tan x this is ∫ du/(u² + 4) = (1/2) tan⁻¹(u/2) = (1/2) tan⁻¹(tan x/2) + C.
-
5. Find ∫ cos x/(sin x + cos x) dx.
- x/2 + (1/2) ln|sin x + cos x| + C
- x/2 − (1/2) ln|sin x + cos x| + C
- ln|sin x + cos x| + C
- x + (1/2) ln|sin x + cos x| + C
Show answer
Answer: A. cos x = A(sin x + cos x) + B(cos x − sin x): sin x gives A − B = 0, cos x gives A + B = 1, so A = B = 1/2. The integral is x/2 + (1/2) ln|sin x + cos x| + C.
Sign in to keep track of the lessons you finish.