Let $S^2 = \{x=(x_1,x_2,x_3) \in \mathbb{R}^3: x_1^2+x_2^2+x_3^2=1\}$ be the unit sphere in $\mathbb{R}^3$ and $d_i(x,y) = \cos^{-1}(x\cdot y)$, where $x\cdot y$ is the usual dot product of vectors in $\mathbb{R}^3$, be the intrinsic metric on $S^2$ (the length of the great circle arc joining $x$ and $y$). Prove that $d_i$ satisfies the triangle inequality, $d_i(x,z) \le d_i(x,y)+d_i(y,z)$.
It has been suggested that I use the Gram Matrix $$A=\left( \begin{array}{ccccc} x\cdot x &\ & x\cdot y &\ & x\cdot z \\ y\cdot x &\ & y\cdot y &\ & y\cdot z \\ z\cdot x &\ & z\cdot y &\ & z\cdot z \end{array} \right)$$ and the fact that $det(A) \ge 0$ and somehow reduce the desired inequality, $\cos^{-1}(x\cdot z) \le \cos^{-1}(x\cdot y)+\cos^{-1}(y\cdot z)$, to $det(A)\ge 0$.
I'm just missing out on how to do that. Thank you.