Question states
Prove that for all $x$ and $y$ $\in R$, the following inequality is true:
$\lvert \ln(2+\sin(x)) - \ln(2+\sin(y))\rvert \le \lvert x-y\rvert$
i've gotten to the point that
$\frac{y-x}{2+\sin(c)} = \ln\frac{2+\sin(y)}{2+\sin(x)}$ (y-x divided by 2+sin(c) is my f dash c from the mean value theorem
I asked my teacher that i should use mean value theorem here so please don't use anything other than this, but i have no idea how to push this problem further.
Also this is my first post so i'm sorry for the f dash (c) thing, mathjax is hard
Let $f(x)=\log(2+\sin x)$. Then $f'(x)=\frac{\cos x}{2+\sin x}$. So, if $x,y\in\mathbb R$ and $x\neq y$, then$$\frac{f(y)-f(x)}{y-x}=\frac{\cos c}{2+\sin c}$$for some $c$ between $x$ and $y$, and therefore$$\left|\frac{f(y)-f(x)}{y-x}\right|=\left|\frac{\cos c}{2+\sin c}\right|\leqslant\frac{|\cos c|}{2-|\sin c|}\leqslant1.$$