Spherical coordinates via a rotation matrix

In summary, this person is explaining that the rotation matrix R from the a to n coordinate frame is different than the usual spherical coordinates. He doesn't understand why this convention gives the wrong results, but its just an arbitrary choice. He also shares an experience where he got a penalty for using the wrong angle.
  • #1
unicornflyers
8
0
First, I'd like to say I apologize if my formatting is off! I am trying to figure out how to do all of this on here, so please bear with me!

So I was watching this video on spherical coordinates via a rotation matrix:



and in the end, he gets:

x = \rho * sin(\theta) * sin(\phi)
y = \rho* cos(\theta) * sin(\phi)
z = \rho cos(\theta)

Clearly, this doesn't look like the equations we normally get for spherical coordinates, which are:

x = \rho* cos(\theta) * sin(\phi)
y = \rho * sin(\theta) * sin(\phi)
z = \rho * cos(\theta)

What I don't understand is he says that they are not the same as some of the spherical coordinates as we've seen, but selecting measures is an arbitrary choice. Additionally, most resources I find that get the answer I'm more used to.

However, it seems to me that if someone was using these equations, they would get completely the wrong stuff. So is there a way to get our usual equations using this method? Or what's going on here that makes this ok? I don't see how we should get a completely different result. I really like this method because it makes a lot of sense to me, but I don't like how it gets what I consider a completely wrong result.

From what I can tell, the issue seems to come from the rotation table/matrix from the a to n coordinate frame which is:

R = [cos(\theta), sin(\theta), 0
sin(\theta), cos(\theta), 0
0, 0, 1]

However, I can't seem to think of a way that this is inherently wrong given the geometry, nor how we would get the usual equations from this.

Can someone please help/elaborate/explain this situation to me?
 
Physics news on Phys.org
  • #2
unicornflyers said:
x = \rho* cos(\theta) * sin(\phi)
y = \rho * sin(\theta) * sin(\phi)
z = \rho * cos(\theta)
This is not the usual spherical coordinates. The correct usual ones are:
## x=\rho \sin\theta \cos\phi \\ y=\rho \sin \theta \sin\phi \\ z=\rho \cos\theta ##
unicornflyers said:
However, it seems to me that if someone was using these equations, they would get completely the wrong stuff.
You don't get the wrong stuff. Its just a convention. Conventions are just arbitrary choices that don't change the results but of course you need to be consistent about them. You can't use one definition of spherical coordinates for some part of the problem and another definition for another part. This is what makes you think this convention gives the wrong stuff. As long as you're consistent, it doesn't matter what definition you use. So you're free to use this definition of spherical coordinates but you need to be careful that anywhere you see spherical coordinates, you should make sure you can make it consistent with this definition you're using.
unicornflyers said:
So is there a way to get our usual equations using this method? Or what's going on here that makes this ok? I don't see how we should get a completely different result. I really like this method because it makes a lot of sense to me, but I don't like how it gets what I consider a completely wrong result.

From what I can tell, the issue seems to come from the rotation table/matrix from the a to n coordinate frame which is:

R = [cos(\theta), sin(\theta), 0
sin(\theta), cos(\theta), 0
0, 0, 1]

However, I can't seem to think of a way that this is inherently wrong given the geometry, nor how we would get the usual equations from this.

Can someone please help/elaborate/explain this situation to me?

There is nothing wrong with his method. And the reason he gets different results than usual is not his method! His method can be used to find out the definition for the usual convention of spherical coordinates too. What makes he get different results, is just the names he assigns to the angles and the axis he chose from which he measures ## \theta ##. Rename ## \phi \to \theta ## and ## \theta \to \phi ## and measure the new named ## \phi ## from the x-axis instead of the y-axis that he uses. Then do the calculations as he explains and you'll get the usual definition of the spherical coordinates.
 
  • #3
