Great circle between two points on the Earth's surface

7 replies · 2K views · last reply
brotherbobby
Messages
820
Reaction score
178
Homework Statement
Let vectors from the center of the earth to two points on the surface be ##\vec{r}_1,\vec r_2##. If the angle between them is ##\theta##, find the expression for ##\theta## in terms of the co-ordinates of the two points, them being their latitudes ##\lambda_1,\lambda_2## and ##\phi_1,\phi_2##. (See sketch below)
Relevant Equations
1. A vector ##\vec a = a(\cos\alpha\hat i+\cos\beta\hat j+\cos\gamma\hat k)##, where the angles are well known. Here, ##\alpha = \phi## and ##\gamma = \pi/2-\lambda##.
2. If the direction cosines written in (1) above be given by the symbols ##l,m,n##, then ##\cos\theta=l_a l_b+m_a m_b+n_a n_b##.
3. We also have ##l^2+m^2+n^2=1## as the relation between the direction cosines for a vector.
Textbook figure of a sphere representing Earth with z axis up, x and y axes in the equatorial plane, labelled North, South, East and West, a point with radius R, latitude angle lambda and longitude angle phi, plus problem text 1.15 Great circle.
Problem statement :
I copy and paste the problem as it appeared in the text. [Kleppner, D., Kolenkow, R. (2014). An Introduction to Mechanics. Cambridge University Press (2E)]. The statement itself is rather long-winded. The question to be answered appeared towards the end of the passage :
##\color{red}{\text{Find an expression for}\;\theta\;\text{in terms of the co-ordinates of the two points.}}##
By co-ordinates, I am assuming the latitudes and longtidues of the two points, ##[(\lambda_1,\lambda_2),(\phi_1,\phi_2)]##.

Attempt : I took the liberty to draw a better image which show the latitudes and longitudes of the two places.
Diagram of a sphere with x, y, z axes from the centre O, showing two points 1 and 2 on the surface with position vectors r1 and r2, angle theta between them, arc R theta, latitudes lambda1 and lambda2, and longitudes phi1 and phi2, with North, South, East and West labelled.






The image shows places ##P_1## and ##P_2## drawn in purple and green and green, respectively, as well as their latitudes ##\lambda_i## and longitudes ##\phi_i## for ##i = 1,2##. The angle between their position vectors is ##\theta##, shown in red.
Cluttered though the symbols are, I hope they can be distinguished.

We know ##\cos\theta = l_1 l_2+m_1 m_2 + n_1 n_2\qquad (1).##

Here, ##l_i = \cos\phi_i##, ##n_i = \cos\gamma_i = \sin\lambda_i##, where ##\gamma## is the (well-known) angle that a vector makes with the ##z-##axis. The values ##m_i=\cos\beta_i##, the angle with the ##y-##axis. These can be calculated using ##l^2+m^2+n^2=1\Rightarrow m_i = \sqrt{1-\cos^2\phi_i-\sin^2\lambda_i}##, the index ##i## taking values 1 and 2 throughout.

We know, ##1-\cos^2\phi_i = \sin^2\phi_i##.

From ##(1)## above, all this yields ##\boxed{\cos\theta = \cos\phi_1 \cos\phi_2+\sqrt{\sin^2\phi_1-\sin^2\lambda_1}\sqrt{\sin^2\phi_2-\sin^2\lambda_2}+\sin\lambda_1 \sin\lambda_2}##.

I'd check the answer presently, but am I on the right track?

Many thanks.
 
I would rotate the sphere so that one point is at the north pole (0,0,1). Then ##\theta## is just the colatitude of the image of the second point.
 
I would write two unit vectors $$\mathbf{\hat r}_i=\cos\phi_i\cos\lambda_i~\mathbf{\hat x}+\sin\phi_i\cos\lambda_i~\mathbf{\hat y}+\sin\lambda_i~\mathbf{\hat z}~~~~(i=1,2)$$ then take their dot product.
 
  • Like
Likes   Reactions: Hornbein, vela and Ibix
Sorry for coming in late. I would use the method you proposed @kuruman presently, but please tell me if there's something wrong with my solution above. (Post #1)

I think it would be better if I put the problem statement again.

Text-only homework statement: vectors r1 and r2 from Earth's centre to two surface points, angle theta between them, find theta in terms of latitudes lambda1, lambda2 and longitudes phi1, phi2, see sketch.


