In statistical mechanics, chemical potential is a quantity which describes how a system’s energy changes when you change the number of particles: