I am trying to derive Euler's incompressible fluid equations in terms of a variational stationary principle. Given Euler's flow equations:
$$\frac{\partial v}{\partial t} = -\nabla p$$
$$\nabla\cdot v = 0$$
Starting with a Lagrangian consisting of the kinetic energy, and the continuity constraint (divergence free velocity):
$$\mathcal{L} = \int_\Omega{\frac{1}{2}|v|^2 - p(\nabla\cdot v)}$$
Can one simply apply the Euler-Lagrange equations:
$$\frac{\text{d}}{\text{dt}}\frac{\partial \mathcal{L}}{\partial{v}} - \frac{\partial \mathcal{L}}{\partial{{x}}} = 0$$
to arrive at the Euler equations? As far as I understand this is quite possible, but I am not sure exactly how to proceed. Specifically, how do you differentiate the divergence operator with respect to $v, x$?
I am hoping they can be derived from this simple form ($\mathcal{L} = T - V$), without invoking some of the more abstract, geometrical methods, e.g.: Arnold.
The closest I have seen is Luke's variational principle, but this is not as general. References welcome.
(Question moved from math.stackexchange.com)