Solution (source code)

= Solution

For an oriented Euclidean <string worldsheet> with metric $h_{ab}$, use the <string nonlinear sigma model> action
$$
S_E=\frac1{4\pi\alpha'}\int d^2\sigma\,
\left[\sqrt h\,h^{ab}G_{\mu\nu}(X)\partial_aX^\mu\partial_bX^\nu
+i\epsilon^{ab}B_{\mu\nu}(X)\partial_aX^\mu\partial_bX^\nu
+\alpha'\sqrt h\,\Phi(X)R^{(2)}(h)\right].
$$
Here $\epsilon^{ab}$ is an antisymmetric density with $\epsilon^{12}=1$. The factor $i$ in the Euclidean <Kalb–Ramond field> term follows from continuing the real Lorentzian two-form coupling; reversing orientation or the convention for $B$ reverses its sign. The conventional positive Euclidean <dilaton> coupling is being used. With <worldsheet> boundaries its curvature coupling also needs $\int_{\partial\Sigma}\Phi k\,ds/(2\pi)$, where $k$ is the boundary geodesic curvature, to have the proper topological normalization for constant $\Phi$.

All three terms are invariant under <worldsheet diffeomorphisms>. Target-coordinate changes act on $X,G,B,\Phi$ by their ordinary scalar and tensor transformation rules, making the target description covariant as well. For the two-form there is also the target <gauge symmetry> $B\mapsto B+d\Lambda$. Its change in the closed-worldsheet action is an integral of an exact two-form and hence zero. With boundaries it is instead $i\int_{\partial\Sigma}X^*\Lambda/(2\pi\alpha')$; an endpoint <gauge field> with $\delta A=-\Lambda/(2\pi\alpha')$ cancels it.

Under a local <Weyl transformation> $h_{ab}\mapsto e^{2\omega}h_{ab}$, the metric term is invariant because the two-dimensional factors $\sqrt h$ and $h^{ab}$ cancel. The $B$ term is independent of $h$ and is separately invariant. The curvature transforms as
$$
\sqrt hR^{(2)}\longmapsto\sqrt h(R^{(2)}-2\nabla_h^2\omega).
$$
On a closed surface the <dilaton> variation is consequently
$$
\delta_\omega S_\Phi=-\frac1{2\pi}\int\sqrt h\,\Phi(X)\nabla_h^2\omega
=-\frac1{2\pi}\int\sqrt h\,\omega\nabla_h^2\Phi(X).
$$
Thus a general nonconstant <dilaton> term is not separately invariant under <Weyl transformations>. Its variation is the <Weyl variation of a nonconstant dilaton coupling>; it vanishes for constant $\Phi$ after the boundary completion where necessary.

For $\Phi=\Phi_0$, the <Gauss-Bonnet theorem> gives $S_\Phi=\Phi_0\chi(\Sigma)$. In the <Euclidean path integral> the resulting weight is
$$
\boxed{e^{-S_\Phi}=g_s^{-\chi(\Sigma)},\qquad g_s=e^{\Phi_0}.}
$$
For a connected orientable genus-$g$ surface with $b$ boundaries, $\chi=2-2g-b$, so the weight is $g_s^{2g+b-2}$. A closed-string handle therefore adds two powers of <string coupling>. External vertex normalizations add their own coupling factors; they are distinct from this <dilaton Euler-characteristic weighting>. The constant <dilaton> controls the <string genus expansion>, rather than adding a force to the classical embedding equation.

Quantization treats the target fields as position-dependent couplings of a two-dimensional interacting <quantum field theory>. Expanding $X$ around a background embedding gives fluctuation vertices involving target curvature and <derivatives> of $B$ and $\Phi$. Short-distance contractions require local <counterterms>, so the target fields become renormalized couplings. In particular a curvature vertex contracted once yields a <Ricci tensor> <counterterm> proportional to $\alpha'R_{\mu\nu}$. Each additional sigma-model loop brings another power of $\alpha'$ and more target <derivatives>. The expansion is useful when the target variation scale is large compared with $\sqrt{\alpha'}$; it is not the separate expansion in powers of $g_s$.

After <gauge fixing>, a <worldsheet Weyl anomaly> would make amplitudes depend on the discarded local conformal factor. Quantum consistency therefore requires the trace anomaly to vanish, including the reparameterization <worldsheet ghost field> contribution. In a conventional <renormalization scheme> the resulting <bosonic sigma-model Weyl anomaly coefficients> start as
$$
\begin{aligned}
\overline\beta^G_{\mu\nu}
&=\alpha'\left[R_{\mu\nu}-\frac14H_{\mu\rho\sigma}H_\nu{}^{\rho\sigma}
+2\nabla_\mu\nabla_\nu\Phi\right]+O(\alpha'^2),\\
\overline\beta^B_{\mu\nu}
&=\alpha'\left[-\frac12\nabla^\rho H_{\rho\mu\nu}
+(\nabla^\rho\Phi)H_{\rho\mu\nu}\right]+O(\alpha'^2),\\
\overline\beta^\Phi
&=\frac{d-26}{6}
+\alpha'\left[(\nabla\Phi)^2-\frac12\nabla^2\Phi-\frac1{24}H_{\mu\nu\rho}H^{\mu\nu\rho}\right]
+O(\alpha'^2),\qquad H=dB.
\end{aligned}
$$
The barred quantities include the <dilaton> <stress-energy tensor improvement>; ordinary coupling <sigma-model beta functions> can differ by field redefinitions or target diffeomorphisms. Setting these coefficients to zero gives differential equations for the background fields order by order, including the metric gravitational equation and the antisymmetric-field equation. These conventions for the leading coefficients are described in https://davidtong.org/pdfs/teaching/string-theory/string7.pdf[the background-field lecture notes]. Higher orders supply higher-curvature and higher-derivative corrections. This explains how spacetime dynamics follows from quantum gauge consistency of the <worldsheet>, not from asking only for a classical stationary <worldsheet> in an arbitrarily chosen background.

The apparently noninvariant <dilaton> term is essential outside the critical dimension because its <stress-energy tensor improvement> can cancel the quantum <central charge> mismatch. A flat constant-dilaton background has matter <central charge> $d$ and <worldsheet ghost field> <central charge> $-26$. If $d\ne26$, changing the constant value of $\Phi$ only changes $g_s$ and cannot cure that mismatch.

A concrete solution is the <linear dilaton conformal field theory> with $G=\eta$, $B=0$, and $\Phi=\Phi_0+V_\mu X^\mu$. Its metric and antisymmetric-field anomaly coefficients vanish, while the scalar condition is
$$
\boxed{V^2=\frac{26-d}{6\alpha'}.}
$$
One can also see this cancellation directly from the improved <holomorphic stress-energy tensor>. With the positive Euclidean curvature convention above,
$$
T(z)=-\frac1{\alpha'}:\partial X\cdot\partial X:
+V\cdot\partial^2X.
$$
The free-field contraction is $X^\mu(z)X^\nu(w)\sim-\alpha'\eta^{\mu\nu}\log(z-w)/2$. Differentiating it twice at each point gives a fourth-order pole $3\alpha'V^2/(z-w)^4$ from the improvement. Since the fourth-order stress-tensor pole is $c/2$, the matter <central charge> becomes $c=d+6\alpha'V^2=26$. The <worldsheet ghost field> contribution then cancels it. This is why a classical Weyl variation need not mean inconsistency: it can cancel the quantum variation of the other terms. For $d<26$ the required gradient is spacelike; for $d>26$ it is timelike in the Lorentzian target theory. Such backgrounds are not flat constant-dilaton Minkowski vacua with full target Lorentz symmetry, nor does a <central charge> cancellation by itself prove stability or <unitarity> of every noncritical background. If the conformal factor is instead retained dynamically, its <Liouville field theory> supplies the corresponding noncritical description.