Variation of an abstract matter Lagrangian

34 views
Skip to first unread message

Hendrik Ludwig

unread,
Oct 22, 2025, 1:32:00 PM (6 days ago) Oct 22
to xAct Tensor Computer Algebra
Hi,
I am trying to derive equations of motion using VarL but I want to keep the matter Lagrangian "abstract", not composed of any explicit fields. I expect the variations w.r.t. the metric to be left "as is" so that I can later interpret them has Energy-Momentum-Tensor. But it does not work. I tried

Lm /: ImplicitTensorDepQ[Lm, met] = True

but VarL still throws away all variations of Lm w.r.t. met....

Is it not possible what I am trying to achieve?

Many, thanks in advance!

Hendrik Ludwig

unread,
Oct 22, 2025, 2:15:32 PM (6 days ago) Oct 22
to xAct Tensor Computer Algebra
P.S. a minimum working example:

xAct`xTensor`Commutator;
xAct`xTensor`Anticommutator;
Needs["xAct`xTras`"];
DefManifold[M4, 4, {a, b, c, d}];
DefMetric[-1, met[-a, -b], CD];
DefTensor[Lm[], M4];

Lm /: ImplicitTensorDepQ[Lm, met] = True
VarL[met[a, b], CD][Lm[]]

It gives only the volume term, not the variations of the matter Lagrangian "Lm" with respect to the metric "met".

Hendrik Ludwig

unread,
Oct 23, 2025, 12:30:09 PM (5 days ago) Oct 23
to xAct Tensor Computer Algebra
I solved it now with the usual xPert method and replacing the variation of the matter Lagrangian by hand, but it would be nice if VarL could also handle abstract matter Lagrangians
Reply all
Reply to author
Forward
0 new messages