We use integration by parts.
The formula for integration by parts is
∫udv=uv−∫vdu.
Step 1: Choose u and dv
Let
u=log(sinx)
and
dv=cos2xdx.
Then,
du=sinxcosxdx=cotxdx
and
v=∫cos2xdx=21sin2x.
Step 2: Apply integration by parts
Using
∫udv=uv−∫vdu,
we get
I=[21sin2xlog(sinx)]0π/2−21∫0π/2sin2xcotxdx.
Step 3: Evaluate the first term
At x=2π,
sin2x=sinπ=0.
At x=0,
sin2x=sin0=0.
Although log(sinx) tends to −∞ as x→0+, the product
sin2xlog(sinx)→0.
Therefore,
[21sin2xlog(sinx)]0π/2=0.
Hence,
I=−21∫0π/2sin2xcotxdx.
Step 4: Simplify the integral
We know that
sin2x=2sinxcosx
and
cotx=sinxcosx.
Therefore,
sin2xcotx=(2sinxcosx)(sinxcosx)
=2cos2x.
Thus,
I=−21∫0π/22cos2xdx
I=−∫0π/2cos2xdx.
Step 5: Use the trigonometric identity
Using
cos2x=21+cos2x,
we get
I=−21∫0π/2(1+cos2x)dx.
Integrating,
I=−21[x+2sin2x]0π/2.
Step 6: Apply the limits
I=−21[2π+2sinπ−(0+2sin0)].
Since
sinπ=0,sin0=0,
we get
I=−21(2π).
Therefore,
I=−4π.
Final Answer
∫0π/2cos2xlog(sinx)dx=−4π