p\frac{dp}{dz}+\frac{1}{z}p^2=\frac{C}{z}-g