Dgamma - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Physics[Dgamma] - the Dirac gamma matrices

Calling Sequence

Dgamma[mu]

Parameters

mu

-

an integer between 1 and the dimension, or any algebraic expression generically representing it (when the dimension is equal to 4, mu = 5 is also allowed)

Description

• 

The Dgamma[mu] command is used to represent the Dirac γμ matrices, where μ ranges from 1 to the dimension d of spacetime; these are noncommutative objects satisfying

γμ⁢γν+γν⁢γμ=2⁢gμ,ν

  

where the products in the above are noncommutative, constructed by using the `*` operator of the Physics package, and gμ,ν is the metric tensor. The properties of the Dirac matrices are derived from this defining relation (anticommutator algebra) above. The Simplify command simplifies products of Dirac matrices and the Trace command computes traces of these products, taking this defining relation into account.

• 

This defining anticommutator algebra satisfied by the Dirac matrices is invariant under a unitary transformation. Thus these matrices are determined up to a transformation of that kind, and conventions are necessary to construct their representations. The most common representations are the standard (also known as Dirac), the chiral (also known as Weyl or spinor), and the Majorana representations.

• 

When the Physics package is loaded, the default spacetime is of Minkowski type with signature (- - - +). With that signature, the standard representation for Dirac's matrices, uniform in the literature, is:

γ0=𝕀00−𝕀, ⁢γk=0−σkσk0

  

where 𝕀 is the 2 x 2 identity matrix, k runs from 1 to 3, σk=−σ__k (due to the signature (---+)), and σ__k are the three Pauli matrices. (All of σ0=σ__0≡ 𝕀 and σ__k are represented by Psigma, and together form the four vector Psigma[mu], displayed as σ__μ.) As is the case for all spacetime tensors, when the position of the timelike component is the last one (the case when the signature is (---+)), the value d of a spacetime index in d dimensions is also represented by the number 0.

• 

The conventions for the chiral and Majorana representations are not uniform in the literature. The conventions adopted here are the same ones shown in Wikipedia and in ref.[1-3], so that in the chiral representation, the γk are the same as in the standard representation, while γ0 changes to

γ0=0𝕀𝕀0

  

The convention implemented for the Majorana representation, that is, a representation where all the nonzero components of the Dirac matrices are imaginary, is

⁢γ0=0σ2σ20,γ1=ⅈ⁢σ300ⅈ⁢σ3,γ2=0−σ2σ20,γ3=−ⅈ⁢σ100−ⅈ⁢σ1⁢

  

where ⅈ is the imaginary unit (to represent it with a lowercase letter as in the above, see interface imaginaryunit).

• 

The form of the contravariant Dirac matrices shown above for the three representations does not change with the signature, which could be (- - - +) (default when you load Physics), (+ - - -), (+ + + -) or (- + + +). Correspondingly, for the signatures (+ + + -) or (- + + +) there is an extra minus sign in the right-hand side of the defining algebra rule, that becomes γμ⁢γν+γν⁢γμ=−2⁢gμ,ν To query about the signature, enter Setup(signature).  To change the value of the signature see Setup.

• 

In all of these three representations, the timelike component of the Dirac matrices is Hermitian: γ0=γ0†, and the spacelike components are anti-Hermitian: γk=−γk†. In a four dimensional Minkowski spacetime, an Hermitian matrix γ5=γ5† satisfying

γμγ5+γ5γμ=0,⁢⁢⁢γ5⁢γ5=1

  

is given by:

γ5=−ⅈ⁢γ0γ1γ2γ3

  

Note the minus sign on the right-hand side of this definition, according to [1], [2] and [3], but not Wikipedia and not uniform in the literature. This definition of γ5 can also be written as

γ5=ⅈ4!⁢εα,β,μ,ν⁢γμ⁢γν⁢γα⁢γβ

  

from where there is no distinction between a covariant or contravariant character for its index, γ⁢5=γ⁢5.

• 

The form of the Dirac matrices implemented in the case of an Euclidean spacetime, for the standard, chiral, and Majorana representations, is obtained from the formulas above for the contravariant Dirac matrices by performing a Wick rotation, equivalent to multiplying the γk by −ⅈ, while γ0 remains unchanged, and γ5 is given by

γ5=−γ1γ2γ3γ0

  

