Key idea: Use the property ∫abf(x)dx=∫abf(a+b−x)dx.
Here the limits add up to π, and sin(π−x)=sinx, so adding the two forms removes the factor x.
Step 1 — Name the integral.
We call the left-hand side I.
I=∫π/43π/41+sinxxdx...(1)
Step 2 — Replace x by π − x.
The limits add up to π, so we replace x by π−x. The denominator stays the same because sin(π−x)=sinx.
I=∫π/43π/41+sinxπ−xdx...(2)
Step 3 — Add (1) and (2).
The numerators add up to x+(π−x)=π, a constant that comes out of the integral.
2I=π∫π/43π/41+sinxdx
Step 4 — Rewrite 1/(1 + sin x).
We multiply the top and bottom by 1−sinx, so the denominator becomes 1−sin2x=cos2x.
1+sinx1=cos2x1−sinx
1+sinx1=sec2x−secxtanx
Step 5 — Integrate.
An antiderivative of sec2x−secxtanx is tanx−secx, but this form is not defined at x=2π, which lies inside the interval. So we write it as one fraction, which is continuous on the whole interval and still has derivative 1+sinx1.
tanx−secx=cosxsinx−1
tanx−secx=−1+sinxcosx
2I=π[−1+sinxcosx]π/43π/4
Step 6 — Put in the limits.
At the two end points cosx=0, so the fraction equals tanx−secx there and we may use the values of tanx and secx. At the upper limit 43π we have tanx=−1 and secx=−2.
tan43π−sec43π=2−1
At the lower limit 4π we have tanx=1 and secx=2.
tan4π−sec4π=1−2
We subtract the lower-limit value from the upper-limit value.
2I=π[(2−1)−(1−2)]
2I=π(22−2)
I=(2−1)π
This is the right-hand side, so the result is proved.
Therefore, ∫π/43π/41+sinxxdx=(2−1)π, as required.