Magnetic Field Equation in Spherical Coordinates to Cartesian Coordinates

jhosamelly
Messages
125
Reaction score
0

Homework Statement



The magnetic field around a long, straight wire carrying a steady current I is given in spherical coordinates by the expression

\vec{B} = \frac{\mu_{o} I }{2∏ R} \hat{\phi} ,

where \mu_{o} is a constant and R is the perpendicular distance from the wire to the observation points. Find the expression for \vec{B} in cartesian coordinates.


Homework Equations





The Attempt at a Solution



I know I need to get the partial derivative of this with respect to some variable.. but I don't know what that variable is. can someone help me please?
 
Physics news on Phys.org
Jacobians are pretty helpful moving between coordinates. You don't necessarily need to go that in depth though. The R is easy. How will the unit vector transform?
 
Mindscrape said:
Jacobians are pretty helpful moving between coordinates. You don't necessarily need to go that in depth though. The R is easy. How will the unit vector transform?

I didn't really get your point.. i mean, is that formula a unit vector?? I think not.

In terms of R. do u mean I should make it

R = \frac{\mu_{o} I}{2∏ \vec{B}} \hat{\phi}
 
He means the unit vector in your basis.
 
paris1244bc said:
He means the unit vector in your basis.

basis meaning the observation points..

its

R=Rx i + Ry j + Rz k
 
He means ##\hat{\phi}##.
 
vela said:
He means ##\hat{\phi}##.

hmmm.. now I'm really confused. Can you please tell me the steps on how to do this, then i'll try. I'll show you what I did then you can tell me if I'm wrong or right. Thanks.
 
Can someone please help me with this one?? This is the last problem I wasn't able to solve in our problem set. Help will be much appreciated. Thanks.
 
Spherical coordinates to cartesian coordinates

Homework Statement


\vec{B} = \frac{\mu_{o} I }{2∏ R} \hat{\phi} , is the equation of Magnetic Field in spherical coordinates. where \mu_{o} is a constant and R is the perpendicular distance from the wire to the observation points. Find the expression for \vec{B} in cartesian coordinates.

Homework Equations


The Attempt at a Solution



I tried to equate this equation in terms of \hat{\phi} but after that I'm stuck.. I know also that R being the perpendicular distance from the wire to the observation points will also do the trick but I don't know how it will help. Can someone please help me figure this thing out? help will be much appreciated
 
Last edited:
  • #10
hi jhosamelly! :smile:

hint: what shape are the field-lines? :wink:
 
  • #11


tiny-tim said:
hi jhosamelly! :smile:

hint: what shape are the field-lines? :wink:


circular.. do you mean I should use equations for circle?
 
  • #12
seems a good idea! :wink:

what do you get? :smile:
 
  • #13


tiny-tim said:
seems a good idea! :wink:

what do you get? :smile:

(x-a)^2 + (y-b)^2 = r^2

or if the center is at the origin


x^2 + y^2 = r^2


how does this help? should I equate this with the R in the equation?
 
  • #14
jhosamelly said:
…or if the center is at the origin


x^2 + y^2 = r^2

the centre isn't at the origin, is it?

it's anywhere along the z-axis :wink:

and it isn't r, it's R …

ok, now that you know what shape everything is, write the original formula for B in spherical coordinates :smile:
 
  • #15


tiny-tim said:
the centre isn't at the origin, is it?

it's anywhere along the z-axis :wink:

and it isn't r, it's R …

ok, now that you know what shape everything is, write the original formula for B in spherical coordinates :smile:

do you mean this??

\vec{B} = \frac{\mu_{o} I }{2∏ R} \hat{\phi}

I think this is already in spherical coordinates.

should i change R now to x^2 + y^2

\vec{B} = \frac{\mu_{o} I }{2∏ (x^2 + y^2)} \hat{\phi}
 
  • #16
oops! i meant cartesian coordinates! :redface:
jhosamelly said:
should i change R now to x^2 + y^2

\vec{B} = \frac{\mu_{o} I }{2∏ (x^2 + y^2)} \hat{\phi}

