# Matrix field

In abstract algebra, a matrix field is a field with matrices as elements. In field theory there are two types of fields: finite fields and infinite fields. There are several examples of matrix fields of different characteristic and cardinality.
There is a finite matrix field of cardinality p for each prime p. One can find several finite matrix fields of characteristic p for any given prime number p. In general, corresponding to each finite field there is a matrix field. Since any two finite fields of equal cardinality are isomorphic, the elements of a finite field can be represented by matrices.
Contrary to the general case for matrix multiplication, multiplication is commutative in a matrix field (if the usual operations are used). Since addition and multiplication of matrices have all needed properties for field operations except for commutativity of multiplication and existence of multiplicative inverses, one way to verify if a set of matrices is a field with the usual operations of matrix sum and multiplication is to check whether
* the set is closed under addition, subtraction and multiplication;
* the neutral element for matrix addition (that is, the zero matrix) is included;
* multiplication is commutative;
* the set contains a multiplicative identity (note that this does not have to be the identity matrix); and
* each matrix that is not the zero matrix has a multiplicative inverse.

## Examples

1. Take the set of all n × n matrices of the form
    ${\begin{pmatrix}a&a&\cdots &a\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}$
with $a\in \mathbb {R}$ – that is, matrices filled with zeroes except for the first row, which is filled with the same real constant $a$. These matrices are commutative for multiplication:
    ${\begin{pmatrix}a&a&\cdots &a\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}{\begin{pmatrix}b&b&\cdots &b\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}={\begin{pmatrix}ab&ab&\cdots &ab\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}={\begin{pmatrix}b&b&\cdots &b\\0&0&&0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}{\begin{pmatrix}a&a&\cdots &a\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}$.
The multiplicative identity is ${\begin{pmatrix}1&1&\cdots &1\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}$.
The multiplicative inverse of a matrix ${\begin{pmatrix}a&a&\cdots &a\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}$ with $a\neq 0$ is given by ${\begin{pmatrix}{\frac {1}{a}}&{\frac {1}{a}}&\cdots &{\frac {1}{a}}\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}.$
It is easy to see that this matrix field is isomorphic to the field of real numbers under the map $a\mapsto {\begin{pmatrix}a&a&\cdots &a\\0&0&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{pmatrix}}$.
2. The set of matrices of the form
    ${\begin{pmatrix}a&-b\\b&a\end{pmatrix}},$
where $a$ and $b$ range over the field of real numbers, forms a matrix field which is isomorphic to the field $\mathbb {C}$ of complex numbers: $a$ corresponds to the real part of the number, while $b$ corresponds to the imaginary part. So the number $2+3i$, for example, would be represented as
    ${\begin{pmatrix}2&-3\\3&2\end{pmatrix}}.$
One can easily verify that $i^{2}=-1$:
    ${\begin{pmatrix}0&-1\\1&0\end{pmatrix}}^{\!2}={\begin{pmatrix}-1&0\\0&-1\end{pmatrix}},$
and also, by computing a matrix exponential, that Euler's identity, $e^{i\pi }=-1$ is valid:
    $e^{{\begin{pmatrix}0&-1\\1&0\end{pmatrix}}{\begin{pmatrix}\pi &0\\0&\pi \end{pmatrix}}}={\begin{pmatrix}-1&0\\0&-1\end{pmatrix}}$.