For , a magnetic field line stays at fixed and satisfies . It is therefore a helix with axial pitch ; the sign of fixes its handedness. The axial magnetic flux is , and the toroidal magnetic field supplies the twist. If the field is untwisted; if it consists of azimuthal circles rather than helical lines carrying axial flux.
A convenient globally regular magnetic vector potential has and
Indeed, the cylindrical curl gives and , with . The tangential potential components are continuous at , so their derivatives introduce no unwanted delta-function magnetic field at the tube boundary. The term is a constant axial potential.
The most general regular potential is this one plus for an arbitrary single-valued gauge function. A putative extra term in the inner is excluded by regularity at the axis; the exterior circulation is already fixed by the enclosed magnetic flux. Since the potential is globally defined across the axis and exterior, any remaining difference is a curl-free vector field, hence a gradient. The constant can itself be absorbed into a gauge function proportional to .
For the displayed gauge family, inside the tube
and hence
For example, requiring outside sets and gives . The equally regular choice gives zero. More generally, for a length- segment the gauge transformation contributes
In particular, shifts by . This gauge dependence of helicity in an open magnetic flux tube is possible because field lines penetrate the end caps when . There is no contradiction with part (b), whose no-penetration condition fails at those caps. A gauge or end-cap convention is needed to give a unique value per unit length. For the ordinary helicity is zero and this end-cap ambiguity disappears.