Step 1: Understanding the Concept
Multiply numerator and denominator by \(e^{x}\) so that the derivative of \(xe^{x}\), namely \((x+1)e^{x}\), appears in the numerator.
Step 2: Substitute
\(I=\int\dfrac{(x+1)e^{x}}{xe^{x}(1+xe^{x})^{2}}dx\).
Put \(t=xe^{x}\), so \(dt=(x+1)e^{x}dx\). Then \(I=\int\dfrac{dt}{t(1+t)^{2}}\).
Step 3: Partial fractions
\(\dfrac{1}{t(1+t)^{2}}=\dfrac{1}{t}-\dfrac{1}{1+t}-\dfrac{1}{(1+t)^{2}}\).
Integrating: \(I=\log t-\log(1+t)+\dfrac{1}{1+t}+C\).
Step 4: Compare the options
Replace \(t=xe^{x}\): \(I=\log\left(\dfrac{xe^{x}}{1+xe^{x}}\right)+\dfrac{1}{1+xe^{x}}+C\), which is option (B).
Final Answer:
The integral equals \(\log\left(\dfrac{xe^{x}}{1+xe^{x}}\right)+\dfrac{1}{1+xe^{x}}+C\).
\[ \boxed{\text{(B) }\log \left(\dfrac{x\mathrm{e}^{x}}{1+x\mathrm{e}^{x}}\right)+\dfrac{1}{1+x\mathrm{e}^{x}}+C} \]