How to find angle between two vectors, given their spherical co-ordinates?

5 replies · 3K views · last reply
WMDhamnekar
MHB
Messages
382
Reaction score
31
Typeset problem statement: Let P1 and P2 be points with spherical coordinates (ρ1, θ1, φ1) and (ρ2, θ2, φ2). Vectors v1 and v2 go from the origin to P1 and P2. For the angle γ between them, show that cos γ = cos φ1 cos φ2 + sin φ1 sin φ2 cos(θ2 − θ1).


I know that $\arccos{(\cos{\phi_1}\cos{\phi_2}+\sin{\phi_1}\sin{\phi_2}\cos{(\theta_2-\theta_1)})}=\gamma$ But how can i answer the above question? If any member knows the proof of this formula may reply to this question with correct proof.
 
Last edited:
Dhamnekar Winod said:
https://www.physicsforums.com/attachments/10317

I know that $\arccos{(\cos{\phi_1}\cos{\phi_2}+\sin{\phi_1}\sin{\phi_2}\cos{(\theta_2-\theta_1)})}=\gamma$ But how can i answer the above question? If any member knows the proof of this formula may reply to this question with correct proof.
The Cartesian coordinates of $P_1$ are $(\rho_1\cos\theta_1, \rho_1\sin\theta_1\cos\phi_1,\rho_1\sin\theta_1\sin\phi_1)$, and similarly for $P_2$. Take the inner product, and use the fact that $\def\bv{\mathbf{v}} \langle\bv_1,\bv_2\rangle = |\bv_1||\bv_2|\cos\gamma.$
 
Opalg said:
The Cartesian coordinates of $P_1$ are $(\rho_1\cos\theta_1, \rho_1\sin\theta_1\cos\phi_1,\rho_1\sin\theta_1\sin\phi_1)$, and similarly for $P_2$. Take the inner product, and use the fact that $\def\bv{\mathbf{v}} \langle\bv_1,\bv_2\rangle = |\bv_1||\bv_2|\cos\gamma.$
In my opinion, the Cartesian co-ordinates of $P_1,P_2$ are as follows:
Two-panel reference of cylindrical and spherical coordinate formulas with diagrams: cylindrical x = r cos θ, y = r sin θ, z = z; spherical x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ, with inverse formulas for ρ, θ and φ.


So your answer differs from the above answer for Cartesian co-ordinates of $P_1, P_2$ using appropriate $\rho_i, \theta_i,\phi_i$ where i=1,2.
 
Dhamnekar Winod said:
So your answer differs from the above answer for Cartesian co-ordinates of $P_1, P_2$ using appropriate $\rho_i, \theta_i,\phi_i$ where i=1,2.
The only difference is that I use $\theta$ and $\phi$ where you are using $\phi$ and $\theta$. If you switch the $\theta$s and $\phi$s in my hint then you should be able to prove the result.
 
@Opalg, Do you mean inner product=$\vec{v_1} \cdot \vec{v_2}=\left\langle v_1,v_2 \right\rangle$