Solution:
Let
I=∫0πlog(1+cosx)dx⋯(1)
Using property P4, and cos(π−x)=−cosx,
I=∫0πlog(1−cosx)dx⋯(2)
Adding (1) and (2),
2I=∫0πlog(1−cos2x)dx=∫0πlogsin2xdx=2∫0πlogsinxdx
So,
I=∫0πlogsinxdx
Since sin(π−x)=sinx, property P6 gives
I=2∫02πlogsinxdx=2J,where J=∫02πlogsinxdx
To find J: by property P4, J=∫02πlogcosxdx. Adding the two forms,
2J=∫02πlog(sinxcosx)dx=∫02πlogsin2xdx−2πlog2
Put 2x=t, so dx=2dt; the limits become 0 and π:
∫02πlogsin2xdx=21∫0πlogsintdt=21⋅2J=J
So,
2J=J−2πlog2⇒J=−2πlog2
Therefore,
∫0πlog(1+cosx)dx=2J=−πlog2
Hence, the value of the integral is −πlog2.