Sub topic 6
Torque and Potential Energy of a Dipole in a Uniform Field
Prerequisites and scope
This chapter assumes you know the cross product, torque and rotational equilibrium, and the definition of the magnetic dipole moment m from the previous chapters. It also assumes you know that m points from the south pole to the north pole inside a bar magnet, and that its magnitude is m = (pole strength) × (magnetic length) for a bar magnet, or m = NIA for a coil of N turns.
The chapter covers three results for a dipole in a uniform field B:
- the torque on the dipole,
- the potential energy as a function of angle,
- the work needed to turn the dipole from one orientation to another.
The next chapter uses these results to find the oscillation period of a magnet.
Why a uniform field gives torque but no net force
Place a bar magnet in a uniform field B. The north pole feels a force of magnitude pB along B. The south pole feels a force of the same magnitude opposite to B. Here p is the pole strength.
The two forces are equal and opposite, so the net force is zero. The centre of mass does not accelerate. The forces act along different lines, though, so they form a couple, and a couple produces a torque.
In a non-uniform field the two poles feel different fields. The net force is then not zero. This chapter deals only with the uniform case.
Torque on a dipole
Let θ be the angle between m and B. The magnet has length 2l, so each pole is a distance l from the centre. The perpendicular distance between the two force lines is 2l sin θ.
torque = force × perpendicular distance = pB × 2l sin θ = (p · 2l) B sin θ = mB sin θ
In vector form:
τ = m × B
The direction of τ follows the right-hand rule for the cross product. It tends to rotate m towards B.
Key points:
- The torque is maximum, τ = mB, when θ = 90°.
- The torque is zero when θ = 0° or θ = 180°.
- The torque is a restoring torque. It acts to reduce θ.
- The unit of m is A m² (equivalently J T⁻¹), and the unit of torque is N m.
Potential energy of a dipole
The torque is a restoring torque, so the dipole has potential energy that depends on its orientation. To find it, we calculate the work done by an external agent that turns the dipole slowly from θ₁ to θ₂, without giving it kinetic energy.
The external torque must balance the magnetic torque, so it equals mB sin θ. The work done is:
W = ∫ from θ₁ to θ₂ of mB sin θ dθ = mB (cos θ₁ − cos θ₂)
This work equals the change in potential energy, U(θ₂) − U(θ₁). We are free to choose the zero of potential energy. The usual choice is U = 0 at θ = 90°, which gives:
U(θ) = −mB cos θ = −m · B
Check the sign convention against the stable and unstable positions:
| Orientation | θ | U | Equilibrium |
|---|---|---|---|
| **m** parallel to **B** | 0° | −mB (minimum) | Stable |
| **m** perpendicular to **B** | 90° | 0 | Not an equilibrium, torque is maximum |
| **m** antiparallel to **B** | 180° | +mB (maximum) | Unstable |
The energy difference between the two extreme orientations is 2mB. This is the work needed to flip a dipole from the stable position to the unstable one.
Work done in rotating a dipole
The most common numerical question asks for the work done in turning a magnet from θ₁ to θ₂. Use:
W = U₂ − U₁ = mB (cos θ₁ − cos θ₂)
Special cases, starting from the stable position θ₁ = 0°:
- Rotating to θ₂ = 60° needs W = mB(1 − cos 60°) = mB/2.
- Rotating to θ₂ = 90° needs W = mB.
- Rotating to θ₂ = 180° needs W = 2mB.
The sign matters. If the dipole rotates from a high-energy position to a low-energy one, the work done by the field is positive and the work done by the external agent is negative.
Worked example
A bar magnet has m = 0.5 A m². It lies in a uniform field of 0.04 T, with m at 30° to the field.
- Torque: τ = mB sin θ = 0.5 × 0.04 × sin 30° = 0.5 × 0.04 × 0.5 = 0.01 N m.
- Potential energy: U = −mB cos θ = −0.5 × 0.04 × cos 30° = −0.02 × 0.866 ≈ −0.0173 J.
- Work to turn it from 30° to 90°: W = mB (cos 30° − cos 90°) = 0.02 × 0.866 ≈ 0.0173 J.
The code below computes the same quantities.
import math
def torque(m, B, theta_deg):
return m * B * math.sin(math.radians(theta_deg))
def potential_energy(m, B, theta_deg):
return -m * B * math.cos(math.radians(theta_deg))
def work_to_rotate(m, B, theta1_deg, theta2_deg):
# work done by an external agent turning the dipole slowly
return potential_energy(m, B, theta2_deg) - potential_energy(m, B, theta1_deg)
m, B = 0.5, 0.04
print(torque(m, B, 30)) # 0.01 N m
print(potential_energy(m, B, 30)) # about -0.0173 J
print(work_to_rotate(m, B, 30, 90)) # about 0.0173 J
print(work_to_rotate(m, B, 0, 180)) # 2mB = 0.04 JEquilibrium and stability
An equilibrium position is one where the torque is zero. There are two: θ = 0° and θ = 180°.
- Stable equilibrium (θ = 0°). U is at its minimum. A small displacement produces a torque that returns the dipole.
- Unstable equilibrium (θ = 180°). U is at its maximum. A small displacement produces a torque that pushes the dipole further away, until it swings round to θ = 0°.
You can check this with the torque expression. Write τ = −dU/dθ = −mB sin θ for the restoring component. Near θ = 0, sin θ is positive and the restoring torque reduces θ. Near θ = 180°, a small positive change in θ gives a larger angle from the reference, and the dipole is driven toward 360° (that is, 0°).
For a compass needle, the stable position is along the local field, which is why a needle points north.
Common errors
- Using the angle with the wrong reference. The formulas use the angle between m and B. If a question gives the angle between the magnet axis and the field's perpendicular, or the angle a plane makes with the field, convert first. For a current loop, the angle between the area vector and B is what counts.
- Using sin where cos belongs. Torque uses sin θ. Energy uses cos θ. A quick check: at θ = 0°, torque is zero and energy is extreme.
- Treating U = −mB as always negative. U = −mB cos θ is positive for θ between 90° and 180°.
- Forgetting the factor 2 in the full flip. Rotating from 0° to 180° needs 2mB, not mB.
- Using these formulas in a non-uniform field. A non-uniform field also exerts a net force. The expressions for the torque and the energy still hold locally, but the dipole also translates.
- Mixing up the pole-strength and moment forms. A question may give pole strength p and length 2l. First compute m = p × 2l, then apply the formulas.
A current loop as a dipole
A planar loop of N turns, current I and area A has m = NIA. Its direction is given by the right-hand rule, with the curled fingers along the current. The same results hold:
- τ = NIAB sin θ, the formula for the torque on a loop in a uniform field that you met in the moving-charges chapters.
- U = −NIAB cos θ.
This is why a moving-coil galvanometer works. The magnetic torque on the coil balances a spring's restoring torque.
Summary of formulas
| Quantity | Formula |
|---|---|
| Torque | τ = mB sin θ, or **τ** = **m** × **B** |
| Potential energy | U = −mB cos θ = −**m** · **B** |
| Work from θ₁ to θ₂ | W = mB (cos θ₁ − cos θ₂) |
| Maximum torque | mB, at θ = 90° |
| Energy range | from −mB to +mB, a difference of 2mB |
Exercise
A bar magnet of dipole moment 2.0 A m² is held at 60° to a uniform field of 0.10 T. (a) Find the torque on it. (b) Find the work done by an external agent in turning it from this position to the stable equilibrium position, taking care over the sign.
Show answer
(a) τ = mB sin θ = 2.0 × 0.10 × sin 60° = 0.20 × 0.866 ≈ 0.173 N m. (b) The stable position is θ = 0°. W = mB (cos θ₁ − cos θ₂) with θ₁ = 60° and θ₂ = 0°, so W = 0.20 × (0.5 − 1) = −0.10 J. The work done by the external agent is −0.10 J, because the field itself does +0.10 J of work as the magnet turns towards the field.
Exercise
The work needed to turn a magnet from the stable equilibrium position to 90° from the field is W. What work is needed to turn it from the stable position to 180°, and what is the torque at 180°?
Show answer
From θ = 0° to 90°, W = mB(1 − 0) = mB. From θ = 0° to 180°, the work is mB(1 − (−1)) = 2mB = 2W. The torque at 180° is mB sin 180° = 0, because this is an unstable equilibrium.
Exercise
At what angle between m and B is the torque on a dipole equal to half its maximum value, and what is the potential energy there, in terms of mB?
Show answer
Torque is half of maximum when sin θ = 1/2, so θ = 30° (or 150°). At 30°, U = −mB cos 30° ≈ −0.866 mB. At 150°, U = −mB cos 150° ≈ +0.866 mB.