The scattering of polarized neutrons by a magnetic material