B02
B02
JEE Main and Advanced9 min readDec 2, 2026

A Dipole in a Field: The Compass Torque and Energy

A Dipole in a Field: The Compass Torque and Energy
9 min read · 1,795 words

JEE/NEET Physics · Magnetism & Matter series · Part 2 of 4 · All parts →

✪ Key points — the 30-second version

  • A magnetic dipole in field B feels a torque: τ = mB sinθ — it twists toward alignment
  • Potential energy of orientation: U = −mB cosθ — lowest when aligned (stable), highest when opposed (unstable)
  • Work required to flip the dipole from aligned to anti-aligned: W = 2mB
  • A disturbed dipole oscillates with T = 2π√(I/mB) — the basis of the oscillation magnetometer
  • Bar magnet far-field: B_axial = μ₀2m/4πr³, B_equatorial = μ₀m/4πr³ (half the axial value, opposite direction), both falling as 1/r³

Why does a compass needle swing north? Its dipole moment sits inside Earth’s magnetic field, feels a twist toward alignment, and — because it overshoots — oscillates like a pendulum until friction finally stills it. That gentle, repeating dance is not a curiosity: it is one of the oldest and most practical ways to measure a magnetic field. This card builds that story from a single torque equation to a working magnetometer, and finishes with the bar magnet’s own field — Part 2 of the Magnetism & Matter series.

In this card

  1. The Alignment Torque
  2. Energy of Orientation
  3. The Oscillating Needle and the Magnetometer
  4. The Bar Magnet’s Own Field
  5. Solved Examples
  6. Common Mistakes
  7. This Physics in Your Daily Life
  8. Practice Set
  9. Recap

The Alignment Torque: Why a Dipole Twists in a Field

Place a bar magnet (or any magnetic dipole) in a uniform magnetic field B, with its moment m at an angle θ to the field. The field exerts equal and opposite forces on the two poles: the N-pole is pushed along B, the S-pole against it. These two forces are equal in magnitude, opposite in direction, and act along different lines — together they form a couple, exactly the twisting arrangement you met for a current loop in the Moving Charges series. A couple produces no net force, but it does produce a net torque:

τ = mB sinθzero when aligned (θ = 0° or 180°), maximum mB when perpendicular (θ = 90°)

Two features deserve attention. First, the torque always acts to reduce θ: it rotates the dipole toward alignment with the field, never away from it. Second, the torque is a vector, τ = m × B, pointing along the axis about which the dipole rotates. In vector form, both the current loop and the bar magnet obey the same law — because, as far as the outside world is concerned, they are the same object. A current loop is a dipole; a bar magnet is a dipole; Earth itself is, to a first approximation, a dipole.

Energy of Orientation: The Valley and the Hill

Where there is a restoring torque, there is a potential energy. The energy of a dipole at angle θ in field B is:

U = −m·B = −mB cosθaligned = energy valley (U = −mB); anti-aligned = energy hill (U = +mB); cost of a full flip = 2mB

Check the sign against the torque: when θ = 0, U = −mB is the minimum — a stable equilibrium, because any small tip raises the energy and the resulting torque pushes the dipole back down. When θ = 180°, U = +mB is the maximum — an unstable equilibrium: balanced like a pencil on its tip, the slightest nudge sends the dipole tumbling toward the valley. At θ = 90°, U = 0 and the torque is at its largest.

The work needed to rotate the dipole slowly from θ₁ to θ₂ is simply the change in potential energy: W = U(θ₂) − U(θ₁) = mB(cos θ₁ − cos θ₂). The most important special case is the complete reversal, from aligned (θ = 0) to anti-aligned (θ = 180°):

W = 2mBthe classic exam result — double, not equal to, mB

The Oscillating Needle and the Magnetometer

Nudge a compass needle away from north and release it. The restoring torque τ = −mB sinθ pulls it back toward alignment; its rotational inertia carries it past north; it swings back again. For small angles, sinθ ≈ θ, so the torque becomes τ ≈ −mBθ — precisely the linear restoring form of simple harmonic motion, with period:

T = 2π√(I/mB)I = moment of inertia of the needle about its pivot; shorter needle → smaller I → faster swings

