Problem 79
Easy Rational and Quadratic

Evaluate the integral: I = integral (e^x+1)/(e^x+x) dx

Evaluate the integral: $$ I = \int \frac{e^x+1}{e^x+x} \, dx. $$

Explanation of Method

Even though the denominator mixes an exponential and a polynomial term, its derivative $\tfrac{d}{dx}(e^x+x)=e^x+1$ matches the numerator exactly — so the same logarithmic substitution technique applies regardless of how unusual the expression looks.

  1. Substitute $u$ for the denominator.
  2. Recognize that $du$ exactly matches the numerator.
  3. Integrate using the standard logarithmic antiderivative.
  4. Substitute back and add the constant of integration.

Step 1 · Substitution

We use the substitution $u = e^x + x$, so that:

$$ du = (e^x+1)\,dx. $$

Step 2 · Rewrite and integrate

Rewriting the integral in terms of $u$, we get:

$$ I = \int \frac{du}{u}. $$

This is a standard integral:

$$ \int \frac{du}{u} = \ln|u| + C. $$

Step 3 · Substitute back

Substituting back $u = e^x+x$, we obtain:

$$ I = \ln\left|e^x+x\right| + C. $$


Summary Table

Quantity Value
Substitution$u = e^x+x$
$du$$(e^x+1)\,dx$ — matches the numerator exactly
Antiderivative$\ln|u|$

Additional Notes

Result

The solution to the integral is:

$$ I = \ln\left|e^x+x\right| + C. $$