Explanation
I=∫x(1+xex)2x+1dx
Put 1+xex=t⇒xex=t−1⇒(xex+ex)dx=dt
⇒ex(x+1)dx=dt
∴I=∫ex.xt2dt=∫(t−1)t2dt
Let t2(t−1)1=(t−1)A+t2Bt+C
⇒1=At2+(Bt+C)(t−1)
Comparing coefficients of t2,t and constant terms,
we get
A+ B= 0, C- B= 0, - C= 1
On solving above equations, we get
C=−1,=Bˉ,A=1
∴I=∫t−11dt+∫t2−t−1dt
=∫t−11dt−∫t1dt−∫t21dt
=log∣t−1∣−log∣t∣+t1+C
⇒I=log∣xex∣−log∣1+xex∣+1+rex1+c
\begin{aligned}
& =\log\left|\frac{xe^{x}}{1+xe^{x}}\right|+\frac{1}{1+xe^{x}}+\mathrm{C} \\
& \mathrm{Now},\lim_{x\to\infty}\mathrm{I}(x)=0 \\
& \Rightarrow\lim_{x\to\infty}\left\{\log\left|\frac{xe^{x}}{1+xe^{x}}\right|+\frac{1}{1+xe^{x}}+\mathrm{C}\right\}=0 \\
& \Rightarrow\lim_{x\to\infty}\left\{\log\left(\frac{e^x}{\frac{1}{x}+e^x}\right)+\frac{\frac{1}{x}}{\frac{1}{x}+e^x}+\mathbf{C}\right\} \\
& \Rightarrow0+0+C=0\Rightarrow C=0 \\
& \therefore\mathrm{I}(x)=\log\left|\frac{xe^{x}}{1+xe^{x}}\right|+\frac{1}{1+xe^{x}} \\
& \Rightarrow\mathrm{I}(1)=\log\left|\frac{e}{1+e}\right|+\frac{1}{1+e}=1-\log(1+e)+\frac{1}{1+e} \\
& =\frac{2+e}{1+e}-\log|1+e|
\end{aligned}