Question
Question: Integrate \[\int {\dfrac{{\log x}}{{x\left( {1 + \log x} \right)\left( {2 + \log x} \right)}}} dx\]....
Integrate ∫x(1+logx)(2+logx)logxdx.
Solution
To solve this question, we will assume it to be equal to I. Then we will make a substitution in the given question and then change the integrand accordingly. After substitution we will get an integrand that we will solve by partial fraction decomposition method.
Complete step by step answer:
Let,
I=∫x(1+logx)(2+logx)logxdx
Now we can see that there is logx in the numerator and x in the denominator. Also, we know that dxdlogx=x1. So, we will make a substitution for logx.
Let, u=logx
Now we will differentiate both sides. So, we get;
⇒dxdu=dxdlogx
Solving we get;
⇒dxdu=x1
From here we will find dx, and replace dx in the main integration. So, we get;
⇒dx=xdu
Now using these we will write I again. So, we get;
I=∫x(1+u)(2+u)uxdu
Cancelling x from the numerator and denominator we get;
⇒I=∫(1+u)(2+u)udu
Now we will decompose (1+u)(2+u)u into a partial fraction. So, we get;
⇒(1+u)(2+u)u=u+1A+u+2B
Now we will take LCM and solve it further. So, we get;
⇒(1+u)(2+u)u=(1+u)(2+u)A(u+2)+B(u+1)
Now we will cancel the denominators of both sides. So, we get;
⇒u=A(u+2)+B(u+1)
Now we can see from the denominator of the above equation when we find the roots by equating them to zero, we get;
u+2=0
⇒u=−2
Also,
u+1=0
⇒u=−1
Now we will put these values in the above equation one by one to get the value of constant. So, putting u=−2, we have;
⇒−2=A(−2+2)+B(−2+1)
We can see that the first term on the RHS is zero. So, we get;
⇒−2=B(−1)
On solving we get;
⇒B=2
Now we will put u=−1, so, we get;
⇒−1=A(−1+2)+B(−1+1)
Solving we get;
⇒−1=A(1)
Solving we get;
⇒A=−1
So, putting the value of constant we get;
⇒(u+1)(u+2)u=(u+1)−1+(u+2)2
Now we will put this value in the main integration so, we get;
⇒I=∫((u+1)−1+(u+2)2)du
Now we will separate the terms, so, we get;
⇒I=∫(u+1)−1du+∫(u+2)2du
Now we know ∫(u+1)1du=log∣u+1∣, so, we get;
⇒I=−log∣u+1∣+2log∣u+2∣+C
Now we will put the value of u=logx. So, we get;
⇒I=−log∣logx+1∣+2log∣logx+2∣+C
Note: One major mistake that students make is that they forget to put the constant in the final answer. As this is the case of indefinite integral, we will have to put the constant otherwise our answer will be wrong. Also, as this is an indefinite integral so, after substitution there is no problem of changing the limits. But in any definite integral question, after substitution we need to change the limits accordingly.