Height of the atmosphere - conflicting answers 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?

The first formula is just a first order expansion in $1/r$ of the second formula which is thus the exact one.
The expansion is:
$$h = \frac{P}{\rho g} - \left( \frac{P}{\rho g} \right)^2 \frac{1}{r} + \frac{5}{3} \left( \frac{P}{\rho g} \right)^3 \frac{1}{r^2} + \ldots$$
