Density in a planetary exosphere