Okay. I have two ways of working out the height of the atmosphere from pressure, and they give different answers. Could someone please explain which one is wrong and why? (assuming the density is constant throughout the atmosphere)
1) $P=h \rho g$, $\frac{P}{\rho g} = h = \frac{1.01\times 10^5}{1.2\times9.81} = 8600m$
2) Pressure acts over SA of Earth. Let r be the radius of the Earth. Area of the Earth is $4 \pi r^2$
Volume of the atmosphere is the volume of a sphere with radius $(h+r)$ minus the volume of a sphere with radius $r$. $\frac{4}{3}\pi (h+r)^3 - \frac{4}{3}\pi r^3$ Pressure exerted by the mass of the atmosphere is:
$P=\frac{F}{A}$
$PA=mg$
$4\pi r^2 P = \rho V g$
$4\pi r^2 P = \rho g (\frac{4}{3}\pi (h+r)^3 - \frac{4}{3}\pi r^3)$
$\frac{4\pi r^2 P}{\rho g} = \frac{4}{3}\pi (h+r)^3 - \frac{4}{3}\pi r^3$
$3 \times \frac{r^2 P}{\rho g} = (h+r)^3 - r^3$
$3 \times \frac{r^2 P}{\rho g} + r^3 = (h+r)^3$
$(3 \times \frac{r^2 P}{\rho g} + r^3)^{\frac{1}{3}} - r = h$
$(3 \times \frac{(6400\times10^3)^2 \times 1.01 \times 10^5}{1.23 \times 9.81} + (6400\times10^3)^3)^{\frac{1}{3}} - (6400\times10^3) = h = 8570m$
I know that from Occams razor the first is the right one, but surely since $h\rho g$ comes from considering the weight on the fluid above say a 1m^2 square, considering the weight of the atmosphere above a sphere should give the same answer?