Question
Question: The value of \(\int_0^\pi {\log \left( {1 + \cos x} \right)dx} \) is A. \( - \dfrac{\pi }{2}\log 2...
The value of ∫0πlog(1+cosx)dx is
A. −2πlog2
B. πlog21
C. −πlog2
D. 2πlog2
Solution
Hint: We have to solve this question step by step by assuming the integration values as variables. By simple integration method by using the properties of integration and logarithms. Then, we also use a bit of derivation and eventually substitute all the real values in the assumed variables to get the answer by putting the limits in our calculated result.
Complete step-by-step answer:
Let us assume I=∫0πlog(1+cosx)dx…… (1)
Now, using identity ∫0af(x)dx=∫0af(a−x)dx , it can be rewritten as
I=∫0πlog(1+cos(π−x))dx
Now, as we know cos(π−x)=−cosx
I=∫0πlog(1−cosx)dx…… (2)
Now, adding (1) and (2) we get
Here, we use the multiplication property of log i.e. log(a)+log(b) = log(a.b)
2I=∫0πlog[(1+cosx)(1−cosx)]dx 2I=∫0πlog[(1−cos2x)]dx
Now, we know that 1−cos2x=sin2x
So, 2I=∫0πlog(sin2x)dx
Now, we use another property of log i.e. logab=bloga
2I=∫0π2log(sinx)dx 2I=2∫0πlog(sinx)dx I=∫0πlog(sinx)dx
To solve this, we need to use another property of integration which is
∫02af(x)dx=2∫0af(x)dx if f(2a−x)=f(x)
Here, f(x)=logsinx
f(π−x)=log[sin(π−x)]dx=log(sinx)dx=f(x) ∴I=∫0πlog(sinx)dx=2∫02πlog(sinx)dx
Now, again assuming J=∫02πlog(sinx)dx ……(3)
For solving J we use the property −∫0af(x)dx=∫0af(a−x)dx
∴J=∫02πlog[sin(2π−x)]dx
J=∫02πlog(cosx)dx …. (4)
Adding (3) and (4)
2J=∫02πlog(sinx)dx+∫02πlog(cosx)dx
Again by using the multiplication property of log
2J=∫02πlog(sinx.cosx)dx
Now, divide and multiply by 2
2J=∫02πlog(22sinx.cosx)dx
Now, using the division property of log i.e. log(ba)=log(a)−log(b)
2J=∫02π[log(sin2x)−log2]dx
2J=∫02πlog(sin2x)dx−∫02πlog(2)dx …. (5)
Now, assuming K=∫02πlog(sin2x)dx
Let 2x =t
Differentiating on both sides
2=dxdt dx=2dt
Now, finding the limits
If x = 0, then value of t = 2(0) = 0
If x = 2π, then value of t = 2(2π) = π
∴ Putting the values of t and dt and changing the limits,
K=∫02πlog(sin2x)dx K=∫0πlog(sint)2dt K=21∫0πlog(sint)dt
Again using this property,
∫02af(x)dx=2∫0af(x)dx if f(2a−x)=f(x)
f(t)=logsint f(2a−t)=f(2π−t)=logsint
∴K=21∫0πlogsintdt=21×2∫02πlogsintdt=∫02πlogsintdt
Now, using the property
∫abf(x)dx=∫abf(t)dt
K=∫02πlogsinxdx
Substituting value of K in (5)
2J=∫02πlog(sinx)dx−∫02πlog(2)dx
Now, by using (3) we get
2J=J−log(2)∫02π1.dx 2J−J=−log(2)[x]02π J=−log2[2π−0] J=−log2[2π] J=−2πlog2
Hence, I=2J=2×−2πlog2=−πlog2
Correct option is C.
Note: This is a very important question if you want to learn integration. Solving integration by using its properties is done in the question three times. Always remember the properties of integration and solve the question very carefully as every step can be very confusing. Thus, a simple mistake will lead to a lot of ambiguities. Therefore, this is the only way to reach for the answer.