Now invert the logic. Rearranging gives B = 4π²I/(mT²): if you know the needle’s moment of inertia I and magnetic moment m, then timing its oscillations measures the unknown field B. This is the oscillation magnetometer — a stopwatch and a suspended magnet doing the work of a laboratory instrument. It is sensitive enough that a careful student can map Earth’s field across a room.

The Bar Magnet’s Own Field: Axial and Equatorial Positions

Far from the magnet (r much larger than its length), the field simplifies to clean dipole forms that depend on orientation:

PositionField magnitudeCompare
Axial (on the N–S line, beyond the poles)B_ax = μ₀ 2m / 4πr³strongest far-field; points along m
Equatorial (on the perpendicular bisector)B_eq = μ₀ m / 4πr³half the axial value; points opposite to m
Both positionsfall as 1/r³dipole fields fade much faster than 1/r²

The axial field is twice the equatorial field at the same distance, and the two point in opposite senses relative to m — a favourite direction question in JEE and NEET papers. The 1/r³ falloff also explains why a bar magnet’s influence dies out quickly: double the distance and the field drops to one-eighth.

Solved Examples

✎ Easy — the torque. m = 0.5 A·m² held perpendicular to B = 0.2 T: what is the torque?

At θ = 90°, sinθ = 1, so τ = mB = 0.5 × 0.2 = 0.1 N·m.

✔

Answer: 0.1 N·m

✎ Exam level — the flip. How much work is needed to reverse that same dipole from aligned to anti-aligned?

W = U(180°) − U(0°) = mB − (−mB) = 2mB = 2 × 0.5 × 0.2 = 0.2 J.

✔

Answer: 0.2 J

✎ JEE level — timing a field. A needle with I = 2×10⁻⁶ kg·m² and m = 4×10⁻² A·m² oscillates with period T = 2 s in an unknown field. Find B.

From T = 2π√(I/mB), solve: B = 4π²I/(mT²) = 4π² × 2×10⁻⁶ / (4×10⁻² × 4) ≈ 5×10⁻⁵ T.

An Earth-strength field, measured with nothing more than a stopwatch — the magnetometer in action.

✔

Answer: ≈ 5×10⁻⁵ T

Common Mistakes — and How to Avoid Them

⚠ Mistakes students make — and how to avoid them

  • Writing U = +mB cosθ. The energy is minus m·B: the aligned state (θ = 0) must be the lowest-energy state. If your formula makes alignment the maximum, you have a sign error.
  • Claiming the torque is maximum at alignment. Opposite: at alignment the torque is zero (stable equilibrium); it is maximum (τ = mB) when the dipole is perpendicular to the field.
  • Getting the equatorial field direction wrong. On the equatorial line, the field points opposite to m — a favourite trick question, since the magnitude alone tempts you to say “same direction.”
  • Using 1/r² for dipole fields. Distant dipole fields fall as 1/r³, not 1/r². Unlike a single charge or a hypothetical isolated pole, a dipole’s two ends partly cancel at large distances, so the field fades faster.
  • Confusing work with 2mB in general. W = 2mB applies only to the full flip (0° → 180°). For other angles, use W = mB(cos θ₁ − cos θ₂).

This Physics in Your Daily Life

◎ This physics in your daily life

  • Every compass ever carried — dipole torque aligning the needle with Earth’s field: navigation by τ = mB sinθ for roughly two millennia.
  • Magnetic knife racks and cabinet latches — aligned dipoles locking into energy valleys: U = −mB as household furniture.
  • Magnetic stirrers in chemistry labs — a rotating field torques a dipole stir bar, spinning solutions without any moving parts inside the flask.
  • Magnetometers in smartphones — the same alignment and oscillation physics miniaturised onto a chip, powering compass apps and map orientation.
  • MRI’s radio-frequency flips — nuclear dipoles lifted over the 2mB energy hill by resonant pulses, then re-emitting energy as they fall back: medical imaging as dipole acrobatics.
One idea, three doors — open whichever clicks for you
Same concept (why dipoles align and oscillate), three different ways of seeing it. If one door confuses you, try the next — at least one will stick.
Door 1 · The story way

A weather vane in wind: pressure differences twist it until it points downwind, but momentum carries it past, and it wobbles back — swinging until friction settles it. A magnetic dipole in a field is an electromagnetic weather vane: torque toward alignment, inertia causing overshoot, oscillation born from the tug-of-war between the two.

