I am having trouble understanding the following derivation.

Specifically, I am not able to understand why the partial derivative of $x_i$ with respect to $s_k$ is what it is. My hunch is that it is has something to do with the rule $ log(\frac{a}{b}) = log(a) - log(b)$. The reason being that if I am subtracting a squared value(which I generally would have expected to seen in the denominator), then it probably has something to do with logarithms. However, I am not able to derive the answer in any way.