Converting from Cartesian to Cylindrical coords - but division by zero

VinnyCee
Messages
486
Reaction score
0
Converting from Cartesian to Cylindrical coords - but division by zero!

Homework Statement



Let's say I want to convert the point P(0, -4, 3) to cylindrical.

To convert from Cartesian to Cylindrical coordinates, one must use the formulas listed below.

Homework Equations



\rho\,=\,\sqrt{x^2\,+\,y^2}

\phi\,=\,tan^{-1}\left(\frac{y}{x}\right)

z\,=\,z

The Attempt at a Solution



What do I do about the division by zero produced by using the second equation for \phi?

\phi\,=\,tan^{-1}\left[\frac{(-4)}{(0)}\right]
 
Physics news on Phys.org


Becuase your point is P(0, -4, 3), really your on a 2D plane. But to explain this mathematically,

\arctan^{-1}\left(\frac{-4}{0}\right) = \arctan^{-1}(\infty) = \frac{\pi}{2}

which is 90 degrees, so \rho = \frac{\pi}{2}

and the rest should be straight forward. Hope that helps you.
 


I guess I should complete the question so:

\rho = \sqrt{0^2 + (-4)^2} = \sqrt(8) = 2\sqrt{2}
\phi = \frac{\pi}{2} = 1.57 (as shown above)
z = 3

Putting this as a vector,
(\rho,\phi,z)= (2\sqrt{2},1.57,3)

That should be the answer... but it seems a bit messy
 


untoldstory said:
Becuase your point is P(0, -4, 3), really your on a 2D plane. But to explain this mathematically,

\arctan^{-1}\left(\frac{-4}{0}\right) = \arctan^{-1}(\infty) = \frac{\pi}{2}

which is 90 degrees, so \rho = \frac{\pi}{2}

and the rest should be straight forward. Hope that helps you.


Thanks! That -4/0 = \infty should have been obvious to me!

Untoldstory, \sqrt{(0)^2\,+\,(-4)^2}\,=\,4, but otherwise it's correct:)
 


VinnyCee said:

Homework Equations



\rho\,=\,\sqrt{x^2\,+\,y^2}

\phi\,=\,tan^{-1}\left(\frac{y}{x}\right)

z\,=\,z
That is not quite the right equation for the angle. Think about it this way: What if x=y=-1? Your equation gives \phi=\arctan(-1/-1)=\arctan(1)=\pi/2. Converting back to cartesian yields x=y=1. The problem is that the range of the inverse tangent is pi radians, but the angle needs to range over a full circle, 2*pi radians. You need to take the quadrant of the arguments into account. If you don't you will get a wrong answer. For example, 90 degrees (or pi/2) is the wrong answer.

It is always a good idea to do a sanity check on your answers when working out problems. In this case, the sanity check is to convert back to cartesian to see if you get the same point you started with.
 
Last edited:


So, on an x-y plane, the coordinates (0,-4) is on the negative y-axis between the third and fourth quadrants. So the angle is not really 90 degrees, but 270 degrees? Is that correct?
 


(0, -4, 3) has z= 3 and (x,y)= (0, -4). That point is on the y-axis, 4 units below the origin: r= 4, and \theta= -\pi/4 or \theta= 3\pi/4.
 
Back
Top