I used an online derivative calculator to check my answer to this problem, I'm not sure what I did wrong.
To me it seems like $e^{x+1} + 1 = (x+1)e^x$
The online calculator gives $e^{x+1}$ as the derivative. What is the correct answer and why?
Thanks.
The correct answer is:
$$e^{x+1}$$
We use the chain rule which says:
$$(f(g(x))'=f'(g(x))g'(x)$$
If we let, $f(x)=e^{x}$ and $g(x)=x+1$ then we have $f(g(x))=e^{x+1}$. Now using the chain rule and the fact that $\frac{d}{dx}e^x=e^x$ we have:
$$(e^{x+1})'=e^{x+1}(x+1)'$$
But $(x+1)'=1$ so we have:
$$(e^{x+1})'=e^{x+1}$$