Magnetostatics and Magnetic Fields

Magnetostatics

Magnetostatics deals with magnetic fields that are static in nature. A key difference between electric and magnetic fields is:

  • Electric charges can be isolated (exist as monopoles).

  • Magnetic fields always have dipoles; magnetic monopoles do not exist. <br>abla<br>eq0<br>abla <br>eq 0 (magnetic field divergence not equal to zero) implies magnetic monopoles don't exist, where E = Electric Field. <br>eq<br>eq doesn't exist.

Definition of a Magnetic Field

The magnetic field at a point P is defined by considering a charge qq at point P moving with velocity vv.

  1. The magnetic force FBF_B at P on the charged particle is perpendicular to vv at P.

  2. By varying the direction of vv, we find a particular direction (and its opposite) where FB=0F_B = 0. The direction of the magnetic field BB is defined along this line.

  3. Varying vv such that it is perpendicular to BB maximizes the force, F<em>B,maxF<em>{B,max}. The magnitude of BB is defined as: B=F</em>B,maxqvB = {F</em>{B,max} \over qv}

The magnetic force is defined by the vector cross product:

FB=qv×BF_B = qv \times B

When the sign of the charge is switched, the direction of the magnetic force reverses.

Units of Magnetic Field

The SI unit for magnetic field is the tesla (T):

1 tesla=1 T=1NewtonCoulombmeter/second=1NCm/s=1NAm1 \text{ tesla} = 1 \text{ T} = 1 \frac{\text{Newton}}{\text{Coulomb} \cdot \text{meter/second}} = 1 \frac{\text{N}}{\text{C} \cdot \text{m/s}} = 1 \frac{\text{N}}{\text{A} \cdot \text{m}}

Another unit is the gauss (G):

1 T=104 G1 \text{ T} = 10^4 \text{ G}

Properties of Magnetic Force

  • FBF_B is always perpendicular to vv and BB.

  • FBF_B cannot change the particle's speed (and thus kinetic energy).

  • FBF_B cannot do work on the particle.

  • FBF_B can alter the direction of vv.

Example: Magnetic Force on a Proton

Given:

  • Velocity of proton, v=6×107 m/sv = 6 \times 10^7 \text{ m/s}

  • Magnetic field, B=0.5 TB = 0.5 \text{ T}

  • Angle between vv and BB is 9090^\circ

Magnitude of the force:

FB=qvBsinθ=(1.6×1019 C)(6×107 m/s)(0.5 T)(1)=4.8×1012 NF_B = qvB \sin{\theta} = (1.6 \times 10^{-19} \text{ C}) (6 \times 10^7 \text{ m/s}) (0.5 \text{ T}) (1) = 4.8 \times 10^{-12} \text{ N}

Magnetic Force on a Current-Carrying Wire

A current-carrying wire experiences a magnetic force when placed in a magnetic field because the current consists of moving charged particles.

  • A wire suspended between magnetic poles deflects left or right depending on the current direction.

To calculate the force, consider a segment of wire of length ll with conduction electrons drifting at velocity vd\vec{v_d}.

vd=lt\vec{v_d} = \frac{\vec{l}}{t}

where l\vec{l} is the length vector directed along the current.

The magnetic force on the wire segment is:

F<em>B=q(v</em>d×B)=It(lt×B)=I(l×B)F<em>B = q(\vec{v</em>d} \times B) = I t (\frac{\vec{l}}{t} \times B) = I (\vec{l} \times B)

If l\vec{l} and B\vec{B} are at 90 degrees:

FB=IlBF_B = IlB

Arbitrary Wire Shape

For a wire of arbitrary shape, sum the forces on small segments dld\vec{l}.

dFB=I(dl×B)dF_B = I (d\vec{l} \times B)

The total magnetic force is:

F<em>B=I</em>ab(dl×B)F<em>B = I \int</em>a^b (d\vec{l} \times B)

where a and b are the endpoints of the wire.

Curved Wire in Uniform Magnetic Field

