Helmholtz Coils

This note explains why "Helmholtz coils"produce an especially uniform magnetic field near their center. I'll use Mathematica to do this, so along the way some rudimentary Mathematica techniques are also explained.

The Biot-Savart law tells us that a little bit of wire carrying current i and of length dl provides a contribution to the magnetic field

[Graphics:Images/Helmholtz_gr_1.gif]

where [Graphics:Images/Helmholtz_gr_2.gif] is the distance from the current element to the observation point, and [Graphics:Images/Helmholtz_gr_3.gif] is exactly 4π × [Graphics:Images/Helmholtz_gr_4.gif] in MKS units.

This formula can be readily integrated to find the B-field at a distance z on the axis above a circular loop of current:

[Graphics:Images/Helmholtz_gr_5.gif] ,

where R is the radius of the loop. If there are N turns of the loop, superposition tells we may simply multiply this result by N.

Let's define an expression in Mathematica that reflects this:

[Graphics:Images/Helmholtz_gr_6.gif]
[Graphics:Images/Helmholtz_gr_7.gif]

(You need to use "Shift+Enter" to get Mathemtica to actually "evaluate" the the expression.)

Now suppose there are two such loops, located at distance +d/2 and -d/2 about z=0. We need to shift z by the corresponding amounts. Mathematica has a wonderful tool for symbolic substitution, which takes the somewhat obscure form "slash/dot oldVariable->newForm", e.g., "/.z->z+d/2".

Here is how we can use our first expression, combined with /. operator, to define a new expression for such a symmetrically configured pair of coils:

[Graphics:Images/Helmholtz_gr_8.gif]
[Graphics:Images/Helmholtz_gr_9.gif]


Now let's expand this expression in a Taylor's series about z=0, and see how "smooth" we can make it (by picking an optimal value for d ). To do this, we'll use the Series[] command in Mathematica, the '4' tells it to expand things out to the 4-th power in z :

[Graphics:Images/Helmholtz_gr_10.gif]
[Graphics:Images/Helmholtz_gr_11.gif]


Eek.

Let's pick a value of d that eliminates the [Graphics:Images/Helmholtz_gr_12.gif] term. To do this, I cut and paste the relevant part of that term into a new expression,  and ask Mathematica to make it zero:

[Graphics:Images/Helmholtz_gr_13.gif]
[Graphics:Images/Helmholtz_gr_14.gif]


Well, that seems simple enough. Let's see if it simplifies the expansion:

[Graphics:Images/Helmholtz_gr_15.gif]
[Graphics:Images/Helmholtz_gr_16.gif]

Yes! That's much nicer. This special configuration of coils is called a Helmholtz coil, and is used in many laboratory applications when one wants to generate a uniform magnetic field over some region.

To see how smooth it is, let's ask Mathematica to plot it:

[Graphics:Images/Helmholtz_gr_17.gif]
[Graphics:Images/Helmholtz_gr_18.gif]
[Graphics:Images/Helmholtz_gr_19.gif]
[Graphics:Images/Helmholtz_gr_20.gif]
[Graphics:Images/Helmholtz_gr_21.gif]

[Graphics:Images/Helmholtz_gr_22.gif]

[Graphics:Images/Helmholtz_gr_23.gif]


Oops. The above mess is Mathematica's not so polite way of telling us that it can't plot a function with a bunch of undefined parameters (like [Graphics:Images/Helmholtz_gr_24.gif])

One way around this would be to set them all to 1, again using the /. operator, leaving only z as the plot variable. That would be OK, but even better is to scale the function to its central value at z=0:

[Graphics:Images/Helmholtz_gr_25.gif]
[Graphics:Images/Helmholtz_gr_26.gif]


Well, OK, that didn't quite work; let's be explicit and tell Mathematica to simplify this:

[Graphics:Images/Helmholtz_gr_27.gif]
[Graphics:Images/Helmholtz_gr_28.gif]


Much better. Now you can plot this, after setting R=1.  (This is equivalent to plotting in terms of z/R ; do you understand this?):

[Graphics:Images/Helmholtz_gr_29.gif]

[Graphics:Images/Helmholtz_gr_30.gif]

[Graphics:Images/Helmholtz_gr_31.gif]


Now that is definitely a FLAT function over quite a broad range of z/R.

One can also show by more advanced techniques (using Legendre polynomials) that the field is also very uniform in the region (x,y) < R near z=0.

That's it for the mathematical properties of the Helmholtz configuration. Next, I'd like to show you how to work with physical units in Mathematica:

[Graphics:Images/Helmholtz_gr_32.gif]

These commands (separated by the semi-colon) tell Mathematica to define various useful constants, for example

[Graphics:Images/Helmholtz_gr_33.gif]
[Graphics:Images/Helmholtz_gr_34.gif]


Of particular interest here is the value of [Graphics:Images/Helmholtz_gr_35.gif], which has this fancy name:

[Graphics:Images/Helmholtz_gr_36.gif]
[Graphics:Images/Helmholtz_gr_37.gif]


Once you read in this package, Mathematica is more or less comfortable working with units. In particular, the "Physical Constants" palette (llook for it in the Help index) allows you to define things using the conventional symbols for various physical quantities:

[Graphics:Images/Helmholtz_gr_38.gif]
[Graphics:Images/Helmholtz_gr_39.gif]
[Graphics:Images/Helmholtz_gr_40.gif]
[Graphics:Images/Helmholtz_gr_41.gif]


Let's put in the particular values used in lab, that is, R = 0.33 Meter, N = 72, evaluated at the center (z=0) of the coil:

[Graphics:Images/Helmholtz_gr_42.gif]
[Graphics:Images/Helmholtz_gr_43.gif]


Those units look a little weird, but the Convert[] function in Mathematica lets you 'cast' this into a more useful form:

[Graphics:Images/Helmholtz_gr_44.gif]
[Graphics:Images/Helmholtz_gr_45.gif]


(Yes, it will choke if you ask it to convert to incompatible units.)

Finally, you can use this to calculate the B field for any given current. Here is a range of B fields, defined by a Mathematica 'list' of current ranges:

[Graphics:Images/Helmholtz_gr_46.gif]
[Graphics:Images/Helmholtz_gr_47.gif]


Converted by Mathematica      March 3, 2003