Answered

consider a small box of air of dimensions δx, δy, and δz, where z is taken to be the vertical direction. the mass of air in this box is m, and the box is in mechanical equilibrium. due to a decrease in atmospheric pressure with altitude, the force f1 pushing up on the bottom face of the box is greater than the force f2 pushing down on the top face of the box.