Differentiating y=log(sinx) with respect to x,
dydx=cosxsinx
dydx=cotx
Again differentiating with respect to x,
d2ydx2=−csc2x