Qualitative analysis and chemical equilibrium