text: Considering the variation of the Lagrangian with respect to small changes  gives:
  This has to be zero for arbitrary , giving rise to the dynamic boundary condition at the free surface:
  This is the Bernoulli equation for unsteady potential flow, applied at the free surface, and with the pressure above the free surface being a constant — which constant pressure is taken equal to zero for simplicity.