Two last question and I would be really grateful.
1) So since now we agreed that the pressure at a point is equal to P + rho g h where h is the height. I assumed a rectangular pipe (For simplicity) whose elevation changed and area. In the normal derivation of brenoulli's principle, We calculate the external work that is applied on both sides of the section of fluid we take (ref
http://www.4physics.com/phy_demo/bernoulli-effect-equation.html) and the work of gravity can be easily found with potential energy. However I tried calculating the work of gravity using the pressure difference we found. I integrated over the surface of each side and I got the correct value but instead of negative work I got a positive one. What am I doing wrong here?
https://i.imgur.com/TwInjDb.png
In the lower tube I assumed the pressure is equal to rho g (H2 -y) where y is the elevation from the point 0. In the upper one rho g(H2 -y)2) Is there is a proof that hydrostatic pressure doesn't depend on the shape but only the depth? I know the normal proof for a column of fluid but is there a general one? I assume we can prove it by saying if it is rho g h at one point then it must be the same for all points with the same depth or you will get horizontal movement?