For an infinitesimal Weyl transformation , the definition of the stress tensor gives
The insertions are Weyl invariant by assumption, so varying the normalized path integral gives
Consequently the stated condition makes the correlation function Weyl invariant. Quantum failure of this condition is the worldsheet Weyl anomaly.
The free embedding scalars contribute . The ordinary diffeomorphism ghosts contribute . The fermionic pair has and contributes . Each of the fermionic pairs has and contributes . Each bosonic pair has and contributes , and there are two such pairs. The total holomorphic central charge is therefore
Cancellation of the worldsheet Weyl anomaly requires , so
The antiholomorphic sector gives the same condition.
Take embedding coordinates and give one coordinate the background charge . The remaining free bosons contribute , while the distinguished coordinate contributes , so the matter central charge is
The worldsheet ghosts contributes . Cancellation of the worldsheet Weyl anomaly therefore requires
which is real for and produces a noncritical bosonic string.
In target-space language the dilaton is linear in this coordinate, so the local string coupling changes exponentially. One end of the target direction is weakly coupled and the other is strongly coupled. Consequently string perturbation theory is trustworthy only in the weak-coupling region, rather than throughout the full background.
The target metric is a coupling of the string nonlinear sigma model. Quantum consistency requires the gauge-fixed worldsheet theory to preserve Weyl invariance, so its sigma-model beta functions must vanish. With no B-field or varying dilaton, the metric beta function begins as
Therefore vanishing of the worldsheet Weyl anomaly requires
to leading order in : the target-space metric must be Ricci-flat at this order.