In a math problem I had to find the sign of the following :
$f(x) = -xe^{2x+1} - e^x$
I don't know how to prove it's sign, when it's negative or positive ?
I already know that $e^x > 0$ Same goes for $e^{2x+1}>0$ so it would follow the sign of $-x$ ( for $-xe^{2x+1}$ ) . However I can't find when is $f(x)$ positive or negative . Please help me out on this
Thank's for your time
You can simplify things by observing that your function can be written as $$ f(x)=e^x(-xe^{x+1}-1) $$ and studying the sign of $g(x)=-xe^{x+1}-1$ is just the same, because $e^x>0$.
The derivative is $$ g'(x)=-(e^{x+1}+xe^{x+1})=-e^{x+1}(1+x) $$ which only vanishes at $x=-1$. The derivative is negative for $x>-1$ and positive for $x<-1$, so $-1$ is a point of maximum (absolute, as there are no other critical points).