Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Magnetic field in plane of ring, outside (verify please?)

  1. May 9, 2008 #1

    I was hoping someone can verify this for me.

    In uni today we had to calculate the magnetic field of a ring of current, lying in the xy-plane. First we had to calculate it on the z-axis (perpendicular to the ring) which was easy.
    Then we had to calculate it on the y-axis (in the plane of the ring, outside of the ring). Because this was apparently too hard however, we had to 'simplify' the ring into a square, which made the calculation almost childlishly easy...

    I was wondering now why they thought it was so hard... I tried to calculate it with an actual ring and the only difficulty I had was to calculate the integral, which was pretty ugly when calculated with Maple...

    If someone can verify my calculation for me please that would be great.

    Consider the following diagram, a loop (blue) with radius R lying in the xy-plane with a current I travelling in the direction of the vector dl.

    I want to calculate the magnetic field on the point P lying on the x-axis, a distance x from the origin, using Biot-Savart's law:
    [tex]d \vec{B} = \frac{ \mu_0 }{4 \pi} \frac{I d\vec{l} \times \hat{r}}{r^2}[/tex] where [itex]\hat{r}[/itex] is the direction of [itex]\vec{r}[/itex].

    Since [itex]r[/itex] is dependend on [itex]\theta[/itex], I have to find a way to link them.

    What I did was:
    [tex]a = R \sin\theta \text{ , } b = R \cos\theta[/tex]
    [tex]r^2 = b^2 + (x-a)^2 = (R \cos\theta)^2 + (x - R\sin\theta)^2[/tex]

    Finally, (the part where I'm not entirly sure), I figured [itex]dl = R d\theta[/itex] for a small angle [itex]d\theta[/itex].

    This finally yields (the direction is obvious):
    [tex]B = \frac{ \mu_0 I}{4 \pi} \int_0^{2 \pi} \frac{ R d\theta }{(R \cos\theta)^2 + (x - R\sin\theta)^2}[/tex]

    For the integral, I didn't even try to do it manually but had Maple do it. The answer was:
    [tex]\int_0^{2 \pi} \frac{ R d\theta }{(R \cos\theta)^2 + (x - R\sin\theta)^2}=-2\,iR \left( \ln \left( {\frac {i \left( {x}^{2}+{R}^{2} \right) }{-
    {x}^{2}+{R}^{2}}} \right) -\ln \left( {\frac {-i \left( {x}^{2}+{R}^{
    2} \right) }{-{x}^{2}+{R}^{2}}} \right) \right) \left( -{x}^{2}+{R}^
    {2} \right) ^{-1}[/tex]

    Am I right on this? If so, I can't understand why we had to imagine the ring as a square (apart from the horrible integral)... It made the calculation completely different (upper and lower portion of the square cancel, remaining two lines are simply two lines, add up the fields...)
    And we get horrible integrals all the time, the question just states that we don't have to calculate it then...

    So yeah, thanks if anyone can verify or tell me where I went wrong!
  2. jcsd
  3. May 9, 2008 #2


    User Avatar

    You have to include the sine of the angle between r and dl in the cross product.
  4. May 9, 2008 #3
    You're right, they're not always perpendicular, completely forgot about that!

    So how could I find the angle?
  5. May 10, 2008 #4


    User Avatar

    Use either trig or cartesian coords.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook