Solution:
Key idea: For parts (i)–(iv) we replace x by π−x, using ∫0af(x)dx=∫0af(a−x)dx with a=π.
Since sin(π−x)=sinx, an integral I=∫0πxg(x)dx whose g is unchanged by this swap becomes ∫0π(π−x)g(x)dx.
Adding the two forms removes the factor x, so I=2π∫0πg(x)dx.
Step 1 — A useful integral: ∫0π1+sinxdx.
We check by differentiation that −1+sinxcosx is an antiderivative of 1+sinx1, using sin2x+cos2x=1.
dxd(−1+sinxcosx)=(1+sinx)2sinx(1+sinx)+cos2x=(1+sinx)21+sinx=1+sinx1
Step 2 — Evaluate the useful integral.
At x=π the antiderivative is −1−1, and at x=0 it is −11.
∫0π1+sinxdx=[−1+sinxcosx]0π=1−(−1)=2
Step 3 — Part (i): apply the property.
Let I=∫0π1+sinxxdx. Replacing x by π−x leaves sinx unchanged.
I=∫0π1+sinxπ−xdx=π∫0π1+sinxdx−I
Step 4 — Part (i): solve for I.
We move I to the left and use Step 2.
2I=π⋅2
I=π
Step 5 — Part (ii): apply the property.
In the same way, replacing x by π−x in ∫0π1+sinxxsinxdx and adding gives the following.
I=2π∫0π1+sinxsinxdx
Step 6 — Part (ii): split the fraction and integrate.
We write 1+sinxsinx=1−1+sinx1 and use Step 2.
I=2π[∫0π1dx−∫0π1+sinxdx]=2π(π−2)
Step 7 — Part (iii): simplify the integrand.
We write tanx=cosxsinx, secx=cosx1 and cosecx=sinx1.
secxcosecxtanx=cosxsinx⋅cosxsinx=sin2x
The printed integrand is not defined at x=0, 2π and π (where cosecx or secx is undefined), but it equals xsin2x everywhere else. Changing an integrand at a few single points does not change a definite integral, so we integrate xsin2x.
Step 8 — Part (iii): apply the property.
Since sin2(π−x)=sin2x, the property gives the following.
I=2π∫0πsin2xdx
Step 9 — Part (iii): integrate.
We use sin2x=21−cos2x, whose antiderivative is 2x−4sin2x. The sine term is 0 at both limits.
I=2π[2x−4sin2x]0π=2π⋅2π=4π2
Step 10 — Part (iv): apply the property.
The factor sinx is unchanged by the swap, and cos4(π−x) equals (−cosx)4. Because the power is even, this is again cos4x. So the integrand sinxcos4x is unchanged, so the property gives the following.
I=2π∫0πsinxcos4xdx
Step 11 — Part (iv): integrate.
Since the derivative of cosx is −sinx, an antiderivative of sinxcos4x is −5cos5x. At x=π this is 51, and at x=0 it is −51.
I=2π[−5cos5x]0π=2π(51+51)=5π
Step 12 — Part (v): two helper integrals.
Let I1=∫0π/2sinx+cosxsinxdx and I2=∫0π/2sinx+cosxcosxdx. Replacing x by 2π−x swaps sinx and cosx, so it turns I1 into I2; hence I1=I2. Also their integrands add up to 1.
I1+I2=2π
So each of I1 and I2 equals 4π.
Step 13 — Part (v): combine.
The given integral is 5I1+3I2.
∫0π/2sinx+cosx5sinx+3cosxdx=5⋅4π+3⋅4π=2π
Therefore, (i) π; (ii) 2π(π−2); (iii) 4π2; (iv) 5π; (v) 2π.