Derivation of Hysteresis Losses