FourDivergence

Description

FourDivergence[exp, FourVector[p, mu]] calculates the partial derivative of exp w.r.t. p(mu). FourDivergence[exp, FourVector[p, mu], FourVector[p,nu], ...]gives the multiple derivative.

See also:  RussianTrick.

Examples

t = ScalarProduct[p, q]

FourDivergence[t, FourVector[q, μ]]

t = ScalarProduct[p - k, q]

FourDivergence[t, FourVector[k - p, μ]]

Clear[t]