FB=I(dl×B)=I(dl)×B=IL×BF_B = I \int (d\vec{l} \times B) = I (\int d\vec{l}) \times B = I \vec{L} \times B

L\vec{L} is the length vector from point a to b.

Production of Magnetic Fields

Moving charges (currents) are the source of magnetic fields. The magnetic field at a point P due to a current in a wire can be calculated by summing the contributions from small wire segments dld\vec{l}.

  • dld\vec{l} has magnitude equal to the segment length and points in the current direction.

  • The infinitesimal current source is IdlId\vec{l}.

Biot-Savart Law

The Biot-Savart law gives the magnetic field contribution dBd\vec{B} from a current source IdlId\vec{l}:

dB=μ04πIdl×r^r2d\vec{B} = \frac{\mu_0}{4\pi} \frac{Id\vec{l} \times \hat{r}}{r^2}

where:

  • μ<em>0\mu<em>0 is the permeability of free space: μ</em>0=4π×107 Tm/A\mu</em>0 = 4\pi \times 10^{-7} \text{ T} \cdot \text{m/A}

  • rr is the distance from the current source to the field point P.

  • r^\hat{r}is the unit vector from the source to the field point.

The total magnetic field is:

B=dB=μ04πIdl×r^r2B = \int d\vec{B} = \int \frac{\mu_0}{4\pi} \frac{Id\vec{l} \times \hat{r}}{r^2}

In terms of vectors from source to field point:

r^=rrrr\hat{r} = \frac{\vec{r} - \vec{r'}}{|\vec{r} - \vec{r'}|}