These Euclidean Dirac matrices are all Hermitian, γμ=γμ†, including γ5, and they all satisfy the same defining equations and anticommutation algebra rules stated in the previous paragraphs for a Minkowski spacetime.

• 

The following are some representation-free frequently used identities for the Dirac matrices, valid provided the dimension, d, is greater than 1, expressed by using the sum rule for repeated indices:

γμ⁢γμ=d

γμ⁢γν⁢γμ=2−d⁢γν

γμ⁢γα⁢γβ⁢γμ=4⁢gα,β+d−4⁢γα⁢γβ

γμ⁢γα⁢γβ⁢γρ⁢γμ=−2⁢γρ⁢γβ⁢γα−d−4⁢γα⁢γβ⁢γρ

• 

Some representation-free identities for the traces of products of Dirac matrices in four dimensions are:

Trace⁡γμ=0

Trace⁡γμγν=4⁢gμ,ν

Trace⁡γμγνγργσ=4⁢gμ,ν⁢gρ,σ−4⁢gμ,ρ⁢gν,σ+4⁢gμ,σ⁢gν,ρ

Traceγ5=Traceγμγνγ5⁢=⁢0

Trace⁡γμγνγργσγ5=4⁢ⅈ⁢εμ,ν,ρ,σ

  

and the Trace of any product of an odd number of γμ is zero. Note the sign +, not -, in the right-hand side of the last formula, related to the convention used for γ5. To compute using these formulas, you can use the Physics commands Trace, g_ for the metric and LeviCivita for the totally antisymmetric symbol ε.

Examples

> 

with⁡Physics:

> 

Setup⁡mathematicalnotation=true

mathematicalnotation=true

(1)

Represent the imaginary unit with the lowercase i to distinguish it clearly from the number 1.

> 

interface⁡imaginaryunit=i

I

(2)

The Dgamma command is implemented as a tensor, which means you can compute with Dgamma[mu] entering tensorial expressions and have all the properties of tensors taken into account (see Physics,Tensors). For instance, the covariant and components are given by

> 

Dgamma

γμ=γ1γ2γ3γ4

(3)
> 

Dgamma`~`

γ⁢μ⁢μ=γ⁢1⁢1γ⁢2⁢2γ⁢3⁢3γ⁢4⁢4

(4)

Note that (since Maple 2019) when Physics is loaded the standard representation for the Dirac matrices is automatically set. For the default signature, (- - - +), the traditional standard matrix representation is that of the contravariant components

> 

Library:-RewriteInMatrixForm⁡Dgamma`~`

γ⁢μ⁢μ=000100100−100−1000000−ⅈ00ⅈ00ⅈ00−ⅈ0000010000−1−100001001000010000−10000−1

(5)

To change that representation to the chiral or Majorana representations see Setup. As is conventional in the Physics package, you can get the definition of a tensor indexing it with the keyword definition

> 

Dgammadefinition

γ⁢μ⁢μ,γ⁢ν⁢ν+=2⁢g⁢μ,ν⁢μ,ν

(6)

The value 0 of a spacetime index of a tensor is always mapped into the value of the position of the time-like component (the different sign in the signature)

> 

Setup⁡signature

signature=- - - +

(7)
> 

Library:-PositionOfTimelikeComponent⁡

4

(8)

So with the current signature you can use Dgamma[0] to represent Dgamma[4]

> 

Dgamma0

γ4

(9)

You can access the current matrix representation of each component of γμ in several ways, the simplest being

> 

Dgamma0,matrix

γ4=1000010000−10000−1

(10)
> 

Dgamma~1,matrix

γ⁢1⁢1=000100100−100−1000

(11)

The γ5 matrix in the standard representation

> 

Dgamma5,matrix

γ5=00−10000−1−10000−100

(12)
> 

Dgamma5,definition

γ5=γ⁢5⁢5,γ⁢5⁢5=−ⅈ⁢γ⁢0⁢0⁢γ⁢1⁢1⁢γ⁢2⁢2⁢γ⁢3⁢3,γ⁢5⁢5⁢γ⁢5⁢5=1,γ⁢μ⁢μ,γ⁢5⁢5+=0,γ⁢μ⁢μ,γ⁢ν⁢ν+=2⁢g⁢μ,ν⁢μ,ν

