Let $y=f(x)=\ln(\sin(x))$
$f(x+h)=\ln(\sin(x+h))$
$$\frac{d}{dx}(y)=\frac{d}{dx}(f(x))=\lim_{h \to0}\frac{f(x+h)-f(x)}{h}=\lim_{h \to0}\frac{\ln(\sin(x+h))-\ln(\sin(x))}{h}$$ $$=\lim_{h \to0}\frac{\ln\left(\frac{\sin(x+h)}{\sin(x)}\right)}{h} =\lim_{h \to0}\frac{\ln\left(\frac{\sin(x)\cos(h)+\cos(x)\sin(h)}{\sin (x)}\right)}{h}$$ $$=\lim_{h \to0}\frac{\ln (\cos(h)+\cot(x)\sin(h))}{h}=\lim_{h \to0}\frac{\ln( \cos(h)(1+\cot(x)\tan(h)))}{h}$$
I am stuck at this step. Please help.
$$\ln\dfrac{1+\dfrac{\sin(x+h)-\sin x}{\sin x}}h$$
$$=\ln\dfrac{\left(1+\dfrac{\sin(x+h)-\sin x}{\sin x}\right)}{\dfrac{\sin(x+h)-\sin x}{\sin x}}\cdot\dfrac{\sin(x+h)-\sin x}{h\sin x}$$
Now $\lim_{u\to0}\dfrac{\ln(1+u)}u=1$
and $$\lim_{h\to0}\dfrac{\sin(x+h)-\sin x}h=\lim_{h\to0}\dfrac{\sin\dfrac h2\cos\left(x+\dfrac h2\right)}{\dfrac h2}=?$$