Demand
Set .
Then Which is the Hamilton-Jacobi theory. Solution up to a constant of a nonlinear PDE.
S=solution to Hamilton's principal function= where are constants of integration. Treat the as momentum.
S is coincidentally the action.
constant so
Sometimes the W's seperate out well.