Answer to magnetic hysteresis problem