(13)

This definition includes several equations, two of which have AntiCommutators on the left-hand sides. A quick way of verifying tensorial equations including their matricial form is to use valueTensorArray%,performmatrixoperations. One can apply this command selectively, for example for the first three of these defining equations, then to only the fourth one

> 

value⁡TensorArray⁡1..3,performmatrixoperations

00−10000−1−10000−100=00−10000−1−10000−100,00−10000−1−10000−100=00−10000−1−10000−100,1000010000100001=1000010000100001

(14)
> 

value⁡TensorArray⁡4,performmatrixoperations

0000000000000000=00000000000000000000000000000000=00000000000000000000000000000000=00000000000000000000000000000000=0000000000000000

(15)

You can compute with the tensor components and later represent them in matrix form, or perform the corresponding matrix operations

> 

Dgamma1⁢Dgamma2+Dgamma0

γ1⁢γ2+γ4

(16)
> 

Library:-RewriteInMatrixForm⁡

000−100−1001001000·000ⅈ00−ⅈ00−ⅈ00ⅈ000+1000010000−10000−1

(17)
> 

Library:-PerformMatrixOperations⁡

1−ⅈ00001+ⅈ0000−1−ⅈ0000−1+ⅈ

(18)

The Dirac matrices have representation-free properties; for example, for the trace of the product of two of them,

> 

Dgammaμ⁢Dgammaν

γμ⁢γν

(19)
> 

Trace⁡

4⁢gμ,ν

(20)
> 

Dgamma1⁢Dgamma2+Dgamma2⁢Dgamma1

γ1⁢γ2+γ2⁢γ1

(21)
> 

Trace⁡

0

(22)

Consider the following five products of Dirac matrices and their simplification using Simplify

> 

e0≔Dgammaμ2

e0≔γμ⁢γ⁢μ⁢μ

(23)
> 

Simplify⁡e0

4

(24)
> 

e1≔Dgammaμ⁢Dgamma~nu⁢Dgammaμ

e1≔γμ⁢γ⁢ν⁢ν⁢γ⁢μ⁢μ

(25)
> 

Simplify⁡e1

−2⁢γ⁢ν⁢ν

(26)
> 

e2≔Dgammaμ⁢Dgamma~lambda⁢Dgamma~nu⁢Dgammaμ

e2≔γμ⁢γ⁢λ⁢λ⁢γ⁢ν⁢ν⁢γ⁢μ⁢μ

(27)
> 

Simplify⁡e2

4⁢g⁢λ,ν⁢λ,ν

(28)
> 

e3≔Dgammaμ⁢Dgamma~lambda⁢Dgamma~nu⁢Dgamma~rho⁢Dgammaμ

e3≔γμ⁢γ⁢λ⁢λ⁢γ⁢ν⁢ν⁢γ⁢ρ⁢ρ⁢γ⁢μ⁢μ

(29)
> 

Simplify⁡e3

−2⁢γ⁢ρ⁢ρ⁢γ⁢ν⁢ν⁢γ⁢λ⁢λ

(30)
> 

e4≔Dgammaμ⁢Dgamma~lambda⁢Dgamma~nu⁢Dgamma~rho⁢Dgamma~sigma⁢Dgammaμ

e4≔γμ⁢γ⁢λ⁢λ⁢γ⁢ν⁢ν⁢γ⁢ρ⁢ρ⁢γ⁢σ⁢σ⁢γ⁢μ⁢μ

(31)
> 

Simplify⁡e4

2⁢γ⁢σ⁢σ⁢γ⁢λ⁢λ⁢γ⁢ν⁢ν⁢γ⁢ρ⁢ρ+2⁢γ⁢ρ⁢ρ⁢γ⁢ν⁢ν⁢γ⁢λ⁢λ⁢γ⁢σ⁢σ

(32)

Verify the simplification of e1.

> 

e1=

γμ⁢γ⁢ν⁢ν⁢γ⁢μ⁢μ=−2⁢γ⁢ν⁢ν

(33)
> 

SumOverRepeatedIndices⁡

γ1⁢γ⁢ν⁢ν⁢γ⁢1⁢1+γ2⁢γ⁢ν⁢ν⁢γ⁢2⁢2+γ3⁢γ⁢ν⁢ν⁢γ⁢3⁢3+γ4⁢γ⁢ν⁢ν⁢γ⁢4⁢4=−2⁢γ⁢ν⁢ν