Textbook figure of a sphere representing Earth with z axis up, x and y axes in the equatorial plane, labels North, South, East, West, and angles R, lambda and phi marked, next to the printed problem text 1.15 Great circle.
Of course it's crucial what I am assuming as "co-ordinates of the points". The ones given are ##\vec r_1,\vec r_2##, but these are vectors. In their explanation of the problem, see image to the right, they talk of the latitude ##\lambda## and longtidue ##\phi## of a place on the surface of the earth.
I assumed, by this, the coordinates of the two places are ##(\lambda_i,\phi_i)## for ##i=1,2## and obtained this answer for the angle ##\theta## between the two places :
##\small{\boxed{\cos\theta = \cos\phi_1 \cos\phi_2+\sqrt{\sin^2\phi_1-\sin^2\lambda_1}\sqrt{\sin^2\phi_2-\sin^2\lambda_2}+\sin\lambda_1 \sin\lambda_2}}##.

I'd like to know where's the mistake.
 
brotherbobby said:
I'd like to know where's the mistake.
##\mathbf{\hat r}=\cos\phi\cos\lambda~\mathbf{\hat x}+\sin\phi\cos\lambda~\mathbf{\hat y}+\sin\lambda~\mathbf{\hat z}.##

The directional cosines are
##l=\mathbf{\hat r}\cdot \mathbf{\hat x}=\cos\lambda\cos\phi##
##m=\mathbf{\hat r}\cdot \mathbf{\hat y}=\cos\lambda\sin\phi##
##n=\mathbf{\hat r}\cdot \mathbf{\hat z}=\sin\lambda##

It follows that
##l^2+m^2+n^2=1\implies m^2=1-l^2-n^2=1-\cos^2\lambda\cos^2\phi-\sin^2\lambda##
Therefore,
## m_i=\sqrt{1-\cos^2\lambda_i\cos^2\phi_i-\sin^2\lambda_i}.##

Your derivation, without showing any work, asserts that
Screenshot 2026-07-06 at 8.31.50 AM.webp

(Edited for typos)
 
Last edited:
kuruman said:
##\mathbf{\hat r}=\cos\phi\cos\lambda~\mathbf{\hat x}+\sin\phi\cos\lambda~\mathbf{\hat y}+\sin\lambda~\mathbf{\hat z}.##

The directional cosines are
##l=\mathbf{\hat r}\cdot \mathbf{\hat x}=\cos\lambda\cos\phi##
##m=\mathbf{\hat r}\cdot \mathbf{\hat y}=\cos\lambda\sin\phi##
##n=\mathbf{\hat r}\cdot \mathbf{\hat z}=\sin\lambda##

It follows that
##l^2+m^2+n^2=1\implies m^2=1-l^2-n^2=1-\cos^2\lambda\cos^2\phi-\sin^2\lambda##
Therefore,
## m_i=\sqrt{1-\cos^2\lambda_i\cos^2\phi_i-\sin^2\lambda_i}.##

Your derivation, without showing any work, asserts that
View attachment 372912
(Edited for typos)
Just to add…
##\sqrt{1-\cos^2\phi-\sin^2\lambda}## immediately smells wrong to me. And that may be because the argument of the square root could easily go negative. OTOH, ##\sqrt{1-\cos^2\phi\cos^2\lambda-\sin^2\lambda}= \sqrt{\cos^2\lambda-\cos^2\phi\cos^2\lambda}= \cos\lambda\sqrt{1-\cos^2\phi}=\cos\lambda\sin\phi##, which is guaranteed real.
 
brotherbobby said:
Sorry for coming in late. I would use the method you proposed @kuruman presently, but please tell me if there's something wrong with my solution above. (Post #1)

I think it would be better if I put the problem statement again.

View attachment 372907

View attachment 372908Of course it's crucial what I am assuming as "co-ordinates of the points". The ones given are ##\vec r_1,\vec r_2##, but these are vectors. In their explanation of the problem, see image to the right, they talk of the latitude ##\lambda## and longtidue ##\phi## of a place on the surface of the earth.
I assumed, by this, the coordinates of the two places are ##(\lambda_i,\phi_i)## for ##i=1,2## and obtained this answer for the angle ##\theta## between the two places :
##\small{\boxed{\cos\theta = \cos\phi_1 \cos\phi_2+\sqrt{\sin^2\phi_1-\sin^2\lambda_1}\sqrt{\sin^2\phi_2-\sin^2\lambda_2}+\sin\lambda_1 \sin\lambda_2}}##.

I'd like to know where's the mistake.
Not sure here but are you assuming that latitude is a great circle?
 
tech99 said:
Not sure here but are you assuming that latitude is a great circle?
What does that mean? The (blue) drawing in post #1 clearly defines the latitude angles of points 1 and 2 as ##\lambda_1## and ##\lambda_2.## Points 1 and 2 are shown joined by an arc on a great circle that, in general, is neither a circle of latitude nor a circle of longitude. That's all that's needed to process this problem.