# Deriving the transformation under Weyl rescaling in Polchinski eq. (1.2.31)

As Prahar says, you just calculate the Ricci scalar $R'$ following the usual definition – the double contraction of the Riemann tensor – which is calculated from the Christoffel symbols and its derivatives where the metric $\gamma'$ expressed as $\exp(2\omega)\gamma$ is substituted everywhere. It will probably not fit one page.

However, there's a faster indirect way to establish the formula.

First, calculate $R'$ for a constant i.e. $(\tau,\sigma)$-independent $\omega$. The distances calculated by the $\gamma'$ metric are just $\exp(\omega)$ times longer than those calculated from $\gamma$. So the Ricci scalar calculated from $\gamma'$, equal to $C/a^2$ where $C$ is a constant and $a$ is some curvature radius, is $\exp(-2\omega)$ times the Ricci scalar calculated from $\gamma$. The only way how to get a formula for $\exp(-2\omega)$ in this simple rescaling by using $\gamma,\gamma'$ only is $$\exp(-2\omega) = \frac{\sqrt{-\gamma}}{\sqrt{-\gamma'}}$$ Therefore we have $$R' = R \exp(-2\omega) = R \frac{\sqrt{-\gamma}}{\sqrt{-\gamma'}}$$ for a constant $\omega$. That agrees with your formula in your special case. Just to be sure, if we wrote $\exp(-2\omega)$ to the formula explicitly, instead of the ratio of the two square roots of determinants, it would still be valid because for the two metrics related by the rescaling, the ratio of the two determinants is given by the power of $\exp(\omega)$.

Now, consider a variable $\omega$. It's clear that $R$, the Ricci scalar, only contains up to second derivatives of $\omega$, so the expression for $R'$ can only depend on $\omega$ and the first and second derivatives of it. The dependence on $\omega$ itself has already been clarified because it's fully determined by the case of the constant $\omega$.

Now, the most general relationship for a variable $\omega$ may depend on the derivatives through $\nabla\omega\cdot \nabla \omega$ and $\nabla^2\omega$ because these are the only two covariant expressions one may construct out of the first two derivatives of $\omega$. And the relationship between $R,R'$ has to be given by a nice covariant (tensor structure respecting) formula because the relation between $\gamma,\gamma'$ is also expressed by a nice covariant (tensor structure respecting) formula.

The dependence on $\nabla\omega\cdot \nabla\omega$ actually cannot be there because it is an even function(al) of $\omega$. So you can't say that $R'$ is increased by a multiple of this expression relatively to $R$ because the opposite relationship should give a decrease but this $\nabla\omega\cdot \nabla\omega$ has the same sign in both ways.

That's why the formula only has to be modified by a multiple $\nabla^2\omega$ inserted somewhere. It's really straightforward to convince yourself that up to the ratio of the (square roots of the) determinants, the relationship has to be simply given by $\dots R-2\nabla^2\omega$. For example, you may write down the metric for the sphere in a conformally flat way and verify that if $R=0$ for a flat $\gamma$, $R'=2/a^2$, the desired Ricci scalar for a sphere of radius $a$, may be calculated from the covariant Laplacian of $\omega$.