Abstract
Spurious solutions in the finite-element analysis of the modes of waveguides and optical fibres are completely eliminated by the use of fields which are exactly divergence-free. Such fields are themselves computed by the finite-element method.