I'm trying to understand the conversion of
$$ \Gamma^{\mu}_{\mu \nu} = \frac{1}{\sqrt{|g|}} \partial_{\nu}(\sqrt{|g|}) $$
where $g=\det{g_{uv}}$
Working it out, I get to this form of the connection
$$ \Gamma^{\mu}_{\mu \nu} = \frac{1}{2} g^{\mu\lambda} \partial_{\nu} g_{\mu\lambda}$$
from here, I'm stuck on how to apply the determinant to the metric and remove the $1/2$
From my general relativity text book, Carroll takes the coordinate transformation and applies the determinant to both sides.
$$ g_{\mu' \nu'} = \frac{\partial x^{\mu}}{\partial x^{\mu'}} \frac{\partial x^{\nu}}{\partial x^{\nu'}} g_{\mu \nu} $$
$$ g(x^{\mu'}) = \Big| \frac{\partial x^{\mu'}}{\partial x^{\mu}} \Big|^{-2}\ g(x^{\mu}) $$
Why is the Jacobian raised to the power of -2? And where does the square root come in?