Sub topic 7
A magnet oscillating in a uniform field
Prerequisites and what this chapter covers
This chapter assumes you know simple harmonic motion (SHM) and its time period, torque and rotational inertia, and the torque on a dipole in a uniform field from the previous chapter (τ = m × B, so τ = mB sin θ). Here we turn that torque into an equation of motion and derive the time period of a bar magnet. We also cover the experimental uses of the result and the errors that cost marks in NEET.
By the end you should be able to:
- Show that a small oscillation of a magnet is SHM and derive T = 2π√(I/(mB)).
- Use the formula for frequency, angular frequency and energy questions.
- Compare two fields or two magnets with ratio methods.
- Handle combinations of magnets, cut magnets and Earth's horizontal field.
Setting up the motion
A magnet of dipole moment m and moment of inertia I hangs or rests so that it can rotate in a horizontal plane about a vertical axis through its centre. It sits in a uniform field B. At equilibrium, m points along B (θ = 0). This is the stable position, where the potential energy U = −mB cos θ is a minimum.
Turn the magnet through a small angle θ. The field exerts a restoring torque of magnitude mB sin θ. The torque acts to reduce θ, so we write it with a minus sign:
τ = −mB sin θ
Newton's second law for rotation gives τ = I α, where α = d²θ/dt². So:
I (d²θ/dt²) = −mB sin θ
The small-angle approximation
For SHM we need the restoring torque proportional to the angular displacement. For small θ (in radians), sin θ ≈ θ. Then:
d²θ/dt² = −(mB/I) θ
This has the form d²θ/dt² = −ω²θ, so the motion is angular SHM with:
- ω = √(mB/I)
- T = 2π/ω = 2π√(I/(mB))
- f = (1/2π)√(mB/I)
The period does not depend on the amplitude, as long as the amplitude is small. Typically "small" means below about 10°, where sin θ and θ differ by less than 0.5%.
What the formula tells you
| Change | Effect on T |
|---|---|
| Stronger field B | T decreases as 1/√B |
| Larger dipole moment m | T decreases as 1/√m |
| Larger moment of inertia I | T increases as √I |
| Larger amplitude (still small) | No change |
Doubling B reduces T by a factor of √2, not 2. This is a frequent source of wrong answers.
Moment of inertia of a bar magnet
For a rectangular bar magnet of mass M, length l and breadth b, rotating about a vertical axis through its centre, the moment of inertia is:
I = M(l² + b²)/12
If the breadth is much smaller than the length, then I ≈ Ml²/12. NEET questions usually give I directly or use this expression.
Worked example 1: computing a period
A magnet has m = 0.5 A m² and I = 2.0 × 10⁻⁶ kg m². It oscillates in a field B = 0.04 T. Find T.
T = 2π√(I/(mB)) = 2π√(2.0 × 10⁻⁶ / (0.5 × 0.04)) = 2π√(1.0 × 10⁻⁴) = 2π × 10⁻² s ≈ 0.063 s
The code below checks this and also shows the small-angle error.
import math
def oscillation_period(I, m, B):
return 2 * math.pi * math.sqrt(I / (m * B))
I, m, B = 2.0e-6, 0.5, 0.04
print(round(oscillation_period(I, m, B), 4)) # 0.0628
# Compare sin(theta) with theta for several amplitudes
for deg in (5, 10, 20, 45):
t = math.radians(deg)
err = (t - math.sin(t)) / math.sin(t) * 100
print(deg, "degrees:", round(err, 3), "% error")The output shows the error is about 0.13% at 5°, 0.51% at 10°, 2.1% at 20° and 11.6% at 45°. This is why the SHM result is restricted to small angles.
Energy in the oscillation
The potential energy is U = −mB cos θ. The magnet's total mechanical energy is conserved if we ignore friction and air resistance:
- At the extreme angle θ₀, the magnet is momentarily at rest. All energy is potential: E = −mB cos θ₀.
- At θ = 0, the potential energy is −mB (its minimum). The kinetic energy is the maximum.
The maximum rotational kinetic energy is therefore:
Kmax = ½ I ωmax² = mB(1 − cos θ₀)
For small θ₀, 1 − cos θ₀ ≈ θ₀²/2, so K_max ≈ ½ mB θ₀². This matches the SHM energy ½ I ω² θ₀² with ω² = mB/I.
Worked example 2: maximum angular speed
The same magnet (m = 0.5 A m², I = 2.0 × 10⁻⁶ kg m², B = 0.04 T) is released from rest at θ₀ = 60°. Find its angular speed when it passes the equilibrium position.
Here the angle is not small, so we use energy conservation instead of the SHM formula:
½ I ω² = mB(1 − cos 60°) = 0.5 × 0.04 × 0.5 = 0.01 J
ω² = 2 × 0.01 / (2.0 × 10⁻⁶) = 1.0 × 10⁴, so ω = 100 rad/s.
Note that the SHM approximation would give a different answer here (ω_max = θ₀ √(mB/I) = 1.047 × 100 = 104.7 rad/s), because 60° is not small. Energy conservation is exact.
Comparing situations with ratios
Many NEET problems avoid numbers and ask for ratios. Since T ∝ √(I/(mB)), the ratio method removes constants.
Suppose the same magnet oscillates in two places with fields B₁ and B₂. Then:
T₁/T₂ = √(B₂/B₁)
Equivalently, with frequencies, f₁/f₂ = √(B₁/B₂), or f² ∝ B. For the same magnet, f² is proportional to the field. This is the basis of the classic experiment for comparing fields.
Comparing magnetic fields with a vibration magnetometer
A vibration magnetometer is a small magnet suspended in a horizontal field, with a scale to time its oscillations. If it is placed in Earth's horizontal component BH and its period is T₁, and then in a combined field BH + B (from a nearby magnet) and the period is T₂, then:
- B_H ∝ 1/T₁²
- (B_H + B) ∝ 1/T₂²
So B/BH = T₁²/T₂² − 1 when the extra field aids BH. If the extra field opposes BH, then (BH − B)/B_H = T₁²/T₂², which gives a longer T₂.
Important detail: Earth's field acts on a magnet that can turn only about a vertical axis through the horizontal component BH. So for a magnet oscillating in a horizontal plane at a given place, use B = BH, not the total Earth field.
Worked example 3: sum and difference of two magnets
Two identical bar magnets, each with moment m and moment of inertia I, are tied together and placed in the same field B_H. They are arranged in two ways.
- Sum position: the magnets lie side by side with their north poles together. The net moment is 2m, and the net moment of inertia is 2I. So Tsum = 2π√(2I/(2mBH)) = 2π√(I/(mB_H)), the same as a single magnet.
- Difference position: the magnets lie with opposite poles together (antiparallel). The net moment is m − m = 0 for identical magnets, so there is no restoring torque and no oscillation.
For unequal magnets with moments m₁ > m₂ and moments of inertia I₁, I₂:
- Tsum = 2π√((I₁ + I₂)/((m₁ + m₂)BH))
- Tdiff = 2π√((I₁ + I₂)/((m₁ − m₂)BH))
The moments of inertia always add, in both arrangements. Only the dipole moments add or subtract. Hence Tdiff > Tsum, and:
Tdiff²/Tsum² = (m₁ + m₂)/(m₁ − m₂)
This gives the ratio of the two moments: m₁/m₂ = (Tdiff² + Tsum²)/(Tdiff² − Tsum²).
Cutting and bending a magnet
Because the moment of inertia depends on mass and length, cutting a magnet changes T in a way you can predict.
A bar magnet of length l, pole strength p, mass M and moment m = p·l is cut into two equal halves.
- If cut perpendicular to its length, each piece has pole strength p, length l/2, so m' = m/2, and mass M/2. The moment of inertia is I' = (M/2)(l/2)²/12 = I/8. Then T' = 2π√(I/8 ÷ (mB/2)) = 2π√(I/(4mB)) = T/2.
- If cut along its length into two thin slabs, each has half the pole strength, the same length, so m' = m/2, mass M/2 and I' = I/2. Then T' = 2π√((I/2)/((m/2)B)) = T. The period does not change.
These results assume the breadth is negligible so that I ≈ Ml²/12. Check the assumption if a question gives a thick magnet.
Common errors
- Using sin θ ≈ θ with θ in degrees. The approximation needs radians.
- Taking T ∝ 1/B instead of 1/√B.
- Using the total Earth field instead of B_H for a magnet that rotates in a horizontal plane.
- Adding moments of inertia incorrectly. In combination problems, I always adds. m adds or subtracts depending on the orientation.
- Confusing the oscillation frequency of the magnet with the frequency of any other process. The magnet's oscillation depends on m, I and B only, not on its temperature or color.
- Applying the SHM period to a large amplitude. Use energy conservation for speeds at large angles.
- Mixing up a magnet's potential energy −mB cos θ with the energy stored in the oscillation. The energy that matters for the motion is the difference from the minimum, mB(1 − cos θ).
Checking a combination numerically
The code below computes the period for a combination of two magnets in the sum and difference positions, and recovers the ratio of their moments from the two measured periods.
import math
def period(I, m, B):
return 2 * math.pi * math.sqrt(I / (m * B))
BH = 3.0e-5 # T
m1, m2 = 1.2, 0.8 # A m^2
I1, I2 = 4.0e-5, 3.0e-5 # kg m^2
T_sum = period(I1 + I2, m1 + m2, BH)
T_diff = period(I1 + I2, m1 - m2, BH)
ratio = (T_diff**2 + T_sum**2) / (T_diff**2 - T_sum**2)
print(round(T_sum, 3), round(T_diff, 3), round(ratio, 3)) # ratio = m1/m2 = 1.5Exercises
Exercise
A bar magnet oscillates with period 4 s in a horizontal field BH. A second field is added in the same direction, so the net horizontal field becomes 4 BH. What is the new period?
Show answer
T is proportional to 1/√B. With B increased by a factor 4, T becomes 4 s / √4 = 2 s.
Exercise
Two magnets with moments m₁ = 3 A m² and m₂ = 1 A m² are tied together. In the sum position the period is 2 s. What is the period in the difference position?
Show answer
T² is proportional to 1/(moment), because the combined I is the same in both arrangements. So Tdiff²/Tsum² = (m₁ + m₂)/(m₁ − m₂) = 4/2 = 2. Hence T_diff = 2 × √2 s ≈ 2.83 s.
Exercise
A uniform bar magnet has moment m and period T in a field B. It is cut across its length into two equal halves, and one half oscillates in the same field. Taking I = Ml²/12, what is its period, and why is it not simply T/√2?
Show answer
The half has moment m/2 and moment of inertia I/8 (mass halves, and length squared drops by 4). So T' = 2π√((I/8)/((m/2)B)) = 2π√(I/(4mB)) = T/2. It is not T/√2 because I falls by a factor of 8 while m falls only by a factor of 2, so the ratio I/m drops by 4.