Equivalent potential functions to calculate thermodynamic equilibria