 For the special case of ellipsoids (including infinite cylinders) the demagnetization field is linearly related to the magnetization by a geometry dependent constant called the demagnetizing factor.Since the magnetization of a sample at a given location depends on the "total" magnetic field at that point, the demagnetization factor must be used in order to accurately determine how a magnetic material responds to a magnetic field.