Door 2 · The numbers way

A needle with m = 0.5 A·m² in Earth’s 5×10⁻⁵ T has a flip energy of 2mB = 5×10⁻⁵ J — vanishingly small, yet entirely sufficient to line up every compass needle on the planet, because friction and inertia are even smaller. In an MRI’s 3 T field, climbing the energy hill demands radio-frequency photons of exactly the right energy — hence resonance imaging.

Door 3 · The picture way

Draw the dipole as an arrow on a graph of U against θ: parallel to the field, it rests in the valley (U = −mB); perpendicular, halfway up the slope (U = 0); anti-parallel, balanced on the hilltop (U = +mB). Tip the arrow slightly and the torque always points back downhill: the energy landscape itself is the restoring force.

Why is this happening at all? Why does alignment mean low energy? Because when the dipole is aligned, its N-pole sits where the field already points — like water settling downhill, the system drifts to a state nature can maintain without effort. And why oscillation rather than instant settling? Inertia: the needle’s rotational momentum cannot vanish at the moment of alignment, so it converts into overshoot — the same energy exchange that powers every pendulum and every SHM system in the Oscillations series.

Practice Set (answers hidden — try first)

(NEET-level) m = 0.2 A·m² at 30° to B = 0.5 T: τ = ?
τ = mB sin30° = 0.2 × 0.5 × 0.5 = 0.05 N·m.
(JEE Main-level) Potential energy when m is aligned with B (m = 0.1 A·m², B = 0.3 T):
U = −mB = −0.1 × 0.3 = −0.03 J = −3×10⁻² J.
(NEET-level) The torque on a dipole held perpendicular to B is:
Maximum, τ = mB, since sin90° = 1.
(Concept) The stable equilibrium orientation of a dipole in a field is:
Parallel to the field — minimum energy (U = −mB) and zero restoring torque.
(JEE Main-level) Compare the axial and equatorial fields at the same distance r from a short bar magnet:
The axial field is double the equatorial field, and it points along m while the equatorial field points opposite to m.
🧠 Memory tricks & everyday anchors — the 20-second revision

  • τ = mB sinθ — always toward alignment
  • U = −mB cosθ; a full flip costs 2mB
  • Oscillation period: T = 2π√(I/mB)
  • Axial field is 2× equatorial; both fall as 1/r³
  • Energy valley at alignment, hill at opposition
  • 🔁 “cosine everywhere”: torque from sinθ, energy from cosθ — one angle, two formulas
  • 🔁 Stability check: minimum U ⇒ stable, maximum U ⇒ unstable
  • 🔁 Magnetometer mantra: “time the swings, read the field”
▶ Recap card — save for revision week

  • 🧠 Chant: ‘align to the valley’ — torque and energy both point the dipole downhill.
  • 🧠 Measure trick: ‘time the swings, read the field’ — T = 2π√(I/mB) inverted is a magnetometer.
  • 📐 Core formulas: τ = mB sinθ, U = −mB cosθ, flip work = 2mB, B_ax = 2B_eq = μ₀2m/4πr³.
  • 🏠 Daily: compass apps run dipole oscillation physics on a chip.
  • 🏠 Daily: MRI flips nuclear dipoles over 2mB energy hills using resonance.
← Part 1: The Bar Magnet and Its Dipole: The Ancient Arrow of IronPart 3: Earth’s Magnetism: The Planet-Sized Dipole →

Exam angle

How exams use this: JEE Main scores on clean execution: unit discipline, formula chains and option-elimination under +4/−1. Test it under exam conditions →

Quick revision

  • A magnetic dipole in field B feels a torque: τ = mB sinθ — it twists toward alignment
  • Potential energy of orientation: U = −mB cosθ — lowest when aligned (stable), highest when opposed (unstable)
  • Work required to flip the dipole from aligned to anti-aligned: W = 2mB
  • A disturbed dipole oscillates with T = 2π√(I/mB) — the basis of the oscillation magnetometer
  • Bar magnet far-field: B_axial = μ₀2m/4πr³, B_equatorial = μ₀m/4πr³ (half the axial value, opposite direction), both falling as 1/r³
  • The Oscillating Needle and the Magnetometer
ShareTelegramX

Have a doubt on this topic?