Let $g_{ij}$ be a Riemannian Metric in $\Bbb R^n$ with the following properties:
$g_{ij}(0)=\delta_{ij}$ , where $ \delta_{ij} = \begin{cases} 1, & \text{ $i=j$} \\ 0, & \text{ $i \neq j$} \end{cases}$
For every $q\in \Bbb R^n$ and $1\leq i \leq n,$ the curve $\gamma_i(t)= q + te_i$ is a geodesic of $g$, where $e_i = (\delta_{i1}, ... , \delta_{in}).$
Prove that $g$ is the Euclidean metric.
What I tried: since the above curves are geodesics, I know that $|\gamma_i'(t)|_g^2=\langle e_i,e_i \rangle _g=g_{ii}\;$ is constant, and thus $g_{ii} = 1$ for every $1\leq i \leq n$. I'm having trouble showing that $g_{ij}=0$ for $j \neq i$. Any ideas?
As stated (where you only require lines parallel to the standard axes to be geodesic) the result is false.
Consider the metric on $\mathbb{R}^2$ given in standard coordinates in matrix form
$$ \begin{pmatrix} (1 + y^2) & xy \\ xy & (1+x^2) \end{pmatrix} $$
The Christoffel symbols can be computed pretty easily to be seen that
$$ \Gamma_{11}^1 = \Gamma_{22}^{1} = \Gamma_{11}^2 = \Gamma_{22}^2 = 0 $$
and hence all lines parallel to the axes are geodesics. But the metric is obviously not Euclidean.
In the case where the assumption is that all straight lines are geodesic, one way to prove the result goes something like this:
A non-computational, more conceptual way of making the same argument is this:
Notice that in the direct computation case we are only interested in vectors of the form $v = \alpha e_i + \beta e_j$ in the span of two of the standard basis vectors. In other words, the argument there is also based on proving that sufficiently many of the 2-dimensional planes are flat. To do so we don't really need all straight lines being geodesic, but we only need all straight lines with velocity of the form $v = \alpha e_i + \beta e_j$ are geodesic.