Prove that the function
$f(x)=(e^x-1)(x^2+3x-2)+x$
has exactly one positive root, exactly one negative root and one root at $x=0$.
My work so far:
$f(0)=0$
Thus, $x=0$ is a root.
For the positive root,
$f(\frac{1}{4})=(e^{\frac{1}{4}}-1)((\frac{1}{4})^2+3(\frac{1}{4})-2)+(\frac{1}{4})
=(e^{\frac{1}{4}}-1)(\frac{1}{16}+\frac{3}{4}-2)+\frac{1}{4}
=-\frac{19}{16}e^{\frac{1}{4}}+\frac{23}{16}
<0$
$f(1)=(e^1-1)((1)^2+3(1)-2)+(1)
=(e^1-1)(1+3-2)+1=2e^1-1
>0$
Thus, there is at least one positive root, by the intermediate value theorem. I have also done the same thing for the negative root, as $f(-4)<0$ and $f(-2)>0$.
But how do I show that there is only one positive root and only one negative root?
Best Answer
(To state my solution more rigorously and clearly, I put my comment into an answer.)
First, it is easy to calculate:
$$ f'(x) = e^x (x^2+5x+1) - 2x -2 \\ f''(x) = (x+1)(x+6)e^x-2 \\ f'''(x)=e^x(x^2+9x+13) $$
Second, we will check how many real roots $f''(x)=0$ has:
Finally, we will utilize Rolle's theorem:
Now, we can see because $f''(x)=0$ has exactly one real root, $f'(x)=0$ will at most have two real roots, and then $f(x)=0$ will at most have three real roots. And you have found the three roots for $f(x)=0$, so there're no more roots.
Note: Be careful of the "at most" statements above. It does NOT mean the equation must have such many roots.