Using the IVT and Rolle's Theorem, prove that the equation $$e^x-x-2=0$$ has exactly one positive real solution. Use the IVT to prove that the equation has at least one positive real solution. Using proof by contradiction and Rolle's Theorem show that the equation has exactly one positiove real solution.
This is what I have so far. Please correct me if i have made a mistake.
Define function $f:[1,6]\rightarrow\mathbb{R}$ by $f(x)=e^x-x-2$. Function $f$ is continuous since $e^x$ and $-x-2$ are continuous functions so by the algebra of continuous functions $f(x)$ is a continuous function.
Notice that $f(1)<0$ and $f(6)>0$. So $f(6)<0<f(1)$. Applying the IVT, we have that there exists $c\in(1,6)$ such that $f(c)=0$ $\iff$ $e^c-c-2=0$. Thus the equation $e^x-x-2=0$ has at least one positive (since our interval is positive only) real solution. How do I prove that there is exactly one by Rolle's?