(34)

Rewrite this equation as an array with 4 tensorial equations as components (for each of the values o the contravariant spacetime index ν)

> 

T≔TensorArray⁡

T≔γ⁢1⁢1+γ2⁢γ⁢1⁢1⁢γ⁢2⁢2+γ3⁢γ⁢1⁢1⁢γ⁢3⁢3+γ4⁢γ⁢1⁢1⁢γ⁢4⁢4=−2⁢γ⁢1⁢1γ3⁢γ⁢2⁢2⁢γ⁢3⁢3+γ4⁢γ⁢2⁢2⁢γ⁢4⁢4=−2⁢γ⁢2⁢2−γ⁢3⁢3+γ4⁢γ⁢3⁢3⁢γ⁢4⁢4=−2⁢γ⁢3⁢3−2⁢γ⁢4⁢4=−2⁢γ⁢4⁢4

(35)

Perform all the matrix operations in each of the components of this array.

> 

Library:-PerformMatrixOperations⁡T

000−200−2002002000=000−200−20020020000002⁢ⅈ00−2⁢ⅈ00−2⁢ⅈ002⁢ⅈ000=0002⁢ⅈ00−2⁢ⅈ00−2⁢ⅈ002⁢ⅈ00000−20000220000−200=00−20000220000−200−20000−20000200002=−20000−20000200002

(36)

With the conventions used, among γμ, only γ0 (consequently, when d=4,γ5 too) changes in form between the chiral and standard representations.

The standard representation is also defined in lower dimensions. For example, if you change the dimension to 3 and check the signature

> 

Setup⁡dimension=3,signature

Warning, unable to define the Pauli sigma matrices (Psigma) as a tensor in a spacetime with dimension = 3 where the metric is not Euclidean. You can still refer to the Pauli matrices using Psigmax, Psigmay and Psigmaz

The dimension and signature of the tensor space are set to 3,⁢⁡- - +

dimension=3,signature=- - +

(37)
> 

Dgamma~1,matrix

γ⁢1⁢1=0ⅈⅈ0

(38)
> 

Setup⁡dimension=2

Warning, unable to define the Pauli sigma matrices (Psigma) as a tensor in a space with dimension = 2 < 3. You can still refer to the Pauli matrices using Psigmax, Psigmay and Psigmaz

The dimension and signature of the tensor space are set to 2&comma;⁢⁡- +

dimension=2

(39)
> 

Dgamma~1,matrix

γ⁢1⁢1=01−10

(40)

Reset the dimension to 4 and check the metric

> 

Setup⁡dimension=4

Defined Pauli sigma matrices (Psigma): σ1 , σ2 , σ3 , σ0

__________________________________________________

The dimension and signature of the tensor space are set to 4&comma;⁢⁡- - - +

dimension=4

(41)
> 

g_

gμ,ν=−10000−10000−100001

(42)

The form of the four contravariant Dirac matrices in each of the three representations, all the matrices are anti-Hermitian but for Dgamma[5] which is Hermitian

> 

Setup⁡Dgamma=standard&comma;quiet

Dgammarepresentation=standard

(43)
> 

TensorArray⁡%Dgamma~mu=Dgamma~mu&comma;performmatrixoperations

γ⁢1⁢1=000100100−100−1000γ⁢2⁢2=000−ⅈ00ⅈ00ⅈ00−ⅈ000γ⁢3⁢3=0010000−1−10000100γ⁢4⁢4=1000010000−10000−1

(44)
> 

Setup⁡Dgamma=chiral&comma;quiet

Dgammarepresentation=chiral

(45)
> 

TensorArray⁡%Dgamma~mu=Dgamma~mu&comma;performmatrixoperations

γ⁢1⁢1=000100100−100−1000γ⁢2⁢2=000−ⅈ00ⅈ00ⅈ00−ⅈ000γ⁢3⁢3=0010000−1−10000100γ⁢4⁢4=0010000110000100

(46)

The definition of Dgamma[5] is the independent of the representation

> 

Dgamma~5,definition

