§ How it works
Two identical coaxial loops separated by each produce the single-loop field; on the axis they simply add:
By symmetry all odd derivatives vanish at . Choosing also makes the second derivative zero, so the first non-zero error term is fourth-order, so the field is remarkably flat. Then the centre field is
Try sliding : below 1 the field peaks in the centre, above 1 it dips. Helmholtz coils are used to null Earth's field, calibrate magnetometers and in e/m experiments.