# How pressure changes with altitude

## Homework Statement

Consider a horizontal slab of air whose thickness (height) is dz. If this slab is at rest, the pressure holding it up from below must balance both the pressure from above and the weight of the slab. Use this fact to find an expression for dP/dz, the variation of pressure with altitude, in terms of the density of air.

## The Attempt at a Solution

I have no idea, neither the professor nor the textbook have gone over anything like this.

alright, so I got dP/dz = -g$$\rho$$ does that sound about right?