# How do I use tensors in Mathematica 7?

1. Jan 31, 2009

### Dox

Hi there!

I'm tring to check some calculations of the propagator of a gauge field using the $R_\xi$ gauge fixing.

Since the propagator has a matricial structure,

$\Delta_{\mu\nu}=\frac{1}{(p^0)^2+E_p^2}\left[\delta_{\mu\nu}-\frac{1-\xi}{(p^0)^2+E_p^2}p_\mu p_\nu\right],$​

I'd like to check it using that fact. Using the command line

Array[(KroneckerDelta[#1,#2]-(1- xi) p[#1] p[#2]/(p[0]^2+ep^2))/(p[0]^2+ep^2) & , {4,4}, {0,0}]

I was able to write the needed expression, but then I'd like to compute the residues of ANY component... without losing the matricial structure. Is this possible?

All my guesses are fraud.For example.... if I try to give a name to the array

M=Array[(...)]

it does not recognize the matrix structure.

Whatever help is useful. Thanks.

Last edited: Jan 31, 2009