I need to solve the following logarithmic inequality:
Show that $\ln(x)\geq1-\frac{1}{x}$ when $x>0$
My attempt
$$\ln(x)\geq1-\frac{1}{x}$$ $$\ln(x)\geq\ln(e)-\ln(e^{\frac{1}{x}})$$ $$\ln(x)\geq\ln(\frac{e}{e^{\frac{1}{x}}})$$ $$x\geq\frac{e}{e^\frac{1}{x}}$$ $$x{e^\frac{1}{x}}\geq e$$
I think I could do the last inequality by solving for $x$ in $x{e^\frac{1}{x}}=e$ (which gives $1$ according to WolframAlpha) and then checking all three cases. The problem is that I haven't officially learned how to solve exponential equations and I was wondering if there is another way to solve this.
Consider: $f(x) = \frac{x-1}{x}-\ln(x)$
Then, $f'(x) = \frac{1}{x^2}-\frac{1}{x} = \frac{1-x}{x^2}$
Case 1: $0 < x \leq 1$
$f'(x)\geq0$ $\implies$ $f(x)$ is non-decreasing in $(0,1]$ and hence:
$f(x) \leq f(1)\ \forall x \in (0,1] $ with the equality holding only at $x=1$
For $ x \in (0,1]$: $f(x) \leq 0 \ $ and hence $\frac{x-1}{x}-\ln(x) \leq 0$
Case 2: $1 < x$
$f'(x) <0$ and hence $f(x)$ is strictly decreasing in $(1, \infty)$
For $x \in (1, \infty)$: $f(x) < f(1)$ $\implies$ $\frac{x-1}{x}-\ln(x) < 0$. Hope it helps.