I'm trying to solve the following problem in preparation for an exam :
(i) Let $g_0$ be a Riemannian metric and define $g=cg_0$ where $c$ is a positive constant. Prove that $g_0$ and $g$ have the same Levi-Civita connection.
(ii) Use this to find as many diffeomorphisms as you can that preserve geodesics of the metric $$g=y(dx^2+dy^2)$$ on the set $M=\{(x,y)\in\mathbb{R}^2: y>0\}$
My trouble is I'm not exactly sure how to calculate the LC connection for these metrics as the notes available to me don't cover it in much detail and so I'm not sure where to begin. If anyone has an example of how to perform such a calculation it would be greatly appreciated. I think seeing how a calculation like this is performed will be helpful for part (ii) but any other hints would be very helpful. Thanks.
For (i), you can think about Christoffel symbols $\Gamma_{ij}^k$, which is defined as: $$\nabla_{\frac{\partial}{\partial x_i}}\frac{\partial}{\partial x_i}=\sum_{k=1}^n\Gamma_{ij}^k\frac{\partial}{\partial x_k}.$$ In terms of the metric, Christoffel symbol $\Gamma_{ij}^k$ can be computed as: $$\Gamma_{ij}^k=\sum_{l=1}^n\frac{g^{kl}}{2}\left(\frac{\partial g_{il}}{\partial x_j} +\frac{\partial g_{jl}}{\partial x_i}-\frac{\partial g_{ij}}{\partial x_l}\right).\tag{1}$$ (You can find these facts from any standard textbook in Riemannian Geometry. Do Carmo's Riemannian Geometry is my favorite.)
It is easy to see that Christoffel symbols determine the Levi-Civita connection: if Christoffel symbols of two metrics are the same, then their Levi-Civita connections are the same (Try to prove it yourself if you haven't seen it before). Therefore, if $g=cg_0$, you can use $(1)$ to check that their Christoffel symbols are the same.