Question
Question: Evaluate the following expression \(\int\limits_{0}^{\pi }{\dfrac{x\sin \left( x \right)}{1+{{\cos }...
Evaluate the following expression 0∫π1+cos2(x)xsin(x)dx.
Solution
We will us the fact that the a∫bf(x)dx=a∫bf(b+a−x)dx in this problem. We use this because sin(x) is an odd function and cos2(x) is an even function.
Complete step-by-step solution
Let I=0∫π1+cos2(x)xsin(x)dx. Using the fact that a∫bf(x)dx=a∫bf(b+a−x)dx, we can rewrite the integral I as,
I=0∫π1+cos2(π−x)(π−x)(sin(π−x))dx
Observe that sin(π−x)=sin(x) and cos2(π−x)=(−cos(x))2=cos2(x).
Thus, on substituting this value in the integral, we get that,
I=0∫π1+cos2(x)(π−x)sin(x)dx
Separating the terms, we get that the value of the integral is,
I=π0∫π1+cos2(x)sin(x)dx−0∫π1+cos2(x)xsin(x)dx
But the second term in the right hand side is the required integral I. So on sending it to the left - hand side, we will get that,
2I=π0∫π1+cos2(x)sin(x)dx
Dividing both the sides by 2, we will get,
I=2π0∫π1+cos2(x)sin(x)dx
Hence now we just need to evaluate,
I1=0∫π1+cos2(x)sin(x)dx
We will solve this integral using substitution.
Let u=cos(x). Differentiating both sides, we get that,
−sin(x)dx=du⇒sin(x)dx=−du
The new limits of the integration will be from cos(0) to cos(π) which gives the limits of the integration as 1 and −1.Thus we get that,
I1=1∫−11+u2−du
Changing the limits of the integral, we get that,
I1=−1∫11+u2du
This is a standard integral and we know that,
∫1+x2dx=tan−1(x)
Using this, we get that,
I1=[tan−1(u)]−11=2π
The required value of the integral I was 2πI1. Hence, on substituting the value of I1, we get that,
I=0∫π1+cos2(x)xsin(x)dx=4π2
Note: In this problem it is important to observe that x sin(x) is an odd function and cos2x is an even function. This is important because once you use this fact, you can break down the given integral into a simpler integral which is much easier to solve. Also while solving the definite integrals, it is important to make sure that you change the values of the limits of the integral otherwise, you might get the value of the integral wrong. Students sometimes miss out on the negative sign that one gets while substituting u = cos(x) and also the one you get while interchanging the limits 1 and -1 of the integral, I1.