Hi Alexsandro,
Mathematica has some nice utilities for Lagrangian mechanics. Below is a link to an earlier posting. One of the replies is mine, and includes an answer which employs those utilities to obtain the equations of motion to a simple system.
Best regards,
David
Hi Alexsandro,
I am sure it is. I suspect you need to determine the covariant derivative for your field and then use it on the Lagrangian in the usual way. In the classical noncovariant form I used on the oscillator, it would have been almost as easy to do the work in Mathematica with explicit symbolic differentiation as as it was to use the built-in functionality. However, my memory of guage theory is not up to taking this any further. Maybe there is a physicist here with fresher knowledge?
Best,
David