To evaluate the definite integral:
I=∫0πln(1+cosx)dx— (1)
Step 1: Apply the Definite Integral Property
Using the property ∫0af(x)dx=∫0af(a−x)dx:
I=∫0πln(1+cos(π−x))dx
Since cos(π−x)=−cosx:
I=∫0πln(1−cosx)dx— (2)
Step 2: Add Equations (1) and (2)
2I=∫0πln(1+cosx)dx+∫0πln(1−cosx)dx
Using the log addition property lna+lnb=ln(ab):
2I=∫0πln((1+cosx)(1−cosx))dx
2I=∫0πln(1−cos2x)dx
Since 1−cos2x=sin2x:
2I=∫0πln(sin2x)dx=2∫0πln(sinx)dx
Dividing both sides by 2:
I=∫0πln(sinx)dx
Step 3: Apply Symmetry
Using the property ∫02af(x)dx=2∫0af(x)dx when f(2a−x)=f(x):
Since sin(π−x)=sinx:
I=2∫02πln(sinx)dx
Step 4: Final Substitution
Using the standard definite integral result:
∫02πln(sinx)dx=−2πln2
Substitute this back into I:
I=2(−2πln2)=−πln2
Final Answer
∫0πln(1+cosx)dx=−πln2