Margules  expressed the intensive excess Gibbs free energy of a binary liquid mixture as a power series of the mole fractions x:
In here the A, B are constants, which are derived from regressing experimental phase equilibria data.
Frequently the B and higher order parameters are set to zero. The leading term  assures that the excess Gibbs energy becomes zero at x=0 and x=1.