Barcelona (Spain) has the coordinates (approx): $\theta = 2^\circ$, $\phi = 41^\circ$, and New York has the coordinates: $\theta = −74^\circ$, $\phi = 41^\circ$. Notice that both cities lie on the same latitude, which makes the calculations easier. For your calculations, use Earth’s radius $R = 6378$ km, and give all your result in kilometers.
On most maps, the naive ‘straight line’ between Barcelona and New York lies on the line of latitude $\phi = 41^\circ$. What is the distance between the two cities along this line?
What is the actual shortest distance between those two cities?
Hint: Notice that it is determined by the angle Barcelona–Earth’s center–New York. Use the fact that the angle $\psi$ between two unit vectors $nA$ and $nB$ satisfies $\cos \psi = nA \cdot nB$.
Hint: Observe that both curves are parts of circles. By using this, you can avoid integration altogether.
For the first part, I'm trying to take the Euclidean distance. \begin{eqnarray} x &=& R\cos\theta\cos\phi \\ y &=& R\cos\theta\sin\phi \\ z &=& R\sin\theta, \end{eqnarray} Using this, I get coordinates for NY and Barcelona.
New York: $(x, y, z) = (2620.58, 421.01, 5799)$
Barcelona: $(x, y, z) = (-1081.34, -173.72, 6283.26)$
If I try to find the distance by the equation
\begin{eqnarray} \sqrt{x^2 + y^2 + z^2} \end{eqnarray}
I get 3780 km.
Am I doing this right? I feel a bit lost because this "naive" distance differs so greatly from the real one (ie 6157 km)
The Euler-Lagrange equation is this: \begin{eqnarray}ϑ˙^2 cos ϕ sin ϕ/ \sqrt{ϕ˙^2 + ϑ˙^2 cos^2 ϕ} + d/dt ϕ˙^2 \sqrt{ϕ˙^2 + ϑ˙^2 cos^2 ϕ} = 0 \end{eqnarray}