| Even powers: halve the angle | |
|---|---|
| An odd power: one factor becomes du | |
| A root of a² ± x² |
Lesson
The theory — Trigonometric Integrals
Trigonometric integrals are integrals of products of powers of sin x and cos x, and trigonometric substitution turns the root of a quadratic into one of them: x = a sin θ for √(a² − x²), x = a tan θ for √(x² + a²) and x = a sec θ for √(x² − a²), each read off a right triangle. An odd power is integrated by peeling off one factor and substituting the other function. When every power is even, the half-angle identities sin²x = ½ − ½cos 2x and cos²x = ½ + ½cos 2x lower the powers first.
What each symbol means
θ- the angle of the substitution; for x = a sin θ it runs from −π/2 to π/2, where cos θ ≥ 0, so √(a² − x²) = a cos θ
c₀- the average of sinᵐx·cosⁿx over one turn: 0 if m or n is odd, and (m − 1)!!·(n − 1)!!/(m + n)!! if both are even, where n!! = n(n − 2)(n − 4)… down to 1 or 2, and 0!! = (−1)!! = 1
Where the formula comes from
- Why an even power climbs. For any antiderivative F of sinᵐx·cosⁿx, F(x + 2π) − F(x) is the area of one turn, 2π·c₀, whatever x is, so F(x) − c₀·x has period 2π. The substitutions u = cos x and u = sin x return a function of cos x or of sin x, which has period 2π itself, so they can give the whole answer only when c₀ = 0, that is, when some power is odd.
Problems solved in full
-
An odd power of sine 3 steps
Find ∫sin³x dx.
-
Keep one sin x for du and turn the other two into cosines:
-
A polynomial in u:
-
Back to x:
Answer
−cos x + cos³x/3 + C. du = −sin x dx carries a minus sign, and losing it flips every term; the tool calls that answer a wrong sign.
-
-
An odd power of cosine beside an even sine 2 steps
Find ∫sin²x cos³x dx.
Show solution
-
The odd power is the cosine, so keep one cos x for du and write the rest in sines:
-
A polynomial in u = sin x:
Answer
sin³x/3 − sin⁵x/5 + C. Whichever power is odd decides the substitution; when both are odd, either works.
-
-
Both powers even: halve the angle twice 3 steps
Find ∫sin²x cos²x dx.
Show solution
-
No odd power to spend on du. First the double angle:
-
Then the half-angle identity on sin²2x:
-
Integrate term by term:
Answer
x/8 − sin 4x/32 + C. The x/8 is the climb of an even power, an eighth per unit of x. Leave it off and the tool reports a derivative short by 1/8 everywhere.
-
-
Two different frequencies: product to sum 3 steps
Find ∫sin 3x cos x dx.
Show solution
-
A product of sines and cosines of different multiples of x is a sum in disguise:
-
With A = 3x and B = x:
-
Integrate each sine:
Answer
−cos 4x/8 − cos 2x/4 + C. The ½ in the identity is the factor that goes missing; without it the answer is twice as big, which is what the tool reports.
-
-
An identity first 2 steps
Find ∫tan²x dx.
Show solution
-
tan²x has no direct antiderivative, but sec²x does:
-
Integrate term by term:
Answer
tan x − x + C. Writing only tan x forgets the −1; the tool reports a derivative 1 too large at every point.
-
-
√(1 − x²): put x on the circle 3 steps
Find ∫x²/√(1 − x²) dx.
Show solution
-
Substitute x = sin θ, which turns the root into cos θ:
-
The cosines cancel and an even power of sine is left:
-
Back to x, with sin 2θ = 2 sin θ cos θ:
Answer
(arcsin x − x√(1 − x²))/2 + C. The arcsin is the sector and the other term the triangle, as in the insight block on the triangle and the sector; here the triangle is subtracted.
-
-
x² + a²: put x on a tangent 3 steps
Find ∫dx/(x² + 4)3/2.
Show solution
-
Substitute x = 2 tan θ, so that x² + 4 = 4 sec²θ:
-
Most of it cancels:
-
Back to x through the triangle with opposite x, adjacent 2 and hypotenuse √(x² + 4):
Answer
x/(4√(x² + 4)) + C. The ¼ comes from 2/8; leave it out and the tool reports a derivative four times the integrand.
-
-
sin⁸x over a turn, by a formula that calls itself 4 steps
The page's powers stop at 6. What is the area of sin⁸x over one turn, and what is the slope of the line its antiderivative climbs? Press sin⁴x, by reduction: the page gives 2.3562 for sin⁴x, with average 0.3750.
Show solution
-
Write sinⁿx = sinⁿ⁻¹x·sin x and integrate by parts with u = sinⁿ⁻¹x. Over a whole turn the boundary term −sinⁿ⁻¹x cos x is 0, and writing cos²x = 1 − sin²x brings Iₙ back on the right, so it can be solved for:
-
Start from I₀ = 2π, the area of the constant 1 over a turn, and step up two powers at a time. I₄ is the page's figure:
-
Two more steps reach sin⁸x:
-
The slope of the climb is the area per turn divided by 2π:
Answer
35π/64 ≈ 1.7181 per turn, a slope of 35/128 ≈ 0.2734. Each step multiplies by (n − 1)/n, so the average keeps falling, roughly like √(2/(πn)): that gives 0.2821 at n = 8, against the true 0.2734. Run the same reduction over a quarter turn for the odd powers too, where it starts from 1 instead of from π/2, squeeze each even power between its odd neighbours, and the ratios multiply into John Wallis's product π/2 = (2·2·4·4·6·6…)/(1·3·3·5·5·7…). He found it in Arithmetica infinitorum (1656), trying to compute the quarter circle's area ∫₀¹√(1 − x²) dx.
-
Learning path
Techniques of integration
References (3)
- The strategy for ∫cosʲx·sinᵏx: if k is odd, keep one sin x and write the rest in cos x with sin²x = 1 − cos²x, then u = cos x; if j is odd, the same with the roles swapped and u = sin x; if both are even, the half-angle identities sin²x = ½ − ½cos 2x and cos²x = ½ + ½cos 2x. Example 3.10 integrates sin²x to x/2 − sin(2x)/4: G. Strang and E. Herman, Calculus Volume 2, OpenStax (2016), section 3.2, “Trigonometric Integrals”.
- The three substitutions and their reference triangles: x = a sin θ with −π/2 ≤ θ ≤ π/2, where cos θ ≥ 0 so the root is a cos θ (Example 3.21 integrates √(9 − x²) this way); x = a tan θ; x = a sec θ, where the root is |a tan θ| and changes sign between x ≥ a and x ≤ −a. The strategy for √(a² − x²) begins by advising a check that the integral cannot be done more easily, naming x√(a² − x²) as one u-substitution handles, and Example 3.23 does x³√(1 − x²) both ways: G. Strang and E. Herman, Calculus Volume 2, OpenStax (2016), section 3.3, “Trigonometric Substitution”.
- Wallis's product π/2 = (2·2·4·4·6·6·8·8…)/(1·3·3·5·5·7·7·9…), in Arithmetica infinitorum (1656), found while trying to compute ∫₀¹ (1 − x²)^(1/2) dx, the area of a quarter of the unit circle: he could integrate (1 − x²)ⁿ for whole n and reached the half power by interpolation, a word the book introduced: J. J. O'Connor and E. F. Robertson, “John Wallis”, MacTutor History of Mathematics Archive, University of St Andrews (2002).