Question:medium

Evaluate the integral: \[ \int \frac{x+1}{x(1+xe^x)^2}\,dx \]

Show Hint

For integrals of the form \[ \int \frac{f'(x)}{(f(x))^2}dx \] use the identity \[ \int \frac{f'(x)}{(f(x))^2}dx = -\frac{1}{f(x)} + C \] Always check if the numerator resembles the derivative of the denominator.
Updated On: Apr 15, 2026
  • \( \dfrac{1}{1+xe^x} + C \)
  • \( -\dfrac{1}{1+xe^x} + C \)
  • \( \ln(1+xe^x) + C \)
  • \( \dfrac{xe^x}{1+xe^x} + C \)
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Question:
The task is to find the indefinite integral of the given function. The function's complexity suggests that a simplification or substitution is needed.
Step 2: Key Formula or Approach:
A common integration strategy is to look for a function and its derivative within the integrand. Let's examine the term \( u = 1 + xe^x \). Its derivative is \( \frac{du}{dx} = \frac{d}{dx}(1+xe^x) = e^x + xe^x = e^x(1+x) \).
The numerator is \( (x+1) \), which is part of the derivative. This strongly suggests a substitution method is appropriate. The given integrand appears to have a typo, as the derivative doesn't exactly match. The intended question was likely \( \int \frac{e^x(x+1)}{(1+xe^x)^2} \,dx \). We will solve this intended version to arrive at the given answer.
Step 3: Detailed Explanation (Solving the intended problem):
Let's assume the integral is \( I = \int \frac{e^x(x+1)}{(1+xe^x)^2} \,dx \).
1. Choose a substitution:
Let \( t = 1 + xe^x \).
2. Differentiate the substitution:
\( \frac{dt}{dx} = e^x(1) + x(e^x) = e^x(1+x) \).
This gives us \( dt = e^x(1+x) \,dx \).
3. Substitute into the integral:
The entire numerator \( e^x(1+x) \,dx \) is replaced by \( dt \), and the denominator \( (1+xe^x)^2 \) is replaced by \( t^2 \).
The integral transforms into:
\[ I = \int \frac{dt}{t^2} = \int t^{-2} \,dt \] 4. Integrate with respect to t:
Using the power rule for integration, \( \int t^n dt = \frac{t^{n+1}}{n+1} \):
\[ I = \frac{t^{-2+1}}{-2+1} + C = \frac{t^{-1}}{-1} + C = -\frac{1}{t} + C \] 5. Substitute back for x:
Replace \( t \) with \( 1 + xe^x \).
\[ I = -\frac{1}{1+xe^x} + C \] Step 4: Final Answer:
The result of the integration is \( -\dfrac{1}{1+xe^x} + C \), which matches option (B).
Was this answer helpful?
0