yes, and finally you need to change phi to x and y (or i and j) :smile:
 
  • #17


tiny-tim said:
oops! i meant cartesian coordinates! :redface:yes, and finally you need to change phi to x and y (or i and j) :smile:
\vec{B} = \frac{\mu_{o} I }{2∏ (x^2 + y^2)} \hat{\phi}

\hat{\phi} = - sin \phi \hat{i} + cos \phi \hat{j}

\vec{B} = \frac{\mu_{o} I }{2∏ (x^2 + y^2)} (-sin \phi \hat{i} + cos \phi \hat{j})

is this it? Thanks for your help :)))
 
  • #18
(type \pi for π in latex :wink:)
jhosamelly said:
\vec{B} = \frac{\mu_{o} I }{2∏ (x^2 + y^2)} \hat{\phi}

\hat{\phi} = - sin \phi \hat{i} + cos \phi \hat{j}

\vec{B} = \frac{\mu_{o} I }{2\pi (x^2 + y^2)} (-sin \phi \hat{i} + cos \phi \hat{j})

is this it? Thanks for your help :)))

that's it! :biggrin:

(except for the missing square-root :wink:)

(btw, now that you've got the idea, you don't need to find the shape of the field-lines …

that was just to help you visualise everything)
 
  • #19


tiny-tim said:
(type \pi for π in latex :wink:)


that's it! :biggrin:

(except for the missing square-root :wink:)

(btw, now that you've got the idea, you don't need to find the shape of the field-lines …

that was just to help you visualise everything)


ow yah.. because its R^2.. hehe.. thanks for the reminder..

\vec{B} = \frac{\mu_{o} I }{2\pi (\sqrt{(x^2 + y^2)})} (-sin \phi \hat{i} + cos \phi \hat{j})

is this ok now or should i also change sin to y/r and cos to x/r ??
 
  • #20
jhosamelly said:
… should i also change sin to y/r and cos to x/r ??

yes! :smile:
 
  • #21


tiny-tim said:
yes! :smile:

so the final answer is

\vec{B} = \frac{\mu_{o} I }{2\pi (\sqrt{(x^2 + y^2)})} (-\frac{y}{r} \hat{i} + \frac{x}{r} \hat{j})

Thank you so much for your help.. :)) God Bless
 
Last edited:
  • #22
hold on!

you need to change those r's to x and y also! :wink:
 
  • #23


tiny-tim said:
hold on!

you need to change those r's to x and y also! :wink:

ow.. ok. So, the final answer should be

\vec{B} = \frac{\mu_{o} I }{2\pi (\sqrt{(x^2 + y^2)})} (-\frac{y}{\sqrt{(x^2 + y^2)}} \hat{i} + \frac{x}{\sqrt{(x^2 + y^2)}} \hat{j})

if i distribute \frac{\mu_{o} I }{2\pi (\sqrt{(x^2 + y^2)})}\vec{B} = - \frac{\mu_{o} I y }{2 \pi (x^2 + y^2)} \hat{i} + \frac{\mu_{o} I x}{2 \pi (x^2 + y^2)} \hat{j}
Thanks :))))) Because you helped me I'll return the favor by helping others here as well as much as I can ;))) Thank you so much
 
Last edited:
  • #24
and how about multiplying those √s together? :wink:
jhosamelly said:
Thanks :))))) Because you helped me I'll return the favor by helping others here as well as much as I can ;))) Thank you so much

that's the way it works!:smile:
 
  • #25


tiny-tim said:
and how about multiplying those √s together? :wink:

i think I already did this.. can you please look at my final answer to clarify. Thanks :)))
 
  • #26
(ohh, you edited!)

yes, that's perfect! :smile:
 
  • #27
tiny-tim said:
(ohh, you edited!)

yes, that's perfect! :smile:

maybe I'm not yet done posting my answer when you saw it :)) (I need to save it first to see if all the "codes" for the equations are correct.) Big thanks! God Bless :)))) See you around.
 
Back
Top