Chemical equilibrium and analysis