Convert vector-field from cylindrical to cartesian

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
12 replies · 5K views
wellmax
Messages
19
Reaction score
0

Homework Statement


I have a vector field (which happens to be a magnetic field)
H = -[itex]\frac{I }{2 \pi r}[/itex]u[itex]\varphi[/itex]
u[itex]\varphi[/itex] is the unit vector

which is in the cylindrical coordinate system with only the [itex]\varphi[/itex] component nonzero so it circles around the z-axis. r is the radius of the circle.
the question is: write H in the cartesian coordinate system.


Homework Equations


i already know the answer through common sense but I'm not able to derive it myself:
H = [itex]\frac{-I}{2 \pi \sqrt{x^2+y^2}}[/itex][[itex]\frac{y}{\sqrt{x^2+y^2}}[/itex] - [itex]\frac{x}{\sqrt{x^2+y^2}}[/itex]]


The Attempt at a Solution


now I know these relations:
x = r Cos[[itex]\varphi[/itex]]
y = r Sin[[itex]\varphi[/itex]]
r = [itex]\sqrt{x^2+y^2}[/itex]
but i can't produce the answer with these
 
Last edited:
Physics news on Phys.org
If ##\theta## is the usual polar coordinate angle, then the unit vector in the ##r## direction is ##\langle \cos\theta, \sin\theta\rangle##. You want to rotate this vector ##90^\circ## to get a unit vector in the ##\theta## direction. So put ##\varphi = \frac \pi 2 +\theta## to get$$
\hat u_\varphi = \langle \cos(\frac \pi 2 +\theta),\sin(\frac \pi 2 +\theta)\rangle =
\langle \sin\theta,-\cos\theta\rangle = \langle \frac y r,-\frac x r\rangle =
\langle \frac y {\sqrt{x^2+y^2}},-\frac x {\sqrt{x^2+y^2}}\rangle$$
 
  • Like
Likes   Reactions: 1 person
LCKurtz said:
If ##\theta## is the usual polar coordinate angle, then the unit vector in the ##r## direction is ##\langle \cos\theta, \sin\theta\rangle##. You want to rotate this vector ##90^\circ## to get a unit vector in the ##\theta## direction. So put ##\varphi = \frac \pi 2 +\theta## to get$$
\hat u_\varphi = \langle \cos(\frac \pi 2 +\theta),\sin(\frac \pi 2 +\theta)\rangle =
\langle \sin\theta,-\cos\theta\rangle = \langle \frac y r,-\frac x r\rangle =
\langle \frac y {\sqrt{x^2+y^2}},-\frac x {\sqrt{x^2+y^2}}\rangle$$
Thank you very much, this solves my question
 
wellmax said:
i already know the answer through common sense but I'm not able to derive it myself:
H = [itex]\frac{-I}{2 \pi \sqrt{x^2+y^2}}[/itex][[itex]\frac{y}{\sqrt{x^2+y^2}}[/itex] - [itex]\frac{x}{\sqrt{x^2+y^2}}[/itex]]
The righthand side, as you've written it, isn't a vector. Typo? It also looks like you made a sign error. Note that ##\hat{u}_\varphi = (-\sin \phi, \cos \phi,0)##. It points in the direction that ##\vec{r}## moves if you increase ##\varphi## by a small amount.
 
vela said:
The righthand side, as you've written it, isn't a vector. Typo? It also looks like you made a sign error. Note that ##\hat{u}_\varphi = (-\sin \phi, \cos \phi,0)##. It points in the direction that ##\vec{r}## moves if you increase ##\varphi## by a small amount.

Yes indeed a typo :redface: forgot the unit vectors
and H points in the minus [itex]\varphi[/itex] direction so i think it's alright
 
I don't see this error and my professor didn't see it as an error either when i first handed it in so could you please elaborate a bit more?
 
Well I plotted it in Mathematica and I rotates clockwise around the z-axis as expected so I still don't see the error
 
Then it will point in the +x and -y direction because there is a minus sign in front of the entire vector
H = [itex]\frac{-I}{2[itex]\pi[/itex]\sqrt{x^2+y^2}}[/itex][[itex]\frac{y}{\sqrt{x^2+y^2}}[/itex]ux + [itex]\frac{-x}{\sqrt{x^2+y^2}}[/itex]uy]
 
I see you are right and my professor didn't even notice :biggrin: