Prove inequality $n - s + \ln(s) - \ln(n) \geq 0$

75 Views Asked by At

Let $s,n \in \{1,2,\ldots\}$ with $s \in [1,n]$. I got to show that the following holds \begin{align} f(s) := n - s + \ln(s) - \ln(n) \geq 0. \end{align} My idea: there is a unique root at $f(n) = 0$. And since $f'(s)=-1 + 1/s \geq 0$ is decreasing for all $s$ we must have $f(s) \geq 0$ for all $s \in [1,n]$.

4

There are 4 best solutions below

0
On BEST ANSWER

Let $$f(x)=x-\ln(x)$$

Note that $$f'(x)=1-\frac {1}{x} \ge 0$$

Thus $f(x)$ is an increasing function on $[1,\infty ].$

Since $s\le n$ we get $$f(s)\le f(n)$$

Hence $$ s-\ln(s) \le n-\ln(n).$$

0
On

$$g(x)=x-\ln x$$

Prove $g(x)$ is increasing for $x\ge1$.

0
On

Better put for each $x\in (1,n)$: $$g(x) = x-\ln(x)$$ Now $g'(x) = 1-1/x>0$ so $g$ is increasing and thus conclusion.

0
On

Note that

$$n - s + \ln s - \ln n \geq 0 \iff \ln e^n- \ln n \ge \ln e^s - \ln s \iff \frac{e^n}{n}\ge \frac{e^s}s$$

whic is true since $\frac{e^x}{x}$ for $x\ge 1$ is an increasing function.