M = (2/(cosh(2x) + cos(2x)))^0.5