Converting from Cartesian to Cylindrical coords - but division by zero

Click For Summary

Homework Help Overview

The discussion revolves around converting Cartesian coordinates to cylindrical coordinates, specifically addressing the point P(0, -4, 3). Participants explore the implications of division by zero when calculating the angle φ using the tangent function.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the challenge of determining φ when x is zero, leading to division by zero. Some suggest that the angle could be interpreted as 90 degrees, while others question this interpretation and consider the correct quadrant for the angle.

Discussion Status

There is an ongoing exploration of the correct angle for the given point, with some participants suggesting different interpretations of φ based on the quadrant. Guidance has been offered regarding the need to consider the full range of angles in cylindrical coordinates.

Contextual Notes

Participants note that the point lies on the negative y-axis, which raises questions about the appropriate angle representation in cylindrical coordinates. There is also mention of the importance of sanity checks when converting between coordinate systems.

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



[tex]\rho\,=\,\sqrt{x^2\,+\,y^2}[/tex]

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

[tex]z\,=\,z[/tex]

The Attempt at a Solution



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

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


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

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

which is 90 degrees, so [tex]\rho[/tex] = [tex]\frac{\pi}{2}[/tex]

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


I guess I should complete the question so:

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

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

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,

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

which is 90 degrees, so [tex]\rho[/tex] = [tex]\frac{\pi}{2}[/tex]

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


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

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


VinnyCee said:

Homework Equations



[tex]\rho\,=\,\sqrt{x^2\,+\,y^2}[/tex]

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

[tex]z\,=\,z[/tex]
That is not quite the right equation for the angle. Think about it this way: What if x=y=-1? Your equation gives [itex]\phi=\arctan(-1/-1)=\arctan(1)=\pi/2[/itex]. 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 [itex]\theta= -\pi/4[/itex] or [itex]\theta= 3\pi/4[/itex].
 

Similar threads

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