Matrix ring


In abstract algebra, a matrix ring is any collection of matrices over some ring R that form a ring under matrix addition and matrix multiplication. The set of matrices with entries from R is a matrix ring denoted Mn, as well as some subsets of infinite matrices which form infinite matrix rings. Any subring of a matrix ring is a matrix ring.
When R is a commutative ring, the matrix ring Mn is an associative algebra, and may be called a matrix algebra. For this case, if M is a matrix and r is in R, then the matrix Mr is the matrix M with each of its entries multiplied by r.
This article assumes that R is an associative ring with a unit, although matrix rings can be formed over rings without unity.

Examples

and
Let D be the set of diagonal matrices in the matrix ring Mn, that is the set of the matrices such that every nonzero entry, if any, is on the main diagonal. Then D is closed under matrix addition and matrix multiplication, and contains the identity matrix, so it is a subalgebra of Mn.
As an algebra over R, D is isomorphic to the direct product of n copies of R. It is a free R-module of dimension n. The idempotent elements of D are the diagonal matrices such that the diagonal entries are themselves idempotent.

Two dimensional diagonal subrings

When R is the field of real numbers, then the diagonal subring of M2 is isomorphic to split-complex numbers. When R is the field of complex numbers, then the diagonal subring is isomorphic to bicomplex numbers. When R = ℍ, the division ring of quaternions, then the diagonal subring is isomorphic to the ring of split-biquaternions, presented in 1873 by William K. Clifford.

Matrix semiring

In fact, R only needs to be a semiring for Mn to be defined. In this case, Mn is a semiring, called the matrix semiring. Similarly, if R is a commutative semiring, then Mn is a .
For example, if R is the Boolean semiring, then Mn is the semiring of binary relations on an n-element set with union as addition, composition of relations as multiplication, the empty relation as the zero, and the identity relation as the unit.