hysteresis formula method 2