- #1
yungman
- 5,718
- 241
This is usually in the first chapter of the EM books and I never see this in any of my calculus, vector calculus, PDE books even though it is really a math question.
This is about transforming from rectangular coordinates to spherical coordinates of a cross product of two position vectors A and B. I found that if I perform the cross product in rectangle coordinates and then transform to spherical coordinates, everything worked. But if I first transform A and B to spherical coordinates and then perform the cross product, the answer is ALWAYS ZERO if they are position vectors. This is because a position vector only contain radius component in spherical coordinates. Please explain to me why I get two different answer in two different method.
Let
[tex]\vec A = \hat x A_x +\hat y A_y + \hat z A_z \;\hbox { and }\; \vec B = \hat x B_x +\hat y B_y + \hat z B_z [/tex]
1) Perform cross product in rectangular coordinates and then transform to spherical coordinates:
as you can find in all calculus books, unless the angle between the two vector is zero, the result is not going to be zero as long as both are non zero vector. And it would be non zero after transformation.
2) Transform to spherical coordinates first then perform the cross product.
[tex]\vec A = \hat x A_x +\hat y A_y + \hat z A_z \;\Rightarrow\; |\vec A| = \sqrt{A_x^2 +A_y^2 + A_z^2} \;\hbox { and }\; A_x = |\vec A| sin\theta_A cos\phi_A,\; A_y=|\vec A| sin\theta_A sin\phi_A [/tex]
When transform to spherical coordiantes:
[tex]\vec A_R = A_x sin\theta_A cos \phi_A + A_y sin\theta_A sin \phi_A + A_z cos\theta_A = |\vec A|(sin^2\theta_A cos^2\phi_A+sin^2\theta_A sin^2\phi_A + cos^2\phi_A) \;=\; |\vec A|[/tex]
[tex]\vec A_{\theta} = A_x cos\theta_A cos \phi_A + A_y cos\theta_A sin \phi_A - A_z sin\theta_A = |\vec A|( cos\theta_A sin\theta_A cos^2\phi_A+cos\theta_A sin\theta_A sin^2\phi_A - cos\theta_A sin\theta_A) \;=\; 0[/tex]
[tex] A_{\phi_A} = -A_x sin\phi_A+A_y cos\phi_A = |\vec A|(- sin\theta_A cos\phi_A sin\phi_A + sin\theta_A cos\phi_A sin\phi_A) \;=\;0[/tex]
As you can see, only [itex]A_R[/itex] is non zero
[tex]\Rightarrow\; \vec A = \hat R A_R [/tex]
This is also true for B. If we perform the cross product AX in spherical coordinates:
[tex]\vec A X \vec B \;=\;\left|\begin{array}{ccc}\hat x & \hat y & \hat z \\A_R & 0 & 0\\ B_R & 0 & 0\end{array}\right|\;=\; 0[/tex]
As you see, I get two different answer with two different method. What is the reason?
This is about transforming from rectangular coordinates to spherical coordinates of a cross product of two position vectors A and B. I found that if I perform the cross product in rectangle coordinates and then transform to spherical coordinates, everything worked. But if I first transform A and B to spherical coordinates and then perform the cross product, the answer is ALWAYS ZERO if they are position vectors. This is because a position vector only contain radius component in spherical coordinates. Please explain to me why I get two different answer in two different method.
Let
[tex]\vec A = \hat x A_x +\hat y A_y + \hat z A_z \;\hbox { and }\; \vec B = \hat x B_x +\hat y B_y + \hat z B_z [/tex]
1) Perform cross product in rectangular coordinates and then transform to spherical coordinates:
as you can find in all calculus books, unless the angle between the two vector is zero, the result is not going to be zero as long as both are non zero vector. And it would be non zero after transformation.
2) Transform to spherical coordinates first then perform the cross product.
[tex]\vec A = \hat x A_x +\hat y A_y + \hat z A_z \;\Rightarrow\; |\vec A| = \sqrt{A_x^2 +A_y^2 + A_z^2} \;\hbox { and }\; A_x = |\vec A| sin\theta_A cos\phi_A,\; A_y=|\vec A| sin\theta_A sin\phi_A [/tex]
When transform to spherical coordiantes:
[tex]\vec A_R = A_x sin\theta_A cos \phi_A + A_y sin\theta_A sin \phi_A + A_z cos\theta_A = |\vec A|(sin^2\theta_A cos^2\phi_A+sin^2\theta_A sin^2\phi_A + cos^2\phi_A) \;=\; |\vec A|[/tex]
[tex]\vec A_{\theta} = A_x cos\theta_A cos \phi_A + A_y cos\theta_A sin \phi_A - A_z sin\theta_A = |\vec A|( cos\theta_A sin\theta_A cos^2\phi_A+cos\theta_A sin\theta_A sin^2\phi_A - cos\theta_A sin\theta_A) \;=\; 0[/tex]
[tex] A_{\phi_A} = -A_x sin\phi_A+A_y cos\phi_A = |\vec A|(- sin\theta_A cos\phi_A sin\phi_A + sin\theta_A cos\phi_A sin\phi_A) \;=\;0[/tex]
As you can see, only [itex]A_R[/itex] is non zero
[tex]\Rightarrow\; \vec A = \hat R A_R [/tex]
This is also true for B. If we perform the cross product AX in spherical coordinates:
[tex]\vec A X \vec B \;=\;\left|\begin{array}{ccc}\hat x & \hat y & \hat z \\A_R & 0 & 0\\ B_R & 0 & 0\end{array}\right|\;=\; 0[/tex]
As you see, I get two different answer with two different method. What is the reason?