If you think of a thin layer of air $dx$ high, the weight of that layer is $A\frac P{P_0} g\rho dx$, where $A$ is the cross sectional area (1 in^2 in your example, but it will divide out. I like to keep it in so the units are correct-it helps catch errors) and $\rho$ is the density of air at sea level and a pressure $P_0$. If the air is the same temperature, the density will be proportional to the pressure. To keep from sinking, the pressure on the bottom has to be just enough higher than the pressure on the top to balance gravity. So $AP(x)-AP(x+dx)=A\frac P{P_0}g\rho dx$, which leads to $\frac {dP}{dx}=-g\rho\frac P{P_0}$