Solution:
Key idea: The property ∫0af(x)dx=∫0af(a−x)dx lets us replace x by a−x without changing the value. On [0,2π] this swaps sinx and cosx (and tanx and cotx). On [0,π] it keeps sinx unchanged, because sin(π−x)=sinx. Adding the old and new forms of an integral often gives something easy.
Step 1 — Part (i): apply the property.
Let I=∫0π/2sin2xdx. We replace x by 2π−x and use sin(2π−x)=cosx.
I=∫0π/2sin2(2π−x)dx=∫0π/2cos2xdx
So the two integrals in part (i) are equal.
Step 2 — Part (i): add the two forms.
Adding the two equal forms of I gives the integrand sin2x+cos2x, and this equals 1 for every x.
2I=∫0π/2(sin2x+cos2x)dx=∫0π/21dx=2π
I=4π
Step 3 — Part (ii): apply the property.
Let I=∫0π/21+tanxdx. Replacing x by 2π−x turns tanx into cotx.
I=∫0π/21+cotxdx
So the two integrals in part (ii) are equal.
Step 4 — Part (ii): rewrite the second form.
We multiply the top and bottom of 1+cotx1 by tanx, using tanxcotx=1.
1+cotx1=tanx+1tanx
Step 5 — Part (ii): add the two forms.
The two fractions have the same denominator, and their numerators add up to it.
2I=∫0π/2(1+tanx1+1+tanxtanx)dx=∫0π/21dx=2π
I=4π
Step 6 — Part (iii): apply the property.
Let I be the given integral; we call this form (1). Replacing x by 2π−x swaps sinx and cosx, giving form (2).
I=∫0π/2f(sinx)+f(cosx)f(sinx)dx(1)
I=∫0π/2f(cosx)+f(sinx)f(cosx)dx(2)
Step 7 — Part (iii): add (1) and (2).
The denominators are the same, and the numerators add up to the denominator. We assume f(sinx)+f(cosx)=0 on the interval, so that the integrand is defined.
2I=∫0π/21dx=2π
I=4π
Step 8 — Part (iv): apply the property with a=π.
Let I=∫0πxf(sinx)dx. We replace x by π−x; since sin(π−x)=sinx, the factor f(sinx) does not change.
I=∫0π(π−x)f(sinx)dx=π∫0πf(sinx)dx−I
Step 9 — Part (iv): solve for I.
We move I to the left side and divide by 2.
2I=π∫0πf(sinx)dx
I=2π∫0πf(sinx)dx
Step 10 — Part (v): simplify tanx+cotx.
We write both terms over sinxcosx and use sin2x+cos2x=1 and 2sinxcosx=sin2x.
tanx+cotx=sinxcosxsin2x+cos2x=sinxcosx1=sin2x2
Step 11 — Part (v): split the logarithm.
We use logqp=logp−logq. The integrand becomes unbounded at both ends, but (as the working shows) the integral has a finite value.
I=∫0π/2logsin2x2dx=2πlog2−∫0π/2logsin2xdx
Step 12 — Part (v): the standard result L=∫0π/2logsinxdx.
By the property with a=2π, L also equals ∫0π/2logcosxdx. Adding the two forms and using sinxcosx=2sin2x gives the following.
2L=∫0π/2log(sinxcosx)dx=∫0π/2log2sin2xdx=∫0π/2logsin2xdx−2πlog2
Step 13 — Part (v): show that ∫0π/2logsin2xdx equals L.
We put t=2x, so dx=2dt, and the limits become 0 and π.
We use the property ∫02af(t)dt=2∫0af(t)dt, which holds when f(2a−t)=f(t). Here 2a is π, and the condition holds because sin(π−t)=sint.
∫0π/2logsin2xdx=21∫0πlogsintdt=21⋅2∫0π/2logsintdt=L
Step 14 — Part (v): find L.
We put this into Step 12 and solve.
2L=L−2πlog2
L=−2πlog2
Step 15 — Part (v): finish.
From Step 13, ∫0π/2logsin2xdx equals L. We put this into Step 11.
I=2πlog2−(−2πlog2)=πlog2
Therefore, (i) both integrals equal 4π; (ii) both integrals equal 4π; (iii) the integral equals 4π for any f with f(sinx)+f(cosx)=0; (iv) ∫0πxf(sinx)dx=2π∫0πf(sinx)dx; (v) ∫0π/2log(tanx+cotx)dx=πlog2, as required.