Solution:
Key idea: Powers and products of trigonometric functions are first changed, with identities, into sums of terms we can integrate directly (such as cos k x \cos kx cos k x , sec 2 x \sec^2 x sec 2 x or sin k x \sin kx sin k x ). Then ∫ a b f ( x ) d x = F ( b ) − F ( a ) \displaystyle\int_a^b f(x)\,dx = F(b) - F(a) ∫ a b f ( x ) d x = F ( b ) − F ( a ) , where F ′ = f F' = f F ′ = f . Under a square root, u 2 = ∣ u ∣ \sqrt{u^2} = |u| u 2 = ∣ u ∣ , so the sign of u u u on the interval must be checked.
Step 1 — Part (i): lower the power of cos 3 x \cos 3x cos 3 x .
We use the identity cos 2 θ = 1 + cos 2 θ 2 \cos^2\theta = \dfrac{1 + \cos 2\theta}{2} cos 2 θ = 2 1 + cos 2 θ , taking θ \theta θ as 3 x 3x 3 x .
cos 2 3 x = 1 + cos 6 x 2 \cos^2 3x = \dfrac{1 + \cos 6x}{2} cos 2 3 x = 2 1 + cos 6 x
Step 2 — Part (i): integrate and put in the limits.
An antiderivative of 1 2 + 1 2 cos 6 x \dfrac{1}{2} + \dfrac{1}{2}\cos 6x 2 1 + 2 1 cos 6 x is x 2 + sin 6 x 12 \dfrac{x}{2} + \dfrac{\sin 6x}{12} 2 x + 12 sin 6 x .
At the upper limit the angle 6 x 6x 6 x is 3 π 2 \dfrac{3\pi}{2} 2 3 π , where the sine is − 1 -1 − 1 .
∫ 0 π / 4 cos 2 3 x d x = [ x 2 + sin 6 x 12 ] 0 π / 4 = π 8 + 1 12 sin 3 π 2 − 0 = π 8 − 1 12 \begin{aligned}
\int_0^{\pi/4} \cos^2 3x\,dx &= \left[\dfrac{x}{2} + \dfrac{\sin 6x}{12}\right]_0^{\pi/4} \\
&= \dfrac{\pi}{8} + \dfrac{1}{12}\sin\dfrac{3\pi}{2} - 0 \\
&= \dfrac{\pi}{8} - \dfrac{1}{12}
\end{aligned} ∫ 0 π /4 cos 2 3 x d x = [ 2 x + 12 sin 6 x ] 0 π /4 = 8 π + 12 1 sin 2 3 π − 0 = 8 π − 12 1
Step 3 — Part (ii): use tan 2 x = sec 2 x − 1 \tan^2 x = \sec^2 x - 1 tan 2 x = sec 2 x − 1 .
This identity turns the integrand into two standard terms, whose antiderivative is tan x − x \tan x - x tan x − x .
∫ 0 π / 4 tan 2 x d x = ∫ 0 π / 4 ( sec 2 x − 1 ) d x = [ tan x − x ] 0 π / 4 = 1 − π 4 \begin{aligned}
\int_0^{\pi/4} \tan^2 x\,dx &= \int_0^{\pi/4} (\sec^2 x - 1)\,dx \\
&= \Big[\tan x - x\Big]_0^{\pi/4} \\
&= 1 - \dfrac{\pi}{4}
\end{aligned} ∫ 0 π /4 tan 2 x d x = ∫ 0 π /4 ( sec 2 x − 1 ) d x = [ tan x − x ] 0 π /4 = 1 − 4 π
Step 4 — Part (iii): expand the square.
We expand and use tan x cot x = 1 \tan x\cot x = 1 tan x cot x = 1 .
( tan x + cot x ) 2 = tan 2 x + 2 + cot 2 x (\tan x + \cot x)^2 = \tan^2 x + 2 + \cot^2 x ( tan x + cot x ) 2 = tan 2 x + 2 + cot 2 x
Step 5 — Part (iii): write the integrand with sec 2 \sec^2 sec 2 and cosec 2 \operatorname{cosec}^2 cosec 2 .
We replace tan 2 x \tan^2 x tan 2 x by sec 2 x − 1 \sec^2 x - 1 sec 2 x − 1 and cot 2 x \cot^2 x cot 2 x by cosec 2 x − 1 \operatorname{cosec}^2 x - 1 cosec 2 x − 1 . The three constants add up to 0 0 0 .
( tan x + cot x ) 2 = sec 2 x + cosec 2 x (\tan x + \cot x)^2 = \sec^2 x + \operatorname{cosec}^2 x ( tan x + cot x ) 2 = sec 2 x + cosec 2 x
Step 6 — Part (iii): integrate and put in the limits.
An antiderivative is tan x − cot x \tan x - \cot x tan x − cot x . Notice that the upper limit π 4 \dfrac{\pi}{4} 4 π is smaller than the lower limit π 3 \dfrac{\pi}{3} 3 π , so we still subtract the value at π 3 \dfrac{\pi}{3} 3 π from the value at π 4 \dfrac{\pi}{4} 4 π .
∫ π / 3 π / 4 ( sec 2 x + cosec 2 x ) d x = [ tan x − cot x ] π / 3 π / 4 = ( 1 − 1 ) − ( 3 − 1 3 ) = − 2 3 \begin{aligned}
\int_{\pi/3}^{\pi/4} (\sec^2 x + \operatorname{cosec}^2 x)\,dx &= \Big[\tan x - \cot x\Big]_{\pi/3}^{\pi/4} \\
&= (1 - 1) - \left(\sqrt{3} - \dfrac{1}{\sqrt{3}}\right) \\
&= -\dfrac{2}{\sqrt{3}}
\end{aligned} ∫ π /3 π /4 ( sec 2 x + cosec 2 x ) d x = [ tan x − cot x ] π /3 π /4 = ( 1 − 1 ) − ( 3 − 3 1 ) = − 3 2
The value is negative only because the limits run downwards; the integrand itself is positive.
Step 7 — Part (iv): write 1 + sin x 1 + \sin x 1 + sin x as a square.
We use sin x = cos ( π 2 − x ) \sin x = \cos\left(\dfrac{\pi}{2} - x\right) sin x = cos ( 2 π − x ) and 1 + cos 2 θ = 2 cos 2 θ 1 + \cos 2\theta = 2\cos^2\theta 1 + cos 2 θ = 2 cos 2 θ .
1 + sin x = 2 cos 2 ( x 2 − π 4 ) 1 + \sin x = 2\cos^2\left(\dfrac{x}{2} - \dfrac{\pi}{4}\right) 1 + sin x = 2 cos 2 ( 2 x − 4 π )
Step 8 — Part (iv): integrate and put in the limits.
So 1 1 + sin x = 1 2 sec 2 ( x 2 − π 4 ) \dfrac{1}{1 + \sin x} = \dfrac{1}{2}\sec^2\left(\dfrac{x}{2} - \dfrac{\pi}{4}\right) 1 + sin x 1 = 2 1 sec 2 ( 2 x − 4 π ) . Its antiderivative is tan ( x 2 − π 4 ) \tan\left(\dfrac{x}{2} - \dfrac{\pi}{4}\right) tan ( 2 x − 4 π ) , because the inner derivative 1 2 \dfrac{1}{2} 2 1 cancels the factor 1 2 \dfrac{1}{2} 2 1 . The angle runs from − π 4 -\dfrac{\pi}{4} − 4 π to π 4 \dfrac{\pi}{4} 4 π , where tan \tan tan is continuous.
∫ 0 π d x 1 + sin x = [ tan ( x 2 − π 4 ) ] 0 π = tan π 4 − tan ( − π 4 ) = 1 + 1 = 2 \begin{aligned}
\int_0^{\pi} \dfrac{dx}{1+\sin x} &= \left[\tan\left(\dfrac{x}{2} - \dfrac{\pi}{4}\right)\right]_0^{\pi} \\
&= \tan\dfrac{\pi}{4} - \tan\left(-\dfrac{\pi}{4}\right) \\
&= 1 + 1 \\
&= 2
\end{aligned} ∫ 0 π 1 + sin x d x = [ tan ( 2 x − 4 π ) ] 0 π = tan 4 π − tan ( − 4 π ) = 1 + 1 = 2
Step 9 — Part (v): change the product into a difference.
We use the identity 2 sin A sin B = cos ( A − B ) − cos ( A + B ) 2\sin A\sin B = \cos(A - B) - \cos(A + B) 2 sin A sin B = cos ( A − B ) − cos ( A + B ) , taking A A A as 3 x 3x 3 x and B B B as 2 x 2x 2 x .
sin 3 x sin 2 x = 1 2 ( cos x − cos 5 x ) \sin 3x\sin 2x = \dfrac{1}{2}\left(\cos x - \cos 5x\right) sin 3 x sin 2 x = 2 1 ( cos x − cos 5 x )
Step 10 — Part (v): integrate and put in the limits.
An antiderivative is 1 2 ( sin x − sin 5 x 5 ) \dfrac{1}{2}\left(\sin x - \dfrac{\sin 5x}{5}\right) 2 1 ( sin x − 5 sin 5 x ) , and both terms are 0 0 0 at x = 0 x = 0 x = 0 .
At the upper limit x = π 4 x = \dfrac{\pi}{4} x = 4 π , we have sin x = 1 2 \sin x = \dfrac{1}{\sqrt{2}} sin x = 2 1 and sin 5 π 4 = − 1 2 \sin\dfrac{5\pi}{4} = -\dfrac{1}{\sqrt{2}} sin 4 5 π = − 2 1 .
∫ 0 π / 4 sin 3 x sin 2 x d x = 1 2 ( 1 2 + 1 5 2 ) = 1 2 ⋅ 6 5 2 = 3 5 2 \begin{aligned}
\int_0^{\pi/4} \sin 3x\sin 2x\,dx &= \dfrac{1}{2}\left(\dfrac{1}{\sqrt{2}} + \dfrac{1}{5\sqrt{2}}\right) \\
&= \dfrac{1}{2}\cdot\dfrac{6}{5\sqrt{2}} \\
&= \dfrac{3}{5\sqrt{2}}
\end{aligned} ∫ 0 π /4 sin 3 x sin 2 x d x = 2 1 ( 2 1 + 5 2 1 ) = 2 1 ⋅ 5 2 6 = 5 2 3
Step 11 — Part (vi): write 1 − sin 2 x 1 - \sin 2x 1 − sin 2 x as a square.
We use 1 = cos 2 x + sin 2 x 1 = \cos^2 x + \sin^2 x 1 = cos 2 x + sin 2 x and sin 2 x = 2 sin x cos x \sin 2x = 2\sin x\cos x sin 2 x = 2 sin x cos x .
1 − sin 2 x = ( cos x − sin x ) 2 1 - \sin 2x = (\cos x - \sin x)^2 1 − sin 2 x = ( cos x − sin x ) 2
Step 12 — Part (vi): take the square root carefully.
Since u 2 = ∣ u ∣ \sqrt{u^2} = |u| u 2 = ∣ u ∣ , we need the sign of cos x − sin x \cos x - \sin x cos x − sin x . For 0 ≤ x ≤ π 4 0 \le x \le \dfrac{\pi}{4} 0 ≤ x ≤ 4 π we have cos x ≥ sin x \cos x \ge \sin x cos x ≥ sin x , so the modulus can be dropped.
1 − sin 2 x = cos x − sin x \sqrt{1 - \sin 2x} = \cos x - \sin x 1 − sin 2 x = cos x − sin x
Step 13 — Part (vi): integrate and put in the limits.
An antiderivative of cos x − sin x \cos x - \sin x cos x − sin x is sin x + cos x \sin x + \cos x sin x + cos x .
∫ 0 π / 4 ( cos x − sin x ) d x = [ sin x + cos x ] 0 π / 4 = ( 1 2 + 1 2 ) − ( 0 + 1 ) = 2 − 1 \begin{aligned}
\int_0^{\pi/4} (\cos x - \sin x)\,dx &= \Big[\sin x + \cos x\Big]_0^{\pi/4} \\
&= \left(\dfrac{1}{\sqrt{2}} + \dfrac{1}{\sqrt{2}}\right) - (0 + 1) \\
&= \sqrt{2} - 1
\end{aligned} ∫ 0 π /4 ( cos x − sin x ) d x = [ sin x + cos x ] 0 π /4 = ( 2 1 + 2 1 ) − ( 0 + 1 ) = 2 − 1
Note: The book prints 1 − 2 1 - \sqrt{2} 1 − 2 for part (vi). That value is negative, but the integrand 1 − sin 2 x \sqrt{1 - \sin 2x} 1 − sin 2 x is never negative, so the correct value is 2 − 1 \sqrt{2} - 1 2 − 1 .
Step 14 — Part (vii): write 1 + sin x 2 1 + \sin\dfrac{x}{2} 1 + sin 2 x as a square.
We use sin x 2 = cos ( π 2 − x 2 ) \sin\dfrac{x}{2} = \cos\left(\dfrac{\pi}{2} - \dfrac{x}{2}\right) sin 2 x = cos ( 2 π − 2 x ) and then 1 + cos 2 θ = 2 cos 2 θ 1 + \cos 2\theta = 2\cos^2\theta 1 + cos 2 θ = 2 cos 2 θ , taking θ \theta θ as π 4 − x 4 \dfrac{\pi}{4} - \dfrac{x}{4} 4 π − 4 x .
1 + sin x 2 = 2 cos 2 ( π 4 − x 4 ) 1 + \sin\dfrac{x}{2} = 2\cos^2\left(\dfrac{\pi}{4} - \dfrac{x}{4}\right) 1 + sin 2 x = 2 cos 2 ( 4 π − 4 x )
Step 15 — Part (vii): take the square root carefully.
For 0 ≤ x ≤ 2 π 0 \le x \le 2\pi 0 ≤ x ≤ 2 π the angle π 4 − x 4 \dfrac{\pi}{4} - \dfrac{x}{4} 4 π − 4 x lies between − π 4 -\dfrac{\pi}{4} − 4 π and π 4 \dfrac{\pi}{4} 4 π , where the cosine is positive. So the modulus can be dropped.
1 + sin x 2 = 2 cos ( π 4 − x 4 ) \sqrt{1 + \sin\dfrac{x}{2}} = \sqrt{2}\cos\left(\dfrac{\pi}{4} - \dfrac{x}{4}\right) 1 + sin 2 x = 2 cos ( 4 π − 4 x )
Step 16 — Part (vii): integrate and put in the limits.
An antiderivative of cos ( π 4 − x 4 ) \cos\left(\dfrac{\pi}{4} - \dfrac{x}{4}\right) cos ( 4 π − 4 x ) is − 4 sin ( π 4 − x 4 ) -4\sin\left(\dfrac{\pi}{4} - \dfrac{x}{4}\right) − 4 sin ( 4 π − 4 x ) , since the inner derivative is − 1 4 -\dfrac{1}{4} − 4 1 . At x = 2 π x = 2\pi x = 2 π the angle is − π 4 -\dfrac{\pi}{4} − 4 π ; at x = 0 x = 0 x = 0 it is π 4 \dfrac{\pi}{4} 4 π .
∫ 0 2 π 2 cos ( π 4 − x 4 ) d x = − 4 2 [ sin ( π 4 − x 4 ) ] 0 2 π = − 4 2 [ sin ( − π 4 ) − sin π 4 ] = − 4 2 ( − 2 ) = 8 \begin{aligned}
\int_0^{2\pi} \sqrt{2}\cos\left(\dfrac{\pi}{4} - \dfrac{x}{4}\right)dx &= -4\sqrt{2}\left[\sin\left(\dfrac{\pi}{4} - \dfrac{x}{4}\right)\right]_0^{2\pi} \\
&= -4\sqrt{2}\left[\sin\left(-\dfrac{\pi}{4}\right) - \sin\dfrac{\pi}{4}\right] \\
&= -4\sqrt{2}\left(-\sqrt{2}\right) \\
&= 8
\end{aligned} ∫ 0 2 π 2 cos ( 4 π − 4 x ) d x = − 4 2 [ sin ( 4 π − 4 x ) ] 0 2 π = − 4 2 [ sin ( − 4 π ) − sin 4 π ] = − 4 2 ( − 2 ) = 8
Therefore, (i) π 8 − 1 12 \dfrac{\pi}{8} - \dfrac{1}{12} 8 π − 12 1 ; (ii) 1 − π 4 1 - \dfrac{\pi}{4} 1 − 4 π ; (iii) − 2 3 -\dfrac{2}{\sqrt{3}} − 3 2 ; (iv) 2 2 2 ; (v) 3 5 2 \dfrac{3}{5\sqrt{2}} 5 2 3 ; (vi) 2 − 1 \sqrt{2} - 1 2 − 1 ; (vii) 8 8 8 .