Converting vector in cartesian to cylindrical coordinates

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 45K views
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: