Converting from Cartesian to Cylindrical coords - but division by zero

Click For Summary
To convert the point P(0, -4, 3) from Cartesian to cylindrical coordinates, the formulas for ρ, φ, and z are applied. The calculation for φ involves a division by zero, as x equals zero, leading to an undefined angle using the standard arctan formula. Instead, the angle φ should be determined based on the quadrant, resulting in φ being 3π/2 (or 270 degrees) since the point lies on the negative y-axis. The correct values are ρ = 4, φ = 3π/2, and z = 3, giving the cylindrical coordinates as (4, 3π/2, 3). It is essential to verify the results by converting back to Cartesian coordinates to ensure accuracy.
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


because 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:
because 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.
 

Similar threads

Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
16
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K