B=dB=μ04πIdl×(rr)rr3B = \int d\vec{B} = \int \frac{\mu_0}{4\pi} \frac{Id\vec{l} \times (\vec{r} - \vec{r'})}{|\vec{r} - \vec{r'}|^3}

Similar to Coulomb's Law:

E(r)=14πϵ0dqrr2rrrrE(r) = \frac{1}{4 \pi \epsilon_0} \frac{dq}{|r-r'|^2} \frac{r-r'}{|r-r'|}

Magnetic Field Due to a Finite Straight Wire

  1. Consider a source element dl=dxx^d\vec{l'} = dx' \hat{x} carrying current II in the x direction.

  2. The location of the source element is r=xx^\vec{r'} = x' \hat{x}.

  3. The field point is located at (x,y)=(0,z)(x, y) = (0, z), so the field vector is r=zz^\vec{r} = z \hat{z}.

  4. The separation vector is rr=zz^xx^\vec{r} - \vec{r'} = z \hat{z} - x' \hat{x}.

  5. Magnitude: rr=z2+x2|\vec{r} - \vec{r'}| = \sqrt{z^2 + x'^2}

  6. Unit vector: r^=rrrr=zz^xx^z2+x2\hat{r} = \frac{\vec{r} - \vec{r'}}{|\vec{r} - \vec{r'}|} = \frac{z \hat{z} - x' \hat{x}}{\sqrt{z^2 + x'^2}}

  7. The cross product is:
    dl×r^=(dxx^)×(zz^xx^)=zdx(x^×z^)xdx(x^×x^)d\vec{l'} \times \hat{r} = (dx' \hat{x}) \times (z \hat{z} - x' \hat{x}) = z dx' (\hat{x} \times \hat{z}) - x' dx' (\hat{x} \times \hat{x})

  8. Since x^×z^=y^\hat{x} \times \hat{z} = -\hat{y} and x^×x^=0\hat{x} \times \hat{x} = 0:
    dl×r^=zdxy^d\vec{l'} \times \hat{r} = -z dx' \hat{y}

  9. The magnetic field contribution is:
    dB=μ<em>0I4πdl×r^rr2=μ</em>0I4πzdxy^(z2+x2)3/2d\vec{B} = \frac{\mu<em>0 I}{4\pi} \frac{d\vec{l'} \times \hat{r}}{|\vec{r} - \vec{r'}|^2} = \frac{\mu</em>0 I}{4\pi} \frac{-z dx' \hat{y}}{(z^2 + x'^2)^{3/2}}

Direction is out of page.

To obtain the total contribution from a line of length 2L, integrate from -L to L:

B=dB=y^μ<em>0Iz4π</em>LLdx(z2+x2)3/2B = \int d\vec{B} = -\hat{y} \frac{\mu<em>0 I z}{4\pi} \int</em>{-L}^{L} \frac{dx'}{(z^2 + x'^2)^{3/2}}

B=μ0IL4πzL2+z2B = \frac{\mu_0 I L}{4 \pi z \sqrt{L^2 + z^2}}

For an infinitely long wire (L >> z):

B=μ0I2πzB = \frac{\mu_0 I}{2 \pi z}

In this limit, the system possesses cylindrical symmetry, and the magnetic field lines are circular.

Ampere's Law

Electric currents generate magnetic fields whose field lines form closed loops.

  • Compass needles near a current-carrying wire deflect.

  • In the absence of current (I=0I = 0), all compass needles point in the same direction.

  • When I0I \neq 0, needles deflect along the tangential direction of the circular path.

Divide a circular path of radius rr into small length vectors dld\vec{l}.

Bdl=Bdl=B(2πr)=μ0I\oint \vec{B} \cdot d\vec{l} = B \oint dl = B (2 \pi r) = \mu_0 I

This result is obtained by choosing a closed path (Amperian loop) that follows a magnetic field line.

Ampere's law in magnetism is analogous to Gauss's law in electrostatics. To apply them, the system must possess certain symmetry. Ampere's law can be readily applied to an infinite wire due to cylindrical symmetry. For a finite wire, the Biot-Savart law must be used.

Applications of Ampere's Law

Magnetic Field of a Straight Wire

What is the field outside a long straight wire of radius R carrying a current I of uniform current density?

  • For r > R, the Amperian loop encircles the entire current, i.e., Ienc=II_{enc} = I.

Applying Ampere's Law:

Bdl=B(r)(2πr)=μ0I\oint \vec{B} \cdot d\vec{l} = B(r) (2 \pi r) = \mu_0 I

B=μ0I2πrB = \frac{\mu_0 I}{2 \pi r}

  • For r < R, the current encircled is proportional to the area enclosed:

Ienc=Iπr2πR2I_{enc} = I \frac{\pi r^2}{\pi R^2}

Applying Ampere's Law:

Bdl=B(2πr)=μ0Ir2R2\oint \vec{B} \cdot d\vec{l} = B(2 \pi r) = \mu_0 I \frac{r^2}{R^2}

B=μ0Ir2πR2B = \frac{\mu_0 I r}{2 \pi R^2}

The magnetic field is zero at the center of the wire increases linearly with rr until r=Rr = R. Outside the wire, the field falls off as 1/r1/r.

Magnetic Field of a Solenoid

A solenoid is a long coil of wire tightly wound in a helical form.

  • For an ideal solenoid (infinitely long, tightly packed turns), the magnetic field inside is uniform and parallel to the axis, vanishing outside.

To compute the magnetic field BB, consider a rectangular Amperian path of length \ell traversing in a counterclockwise manner.

Bdl=<em>1Bdl+</em>2Bdl+<em>3Bdl+</em>4Bdl\oint \vec{B} \cdot d\vec{l} = \int<em>1 \vec{B} \cdot d\vec{l} + \int</em>2 \vec{B} \cdot d\vec{l} + \int<em>3 \vec{B} \cdot d\vec{l} + \int</em>4 \vec{B} \cdot d\vec{l}

The contributions along sides 2 and 4 are zero because B\vec{B} is perpendicular to dld\vec{l}. B=0B = 0 along side 1 because the magnetic field is zero outside.

The current enclosed is Ienc=NII_{enc} = NI, where NN is the number of enclosed turns. Applying Ampere's law:

Bdl=B=μ0NI\oint \vec{B} \cdot d\vec{l} = B \ell = \mu_0 NI

B=μ<em>0NI=μ</em>0nIB = \frac{\mu<em>0 NI}{\ell} = \mu</em>0 n I

where n=N/n = N/\ell represents the number of turns per unit length.