Differentiate y = ln(e^-x + xe^-x)

Check the final answer first, then review the worked steps.

Answer

\(\frac{-x}{1+x}\)

Work

y = \ln(e^{-x}) + \ln(1+x) = -x + \ln(1+x) \implies y' = -1 + \frac{1}{1+x} = \frac{-(1+x)+1}{1+x} = \frac{-x}{1+x}

Step-by-step solution

Simplify the argument to $y = \ln(e^{-x}(1+x)) = -x + \ln(1+x)$, then differentiate to get $y' = -1 + \frac{1}{1+x} = \frac{-1-x+1}{1+x} = \frac{-x}{1+x}$.