Solution:
Key idea: If F ′ ( x ) = f ( x ) F'(x) = f(x) F ′ ( x ) = f ( x ) on [ a , b ] [a, b] [ a , b ] , 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 ) . So for each part we first find an antiderivative F F F , then subtract its value at the lower limit from its value at the upper limit. Here log \log log means the natural logarithm.
Step 1 — Part (i): find an antiderivative of cot x \cot x cot x .
We know that ∫ cot x d x = log ∣ sin x ∣ \displaystyle\int \cot x\,dx = \log|\sin x| ∫ cot x d x = log ∣ sin x ∣ . On [ π 4 , π 2 ] \left[\dfrac{\pi}{4}, \dfrac{\pi}{2}\right] [ 4 π , 2 π ] we have sin x > 0 \sin x > 0 sin x > 0 , so the modulus can be dropped.
∫ π / 4 π / 2 cot x d x = [ log sin x ] π / 4 π / 2 \int_{\pi/4}^{\pi/2} \cot x\,dx = \Big[\log \sin x\Big]_{\pi/4}^{\pi/2} ∫ π /4 π /2 cot x d x = [ log sin x ] π /4 π /2
Step 2 — Part (i): put in the limits.
We use sin π 2 = 1 \sin\dfrac{\pi}{2} = 1 sin 2 π = 1 and sin π 4 = 1 2 \sin\dfrac{\pi}{4} = \dfrac{1}{\sqrt{2}} sin 4 π = 2 1 .
[ log sin x ] π / 4 π / 2 = log 1 − log 1 2 = 0 + log 2 = 1 2 log 2 \begin{aligned}
\Big[\log \sin x\Big]_{\pi/4}^{\pi/2} &= \log 1 - \log\dfrac{1}{\sqrt{2}} \\
&= 0 + \log\sqrt{2} \\
&= \dfrac{1}{2}\log 2
\end{aligned} [ log sin x ] π /4 π /2 = log 1 − log 2 1 = 0 + log 2 = 2 1 log 2
Step 3 — Part (ii): rewrite the integrand.
We write 1 sin 2 x \dfrac{1}{\sin 2x} sin 2 x 1 as cosec 2 x \operatorname{cosec} 2x cosec 2 x .
The standard result is ∫ cosec u d u = log ∣ tan u 2 ∣ \displaystyle\int \operatorname{cosec} u\,du = \log\left|\tan\dfrac{u}{2}\right| ∫ cosec u d u = log tan 2 u .
Putting u = 2 x u = 2x u = 2 x , so that d x = d u 2 dx = \dfrac{du}{2} d x = 2 d u , gives the antiderivative below.
On [ π 6 , π 3 ] \left[\dfrac{\pi}{6}, \dfrac{\pi}{3}\right] [ 6 π , 3 π ] , sin 2 x > 0 \sin 2x > 0 sin 2 x > 0 and tan x > 0 \tan x > 0 tan x > 0 , so no modulus is needed.
∫ cosec 2 x d x = 1 2 log tan x \int \operatorname{cosec} 2x\,dx = \dfrac{1}{2}\log \tan x ∫ cosec 2 x d x = 2 1 log tan x
Step 4 — Part (ii): put in the limits.
We use tan π 3 = 3 \tan\dfrac{\pi}{3} = \sqrt{3} tan 3 π = 3 and tan π 6 = 1 3 \tan\dfrac{\pi}{6} = \dfrac{1}{\sqrt{3}} tan 6 π = 3 1 .
∫ π / 6 π / 3 d x sin 2 x = 1 2 ( log 3 − log 1 3 ) = 1 2 log 3 = log 3 \begin{aligned}
\int_{\pi/6}^{\pi/3} \dfrac{dx}{\sin 2x} &= \dfrac{1}{2}\left(\log\sqrt{3} - \log\dfrac{1}{\sqrt{3}}\right) \\
&= \dfrac{1}{2}\log 3 \\
&= \log\sqrt{3}
\end{aligned} ∫ π /6 π /3 sin 2 x d x = 2 1 ( log 3 − log 3 1 ) = 2 1 log 3 = log 3
Step 5 — Part (iii): integrate term by term.
Each term has a standard antiderivative: ∫ sec 2 x d x = tan x \displaystyle\int \sec^2 x\,dx = \tan x ∫ sec 2 x d x = tan x , ∫ x 3 d x = x 4 4 \displaystyle\int x^3\,dx = \dfrac{x^4}{4} ∫ x 3 d x = 4 x 4 and ∫ 2 d x = 2 x \displaystyle\int 2\,dx = 2x ∫ 2 d x = 2 x .
∫ 0 π / 4 ( 2 sec 2 x + x 3 + 2 ) d x = [ 2 tan x + x 4 4 + 2 x ] 0 π / 4 \int_0^{\pi/4} \left(2\sec^2 x + x^3 + 2\right)dx = \left[2\tan x + \dfrac{x^4}{4} + 2x\right]_0^{\pi/4} ∫ 0 π /4 ( 2 sec 2 x + x 3 + 2 ) d x = [ 2 tan x + 4 x 4 + 2 x ] 0 π /4
Step 6 — Part (iii): put in the limits.
At x = π 4 x = \dfrac{\pi}{4} x = 4 π , tan x = 1 \tan x = 1 tan x = 1 and x 4 = π 4 256 x^4 = \dfrac{\pi^4}{256} x 4 = 256 π 4 ; at x = 0 x = 0 x = 0 every term is 0 0 0 .
[ 2 tan x + x 4 4 + 2 x ] 0 π / 4 = 2 ( 1 ) + 1 4 ⋅ π 4 256 + 2 ⋅ π 4 − 0 = 2 + π 4 1024 + π 2 \begin{aligned}
\left[2\tan x + \dfrac{x^4}{4} + 2x\right]_0^{\pi/4} &= 2(1) + \dfrac{1}{4}\cdot\dfrac{\pi^4}{256} + 2\cdot\dfrac{\pi}{4} - 0 \\
&= 2 + \dfrac{\pi^4}{1024} + \dfrac{\pi}{2}
\end{aligned} [ 2 tan x + 4 x 4 + 2 x ] 0 π /4 = 2 ( 1 ) + 4 1 ⋅ 256 π 4 + 2 ⋅ 4 π − 0 = 2 + 1024 π 4 + 2 π
Step 7 — Part (iv): simplify the integrand.
We use the double-angle formula cos 2 x 2 − sin 2 x 2 = cos x \cos^2\dfrac{x}{2} - \sin^2\dfrac{x}{2} = \cos x cos 2 2 x − sin 2 2 x = cos x . The integrand is the negative of this.
sin 2 x 2 − cos 2 x 2 = − cos x \sin^2\dfrac{x}{2} - \cos^2\dfrac{x}{2} = -\cos x sin 2 2 x − cos 2 2 x = − cos x
Step 8 — Part (iv): integrate and put in the limits.
An antiderivative of − cos x -\cos x − cos x is − sin x -\sin x − sin x , and sin x \sin x sin x is 0 0 0 at both x = 0 x = 0 x = 0 and x = π x = \pi x = π .
∫ 0 π ( − cos x ) d x = [ − sin x ] 0 π = − sin π + sin 0 = 0 \begin{aligned}
\int_0^{\pi} (-\cos x)\,dx &= \Big[-\sin x\Big]_0^{\pi} \\
&= -\sin\pi + \sin 0 \\
&= 0
\end{aligned} ∫ 0 π ( − cos x ) d x = [ − sin x ] 0 π = − sin π + sin 0 = 0
Therefore, (i) 1 2 log 2 \dfrac{1}{2}\log 2 2 1 log 2 ; (ii) log 3 \log\sqrt{3} log 3 ; (iii) 2 + π 2 + π 4 1024 2 + \dfrac{\pi}{2} + \dfrac{\pi^4}{1024} 2 + 2 π + 1024 π 4 ; (iv) 0 0 0 .