I can share one bad experience. I once had 2 points out of 10 deducted from a physics qualifying exam by solving a problem (correctly) but using the "latitude" angle from the equatorial plane rather than the polar angle downward from the z-axis. It turned out I was returning to graduate school from work in an area where we used an Earth-based coordinate system, so that latitude was more natural. In addition, I had to take the exam in January, after starting in September, without the first year grad courses, so I did not have much chance to see how the physics texts define the angles. (I was placed in 2nd year graduate courses).

By the way, it gets worse. Some rotation matrices use the x-y-x convention for Euler angles, rather than the x-y-z convention or the z-x-z convention. If this does not make sense to you right now, forget about it.

Try to do what your grader expects, but if you differ, you can usually do the problem OK if you are consistent. If you get a different answer from the book, you can usually square your answer with the book if you are consistent.
 
  • #4
Shyan said:
This is not the usual spherical coordinates. The correct usual ones are:
## x=\rho \sin\theta \cos\phi \\ y=\rho \sin \theta \sin\phi \\ z=\rho \cos\theta ##

You don't get the wrong stuff. Its just a convention. Conventions are just arbitrary choices that don't change the results but of course you need to be consistent about them. You can't use one definition of spherical coordinates for some part of the problem and another definition for another part. This is what makes you think this convention gives the wrong stuff. As long as you're consistent, it doesn't matter what definition you use. So you're free to use this definition of spherical coordinates but you need to be careful that anywhere you see spherical coordinates, you should make sure you can make it consistent with this definition you're using.There is nothing wrong with his method. And the reason he gets different results than usual is not his method! His method can be used to find out the definition for the usual convention of spherical coordinates too. What makes he get different results, is just the names he assigns to the angles and the axis he chose from which he measures ## \theta ##. Rename ## \phi \to \theta ## and ## \theta \to \phi ## and measure the new named ## \phi ## from the x-axis instead of the y-axis that he uses. Then do the calculations as he explains and you'll get the usual definition of the spherical coordinates.
Thank you so much! This explained it clearly! I went back with your suggestions and rederived the equations and got the same result that we would consider the usual definition using his method. I truly appreciate your time!
 

1. What are spherical coordinates and how do they differ from Cartesian coordinates?

Spherical coordinates are a system for representing points in three-dimensional space using two angles (θ and φ) and a distance (r) from the origin. They differ from Cartesian coordinates in that they use angles instead of x, y, and z coordinates.

2. How are spherical coordinates converted to Cartesian coordinates using a rotation matrix?

A rotation matrix is a 3x3 matrix that can be used to rotate points in three-dimensional space. To convert spherical coordinates to Cartesian coordinates using a rotation matrix, the following equations are used:
x = r * sin(φ) * cos(θ)
y = r * sin(φ) * sin(θ)
z = r * cos(φ)

3. Why is a rotation matrix necessary for converting between spherical and Cartesian coordinates?

A rotation matrix is necessary because spherical coordinates and Cartesian coordinates use different systems to represent points in three-dimensional space. The rotation matrix allows for the conversion between these two systems by rotating the point in space accordingly.

4. How is the rotation matrix determined for a specific set of spherical coordinates?

The rotation matrix is determined by considering the angles and direction of rotation needed to transform the point from spherical coordinates to Cartesian coordinates. The general formula for a rotation matrix is:
R = [cos(θ) -sin(θ) 0; sin(θ) cos(θ) 0; 0 0 1]
However, the specific values for θ and φ will vary depending on the point being transformed.

5. Can a rotation matrix be used to convert between spherical coordinates and other coordinate systems?

Yes, a rotation matrix can be used to convert between spherical coordinates and other coordinate systems, such as cylindrical coordinates or polar coordinates. However, the specific equations and values for the rotation matrix will differ depending on the coordinate system being converted from and to.

Similar threads

  • Linear and Abstract Algebra
Replies
1
Views
730
Replies
2
Views
988
  • Linear and Abstract Algebra
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
564
  • Advanced Physics Homework Help
Replies
9
Views
2K
Replies
1
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
426
  • Linear and Abstract Algebra
Replies
4
Views
973
  • Linear and Abstract Algebra
Replies
2
Views
992
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
Back
Top