I have to calculate the geodesics of the metric:
$$\left(\matrix {1 &0\\0& x^2 }\right)$$
I've been able to derive its equations, which are:
$$\ddot x -x\dot y ^2=0$$ $$\ddot y+\frac{2}{x}\dot x\dot y=0$$
It's easy to check that lines of constant $y$ are solutions of that equation: all $(v_0t+x_0,y_0)$ satisfy the above, so geodesics between two points of the form $(x_1,y_1)$, $(x_2,y_1)$ are straight lines, but I can't get the general solutions.
Any help? Thanks in advance.
BTW, To avoid calculations on your side, the Riemann tensor, and therefore the Ricci tensor and scalar curvature, vanish., so $R^2$ with that metric is flat