Solution:
Key idea: For integrands of the form 1 a + b cos ϕ \dfrac{1}{a + b\cos\phi} a + b cos ϕ 1 we use the substitution t = tan ϕ 2 t = \tan\dfrac{\phi}{2} t = tan 2 ϕ , and the limits must be changed to values of t t t . It gives cos ϕ = 1 − t 2 1 + t 2 \cos\phi = \dfrac{1-t^2}{1+t^2} cos ϕ = 1 + t 2 1 − t 2 and d ϕ = 2 d t 1 + t 2 d\phi = \dfrac{2\,dt}{1+t^2} d ϕ = 1 + t 2 2 d t .
For powers of tan x \tan x tan x we split off tan 2 x = sec 2 x − 1 \tan^2 x = \sec^2 x - 1 tan 2 x = sec 2 x − 1 .
Step 1 — Part (i): make the substitution.
We put t = tan ϕ 2 t = \tan\dfrac{\phi}{2} t = tan 2 ϕ .
When ϕ = 0 \phi = 0 ϕ = 0 , t = 0 t = 0 t = 0 .
As ϕ \phi ϕ increases to π \pi π , ϕ 2 \dfrac{\phi}{2} 2 ϕ increases to π 2 \dfrac{\pi}{2} 2 π , so t t t increases without bound (t → ∞ t \to \infty t → ∞ ).
d ϕ = 2 d t 1 + t 2 d\phi = \dfrac{2\,dt}{1+t^2} d ϕ = 1 + t 2 2 d t
Step 2 — Part (i): rewrite the denominator in t t t .
We replace cos ϕ \cos\phi cos ϕ by 1 − t 2 1 + t 2 \dfrac{1-t^2}{1+t^2} 1 + t 2 1 − t 2 and add over the common denominator.
5 + 3 cos ϕ = 5 ( 1 + t 2 ) + 3 ( 1 − t 2 ) 1 + t 2 = 8 + 2 t 2 1 + t 2 \begin{aligned}
5 + 3\cos\phi &= \dfrac{5(1+t^2) + 3(1-t^2)}{1+t^2} \\
&= \dfrac{8 + 2t^2}{1+t^2}
\end{aligned} 5 + 3 cos ϕ = 1 + t 2 5 ( 1 + t 2 ) + 3 ( 1 − t 2 ) = 1 + t 2 8 + 2 t 2
Step 3 — Part (i): simplify the new integral.
The factor 1 + t 2 1 + t^2 1 + t 2 cancels, and we take out the factor 2 from 8 + 2 t 2 8 + 2t^2 8 + 2 t 2 .
∫ 0 π d ϕ 5 + 3 cos ϕ = ∫ 0 ∞ 1 + t 2 8 + 2 t 2 ⋅ 2 d t 1 + t 2 = ∫ 0 ∞ d t t 2 + 4 \begin{aligned}
\int_0^{\pi} \dfrac{d\phi}{5+3\cos\phi} &= \int_0^{\infty} \dfrac{1+t^2}{8+2t^2}\cdot\dfrac{2\,dt}{1+t^2} \\
&= \int_0^{\infty} \dfrac{dt}{t^2+4}
\end{aligned} ∫ 0 π 5 + 3 cos ϕ d ϕ = ∫ 0 ∞ 8 + 2 t 2 1 + t 2 ⋅ 1 + t 2 2 d t = ∫ 0 ∞ t 2 + 4 d t
Step 4 — Part (i): integrate.
We use ∫ d t t 2 + a 2 = 1 a tan − 1 t a \displaystyle\int \dfrac{dt}{t^2+a^2} = \dfrac{1}{a}\tan^{-1}\dfrac{t}{a} ∫ t 2 + a 2 d t = a 1 tan − 1 a t , taking a a a as 2 2 2 . As t → ∞ t \to \infty t → ∞ , tan − 1 t 2 → π 2 \tan^{-1}\dfrac{t}{2} \to \dfrac{\pi}{2} tan − 1 2 t → 2 π .
∫ 0 ∞ d t t 2 + 4 = 1 2 [ tan − 1 t 2 ] 0 ∞ = 1 2 ( π 2 − 0 ) = π 4 \begin{aligned}
\int_0^{\infty} \dfrac{dt}{t^2+4} &= \dfrac{1}{2}\left[\tan^{-1}\dfrac{t}{2}\right]_0^{\infty} \\
&= \dfrac{1}{2}\left(\dfrac{\pi}{2} - 0\right) \\
&= \dfrac{\pi}{4}
\end{aligned} ∫ 0 ∞ t 2 + 4 d t = 2 1 [ tan − 1 2 t ] 0 ∞ = 2 1 ( 2 π − 0 ) = 4 π
This is the value stated in part (i).
Step 5 — Part (ii): split tan 3 x \tan^3 x tan 3 x .
We write tan 3 x = tan x tan 2 x \tan^3 x = \tan x\tan^2 x tan 3 x = tan x tan 2 x and use tan 2 x = sec 2 x − 1 \tan^2 x = \sec^2 x - 1 tan 2 x = sec 2 x − 1 .
tan 3 x = tan x sec 2 x − tan x \tan^3 x = \tan x\sec^2 x - \tan x tan 3 x = tan x sec 2 x − tan x
So the integral splits into two parts.
∫ 0 π / 4 2 tan 3 x d x = 2 ∫ 0 π / 4 tan x sec 2 x d x − 2 ∫ 0 π / 4 tan x d x \int_0^{\pi/4} 2\tan^3 x\,dx = 2\int_0^{\pi/4} \tan x\sec^2 x\,dx - 2\int_0^{\pi/4} \tan x\,dx ∫ 0 π /4 2 tan 3 x d x = 2 ∫ 0 π /4 tan x sec 2 x d x − 2 ∫ 0 π /4 tan x d x
Step 6 — Part (ii): the first integral.
We put u = tan x u = \tan x u = tan x , so d u = sec 2 x d x du = \sec^2 x\,dx d u = sec 2 x d x . When x = 0 x = 0 x = 0 , u = 0 u = 0 u = 0 ; when x = π 4 x = \dfrac{\pi}{4} x = 4 π , u = 1 u = 1 u = 1 .
∫ 0 π / 4 tan x sec 2 x d x = ∫ 0 1 u d u = [ u 2 2 ] 0 1 = 1 2 \begin{aligned}
\int_0^{\pi/4} \tan x\sec^2 x\,dx &= \int_0^1 u\,du \\
&= \left[\dfrac{u^2}{2}\right]_0^1 \\
&= \dfrac{1}{2}
\end{aligned} ∫ 0 π /4 tan x sec 2 x d x = ∫ 0 1 u d u = [ 2 u 2 ] 0 1 = 2 1
Step 7 — Part (ii): the second integral.
We use ∫ tan x d x = log ∣ sec x ∣ \displaystyle\int \tan x\,dx = \log|\sec x| ∫ tan x d x = log ∣ sec x ∣ , and sec x > 0 \sec x > 0 sec x > 0 on [ 0 , π 4 ] \left[0, \dfrac{\pi}{4}\right] [ 0 , 4 π ] . Also sec π 4 = 2 \sec\dfrac{\pi}{4} = \sqrt{2} sec 4 π = 2 and sec 0 = 1 \sec 0 = 1 sec 0 = 1 .
∫ 0 π / 4 tan x d x = [ log sec x ] 0 π / 4 = log 2 − log 1 = 1 2 log 2 \begin{aligned}
\int_0^{\pi/4} \tan x\,dx &= \Big[\log\sec x\Big]_0^{\pi/4} \\
&= \log\sqrt{2} - \log 1 \\
&= \dfrac{1}{2}\log 2
\end{aligned} ∫ 0 π /4 tan x d x = [ log sec x ] 0 π /4 = log 2 − log 1 = 2 1 log 2
Step 8 — Part (ii): combine the two parts.
We put the two values back into the split from Step 5.
∫ 0 π / 4 2 tan 3 x d x = 2 ⋅ 1 2 − 2 ⋅ 1 2 log 2 = 1 − log 2 \begin{aligned}
\int_0^{\pi/4} 2\tan^3 x\,dx &= 2\cdot\dfrac{1}{2} - 2\cdot\dfrac{1}{2}\log 2 \\
&= 1 - \log 2
\end{aligned} ∫ 0 π /4 2 tan 3 x d x = 2 ⋅ 2 1 − 2 ⋅ 2 1 log 2 = 1 − log 2
This is the value stated in part (ii).
Therefore, (i) ∫ 0 π d ϕ 5 + 3 cos ϕ = π 4 \displaystyle\int_0^{\pi} \dfrac{d\phi}{5+3\cos\phi} = \dfrac{\pi}{4} ∫ 0 π 5 + 3 cos ϕ d ϕ = 4 π and (ii) ∫ 0 π / 4 2 tan 3 x d x = 1 − log 2 \displaystyle\int_0^{\pi/4} 2\tan^3 x\,dx = 1 - \log 2 ∫ 0 π /4 2 tan 3 x d x = 1 − log 2 , as required.