Energy Diagrams and Equilibrium of a System