Structure preserving transformations
Deriving the generating functions
A final addendum, for now, in the series on mathematical economics. I had never actually derived the dynamic formulas for the generating function, or argued as to why it should exit. This post scratches that itch, arguing along the lines of physicist S.G.Rajeev here (arXiv).
Remember we are looking for transformations that preserve equilibrium manifolds, and those are ones where we can find a utility function s=U(q) so that ds = pᵢdqⁱ. In certain coordinates. We can change these coordinates with a transformation, but we want find transformations that preserve the relationship when s→sʹ, q→qʹ and p→pʹ. So
because if the right is 0, so is the left (for any λ). We ignore the indices for convenience. Transformations with this property are called Legendre transformations.
Now express the new coordinates as functions of the old ones. We have
and similar for dqʹ and dpʹ. That gives us, using (1), that (deep breath)
That is, respectively: the coefficient in (1) for dp is 0, for ds is λ, and for dq is -λp.
We now consider this transformation infinitesimally, i.e.
for some vector X = Xₛ∂ₛ + X₉∂₉ + Xₚ∂ₚ. Defining
we can observe that:
The first two equations follow directly from the definition of G, the third by expanding the rightmost of (2) in the first order of t:
and equating the two as in (1) leads to the third identity1. We can turn this around and note that for any function G(s,q,p) we can define an infinitesimal transformation
that will preserve the structure!
There is a coordinate-free argument involving the Lie derivative to introduce X_G, which I will try to reproduce2. It is that an infinitesimal transformation X preserves the structure α if the Lie derivative scales it (where the right is Cartan’s magic formula)
We associate a vector field X_G to a function G by requiring
where I have cheated slightly by writing ∂ₛ for the characteristic (or Reeb) vector field ξ, characterized by i_ξ dα = 0 and i_ξ α = α(ξ) = 1. The covariant differential D is defined as the “horizontal” part of the differential so Df ≝ df - ξ(f)α. Comparing the above with the Lie derivative, we see we must have λ = ∂G/∂s and other dynamics in (3) follow if we choose coordinates to express α = ds - pdq.
For earlier posts in this series:
If you think I find this easy, I just spent an hour hunting for a minus sign.
This is even less easy, I am proud I can even still read the original math articles.

