Solution (source code)

= Solution

The <Levi-Civita connection> is the unique <connection on a vector bundle> $TM$ that is <torsion-free> and <metric-compatible>. These conditions are
$$
\nabla_XY-\nabla_YX=[X,Y],
\qquad
X(g(Y,Z))=g(\nabla_XY,Z)+g(Y,\nabla_XZ).
$$
Existence and uniqueness follow from the <Koszul formula>; equivalently, these are the defining properties that characterize the connection.

Define the correction tensor
$$
A(X,Y)=X(\sigma)Y+Y(\sigma)X-g(X,Y)V_\sigma
$$
and set $D_XY=\nabla_XY+A(X,Y)$. All terms of $A$ are $C^\infty(M)$-linear in both $X$ and $Y$, so $D$ is a connection. The symmetry $A(X,Y)=A(Y,X)$ preserves vanishing of the <torsion tensor>.

To check compatibility with $\widetilde g$, compute
$$
X(\widetilde g(Y,Z))
=e^{2\sigma}\bigl(2X(\sigma)g(Y,Z)+g(\nabla_XY,Z)+g(Y,\nabla_XZ)\bigr).
$$
On the other hand,
$$
\begin{aligned}
g(A(X,Y),Z)
&=X(\sigma)g(Y,Z)+Y(\sigma)g(X,Z)-g(X,Y)Z(\sigma),\\
g(Y,A(X,Z))
&=X(\sigma)g(Y,Z)+Z(\sigma)g(X,Y)-g(X,Z)Y(\sigma).
\end{aligned}
$$
The cross terms cancel, so their sum is $2X(\sigma)g(Y,Z)$. Multiplying by $e^{2\sigma}$ proves $X(\widetilde g(Y,Z))=\widetilde g(D_XY,Z)+\widetilde g(Y,D_XZ)$. Hence $D$ is torsion-free and compatible with $\widetilde g$, so uniqueness of the <Levi-Civita connection> gives
$$
\boxed{\widetilde\nabla_XY
=\nabla_XY+X(\sigma)Y+Y(\sigma)X-g(X,Y)\operatorname{grad}_g\sigma.}
$$
This is the <Levi-Civita connection under conformal rescaling>.

On a nonempty compact manifold without boundary, $\sigma$ attains a maximum at some $p$. The derivative of a smooth function vanishes at an interior extremum, so $(d\sigma)_p=0$ and $(V_\sigma)_p=0$. The correction tensor therefore vanishes at $p$, giving
$$
\boxed{(\widetilde\nabla_XY)_p=(\nabla_XY)_p\quad\text{for every }X,Y.}
$$
This is equality for all vector fields at the same point, not an assertion that either connection vanishes there. More generally, the two connections agree at any <critical point> of $\sigma$. Conversely, if their correction vanishes for all $X,Y$ at a point of positive dimension, evaluating $g(A(v,v),v)=g(v,v)d\sigma(v)$ for every $v$ shows that the point is critical. This is the <critical-point criterion for equal conformal connections>.

The boundaryless hypothesis is the usual convention for “manifold” here. If manifolds with boundary were included, compactness alone would not suffice: on $[0,1]$ with $g=dx^2$ and $\sigma=x$, one has $\widetilde\nabla_{\partial_x}\partial_x=\partial_x$ everywhere while $\nabla_{\partial_x}\partial_x=0$. An extremum at the boundary need not be a critical point.