γ⁢5⁢5=−ⅈ⁢γ⁢0⁢0⁢γ⁢1⁢1⁢γ⁢2⁢2⁢γ⁢3⁢3,γ⁢5⁢5⁢γ⁢5⁢5=1,γ⁢μ⁢μ&comma;γ⁢5⁢5+=0,γ⁢μ⁢μ&comma;γ⁢ν⁢ν+=2⁢g⁢μ,ν⁢μ,ν

(47)

The matrix form of the first of these equations

> 

TensorArray⁡1&comma;performmatrixoperations

1000010000−10000−1=1000010000−10000−1

(48)

In the Majorana representation, all the components of the Dirac matrices are imaginary

> 

Setup⁡Dgamma=Majorana&comma;quiet

Dgammarepresentation=Majorana

(49)
> 

TensorArray⁡%Dgamma~mu=Dgamma~mu&comma;performmatrixoperations

γ⁢1⁢1=ⅈ0000−ⅈ0000ⅈ0000−ⅈγ⁢2⁢2=000ⅈ00−ⅈ00−ⅈ00ⅈ000γ⁢3⁢3=0−ⅈ00−ⅈ000000−ⅈ00−ⅈ0γ⁢4⁢4=000−ⅈ00ⅈ00−ⅈ00ⅈ000

(50)

The Euclidean form of the four contravariant Dirac matrices in each of the three representations: all of them are Hermitian

> 

Setup⁡metric=Euclidean&comma;Dgamma=standard&comma;quiet

Dgammarepresentation=standard&comma;metric=1&comma;1=1&comma;2&comma;2=1&comma;3&comma;3=1&comma;4&comma;4=1

(51)
> 

g_

gμ,ν=1000010000100001

(52)
> 

TensorArray⁡%Dgammaμ=Dgammaμ&comma;performmatrixoperations

γ1=000−ⅈ00−ⅈ00ⅈ00ⅈ000γ2=000−100100100−1000γ3=00−ⅈ0000ⅈⅈ0000−ⅈ00γ4=1000010000−10000−1

(53)
> 

Setup⁡Dgamma=chiral&comma;quiet

Dgammarepresentation=chiral

(54)
> 

TensorArray⁡%Dgammaμ=Dgammaμ&comma;performmatrixoperations

γ1=000−ⅈ00−ⅈ00ⅈ00ⅈ000γ2=000−100100100−1000γ3=00−ⅈ0000ⅈⅈ0000−ⅈ00γ4=0010000110000100

(55)

In the Majorana representation, the spatial Euclidean Dirac matrices are all real

> 

Setup⁡Dgamma=Majorana&comma;quiet

Dgammarepresentation=Majorana

(56)
> 

TensorArray⁡%Dgammaμ=Dgammaμ&comma;performmatrixoperations

γ1=10000−1000010000−1γ2=000100−100−1001000γ3=0−100−1000000−100−10γ4=000−ⅈ00ⅈ00−ⅈ00ⅈ000

(57)

The first equation of the definition of γ5 in an Euclidean space has a factor −&ImaginaryI; if compared with the definition in a Minkowski space; the other defining equations are the same:

> 

Dgamma5,definition

γ5=γ⁢5⁢5,γ⁢5⁢5=−γ⁢1⁢1⁢γ⁢2⁢2⁢γ⁢3⁢3⁢γ⁢0⁢0,γ⁢5⁢5⁢γ⁢5⁢5=1,γ⁢μ⁢μ&comma;γ⁢5⁢5+=0,γ⁢μ⁢μ&comma;γ⁢ν⁢ν+=2⁢g⁢μ,ν⁢μ,ν

(58)
> 

See Also

Library, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Physics[`*`], Psigma, Setup, SumOverRepeatedIndices, TensorArray, Trace

References

Textbooks

  

[1] Landau, L.D., and Lifshitz, E.M., Berestetskii, V.B, Quantum Electrodynamics, Course of Theoretical Physics Volume 4, second edition. Pergamon Press, 1982.

  

[2] Bogoliubov, N.N., and Shirkov, D.V. Quantum Fields. Benjamin Cummings, 1982.

  

[3] Tong, D., Quantum Field Theory, University of Cambridge Part III Mathematical Tripos, 2007 (http://www.damtp.cam.ac.uk/user/tong/qft/qft.pdf).