Net upward force on the element
$=[(p+d p) A-p A]-g d m$
Or $\mathrm{A} \mathrm{dp}-\mathrm{g} \mathrm{dm}=\mathrm{a} \mathrm{dm}$
(As the element moves up with an acceleration a)
Or $\mathrm{A} \mathrm{dp}=(\mathrm{g}+\mathrm{a}) \mathrm{dm}=(\mathrm{g}+\mathrm{a})$ $Adh\rho.$
$\int \mathrm{d} \mathrm{p}=\int \rho(\mathrm{g}+\mathrm{a}) \mathrm{dh}$ Or $\mathrm{p}=\rho(\mathrm{g}+\mathrm{a}) \mathrm{h}$


(density of water $=1000\; \mathrm{kgm}^{-3}$ )

