Variational method

hello,
Is it possible to calcualte the variational method in mathematica?

Yes, See EulerEquations or VariationalD in the documentation for examples.
WCC

And a general tutorial: Variational Methods