One should be able to show mathematically that the hydrostatic work done by an environment on an object undergoing a volume change $\Delta v$ should be $p \Delta v$, where $p$ is the (constant) pressure of the environment. I am interested in a derivation using mechanical principles, not thermodynamical principles.
Conceptually we imagine at each moment $t$ in the evolution of the object's shape an approximation the object's surface by a fine mesh of flat polygons, i.e. a tesselation. We can also imagine a "compatible tesselation" of the object's surface at a nearby moment $t+\delta t$ so that if we join each vertex of the tesselation at time $t$ to its associated vertex at time $t + \delta t$ we obtain for each polygon pair a small volume region capped by the polygon pair with no two volume regions intersecting. Then for each polygon there is associated a differential work $\delta W = \mathbf{\delta F} \cdot \mathbf{\delta x}$ performed by the environment in the evolution from $t$ to $t + \delta t$, where
- $\mathbf{\delta F}$ is the force applied on the polygon by the environment, where $\mathbf{\delta F} = p \mathbf{\delta A}$ with $\mathbf{\delta A} = \mathbf{n} \delta A$ a vector of magnitude $\delta A$ equal to the polygon's area and direction $\mathbf{n}$ perpendicular to the polygon pointing into the object, and
- $\mathbf{\delta x}$ is a vector starting at the centroid of the polygon at $t$ and ending at the centroid of the polygon at $t + \delta t$.
Taking the limit $\delta A, \delta t \to 0$ and summing up the differential works $\delta W$ for each polygon in an interval $t \to \delta t$ and then summing over all intervals, we should obtain the total work $W$ performed by the environment for the total transformation $t = t_o \to t'$, which should be equal to $p \Delta v$, where $\Delta v$ should be the difference $v(t_o) - v(t')$ in the initial and final object volumes.
I am able to derive (see my answer below) the desired relationship using somewhat sophisticated (at least for most physicists) differential geometry techniques. Should this elementary relation $W = p \Delta v$ have a more elementary proof?