Solution:
Key idea: For a+bcosx1 or a+bsinx1 we put t=tan2x.
Then cosx=1+t21−t2, sinx=1+t22t and dx=1+t22dt.
For x from 0 to 2π, the new variable t runs from 0 to 1.
Step 1 — Part (i): rewrite the denominator in t.
We replace cosx and add over the common denominator 1+t2.
3+2cosx=1+t23(1+t2)+2(1−t2)=1+t25+t2
Step 2 — Part (i): integrate.
The factor 1+t2 cancels with the one in dx.
We use ∫t2+a2dt=a1tan−1at, with a=5.
∫0π/23+2cosxdx=∫01t2+52dt=52[tan−15t]01=52tan−151
Step 3 — Part (ii): rewrite the denominator in t.
We replace sinx by 1+t22t.
7+4sinx=1+t27(1+t2)+8t=1+t27t2+8t+7
Step 4 — Part (ii): complete the square.
The factor 1+t2 cancels again, leaving ∫017t2+8t+72dt. We take out 7 and complete the square; 1−4916 is 4933.
7t2+8t+7=7(t2+78t+1)=7[(t+74)2+4933]
Step 5 — Part (ii): integrate.
We use the tan−1 form with a=733, so a1 is 337 and the argument becomes 337t+4.
∫017t2+8t+72dt=72⋅337[tan−1337t+4]01=332[tan−13311−tan−1334]
Step 6 — Part (iii): substitute t=sin2x.
Then dt=2sinxcosxdx, and by the double-angle formula this is sin2xdx, the numerator.
Also sin4x=t2 and cos4x=(1−t)2.
When x=0, t=0; when x=2π, t=1.
∫0π/2sin4x+cos4xsin2xdx=∫01t2+(1−t)2dt=∫012t2−2t+1dt
Step 7 — Part (iii): complete the square.
We take out 2 and complete the square on t2−t.
2t2−2t+1=2[(t−21)2+(21)2]
Step 8 — Part (iii): integrate.
With a=21, the tan−1 form gives tan−1(2t−1) after simplifying, and the factors 21 and 2 cancel.
21∫01(t−21)2+(21)2dt=[tan−1(2t−1)]01=tan−11−tan−1(−1)=4π+4π=2π
Therefore, (i) 52tan−151; (ii) 332[tan−13311−tan−1334]; (iii) 2π.