Question: Lagrangian density

Dear friends Is there any way (or any package,...) that can be used to find the density of the Lagrangian of a PDE. For example the nonlinear Schrodinger (NLS) equation has the form I*Diff(u,t)+1/2*Diff(u,x$2)-abs(u)^2*u=0. This PDE may be considered as the Euler equation which follows from the Lagrangian with density L , L=I/2*(conjugate(u)*Diff(u,t)-u*diff(conjugate(u),t))-1/2*abs(u)^2-1/2*abs(u)^4. Now, could anybody please let me know about any way to find L from NLS? many thanks sayed
Please Wait...