The combined system is assumed to be isolated (i.e., it neither does work on, nor exchanges heat with, its surroundings). It follows the total internal energy, , is constant. When speaking of thermal contact between two distinct systems, we usually assume that the mutual interaction is sufficiently weak for the internal energies to be additive. Thus,
According to Equation (5.302), if the internal energy of lies in the range to then the internal energy of must lie between and . Thus, the number of accessible states for each system is given by and , respectively. Because every possible state of can be combined with every possible state of to form a distinct state, the total number of distinct states accessible to when the energy of lies in the range to is
Consider an ensemble of pairs of thermally interacting systems, and , that are left undisturbed, so that they can attain thermal equilibrium. The principle of equal a priori probabilities is applicable to this situation. (See Section 5.4.2.) According to this principle, the probability of occurrence of a given macroscopic state is proportional to the number of accessible microscopic states, because all microscopic states are equally likely. Thus, the probability that the system has an energy lying in the range to can be written
where is a constant that is independent of .We know, from Section 5.4.4, that the typical variation of the number of accessible states with energy is of the form
where is the number of molecules. For a macroscopic system, is an exceedingly large number. It follows that the probability, , in Equation (5.304) is the product of an extremely rapidly increasing function of , and an extremely rapidly decreasing function of . Hence, we would expect the probability to exhibit a very pronounced maximum at some particular value of the energy, .