The magnetostriction constant for alternating magnetic fields