In my exam today I had the question with the following inequality, that they wanted us to solve with the mean value theorem.
$$1+x \leq e^x$$
Now, I know the mean value theorem is about
$$ f: [a,b] \rightarrow \mathbb{R}, \ continuous \ on \ [a,b] \ and \ differentiable \ on \ (a,b) \rightarrow \exists \ c \in \mathbb{R} \ such \ that \ f'(c) = \frac{f(b)-f(a)}{b-a}$$
But I had absolutely no clue on how to use this theorem. What I did was first subtracting $e^x$ so the inequality is $1+x-e^x \leq 0$. Then my $f(x) = 1+x-e^x$. They gave us a hint that for $ x < 0: \ \ a:= x \ and \ b:=0 $ would be sensible choices, which I also didn't get. If you differentiate my $f(x)$ and set it equal to $\frac{f(b)-f(a)}{b-a}$, you end up with something like $$x*e^x = 1+x-e^x$$ which I can't solve for the sake of my life.. I know that these two functions only intersect for $x=0$ (at least as long as $ x \in \mathbb{R}$, I think there is some Lambert-W function or something that also solves it?), but I have no clue on how to prove it with the mean-value (Lagrange) theorem.