Show that the elasticity of substitution is σ How do I show that elasticity of substitution is equal to σ from a CES utility function. I have derived the following:

$\frac{q(\omega)}{q(\omega ')}=\left(\frac{p(\omega)}{p(\omega ')}\right)^{-\sigma}$

And then I can use the following to show that the elasticity of substitution is equal to σ:

$\frac{\partial \ln\frac{q(\omega)}{q(\omega ')}}{\partial \ln\frac{p(\omega)}{p(\omega ')}}=-\sigma $

But how do I find: $\partial \ln\frac{q(\omega)}{q(\omega ')}$? What should I differentiate with respect to?
You cannot find $\partial \ln\frac{q(\omega)}{q(\omega')}$, it has no well defined meaning here. However, by the first relation you mention, it follows that $$\ln(q(\omega)/q(\omega'))=-\sigma\ln(p(\omega)/p(\omega')).$$ Taking the partial derivative on both sides with respect to $\ln(p(\omega)/p(\omega'))$ gives $$\frac{\partial \ln\frac{q(\omega)}{q(\omega ')}}{\partial \ln\frac{p(\omega)}{p(\omega ')}}=-\sigma.$$