Converting vector in cartesian to cylindrical coordinates

Click For Summary

Homework Help Overview

The discussion revolves around converting a vector from Cartesian coordinates to cylindrical coordinates. The original poster presents a vector defined in Cartesian coordinates and seeks to express it in both cylindrical and spherical coordinate systems, raising questions about the transformation process and the use of unit vectors.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to clarify the relationship between Cartesian components and cylindrical coordinates, particularly questioning the definition of the angle \phi and its relation to the vector components. Some participants suggest using the Jacobian matrix for transformations, while others express uncertainty about how to derive \phi from the given vector.

Discussion Status

Participants are actively exploring the conversion process, with some providing insights about the Jacobian and the transformation of unit vectors. There is an ongoing examination of how to express the components in cylindrical coordinates, but no consensus has been reached regarding the exact values or methods to be used.

Contextual Notes

There is a mention of needing to convert Cartesian coordinates (x, y, z) to cylindrical coordinates (\rho, \phi, z) and a discussion about whether to calculate \phi explicitly or leave it in terms of the Cartesian components. The original poster expresses confusion about the necessity of calculating \phi in the context of the transformation.

dingo_d
Messages
199
Reaction score
0

Homework Statement



This seems like a trivial question (because it is), and I'm just not sure if I'm doing it right.

I have vector in cartesian coordinate system:

[tex]\vec{a}=2y\vec{i}-z\vec{j}+3x\vec{k}[/tex]

And I need to represent it in cylindrical and spherical coord. system

Homework Equations



[tex]a_\rho=a_x\cos\phi+a_y\sin\phi[/tex]
[tex]a_\phi=-a_x\sin\phi+a_y\cos\phi[/tex]
[tex]a_z=a_z[/tex]

The Attempt at a Solution



What is cofusing me is this:
The formula for [tex]\phi[/tex] is[tex]\phi=\arctan\frac{y}{x}[/tex]. Are those x and y in fact [tex]a_x[/tex] and [tex]a_y[/tex]?

By some kind of reasoning it should be. But then [tex]\phi[/tex] is [tex]\phi=\arctan\frac{-z}{2y}[/tex] :\

Is this correct? And do I need to change the unit vectors too?
 
Physics news on Phys.org
You can represent the [tex]\phi[/tex]-component of a cylindrical/spherical vector in terms of [tex]\phi[/tex], like how you can represent the x-component of a Cartesian vector in terms of x. [tex]{\phi}=tan^{-1}\frac{y}{x}[/tex] doesn't refer to the components of a vector [field]. Finally, unit vectors change according to the Jacobian matrix e.g. the transformation from the x unit vector to the [tex]\rho[/tex] unit vector is the x[tex]\rho[/tex]-component of the Jacobian, or [tex]x_{\rho}[/tex]
 
Last edited:
Ok so you say I should use Jacobian, which is

[tex]J(r,\phi, z)=\begin{bmatrix} {dx\over dr} & {dx\over d\phi} &{dx\over dz} \\ {dy\over dr} & {dy\over d\phi} & {dy\over dz} \\ {dz\over dr} & {dz\over d\phi} & {dz\over dz}\end{bmatrix}<br /> =\begin{bmatrix} {d(r\cos\phi)\over dr} & {d(r\cos\phi)\over d\phi} & {d(r\cos\phi)\over dz} \\ {d(r\sin\phi)\over dr} & {d(r\sin\phi)\over d\phi} & {d(r\sin\phi)\over dz} \\ {dz\over dr} & {dz\over d\phi} & {dz\over dz}\end{bmatrix}<br /> =\begin{bmatrix} \cos\phi & -r\sin\phi & 0 \\ \sin\phi & r\cos\phi & 0 \\ 0 & 0 & 1 \end{bmatrix}[/tex]

But still where do I get the [tex]\phi[/tex]? :\
 
Last edited:
dingo_d said:
Ok so you say I should use Jacobian, which is

[tex]J(r,\phi, z)=\begin{bmatrix} {dx\over dr} & {dx\over d\phi} &{dx\over dz} \\ {dy\over dr} & {dy\over d\phi} & {dy\over dz} \\ {dz\over dr} & {dz\over d\phi} & {dz\over dz}\end{bmatrix}<br /> =\begin{bmatrix} {d(r\cos\phi)\over dr} & {d(r\cos\phi)\over d\phi} & {d(r\cos\phi)\over dz} \\ {d(r\sin\phi)\over dr} & {d(r\sin\phi)\over d\phi} & {d(r\sin\phi)\over dz} \\ {dz\over dr} & {dz\over d\phi} & {dz\over dz}\end{bmatrix}<br /> =\begin{bmatrix} \cos\phi & -r\sin\phi & 0 \\ \sin\phi & r\cos\phi & 0 \\ 0 & 0 & 1 \end{bmatrix}[/tex]

But still where do I get the [tex]\phi[/tex]? :\

Get the [tex]\phi[/tex] for what? It's okay to leave it as it is when you're in cylindrical coordinates.
 
Oh, so I need to find [tex]a_\rho[/tex], and that's just

[tex]a_\rho=2y\cos\phi-z\sin\phi[/tex] ?

Hmmm... I thought I had to calculate the phi :\
 
btw you should convert x's, y's, and z's to [tex]\rho[/tex]'s, [tex]\phi[/tex]'s, and z's/[tex]\theta[/tex]'s
 
So then the solution is:

[tex]a_\rho=2\rho\sin\phi\cos\phi-z\sin\phi[/tex]
[tex]a_\phi=-2\rho\sin^2\phi-z\cos\phi[/tex]
[tex]a_z=3\rho\cos\phi[/tex]

And to obtain [tex]\vec{a}[/tex] I just need to change unit vectors, and group them together to obtain the vector in cylindrical coordinate system?
 
Last edited:

Similar threads

Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
Replies
1
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K