Complex sentence: The former gives the probability that a system will be in a certain state as a function of that state's energy; in contrast, the latter is used to describe particle speeds in idealized gases.
Split into simpler sentences: The former gives the probability that a system will be in a certain state as a function of that state's energy. Whereas, the latter is used to describe particle speeds in idealized gases.