:

## Algebra of Dirac matrices with an identity matrix on the right-hand side

Maple

In a previous Mapleprimes question related to Dirac Matrices, I was asked how to represent the algebra of Dirac matrices with an identity matrix on the right-hand side of . Since this is a hot-topic in general, in that, making it work, involves easy and useful functionality however somewhat hidden, not known in general, it passed through my mind that this may be of interest in general. (To reproduce the computations below you need to update your Physics library with the one distributed at the Maplesoft R&D Physics webpage.)

 > > First of all, this shows the default algebra rules loaded when you load the Physics package, for the Pauli  and Dirac  matrices

 >  (1)

Now, you can always overwrite these algebra rules.

For instance, to represent the algebra of Dirac matrices with an identity matrix on the right-hand side, one can proceed as follows.

First create the identity matrix. To emulate what we do with paper and pencil, where we write I to represent an identity matrix without having to see the actual table 2x2 with the number 1 in the diagonal and a bunch of 0, I will use the old matrix command, not the new Matrix (see more comments on this at the end). One way of entering this identity matrix is

 >  (2)

The most important advantage of the old matrix command is that I is of type algebraic and, consequently, this is the important thing, one can operate with it algebraically and its contents are not displayed:

 >  (3)
 >  (4)

And so, most commands of the Maple library, that only work with objects of type algebraic, will handle the task. The contents are displayed only on demand, for instance using eval

 >  (5)

Returning to the topic at hands: set now the algebra the way you want, with an I matrix on the right-hand side, and without seeing a bunch of 0 and 1

 >  (6)
 >  (7)

And that is all.

Check it out

 >  (8)

Set now a Dirac spinor; this is how you could do that, step-by-step.

Again you can use {vector, matrix, array} or {Vector, Matrix, Array}, and again, if you use the Upper case commands, you always have the components visible, and cannot compute with the object normally since they are not of type algebraic. So I use matrix, not Matrix, and matrix instead of vector so that the Dirac spinor that is both algebraic and matrix, is also displayed in the usual display as a "column vector"

 > >  (9)

In addition, following your question, in this example I explicitly specify the components of the spinor, in any preferred way, for example here I use >  (10)

Check it out:

 >  (11)
 >  (12)

Let's see all this working together by multiplying the anticommutator equation by >  (13)

Suppose now that you want to see the matrix form of this equation

 >  (14)

The above has the matricial operations delayed; unleash them

 >  (15)

Or directly perform in one go the matrix operations behind (13)

 >  (16)

REMARK: As shown above, in general, the representation using lowercase commands allows you to use `*` or `.` depending on whether you want to represent the operation or perform the operation. For example this represents the operation, as an exact mimicry of what we do with paper and pencil, both regarding input and output

 >  (17)

And this performs the operation

 >  (18)

Or to only displaying the operation

 >  (19)

And to perform all these matricial operations within an algebraic expression,

 >  (20)
 > Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft ﻿