This is obtained by Boltzmann applying Maxwell's law of velocity distribution to the distribution of molecular number density and pressure with height in the atmosphere. Just remember this conclusion.
Thermodynamics is relatively simple, mainly some formulas and concepts.