Bourbaki

§ 10. Matrices

1. Definition of matrices

Definition 1

Let I,K,HI, K, H be three sets; a matrix of type (I,K)(I, K) with elements in HH (or a matrix of type (I,K)(I, K) over HH) is any family M=(miκ)(i,κ)∈I×KM = (m_{i\kappa})_{(i, \kappa) \in I \times K} of elements of HH whose indexing set is the product I×KI \times K. For all i∈Ii \in I, the family (miκ)κ∈K(m_{i\kappa})_{\kappa \in K} is called the row of MM of index ii; for all κ∈K\kappa \in K, the family (miκ)i∈I(m_{i\kappa})_{i \in I} is called the column of MM of index κ\kappa.

If II (resp. KK) is finite, MM is said to be a matrix with a finite number of rows (resp. columns). The set of matrices of type (I,K)(I, K) over HH is identified with the product HII×KHI^{I \times K}.

The names "row" and "column" arise from the fact that, in the case where II and KK are intervals [1,p],[1,q][1, p], [1, q] of N\mathbf{N}, the elements of the matrix are envisaged as set out in a rectangular array with pp rows (arranged horizontally) and qq columns (arranged vertically):

(m11m12⋯m1qm21m22⋯m2q⋯⋯⋯⋯mp1mp2⋯mpq) \begin{pmatrix} m_{11} & m_{12} & \cdots & m_{1q} \\ m_{21} & m_{22} & \cdots & m_{2q} \\ \cdots & \cdots & \cdots & \cdots \\ m_{p1} & m_{p2} & \cdots & m_{pq} \end{pmatrix}

When pp and qq are explicit integers sufficiently small for it to be practicable, it is a convention that the above array is a symbol effectively denoting the matrix in question; this notation enables us to dispense with the use of indices, it being understood that the indices of an element are determined by its place in the array; for example, when we speak of the matrix

(abcdef) \begin{pmatrix} a & b & c \\ d & e & f \end{pmatrix}

we mean the matrix (mij)1≤i<2,1≤j<3(m_{ij})_{1 \leq i < 2, 1 \leq j < 3} such that

m11=a, m12=b, m13=c, m21=d, m22=e, m23=f. m_{11} = a,\ m_{12} = b,\ m_{13} = c,\ m_{21} = d,\ m_{22} = e,\ m_{23} = f.

Instead of matrix of type ([1,p],[1,q])([1, p], [1, q]), we also say matrix of type (p,q)(p, q), or matrix with pp rows and qq columns, if no confusion arises; the set of matrices of type (p,q)(p, q) over HH is sometimes denoted by Mp,q(H)\mathbf{M}_{p, q}(H).

Every matrix over HH for which one of the indexing sets I,KI, K is empty is identical with the empty family of elements of HH; it is also called the empty matrix. When I={i0}I = \{i_0\} (resp. K={k0}K = \{k_0\}) is a set consisting of a single element, MM is called a row matrix (resp. column matrix) and the row (resp. column) index can then be suppressed in the notation; when II and KK are both sets with one element, a matrix of type (I,K)(I, K) is often identified with the unique element in this matrix.

A subfamily M′=(mικ)(ι,κ)∈J×LM' = (m_{\iota \kappa})_{(\iota, \kappa) \in J \times L} of a matrix M=(mικ)(ι,κ)∈I×KM = (m_{\iota \kappa})_{(\iota, \kappa) \in I \times K}, whose indexing set is the product of a subset JJ of II and a subset LL of KK, is called a submatrix of the matrix MM; it is said to be obtained by suppressing in MM the rows of index ι∉J\iota \notin J and the columns of index κ∉L\kappa \notin L; conversely, MM is said to be obtained by bordering M′M' with the rows of index ι∉J\iota \notin J and the columns of index κ∉L\kappa \notin L.

Definition 2

The transpose of a matrix* M=(mικ)(ι,κ)∈I×KM = (m_{\iota \kappa})_{(\iota, \kappa) \in I \times K}, denoted by tM^tM, is the matrix (mκι′)(κ,ι)∈K×I(m'_{\kappa \iota})_{(\kappa, \iota) \in K \times I} over HH given by mκι′=mικm'_{\kappa \iota} = m_{\iota \kappa} for all (ι,κ)∈K×L(\iota, \kappa) \in K \times L.

It follows from this definition that the transpose of a matrix of type (I,K)(I, K) is a matrix of type (K,I)(K, I) and that

(1)

t(tM)=M. ^t(^tM) = M.

2. Matrices over a commutative group

Let GG be a commutative group (written additively). The set of matrices over GG, with the given indexing sets I,KI, K, has a commutative group structure since it is the set of mappings from I×KI \times K to GG; this group is written additively, so that if M=(mικ)M = (m_{\iota \kappa}) and M′=(mικ′)M' = (m'_{\iota \kappa}) are two of its elements, then

M+M′=(mικ+mικ′); M + M' = (m_{\iota \kappa} + m'_{\iota \kappa});
the identity element of this group is therefore the matrix all of whose elements are zero (called the zero matrix). Clearly (2)
t(M+M′)=tM+tM′. ^t(M + M') = ^tM + ^tM'.

The sum of two matrices is thus only defined if the indexing sets of the rows and the columns are the same for the two matrices.

Let H′,H′′H', H'' be two sets, GG a commutative group (written additively) and f:(h′,h′′)↦h′h′′f : (h', h'') \mapsto h'h'' a mapping from H′×H′′H' \times H'' to GG. Given two matrices

M′=(mik′)(i,k)∈I×K,M′′=(mkl′′)(k,l)∈K×L M' = (m'_{ik})_{(i, k) \in I \times K}, \quad M'' = (m''_{kl})_{(k, l) \in K \times L}
over H′H' and H′′H'' respectively such that the indexing set KK of the columns of M′M' is finite and equal to the indexing set of the rows of M′′M'', the product of M′M' and M′′M'' via ff, denoted by M′M′′M'M'' or f(M′,M′′)f(M', M''), is the matrix (3)
(∑k∈Kmik′mkl′′)(i,l)∈I×L \left( \sum_{k \in K} m'_{ik} m''_{kl} \right)_{(i, l) \in I \times L}
over GG.

The above definition supposes that the indexing set of the columns of M′M' is equal to the indexing set of the rows of M′′M''; in particular the product M′′M′M''M' has no meaning if I≠LI \neq L. In formula (3) the elements of the same row of M′M' figure multiplied on the right by the elements of the same column of M′′M''; the multiplication is said to be made "rows by columns".

Let f0f^0 be the mapping (h′′,h′)↦h′h′′(h'', h') \mapsto h'h'' of H′′×H′H'' \times H' to GG; it follows immediately from the definitions that

t(M′M′′)=tM′′.tM′ t(M'M'') = tM''.tM'
where the product on the left (resp. right) hand side is calculated via ff (resp. via f0f^0).

When H′H' and H′′H'' are themselves commutative groups (written additively) and ff is Z\mathbf{Z}-*bilinear* (§ 3, no. 1), the distributivity formulae

{(M′+N′)M′′=M′M′′+N′M′′M′(M′′+N′′)=M′M′′+M′N′′ \begin{cases} (M' + N')M'' = M'M'' + N'M'' \\ M'(M'' + N'') = M'M'' + M'N'' \end{cases}
are immediately verified, the indexing sets being such that the sums and products appearing are defined.

Now let H1,H2,H3,H12,H23H_1, H_2, H_3, H_{12}, H_{23} and HH be commutative groups (written additively), f12:H1×H2→H12,f23:H2×H3→H23f_{12}:H_1 \times H_2 \to H_{12}, f_{23}:H_2 \times H_3 \to H_{23} mappings and

f3:H12×H3→H,f1:H1×H23→H f_3:H_{12} \times H_3 \to H, \quad f_1:H_1 \times H_{23} \to H
Z\mathbf{Z}-bilinear mappings; suppose further that, for all xi∈Hi (i=1,2,3)x_i \in H_i \ (i = 1, 2, 3)
f3(f12(x1,x2),x3)=f1(x1,f23(x2,x3)) f_3(f_{12}(x_1, x_2), x_3) = f_1(x_1, f_{23}(x_2, x_3))
(which may also be written as above (x1x2)x3=x1(x2x3)(x_1 x_2)x_3 = x_1(x_2 x_3)); then, if M′=(mrs′),M′′=(mst′′),M′′′=(mtu′′′)M' = (m'_{rs}), M'' = (m''_{st}), M''' = (m'''_{tu}) are matrices over H1,H2,H3H_1, H_2, H_3 respectively,
(M′M′′)M′′′=M′(M′′M′′′′) (M'M'')M''' = M'(M''M'''')
when the products on the two sides (calculated respectively via f12,f3,f23f_{12}, f_3, f_{23} and f1f_1) are defined; for
∑t(∑smrs′mst′′)mtu′′′=∑t∑s(mrs′mst′′)mtu′′′=∑s∑tmrs′(mst′′mtu′′′) \sum_t \left( \sum_s m'_{rs} m''_{st} \right) m'''_{tu} = \sum_t \sum_s (m'_{rs} m''_{st}) m'''_{tu} = \sum_s \sum_t m'_{rs} (m''_{st} m'''_{tu})
=∑smrs′(∑tmst′′mtu′′′) = \sum_s m'_{rs} \left( \sum_t m''_{st} m'''_{tu} \right)
by virtue of the hypotheses made.

The two sides of (6) are also denoted by M′M′′M′′′M'M''M'''. Analogous conventions are made for products of more than three factors.

Remark

The above formulae extend to a more general situation. To be precise:

(a) Suppose H=⋃(ι,κ)∈I×KGικH = \bigcup_{(\iota, \kappa) \in I \times K} G_{\iota \kappa} where each GικG_{\iota \kappa} is a commutative group written additively; then the sum M+M′M + M' may be defined when, for each ordered pair (ι,κ)(\iota, \kappa), mικ∈Gικm_{\iota \kappa} \in G_{\iota \kappa} and mικ′∈Gικm'_{\iota \kappa} \in G_{\iota \kappa}.

(b) Let I, K, L be three sets with K assumed finite and let H′=⋃(i,k)∈I×KHik′H' = \bigcup_{(i, k) \in I \times K} H'_{ik}, H′′=⋃(k,l)∈K×LHkl′′H'' = \bigcup_{(k, l) \in K \times L} H''_{kl}, H=⋃(i,l)∈I×LHilH = \bigcup_{(i, l) \in I \times L} H_{il} be three sets; suppose that each HilH_{il} is a commutative group written additively and for each triple (i,k,l)(i, k, l) let

fikl:Hik′×Hkl′′→Hil f_{ikl}: H'_{ik} \times H''_{kl} \to H_{il}
be a mapping. Then if M′=(mik′)(i,k)∈I×KM' = (m'_{ik})_{(i, k) \in I \times K}, M′′=(mkl′′)(k,l)∈K×LM'' = (m''_{kl})_{(k, l) \in K \times L} are matrices such that mik′∈Hik′m'_{ik} \in H'_{ik} and mkl′′∈Hkl′′m''_{kl} \in H''_{kl} for all i,k,li, k, l we can define the product M′M′′M'M'' via the fiklf_{ikl}. We leave to the reader the task of writing down and proving the formulae analogous to (4), (5) and (6).

3. Matrices over a ring

The most important matrices in Mathematics are matrices over a ring A. The set AI×KA^{I \times K} of matrices over A corresponding to indexing sets I, K then has canonically an (A, A)-bimodule structure (§ 1, no. 14).

For every ordered pair (i,k)∈I×K(i, k) \in I \times K, let EikE_{ik} be the matrix (ajl)(a_{jl}) such that aik=1a_{ik} = 1 and ajl=0a_{jl} = 0 for (j,l)≠(i,k)(j, l) \neq (i, k); the EikE_{ik} are called the matrix units in the set of matrices AI×KA^{I \times K}; if I and K are finite, they form the canonical basis of this set for its left or right A-module structure (§ 1, no. 11). Clearly

tEik=Eki. tE_{ik} = E_{ki}.

Unless otherwise mentioned, the product M′M′′M'M'' of two matrices over A (assumed to be defined) will always be understood to be relative to the multiplication (x,y)↦xy(x, y) \mapsto xy in A (or, as is also said, will be "calculated in A"). Then we have (no. 2) the associativity and distributivity formulae

(7)

(XY)Z=X(YZ)(XY)Z = X(YZ)

(8)

{X(Y+Z)=XY+XZ(X+Y)Z=XZ+YZ \begin{cases} X(Y + Z) = XY + XZ \\ (X + Y)Z = XZ + YZ \end{cases}
for three matrices X, Y, Z over A, whenever the sums and products appearing in these formulae are defined.

In particular, if EikE_{ik} (resp. Ekl′,Eil′′E'_{kl}, E''_{il}) are the matrix units in AI×KA^{I \times K} (resp. AK×L,AI×LA^{K \times L}, A^{I \times L}) respectively, with I={1,p},K={1,q},L={1,r}I = \{1, p\}, K = \{1, q\}, L = \{1, r\}, we obtain the formulae

{EikEjl′=0if k≠jEikEkl′=Eil′′. \begin{cases} E_{ik}E'_{jl} = 0 & \text{if } k \neq j \\ E_{ik}E'_{kl} = E''_{il}. \end{cases}

Let A0A^0 be the opposite ring of A and let a∗b (=ba)a * b \ (= ba) denote the product of a and b in A0A^0; then, for two matrices X, Y over A whose product is defined,

(10)(10)
t(XX)=tY∗tX t(XX) = tY * tX

where on the right hand side tY^tY and tX^tX are considered as matrices with elements in A0\mathbf{A}^0; when A\mathbf{A} is commutative, then

(11)(11)
t(XY)=tY.tX ^t(XY) = ^tY.^tX

Proposition 1

Let A,B\mathbf{A}, \mathbf{B} be two rings and M=(mik)(i,k)∈I×KM = (m_{ik})_{(i,k) \in I \times K} and*

M′=(mik′)(i,k)∈I×K M' = (m'_{ik})_{(i,k) \in I \times K}
two matrices with finite indexing sets over an (A,B)(\mathbf{A}, \mathbf{B})*-bimodule* GG. Suppose that for every matrix unit L=(ai)i∈IL = (a_i)_{i \in I} with one row and elements in A\mathbf{A} and every matrix unit C=(bk)k∈KC = (b_k)_{k \in K} with one column and elements in B\mathbf{B}, L.M.C=L.M′.CL.M.C = L.M'.C (the products being calculated via the external laws of the (A,B)(\mathbf{A}, \mathbf{B})*-module* GG); then* M=M′M = M'.

If LL is taken to be the matrix unit (as)(a_s) with ai=1,as=0a_i = 1, a_s = 0 for s≠is \neq i, and CC the matrix unit (bt)(b_t) with bk=1,bt=0b_k = 1, b_t = 0 for t≠kt \neq k, the products L.M.CL.M.C and L.M′.CL.M'.C are matrices with a single element respectively equal to mikm_{ik} and mik′m'_{ik}.

Let A,B\mathbf{A}, \mathbf{B} be two rings and σ:A→B\sigma : \mathbf{A} \to \mathbf{B} a homomorphism.

For every matrix M=(mik)M = (m_{ik}) over A\mathbf{A}, we shall denote by σ(M)\sigma(M) the matrix (σ(mik))(\sigma(m_{ik})) over B\mathbf{B}; clearly σ(aM)=σ(a)σ(M)\sigma(aM) = \sigma(a)\sigma(M), σ(Ma)=σ(M)σ(a)\sigma(Ma) = \sigma(M)\sigma(a) for a∈Aa \in \mathbf{A}, also σ(tM)=(t(σ(M)))\sigma(^tM) = (^t(\sigma(M))) and

(12)(12)
{σ(M+M′)=σ(M)+σ(M′)σ(MM′)=σ(M)σ(M′) \begin{cases} \sigma(M + M') = \sigma(M) + \sigma(M') \\ \sigma(MM') = \sigma(M)\sigma(M') \end{cases}
when the operations considered are defined, the products on the left and right hand sides of (12) being calculated in A\mathbf{A} and B\mathbf{B} respectively. When σ\sigma is denoted by x↦xσx \mapsto x^\sigma, we write MσM^\sigma instead of σ(M)\sigma(M).

Consider in particular an anti-endomorphism σ\sigma of A\mathbf{A}, that is a homomorphism of A\mathbf{A} to the opposite ring A0\mathbf{A}^0, or a mapping of A\mathbf{A} into itself such that

σ(a+a′)=σ(a)+σ(a′),σ(aa′)=σ(a′)σ(a) \sigma(a + a') = \sigma(a) + \sigma(a'), \qquad \sigma(aa') = \sigma(a')\sigma(a)
for all a,a′a, a' in A\mathbf{A}; then, for two matrices M,M′M, M' over A\mathbf{A} whose product MM′MM' is defined,
(13)(13)
σ(MM′)=(t(σ(tM′)).σ(tM)) \sigma(MM') = (^t(\sigma(^tM')).\sigma(^tM))
where the products on the two sides are calculated in A\mathbf{A}; *this follows immediately from (10) and (12).

4. Matrices and linear mappings

Let A\mathbf{A} be a ring and EE a (right or left) A\mathbf{A}*-module* admitting a basis (ei)i∈I(e_i)_{i \in I}. For every element x∈Ex \in E, the matrix of xx with respect to the basis (ei)(e_i), denoted by M(x)M(x) or x\mathbf{x} (or sometimes simply xx when no confusion can arise), is the column matrix consisting of the components xi (i∈I)x_i \ (i \in I) of xx with respect to (ei)(e_i) (§ 1, no. 11); in calculations it will sometimes be convenient, in order to remember that the index ii is a row index, to adjoin to it a column index taking only one value and write the matrix M(x)M(x) as (xi0)(x_{i0}).

We now consider two (left or right) A-modules E and F with bases (ei)i∈I(e_i)_{i \in I} and (fk)k∈K(f_k)_{k \in K} respectively; let (fk∗)(f_k^*) be the family of coordinate forms corresponding to (fk)(f_k). For a linear mapping uu of E into F, we shall define the matrix of u with respect to the bases (ei),(fk)(e_i), (f_k) in each of the following cases:

(D) E and F are right A-modules, uu is A-linear. (G) E and F are left A-modules, uu is A-linear.

In what follows, we shall attach the letter (D) (resp. (G)) to formulae applying to right (resp. left) modules.

Definition 3

In each of the above two cases, the matrix of u with respect to the bases* (ei),(fk)(e_i), (f_k) is the matrix M(u)=(uki)(k,i)∈K×IM(u) = (u_{ki})_{(k, i) \in K \times I} *such that

uki=fk∗(u(ei)) u_{ki} = f_k^*(u(e_i))

which is written respectively as

(14 D)

uki=⟨fk∗,u(ei)⟩ u_{ki} = \langle f_k^*, u(e_i) \rangle
(14 G)
uki=⟨u(ei),fk∗⟩. u_{ki} = \langle u(e_i), f_k^* \rangle.

The column of M(u)M(u) of index ii is therefore equal to M(u(ei))M(u(e_i)).

Clearly if u,vu, v are two linear mappings of E into F and M(u),M(v)M(u), M(v) their matrices with respect to the same bases, then

M(u+v)=M(u)+M(v) M(u + v) = M(u) + M(v)
and
M(γu)=γM(u) M(\gamma u) = \gamma M(u)
for every element γ\gamma of the centre Γ\Gamma of A. In other words, once the bases (ei),(fk)(e_i), (f_k) are fixed, the mapping u↦M(u)u \mapsto M(u) is a Γ\Gamma-module isomorphism of HomA(E,F)\mathrm{Hom}_A(E, F) onto a subset of the set AK×IA^{K \times I}, equal to AK×IA^{K \times I} if K is finite.

Proposition 2

Suppose I and K are finite. For every element* x∈Ex \in E, the matrix M(u(x))M(u(x)) with respect to the basis (fk)(f_k) *is given by the formula

(17 D)

M(u(x))=M(u).M(x) M(u(x)) = M(u) . M(x)
(17 G)
tM(u(x))=tM(x).tM(u). {}^t M(u(x)) = {}^t M(x) . {}^t M(u).

We verify for example (17 G). Let x=∑ixi0ei,u(x)=∑kyk0fkx = \sum_i x_{i0} e_i, \quad u(x) = \sum_k y_{k0} f_k with xi0∈A, yk0∈Ax_{i0} \in A, \ y_{k0} \in A; then u(x)=u(∑ixi0ei)=∑ixi0u(ei)=∑i,kxi0ukifku(x) = u\left( \sum_i x_{i0} e_i \right) = \sum_i x_{i0} u(e_i) = \sum_{i, k} x_{i0} u_{ki} f_k; whence y_{k0} = \sum_i x_{i0} u_{ki}. In order to bring the two indices ii along side one another, we consider the transpose matrices tM(x)=(x0i′){}^t M(x) = (x'_{0i}), where x0i′=xi0x'_{0i} = x_{i0} and

tM(u)=(uik′), {}^t M(u) = (u'_{ik}),
where uik′=ukiu'_{ik} = u_{ki}; then yk0=∑ix0i′uik′y_{k0} = \sum_i x'_{0i} u'_{ik} and the right hand side is the element of index kk of the matrix with one row tM(x)⋅tM(u){}^t M(x) \cdot {}^t M(u), whence (17 G).

When A is commutative, (17 G) reduces to (17 D) by formula (4) of no. 2.

Corollary

Let E, F, G be three right (resp. left) modules over a ring A, (ei)i∈I(e_i)_{i \in I}, (fk)k∈K(f_k)_{k \in K}, (gl)l∈L(g_l)_{l \in L} respective finite bases of E, F, G, u:E→Fu : E \to F, v:F→Gv : F \to G two linear mappings, M(u)M(u) the matrix of u relative to the bases (ei)(e_i), (fk)(f_k), M(v)M(v) the matrix of v relative to the bases (fk)(f_k), (gl)(g_l) and M(v∘u)M(v \circ u) the matrix of v∘uv \circ u relative to the bases (ei)(e_i), (gl)(g_l); then

(18 D)

M(v∘u)=M(v)M(u) M(v \circ u) = M(v) M(u)
(18 G)
tM(v∘u)=tM(u)tM(v). {}^t M(v \circ u) = {}^t M(u) {}^t M(v).

We prove for example (18 G). For all x∈Ex \in E, by (17 G):

tM(x)⋅tM(v∘u)=tM(v(u(x)))=tM(u(x))⋅tM(v)=tM(x)⋅tM(u)⋅tM(v) {}^t M(x) \cdot {}^t M(v \circ u) = {}^t M(v(u(x))) = {}^t M(u(x)) \cdot {}^t M(v) = {}^t M(x) \cdot {}^t M(u) \cdot {}^t M(v)
by associativity; the corollary then follows from no. 3, Proposition 1 since the matrix tM(x){}^t M(x) with one row is arbitrary.

Remark (1). Formula (17 D) can be considered as a special case of (18 D). For there corresponds canonically to every x∈Ex \in E the linear mapping θx:Ad→E\theta_x : A_d \to E mapping every α∈A\alpha \in A to xαx \alpha (§ 2, no. 1). It is immediate that the matrix M(θx)M(\theta_x) with respect to the basis 1 of AdA_d and the basis (ei)(e_i) of E is just the matrix M(x)M(x); similarly M(θu(x))=M(u(x))M(\theta_{u(x)}) = M(u(x)) and formula (17 D) can therefore be considered as a translation of the relation

θu(x)=u∘θx. \theta_{u(x)} = u \circ \theta_x.

Proposition 3

Let E, F be two right (resp. left) A-modules and (ei)i∈I(e_i)_{i \in I}, (fk)k∈K(f_k)_{k \in K} finite bases of E and F respectively. For every linear mapping u of E into F, let M(u)M(u) be the matrix of u with respect to the bases (ei)(e_i) and (fk)(f_k). Then the matrix of tu:F∗→E∗{}^t u : F^* \to E^* with respect to the dual bases (fk∗)(f_k^*) and (ei∗)(e_i^*) is equal to tM(u){}^t M(u).

E is canonically identified with its bidual E∗∗E^{**} and (ei)(e_i) with the dual basis of (ei∗)(e_i^*); then (supposing for example that E and F are right modules)

⟨tu(fk∗),ei⟩=⟨fk∗,u(ei)⟩, \langle {}^t u(f_k^*), e_i \rangle = \langle f_k^*, u(e_i) \rangle,
whence the proposition.

Remark

(2) Let E and F be two left A-modules with bases (ei)i∈I(e_i)_{i \in I} and (fk)k∈K(f_k)_{k \in K} respectively. For every A-linear mapping u:E→Fu : E \to F, by (14 G), u(ei)=∑kukifku(e_i) = \sum_k u_{ki} f_k; these relations can also be interpreted by saying that the column matrix (u(ei))i∈I(u(e_i))_{i \in I} with elements in F is equal to the product tM(u)⋅(fk)^tM(u) \cdot (f_k), where (fk)k∈K(f_k)_{k \in K} is considered as a column matrix with elements in F and the product is calculated for the mapping A×F→FA \times F \to F defining the law of action on the A-module F (no. 2).

(3) Let A, B be two commutative rings and σ:A→B\sigma : A \to B a ring homomorphism. In the notation of Proposition 3, (ei⊗1)(e_i \otimes 1) and (fk⊗1)(f_k \otimes 1) are respective bases of E(B)=E⊗ABE_{(B)} = E \otimes_A B and F(B)=F⊗ABF_{(B)} = F \otimes_A B (§ 5, no. 1, Proposition 4); moreover, if (ei∗)(e_i^*) and (fk∗)(f_k^*) are respectively the dual bases of (ei)(e_i) and (fk)(f_k), then (ei∗⊗1)(e_i^* \otimes 1) and (fk∗⊗1)(f_k^* \otimes 1) are respectively the dual bases of (ei⊗1)(e_i \otimes 1) and (fk⊗1)(f_k \otimes 1) (§ 5, no. 4). For every A-linear mapping u:E→Fu : E \to F, let M(u)M(u) and M(u⊗1)M(u \otimes 1) be the matrix of uu with respect to (ei)(e_i) and (fk)(f_k) and the matrix of the B-linear mapping u⊗1u \otimes 1 with respect to (ei⊗1)(e_i \otimes 1) and (fk⊗1)(f_k \otimes 1). It follows from § 5, no. 4, formula (20) that

M(u⊗1)=σ(M(u)). M(u \otimes 1) = \sigma(M(u)).

Consider a system of a finite number of right scalar linear equations in a finite number of unknowns

∑i∈Iaktxi=bk(k∈K) \sum_{i \in I} a_{kt} x_i = b_k \quad (k \in K)
with akt,xi,bka_{kt}, x_i, b_k in A.

Let (ei)i∈I,(fk)k∈K(e_i)_{i \in I}, (f_k)_{k \in K} be the canonical bases of E=AdIE = A_d^I and F=AdKF = A_d^K; the system (19) is equivalent to the equation u(x)=bu(x) = b, where x=∑ieixix = \sum_i e_i x_i, b=∑kfkbkb = \sum_k f_k b_k and u:E→Fu : E \to F is the linear mapping such that the matrix M(u)M(u) with respect to the bases (ei)(e_i) and (fk)(f_k) are equal to A=(akt)(k,i)∈K×LA = (a_{kt})_{(k, i) \in K \times L}. This matrix is called the matrix of the system of linear equations (19). Recall (§ 2, no. 8, Remarks 2 and 3), that, writing ci=∑kfkaktc_i = \sum_k f_k a_{kt}, the system (19) is equivalent to the unique vector equation

∑icixi=b, \sum_i c_i x_i = b,
and as cic_i is the column of index ii in the matrix AA, we see that to say that the system (19) admits a solution amounts to saying that the matrix b=(bk0)b = (b_{k0}) with one column is a linear combination of the columns of the matrix AA.

We leave to the reader the task of formulating the analogous definitions and remarks for systems of left linear equations.

5. Block products

The definitions of no. 4 can be generalized as follows. Let E be a (right or left) A-module, the direct sum of a family (Ei)i∈I(E_i)_{i \in I} of submodules. For all x∈Ex \in E, let x=∑i∈Ixix = \sum_{i \in I} x_i with xi∈Eix_i \in E_i for all i∈Ii \in I; we shall say that the column matrix M(x)=(xi)i∈IM(x) = (x_i)_{i \in I} with elements in E is the matrix of x with respect to the decomposition (Ei)i∈I(E_i)_{i \in I} of E as a direct sum.

Let F be another A-module (E and F being both right A-modules or both left A-modules) and suppose that F is the direct sum of a family (Fk)k∈K(F_k)_{k \in K} of submodules. For all u∈Hom(E,F)u \in \mathrm{Hom}(E, F) and all xi∈Eix_i \in E_i, let u(xi)=∑kuki(xi)u(x_i) = \sum_k u_{ki}(x_i) with uki(xi)∈Fku_{ki}(x_i) \in F_k for all k∈Kk \in K; then uki∈Hom(Ei,Fk)u_{ki} \in \mathrm{Hom}(E_i, F_k); we shall say that the matrix M(u)=(uki)(k,i)∈K×IM(u) = (u_{ki})_{(k, i) \in K \times I} of type (K,I)(K, I) with elements in the set H the sum of the Hom(Ei,Fk)\mathrm{Hom}(E_i, F_k) is the matrix of u with respect to the decompositions (Ei)(E_i) and (Fk)(F_k) of E and F as direct sums.

With these definitions, it is obvious that if u,vu, v are two A-linear mappings of E into F then, for matrices with respect to the same decompositions as direct sums

M(u+v)=M(u)+M(v),M(γu)=γM(u) M(u + v) = M(u) + M(v), \qquad M(\gamma u) = \gamma M(u)

for every element γ\gamma of the centre of A (no. 2, Remark).

Moreover, the definition of the ukiu_{ki} shows that, if K is finite, we can write

M(u(x))=M(u).M(x) M(u(x)) = M(u) . M(x)

where M(u(x))M(u(x)) is the matrix of u(x)u(x) with respect to the decomposition (Fk)(F_k), the product on the right hand side of (22) being calculated for the mappings (t,z)↦t(z)(t, z) \mapsto t(z) of Hom(Ei,Fk)×Ei\mathrm{Hom}(E_i, F_k) \times E_i into FkF_k (no. 2, Remark).

Let G be a third A-module, the direct sum of a family (Gl)l∈L(G_l)_{l \in L} of submodules, so that there corresponds to every A-linear mapping v:F→Gv : F \to G a matrix M(v)=(vlk)M(v) = (v_{lk}) with respect to the decompositions (Fk)(F_k) and (Gl)(G_l). If I, K and L are finite, then

M(v∘u)=M(v).M(u) M(v \circ u) = M(v) . M(u)

where the left hand side is the matrix (wli)(w_{li}) of w=v∘uw = v \circ u with respect to the decomposition (Ei)(E_i) and (Gl)(G_l) and the product on the left hand side is calculated for the mappings (t,s)↦t∘s(t, s) \mapsto t \circ s of Hom(Fk,Gl)×Hom(Ei,Fk)\mathrm{Hom}(F_k, G_l) \times \mathrm{Hom}(E_i, F_k) into Hom(Ei,Gl)\mathrm{Hom}(E_i, G_l) (no. 2, Remark). This is just formula (32) of § 1, no. 8, expressed in terms of matrices.

Finally, if I and K are assumed to be finite, E∗E^* (resp. F∗F^*) is canonically identified with the direct sum of the modules Ei∗E_i^* (resp. Fk∗F_k^*) (§ 2, no. 6, Proposition 10). Then it is immediately verified that the matrix of tu^t u with respect to the decompositions (Fk∗)(F_k^*) and (Ei∗)(E_i^*) is just (tuki)(k,i)∈K×I(^t u_{ki})_{(k, i) \in K \times I}.

Suppose now that I and K are finite and further that each of the E_i (resp. F_k) admits a finite basis. It amounts to the same to say that E (resp. F) admits a basis (e_r)_{r \in R} (resp. (f_s)_{s \in S}) and that R (resp. S) admits a partition (R_i)_{i \in I} (resp. (S_k)_{k \in K}) such that for all i \in I (resp. k \in K), (e_r)_{r \in R_i} is a basis of E_i (resp. (f_s)_{s \in S_k} is a basis of F_k). Then, if X = M(u) is the matrix of u with respect to the bases (e_r)_{r \in R} and (f_s)_{s \in S}, the matrix X_{kt} = M(u_{kt}) with respect to the bases (e_r)_{r \in R_i} and (f_s)_{s \in S_k} is just the submatrix of X obtained by suppressing the rows of index s \notin S_k and the columns of index r \notin R_i. Thus we define a one-to-one correspondence

X↦(Xkt)(k,t)∈K×I X \mapsto (X_{kt})_{(k, t) \in K \times I}

between the set of matrices of type (S, R) with elements in A and the set of matrices of matrices (Xkt)(k,t)∈K×I(X_{kt})_{(k, t) \in K \times I} of type K \times I, where each X_{kt} is a matrix over A of type (S_k, R_i). Suppose that further G admits a finite basis (g_t)_{t \in T} and that T = (T_l)_{l \in L} is a partition of T such that, for each l \in L, (g_t)_{t \in T_l} is a basis of G_l; let Y = M(v) be the matrix of v with respect to the bases (f_s)_{s \in S} and (g_t)_{t \in T}, Y_{lk} = M(v_{lk}) that of v_{lk} with respect to the bases (f_s)_{s \in S_k} and (g_t)_{t \in T_l}, Z = M(w) the matrix of w = v \circ u with respect to the bases (e_r)_{r \in R} and (g_t)_{t \in T} and Z_{li} = M(w_{li}) that of w_{li} with respect to the bases (e_r)_{r \in R_i} and (g_t)_{t \in T_l}; then it follows from (23) that the submatrices Z_{li} of Z = YX are given by

Zli=∑kYlkXkt Z_{li} = \sum_k Y_{lk} X_{kt}

in other words, the one-to-one correspondence (24) transforms products into products when all the products in question are defined (products of matrices of matrices being defined in the sense of no. 2, Remark); when the submatrices Z_{li} of the product YX are calculated thus, this product is said to be carried out "in blocks".

This name arises from the fact that, when I = {1, p} and K = {1, q}, the table representing the matrix X is envisaged as divided into "blocks" forming an "array of matrices"

(X11X12…X1pX21X22…X2p…………Xq1Xq2…Xqp) \begin{pmatrix} X_{11} & X_{12} & \ldots & X_{1p} \\ X_{21} & X_{22} & \ldots & X_{2p} \\ \ldots & \ldots & \ldots & \ldots \\ X_{q1} & X_{q2} & \ldots & X_{qp} \end{pmatrix}

which is considered as a symbol denoting X when p and q are specific integers sufficiently small for this to be practicable.

6. Matrix of a semi-linear mapping

Let A, B be two rings, \sigma : A \to B a homomorphism of A into B, E a right (resp. left) A-module with basis (e_i)_{i \in I} and F a right (resp. left) B-module with basis (fk)k∈K(f_k)_{k \in K}. Let u:E→Fu : E \to F be a semi-linear mapping relative to σ\sigma and u(ei)=∑k∈Kfkukiu(e_i) = \sum_{k \in K} f_k u_{ki} (resp. u(ei)=∑k∈Kukifku(e_i) = \sum_{k \in K} u_{ki} f_k), where the ukiu_{ki} are therefore elements of B; by definition, the matrix M(u)=(uki)M(u) = (u_{ki}) of type K×IK \times I is also called the matrix of u with respect to the bases (ei)(e_i) and (fk)(f_k). By the same calculation as in Proposition 2 of no. 4, it is immediately verified that for all x∈Ex \in E, if I and K are finite,

(26 D)

M(u(x))=M(u)⋅σ(M(x)) M(u(x)) = M(u) \cdot \sigma(M(x))
(resp.

(26 G)

tM(u(x))=σ(tM(x))⋅tM(u)). {}^t M(u(x)) = \sigma({}^t M(x)) \cdot {}^t M(u)).

Let C be a third ring, τ:B→C\tau : B \to C a homomorphism, G a right (resp. left) C-module with basis (gl)l∈L(g_l)_{l \in L} and vv a semi-linear mapping of F into G relative to τ\tau; if M(v)M(v) is the matrix of vv with respect to (fk)(f_k) and (gl)(g_l) and M(v∘u)M(v \circ u) the matrix of v∘uv \circ u relative to (ei)(e_i) and (gl)(g_l), then, if I, K and L are finite,

(27 D)

M(v∘u)=M(v)⋅τ(M(u)) M(v \circ u) = M(v) \cdot \tau(M(u))
(resp.

(27 G)

tM(v∘u)=τ(tM(u))⋅tM(v)). {}^t M(v \circ u) = \tau({}^t M(u)) \cdot {}^t M(v)).

To show for example (27 D), note that for all x∈Ex \in E, by (26 D),

M(v∘u)⋅τ(σ(M(x)))=M(v(u(x))) M(v \circ u) \cdot \tau(\sigma(M(x))) = M(v(u(x)))
=M(v)⋅τ(M(u(x)))=M(v)⋅τ(M(u))⋅τ(σ(M(x))), = M(v) \cdot \tau(M(u(x))) = M(v) \cdot \tau(M(u)) \cdot \tau(\sigma(M(x))),
whence (27 D) by Proposition 1 of no. 3.

Suppose finally that σ:A→B\sigma : A \to B is an isomorphism; then recall that tu:F∗→E∗{}^t u : F^* \to E^* is a semi-linear mapping relative to σ−1\sigma^{-1} (§ 2, no. 5); when I and K are finite, the matrix tu{}^t u with respect to the dual bases (fk∗)(f_k^*) and (ei∗)(e_i^*) is given by

(28)

M(tu)=σ−1(tM(u)) M({}^t u) = \sigma^{-1}({}^t M(u))
for, by definition, supposing for example that E and F are right modules,
⟨tu(fk∗),ei⟩σ=⟨fk∗,u(ei)⟩ \langle {}^t u(f_k^*), e_i \rangle^\sigma = \langle f_k^*, u(e_i) \rangle
when σ\sigma is denoted by x↦xσx \mapsto x^\sigma.

Remark

Let A be a ring and σ\sigma an anti-endomorphism of A (no. 3); consider the two following situations:

(GD) E is a left A-module, F a right A-module and uu a Z\mathbf{Z}-linear mapping of E into F such that u(ax)=u(x)σ(a)u(ax) = u(x)\sigma(a) for a∈A, x∈Ea \in A,\ x \in E; in other words, uu is a semi-linear mapping relative to σ\sigma of the right A0A^0-module E into the right A-module F.

(DG) E is a right A-module, F a left A-module and uu a Z\mathbf{Z}-linear mapping of E into F such that u(xa)=σ(a)u(x)u(xa) = \sigma(a)u(x) for a∈A, x∈Ea \in A,\ x \in E; in other words, uu is a semi-linear mapping relative to σ\sigma of the left A0A^0-module E into the left A-module F.

In the two cases, the matrix M(u)M(u) of uu relative to bases of E and F has its elements in A; if these bases are finite, then, for all x∈Ex \in E, we have the respective formulae

(17 GD)

M(u(x))=M(u).σ(M(x)) M(u(x)) = M(u) . \sigma(M(x))
(17 DG)
tM(u(x))=σ(tM(x)).tM(u), {}^t M(u(x)) = \sigma({}^t M(x)) . {}^t M(u),
the products on the two sides being calculated in A. This follows immediately from (26 D) and (26 G) respectively.

7. Square matrices

Definition 4

A matrix whose rows and columns have the same indexing set is called a square matrix.

A square matrix with nn rows and nn columns is called a matrix of order nn.

Remark

It should be noted that a matrix for which the indexing sets of the rows and columns have the same cardinal but are not identical, must not be considered as a square matrix; in particular, the product of two such matrices over a ring is not defined.

Clearly addition and multiplication of square matrices over A with a finite set as indexing set of the rows and columns, define on the set of these matrices a ring structure because of formulae (7), (8) and (9) (no. 3); the matrix (δij)(\delta_{ij}), where δij\delta_{ij} is the Kronecker index (for i∈I,j∈Ii \in I, j \in I), is the unit element of this ring and is denoted by InI_n or lnl_n when I has nn elements. When I={1,n}I = \{1, n\}, the ring of matrices thus defined is denoted simply by Mn(A)\mathbf{M}_n(A); the group of invertible elements of Mn(A)\mathbf{M}_n(A) is denoted by GLn(A)\mathbf{GL}_n(A) or GL(n,A)\mathbf{GL}(n, A).

For a square matrix U=(aij)U = (a_{ij}) of order nn over A to be right (resp. left) invertible, it is necessary and sufficient that, for every system (bi)1≤i≤n(b_i)_{1 \leq i \leq n} of elements of A, the system of nn equations in nn unknowns

∑j=1naijxj=bi(1≤i≤n) \sum_{j=1}^n a_{ij} x_j = b_i \quad (1 \leq i \leq n)

(resp. ∑j=1nxjaji=bi\sum_{j=1}^n x_j a_{ji} = b_i)

have one solution (xi)(x_i) in A.

Let I be a finite indexing set, A a ring and E a right (resp. left) A-module with basis (ei)i∈I(e_i)_{i \in I}. For every endomorphism uu of E, the matrix M(u)M(u) of uu with respect to the two bases identical with (ei)(e_i) is a square matrix; more briefly, it is called the matrix of uu with respect to the basis (ei)(e_i).

Suppose that I={1,n}I = \{1, n\}. The mapping u↦M(u)u \mapsto M(u) (resp. u↦tM(u)u \mapsto {}^t M(u)) is an isomorphism of the ring EndA(E)\mathrm{End}_A(E) onto Mn(A)\mathbf{M}_n(A) (resp. onto the opposite ring of Mn(A)\mathbf{M}_n(A), as follows from formulae (18 D) (resp. 18 G)) (no. 4). The invertible elements of the ring Mn(A)\mathbf{M}_n(\mathbf{A}) called invertible matrices, correspond under the mapping u↦M(u)u \mapsto M(u) (resp. u↦tM(u)u \mapsto {}^t M(u)) to the automorphisms of E; the group GL(n,A)\mathbf{GL}(n, \mathbf{A}) is therefore canonically identified with the group GL(Adn)\mathbf{GL}(\mathbf{A}_d^n).

If uu is an automorphism of E, its contragredient uˇ\check{u} is an automorphism of the left (resp. right) A-module E∗E^*, such that uˇ=(tu)−1=t(u−1)\check{u} = ({}^t u)^{-1} = {}^t (u^{-1}) (§ 2, no. 5, Definition 6); if M(uˇ)M(\check{u}) is the matrix of uˇ\check{u} with respect to the dual basis (ei∗)(e_i^*), then, by virtue of Proposition 3 (no. 4),

M(uˇ)=(tM(u))−1=tM(u−1). M(\check{u}) = ({}^t M(u))^{-1} = {}^t M(u^{-1}).

For every invertible matrix XX, it therefore follows that t(X−1)=(tX)−1{}^t (X^{-1}) = ({}^t X)^{-1}; this matrix is also denoted by tX−1{}^t X^{-1} and called the contragredient of the matrix XX.

Let σ\sigma be an automorphism of the ring A\mathbf{A}; for every semi-linear mapping u:E→Eu : E \to E relative to σ\sigma, the matrix M(u)M(u) of this mapping with respect to a basis (ei)(e_i) of E is also a square matrix. It follows immediately from (27 D) (no. 6) that, if uu is bijective, then

M(u−1)=(σ−1(M(u)))−1. M(u^{-1}) = (\sigma^{-1}(M(u)))^{-1}.

Let E be an A-module which is the direct sum of a finite family (Ei)i∈I(E_i)_{i \in I} of submodules; for every endomorphism uu of E, the matrix M(u)=(uki)M(u) = (u_{ki}) of uu with respect to the two decompositions of E identical with (Ei)(E_i) (no. 5) is a square matrix of linear mappings. In order that u(Ei)⊂Eiu(E_i) \subset E_i for all i∈Ii \in I, it is necessary and sufficient that uki=0u_{ki} = 0 for k≠ik \neq i. When I={1,n}I = \{1, n\}, the relations

u(Ei)⊂Ei+Ei+1+⋯+En(1≤i≤n) u(E_i) \subset E_i + E_{i+1} + \cdots + E_n \qquad (1 \leq i \leq n)

are equivalent to the relations uki=0u_{ki} = 0 for k<ik < i.

Examples of square matrices.* I. Diagonal matrices. In a square matrix

M=(mικ)(ι,κ)∈I×I, M = (m_{\iota \kappa})_{(\iota, \kappa) \in I \times I},

the elements both of whose indices are equal are called diagonal elements and the family (mιι)ι∈I(m_{\iota \iota})_{\iota \in I} is called the diagonal of MM; a square matrix M=(mικ)M = (m_{\iota \kappa}) over a ring, whose elements other than the diagonal elements are zero, is called a diagonal matrix. For every family (aι)ι∈I(a_\iota)_{\iota \in I} of elements of a ring A\mathbf{A}, the diagonal matrix (mικ)(m_{\iota \kappa}) such that mιι=aιm_{\iota \iota} = a_\iota for all ι∈I\iota \in I is denoted by diag⁡(aι)ι∈I\operatorname{diag}(a_\iota)_{\iota \in I} (or diag⁡(a1,a2,…,an)\operatorname{diag}(a_1, a_2, \ldots, a_n) when I={1,n}I = \{1, n\}). In the set Mn(A)\mathbf{M}_n(\mathbf{A}) of square matrices of order nn over A\mathbf{A}, the unit matrix InI_n is a diagonal matrix and also every multiple aIn=Inaa I_n = I_n a of this matrix by a scalar aa (the diagonal matrix (called scalar) all of whose diagonal elements are equal to aa).

For every family (di)1≤i≤n(d_i)_{1 \leq i \leq n} of elements of A\mathbf{A} and every matrix X=(xij)X = (x_{ij}) of type (n,q)(n, q) (resp. (p,n)(p, n)) over A\mathbf{A}, writing D=diag⁡(di)D = \operatorname{diag}(d_i),

{DX=(dixij)XD=(xijdj). \begin{cases} DX = (d_i x_{ij}) \\ XD = (x_{ij} d_j). \end{cases}

In particular, for two diagonal matrices of order nn,

diag(ai)+diag(bi)=diag(ai+bi) \text{diag}(a_i) + \text{diag}(b_i) = \text{diag}(a_i + b_i)
(31)
diag(ai)⋅diag(bi)=diag(aibi). \text{diag}(a_i) \cdot \text{diag}(b_i) = \text{diag}(a_i b_i).

The diagonal matrices therefore form a subring of Mn(A)\mathbf{M}_n(\mathbf{A}) isomorphic to the product ring An\mathbf{A}^n; the scalar matrices form a subring isomorphic to A\mathbf{A}.

II. Permutation matrices; monomial matrices. Let π\pi be any permutation of a finite set I\mathbf{I} and let (ei)i∈I(e_i)_{i \in \mathbf{I}} be the canonical basis of the A\mathbf{A}-module E=AdI\mathbf{E} = \mathbf{A}_d^\mathbf{I}; there exists one and only one endomorphism uπu_\pi of E\mathbf{E} such that, for all i∈Ii \in \mathbf{I}, uπ(ei)=eπ(i)u_\pi(e_i) = e_{\pi(i)} (§ 1, no. 11, Corollary 3 to Proposition 17). For all i∈Ii \in \mathbf{I}, the column of index ii in the matrix M(uπ)M(u_\pi) with respect to the basis (ei)(e_i) has all its elements zero except the one in the row of index π(i)\pi(i), which is equal to 1. By an abuse of language, M(uπ)M(u_\pi) is called the matrix of the permutation π\pi. It is immediate that for any two permutations σ,τ\sigma, \tau of I\mathbf{I}, uστ=uσ∘uτu_{\sigma \tau} = u_\sigma \circ u_\tau and that for the identity permutation ε\varepsilon, uεu_\varepsilon is the identity; the mapping π↦M(uπ)\pi \mapsto M(u_\pi) is therefore an isomorphism of the symmetric group SI\mathfrak{S}_\mathbf{I} onto the group of permutation matrices.

Each row and each column of a permutation matrix contains only a single element ≠0\neq 0. A finite square matrix RR over a non-zero ring A\mathbf{A}, with this property, is called a monomial matrix; let rir_i be the unique element ≠0\neq 0 in the column of RR of index ii and let π(i)\pi(i) be the index of the row where this element is; clearly π\pi is a permutation of the indexing set I\mathbf{I} and R=M(uπ)DR = M(u_\pi)D, where D=diag(ri)D = \text{diag}(r_i).

III. Triangular matrices. In the ring Mn(A)\mathbf{M}_n(\mathbf{A}) of square matrices of order nn over a ring A\mathbf{A}, any matrix (aij)(a_{ij}) such that aij=0a_{ij} = 0 for i>ji > j (resp. i<ji < j) is called an upper (resp. lower) triangular matrix; it is also said that such a matrix has only zeros below (resp. above) its diagonal. It is immediately established that the upper (resp. lower) triangular matrices form a subring SS (resp. TT) of Mn(A)\mathbf{M}_n(\mathbf{A}), S∩TS \cap T being obviously the ring of diagonal matrices.

The set S′S' (resp. T′T') of matrices in SS (resp. TT) whose diagonal elements are invertible is a multiplicative group of matrices called the upper (resp. lower) total triangular group, this follows immediately from § 1, no. 11, Remark 5. The set S1S_1 (resp. T1T_1) of matrices in SS (resp. TT) whose diagonal elements are all equal to 1 is a subgroup of the above group, called the upper (resp. lower) strict triangular group, and every matrix M∈S′M \in S' (resp. M∈T′M \in T') whose diagonal is (di)(d_i), may be written as M=DM1=M1′DM = DM_1 = M'_1D, where D=diag(di)D = \text{diag}(d_i) and M1M_1 and M1′M'_1 matrices belonging to S1S_1 (resp. T1T_1).

IV. Diagonal and triangular matrices of matrices. Let (Ik)1≤k≤p(I_k)_{1 \leq k \leq p} be a partition of the finite set I\mathbf{I}; every square matrix over a ring A\mathbf{A} with indexing set I\mathbf{I} can be written in the form of a square matrix of matrices corresponding to the same partition (Ik)(\mathbf{I}_k) of the indexing set of the rows and the indexing set of the columns (no. 5)

(32)(X11X12…X1pX21X22…X2p…………Xp1Xp2…Xpp) (32) \begin{pmatrix} X_{11} & X_{12} & \ldots & X_{1p} \\ X_{21} & X_{22} & \ldots & X_{2p} \\ \ldots & \ldots & \ldots & \ldots \\ X_{p1} & X_{p2} & \ldots & X_{pp} \end{pmatrix}

where each XkkX_{kk} is a square matrix with Ik\mathbf{I}_k as indexing set of the rows and columns.

With this notation, (32) will be called a diagonal (resp. upper triangular, resp. lower triangular) matrix of matrices if all the matrices XijX_{ij} such that i≠ji \neq j (resp. i>ji > j, resp. i<ji < j) are zero. The interpretation of endomorphisms uu whose matrix is a diagonal, resp. triangular, matrix of matrices has been seen earlier, by considering the corresponding matrix M(u)M(u) of linear mappings. The lower triangular (resp. upper triangular, diagonal) matrices of matrices for a given partition (Ik)(\mathbf{I}_k) of I form subrings of the ring of matrices AI×I\mathbf{A}^{I \times I}. In particular, the ring of diagonal matrices of matrices relative to the partition (Ik)(\mathbf{I}_k) is isomorphic to the product ∏k=1pEnd⁡A(Ek)\prod_{k=1}^p \operatorname{End}_\mathbf{A}(E_k).

8. Change of bases

Proposition 4

Let E be a right A-module with finite basis (ei)1≤i≤n(e_i)_{1 \leq i \leq n} of n elements. For a family of n elements ei′=∑j=1nejaji(1≤i≤n)e'_i = \sum_{j=1}^n e_j a_{ji} (1 \leq i \leq n) to be a basis of E, it is necessary and sufficient that the square matrix P=(aji)P = (a_{ji}) of order n be invertible.

PP is just the matrix, with respect to the basis (ei)(e_i) of the endomorphism uu of E defined by u(ei)=ei′(1≤i≤n)u(e_i) = e'_i (1 \leq i \leq n). Now, for uu to be an automorphism of E, it is necessary and sufficient that (u(ei))(u(e_i)) be a basis of E (§ 1, no. 11, Corollary 3 to Proposition 17); whence the proposition.

The invertible matrix PP is called the matrix of passage from the basis (ei)(e_i) to the basis (ei′)(e'_i). It can also be interpreted as the matrix of the identity mapping lEl_E with respect to the bases (ei′)(e'_i) and (ei)(e_i) (in that order); then clearly the matrix of passage from the basis (ei′)(e'_i) to the basis (ei)(e_i) is the inverse P−1P^{-1} of PP.

Proposition 5

Let (ei),(ei′)(e_i), (e'_i) be two bases of n elements of E and P the matrix of passage from (ei)(e_i) to (ei′)(e'_i). If (ei∗)(e_i^*) and (ei′∗)({e'_i}^*) are the respective dual bases of (ei)(e_i) and (ei′)(e'_i), the matrix of passage from (ei∗)(e_i^*) to (ei′∗)({e'_i}^*) is the contragredient tP−1^tP^{-1} of P.

The transpose of the identity mapping lEl_E is the identity mapping lE∗l_{E^*}; by Proposition 3, no. 4, the matrix of lE∗l_{E^*} with respect to the bases (ei′∗)({e'_i}^*) and (ei∗)(e_i^*) (in that order) is the transpose of the matrix of lEl_E with respect to the bases (ei)(e_i) and (ei′)(e'_i) (in that order), that is the transpose of P−1P^{-1}.

Proposition 6

Let E and F be two right A-modules, (ei)(e_i) and (ei′)(e'_i) two bases of E* with nn elements, (fj)(f_j) and (fj′)(f'_j) two bases of FF with mm elements, PP the matrix of passage from (ei)(e_i) to (ei′)(e'_i) and QQ the matrix of passage from (fj)(f_j) to (fj′)(f'_j). For every linear mapping uu of EE into FF, let M(u)M(u) be the matrix of uu with respect to the bases (ei)(e_i) and (fj)(f_j) and M′(u)M'(u) the matrix of uu with respect to the bases (ei′)(e'_i) and (fj′)(f'_j); then

M′(u)=Q−1M(u)P. M'(u) = Q^{-1} M(u) P.

We may write u=lF∘u∘lEu = l_F \circ u \circ l_E. Formula (33) follows immediately from no. 4, Corollary to Proposition 2 when the matrix of lEl_E is taken with respect to (ei′)(e'_i) and (ei)(e_i), that of uu with respect to (ei)(e_i) and (fi)(f_i) and that of lFl_F with respect to (fi)(f_i) and (fj′)(f'_j).

Corollary 1

If uu is an endomorphism of EE and M(u)M(u) and M′(u)M'(u) its matrices with respect to the bases (ei)(e_i) and (ei′)(e'_i) respectively, then

M′(u)=P−1M(u)P. M'(u) = P^{-1} M(u) P.

Corollary 2

If M(x)M(x) and M′(x)M'(x) are the matrices with one column of the same element x∈Ex \in E with respect to the bases (ei)(e_i) and (ei′)(e'_i) respectively, then

M(x)=P.M′(x). M(x) = P . M'(x).

This is a special case of Proposition 6, applied to the mapping θx:a↦xa\theta_x : a \mapsto xa of AdA_d to EE (no. 4, Remark 1).

Formula (35) is equivalent to

xi=∑j=1naijxj′(1≤i≤n) x_i = \sum_{j=1}^n a_{ij} x'_j \quad (1 \leq i \leq n)

for the elements xix_i and xi′x'_i of the matrices M(x)M(x) and M′(x)M'(x) respectively. Formulae (36 D) are called formulae of change of coordinates. Observe that they express the components of xx relative to the "old" basis (ei)(e_i) as functions of the components of xx relative to the "new" basis (ei′)(e'_i) and the elements of PP, that is the components of the "new" basis relative to the "old" basis.

Remark

(1) We now start with a left AA-module EE with two bases (ei),(ei′)(e_i), (e'_i), each with nn elements; if we write ei′=∑j=1najieie'_i = \sum_{j=1}^n a_{ji} e_i, P=(aji)P = (a_{ji}) is also called the matrix of passing from (ei)(e_i) to (ei′)(e'_i); it is also the matrix of the automorphism of EE such that u(ei)=ei′u(e_i) = e'_i, with respect to the basis (ei)(e_i) and also the matrix of lEl_E with respect to the bases (ei′)(e'_i) and (ei)(e_i) in that order. The above results then hold with only the following modifications: formulae (33 D) to (36 D) are respectively replaced by

(33 G)tM′(u)=tP.tM(u).tQ−1(34 G)tM′(u)=tP.tM(u).tP−1(35 G)tM(u)=tM′(u).tP. \begin{align*} (33\text{ G}) &\quad {}^t M'(u) = {}^t P . {}^t M(u) . {}^t Q^{-1} \\ (34\text{ G}) &\quad {}^t M'(u) = {}^t P . {}^t M(u) . {}^t P^{-1} \\ (35\text{ G}) &\quad {}^t M(u) = {}^t M'(u) . {}^t P. \end{align*}

LINEAR ALGEBRA

(36 G)

xi=∑j=1nxj′aij(1≤i≤n). x_i = \sum_{j=1}^n x_j' a_{ij} \quad (1 \leq i \leq n).

(2) Under the hypotheses of Proposition 4, consider an element x∗∈E∗x^* \in \mathbf{E}^*; as the matrix of passage from (ei∗)(e_i^*) to (ei′∗)(e_{i'}^*) is tP−1tP^{-1} (Proposition 5), for the matrices M(x∗)M(x^*) and M′(x∗)M'(x^*) of x∗x^* with respect to these two bases respectively,

tM(x∗)=tM′(x∗).P−1 tM(x^*) = tM'(x^*) . P^{-1}

or also

(37 D)

tM′(x∗)=tM(x∗).P tM'(x^*) = tM(x^*) . P

which is equivalent to the system of equations

(38 D)

xi′∗=∑j=1nxj∗aji(1≤i≤n) x_{i'}^* = \sum_{j=1}^n x_j^* a_{ji} \quad (1 \leq i \leq n)

for the elements (xi∗)(x_i^*) and (xi′∗)(x_{i'}^*) of the matrices M(x∗)M(x^*) and M′(x∗)M'(x^*). The corresponding formulae for a left A-module E are

(37 G)

M′(x∗)=tP.M(x∗) M'(x^*) = tP . M(x^*)

(38 G)

xi′∗=∑j=1najixj∗(1≤i≤n). x_{i'}^* = \sum_{j=1}^n a_{ji} x_j^* \quad (1 \leq i \leq n).

(3) Let A, B be two rings, σ:A→B\sigma : A \to B a homomorphism of A into B, E a right (resp. left) A-module, (ei)(e_i), (ei′)(e_i') two bases with nn elements of E, F a right (resp. left) B-module, (fj)(f_j), (fj′)(f_j') two bases with mm elements of F and PP (resp. QQ) the matrix of passage from (ei)(e_i) to (ei′)(e_i') (resp. from (fj)(f_j) to (fj′)(f_j')).

For every semi-linear mapping u:E→Fu : E \to F, relative to σ\sigma, let M(u)M(u) be the matrix of uu with respect to (ei)(e_i) and (fj)(f_j) and M′(u)M'(u) its matrix with respect to (ei′)(e_i') and (fj′)(f_j'). Then

(39 D)

M′(u)=Q−1M(u)σ(P) M'(u) = Q^{-1} M(u) \sigma(P)
(resp. (39 G)
tM′(u)=σ(tP).tM(u).tQ−1. tM'(u) = \sigma(tP) . tM(u) . tQ^{-1}.

The proof is the same as that for (33 D) and (33 G), this time using formulae (27 D) and (27 G) (no. 6).

9. Equivalent matrices; similar matrices

Definition 5

Two matrices* X,X′X, X' with m rows and n columns over a ring are called equivalent if there exists an invertible square matrix PP of order m and an invertible square matrix QQ *of order n such that

(40)

X′=PXQ. X' = PXQ.

Clearly the relation "X and X' are equivalent" is an equivalence relation (Set Theory, II, § 6, no. 1) on the set AmnA^{mn} of matrices of type (m,n)(m, n) over A, which justifies the terminology.

With this definition, Proposition 6 of no. 8 can be stated by saying that when the bases are changed in two right A-modules E, F (with finite bases), the matrix of a linear mapping u:E→Fu : E \to F with respect to the new bases is equivalent to the matrix of uu with respect to the old bases.

Conversely, if relation (40) holds and u:Adn→Admu : A_d^n \to A_d^m is a linear mapping whose matrix is XX with respect to the respective canonical bases (ei)(e_i) and (fj)(f_j) of AdnA_d^n and AdmA_d^m, then X′X' is the matrix of uu with respect to the bases (ei′)(e'_i) and (fj′)(f'_j) such that QQ is the matrix of passage from (ei)(e_i) to (ei′)(e'_i) and P−1P^{-1} the matrix of passage from (fj)(f_j) to (fj′)(f'_j).

Examples of equivalent matrices. (1) Two matrices X=(xij)X = (x_{ij}) and X′=(xij′)X' = (x'_{ij}) with mm rows and nn columns "differ only in the order of their rows" if there exists a permutation σ\sigma of the interval [1,m][1, m] of N\mathbf{N}, such that for every ordered pair of indices (i,j)(i, j), xij′=xσ(i),jx'_{ij} = x_{\sigma(i), j} (we also say that X′X' is obtained by performing the permutation σ−1\sigma^{-1} on the rows of XX). The matrices XX and X′X' are then equivalent, for X′=PXX' = PX, where PP is the matrix of the permutation σ−1\sigma^{-1} (cf. no. 7, Example II).

Similarly XX and X′X' are said to differ only in the order of their columns if there exists a permutation τ\tau of [1,n][1, n] such that xij′=xi,τ(j)x'_{ij} = x_{i, \tau(j)} for every ordered pair of indices (i,j)(i, j), XX and X′X' are also equivalent, for X′=XQX' = XQ where QQ is the matrix of the permutation τ\tau.

Note that in the above notation PP is the matrix of passage from a basis (fj)1≤j≤m(f_j)_{1 \leq j \leq m} to the basis (fσ−1(j))1≤j≤m(f_{\sigma^{-1}(j)})_{1 \leq j \leq m} and QQ the matrix of passage from a basis (ei)1≤i≤n(e_i)_{1 \leq i \leq n} to the basis (eτ(i))1≤i≤n(e_{\tau(i)})_{1 \leq i \leq n}.

(2) Let j,kj, k be distinct elements of [1,n][1, n] and let a∈Aa \in A.

Suppose that for 1≤i≤m1 \leq i \leq m, xij′=xij+xikax'_{ij} = x_{ij} + x_{ik}a and xil′=xilx'_{il} = x_{il} for j≠lj \neq l and 1≤i≤m1 \leq i \leq m; X′X' is said to be derived from XX by adding to the column of XX of index jj the column of index kk multiplied on the right by aa. In this case XX and X′X' are also equivalent: for if Q=In+aEkjQ = I_n + aE_{kj} (an invertible triangular matrix, as seen in no. 7), then X′=XQX' = XQ.

Similarly, let h,ih, i be two distinct elements of [1,m][1, m] and aa an element of AA; if X′X' is derived from XX by adding to the row of XX of index ii the row of index hh multiplied on the left by aa, XX and X′X' are equivalent, for X′=PXX' = PX, where P=Im+aEihP = I_m + aE_{ih}.

(3) Finally, if, for a given index jj, xij′=xijcx'_{ij} = x_{ij}c for 1≤i≤m1 \leq i \leq m, where cc is invertible and xil′=xilx'_{il} = x_{il} for 1≤i≤m1 \leq i \leq m and l≠jl \neq j, XX and X′X' are equivalent; for X′=XQX' = XQ, where QQ is the matrix diag⁡(ak)\operatorname{diag}(a_k) with aj=ca_j = c, ak=1a_k = 1 for k≠jk \neq j. Then X′X' is said to be derived from XX by multiplying the column of XX of index jj on the right by aa.

Similarly, if X′X' is derived from X′X' by multiplying the row of XX of index ii on the left by an invertible element c∈Ac \in A, X′X' and XX are equivalent, for X′=PXX' = PX where PP is the matrix diag⁡(bh)\operatorname{diag}(b_h) with bi=cb_i = c, bh=1b_h = 1 for h≠ih \neq i.

Definition 6

Two square matrices X, X' of order n over a ring A are called similar if there exists an invertible square matrix P of order n such that

(41)(41)
X′=PXP−1X' = PXP^{-1}

Clearly the relation "X and X' are similar" is an equivalence relation on Mn(A)M_n(A) meaning that X and X' are transformed into one another by an inner automorphism of this ring.

With this definition, Corollary 1 to Proposition 6 of no. 8 can be stated by saying that when the basis of an A-module E (with a finite basis) is changed, the matrix of an endomorphism u with respect to the new basis is similar to the matrix of u with respect to the old basis.

Remark

(1) Two square matrices which differ only in the order of their rows (or the order of their columns) are equivalent, but in general not similar. A matrix similar to a square matrix X=(xij)X = (x_{ij}) can be obtained by performing the same permutation σ−1\sigma^{-1} on the rows and columns, that is by considering the matrix X′=(xij′)X' = (x'_{ij}), where xij′=xσ(i),σ(j)x'_{ij} = x_{\sigma(i), \sigma(j)} for every ordered pair of indices; for if X is the matrix of an endomorphism u of AdnA^n_d with respect to a basis (ei)1≤i≤n(e_i)_{1 \leq i \leq n}, X′X' is the matrix of u with respect to the basis (eσ(i))1≤i≤n(e_{\sigma(i)})_{1 \leq i \leq n}.

(2) Let X and X′X' be two square matrices of order n which can be written in the form of diagonal matrices of square matrices (no. 7, Example IV):

X=(X10…00X2…0…………00…Xp)X′=(X1′0…00X2′…0…………00…Xp′) X = \begin{pmatrix} X_1 & 0 & \ldots & 0 \\ 0 & X_2 & \ldots & 0 \\ \ldots & \ldots & \ldots & \ldots \\ 0 & 0 & \ldots & X_p \end{pmatrix} \qquad X' = \begin{pmatrix} X'_1 & 0 & \ldots & 0 \\ 0 & X'_2 & \ldots & 0 \\ \ldots & \ldots & \ldots & \ldots \\ 0 & 0 & \ldots & X'_p \end{pmatrix}

corresponding to the same partition of the indexing set [1,n][1, n] for X and X′X'. If, for 1≤i≤p1 \leq i \leq p, XiX_i and Xi′X'_i are equivalent (resp. similar), then X and X′X' are equivalent (resp. similar): for, if Xi′=PiXiQiX'_i = P_i X_i Q_i for 1≤i≤p1 \leq i \leq p, then X′=PXQX' = PXQ where

P=(P10…00P2…0…………00…Pp)Q=(Q10…00Q2…0…………00…Qp) P = \begin{pmatrix} P_1 & 0 & \ldots & 0 \\ 0 & P_2 & \ldots & 0 \\ \ldots & \ldots & \ldots & \ldots \\ 0 & 0 & \ldots & P_p \end{pmatrix} \qquad Q = \begin{pmatrix} Q_1 & 0 & \ldots & 0 \\ 0 & Q_2 & \ldots & 0 \\ \ldots & \ldots & \ldots & \ldots \\ 0 & 0 & \ldots & Q_p \end{pmatrix}

as follows from calculating the "block" product (no. 6). Moreover, if Qi=Pi−1Q_i = P_i^{-1} for all i, then Q=P−1Q = P^{-1}.

10. Tensor product of matrices over a commutative ring

Let C be a commutative ring, E, F, U, V four C-modules and ϕ:E→U\phi : E \to U, ψ:F→V\psi : F \to V two C-linear mappings. Suppose that E, F, U, V have respectively finite bases (eλ)λ∈L,(fμ)μ∈M,(uρ)ρ∈R,(vσ)σ∈S(e_\lambda)_{\lambda \in L}, (f_\mu)_{\mu \in M}, (u_\rho)_{\rho \in R}, (v_\sigma)_{\sigma \in S}; let A=(aρλ)A = (a_{\rho \lambda}) be the matrix of ϕ\phi with respect to (eλ)(e_\lambda) and (uρ)(u_\rho), B=(bσμ)B = (b_{\sigma \mu}) that of ψ\psi with respect to (fμ)(f_\mu) and (vσ)(v_\sigma). For every ordered pair (λ,μ)∈L×M=N(\lambda, \mu) \in L \times M = N, let gλμ=eλ⊗fμg_{\lambda \mu} = e_\lambda \otimes f_\mu; for every ordered pair (ρ,σ)∈R×S=T(\rho, \sigma) \in R \times S = T let wρσ=uρ⊗vσw_{\rho \sigma} = u_\rho \otimes v_\sigma; the gλμg_{\lambda \mu} then form a basis of E⊗FE \otimes F and the wρσw_{\rho \sigma} a basis of U⊗VU \otimes V (§ 3, no. 6, Corollary 2 to Proposition 7). The tensor product of AA by BB, denoted by A⊗BA \otimes B, is the matrix X=(xτv)(τ,v)∈T×NX = (x_{\tau v})_{(\tau, v) \in T \times N} whose elements are given by

x(ρ,σ),(λ,μ)=aρλbσμ. x_{(\rho, \sigma), (\lambda, \mu)} = a_{\rho \lambda} b_{\sigma \mu}.

Then A⊗BA \otimes B is the matrix of ϕ⊗ψ\phi \otimes \psi with respect to the bases (gλμ)(g_{\lambda \mu}) and (wρσ)(w_{\rho \sigma}). By definition (§ 3, no. 2, formula (3))

(ϕ⊗ψ)(gλμ)=(ϕ⊗ψ)(eλ⊗fμ)=ϕ(eλ)⊗ψ(fμ)=∑ρ,σaρλbσμ(uρ⊗vσ)=∑ρ,σaρλbσμwρσ. \begin{align*} (\phi \otimes \psi)(g_{\lambda \mu}) &= (\phi \otimes \psi)(e_\lambda \otimes f_\mu) = \phi(e_\lambda) \otimes \psi(f_\mu) \\ &= \sum_{\rho, \sigma} a_{\rho \lambda} b_{\sigma \mu} (u_\rho \otimes v_\sigma) = \sum_{\rho, \sigma} a_{\rho \lambda} b_{\sigma \mu} w_{\rho \sigma}. \end{align*}

Definition (42) of the elements of A⊗BA \otimes B shows that this matrix corresponds bijectively with the matrix of matrices (aρλB)(ρ,λ)∈R×L(a_{\rho \lambda} B)_{(\rho, \lambda) \in R \times L} and also the matrix (Abσμ)(σ,μ)∈S×M(A b_{\sigma \mu})_{(\sigma, \mu) \in S \times M} (no. 5).

The fact that (ϕ,ψ)↦ϕ⊗ψ(\phi, \psi) \mapsto \phi \otimes \psi is a C-bilinear mapping and formula (9) of § 3, no. 5, can be expressed by the identities

(A⊗(B1+B2))=A⊗B1+A⊗B2((A1+A2)⊗B)=A1⊗B+A2⊗B \begin{align*} (A \otimes (B_1 + B_2)) &= A \otimes B_1 + A \otimes B_2 \\ ((A_1 + A_2) \otimes B) &= A_1 \otimes B + A_2 \otimes B \end{align*}
(43)

(cA)⊗B=A⊗(cB)=c(A⊗B)for c∈C(cA) \otimes B = A \otimes (cB) = c(A \otimes B) \quad \text{for } c \in \mathbf{C}
(44)

(A1⊗B1)(A2⊗B2)=(A1A2)⊗(B1B2)(A_1 \otimes B_1)(A_2 \otimes B_2) = (A_1 A_2) \otimes (B_1 B_2)
(45)

when the operations appearing are defined. The transpose of a tensor product of matrices is given by

(A⊗B)t=(At)⊗(Bt).(A \otimes B)^t = (A^t) \otimes (B^t).
(46)

If AA and BB are invertible square matrices over C\mathbf{C}, A⊗BA \otimes B is invertible and

(A⊗B)−1=(A−1)⊗(B−1).(A \otimes B)^{-1} = (A^{-1}) \otimes (B^{-1}).
(47)

Let (eλ′)λ∈L(e'_\lambda)_{\lambda \in L} be another basis of EE and (fμ′)μ∈M(f'_\mu)_{\mu \in M} another basis of FF; if PP is the matrix of passage from the basis (eλ)(e_\lambda) to the basis (eλ′)(e'_\lambda) and QQ the matrix of passage from the basis (fμ)(f_\mu) to the basis (fμ′)(f'_\mu), the matrix of passage from the basis (eλ⊗fμ)(e_\lambda \otimes f_\mu) to the basis (eλ′⊗fμ′)(e'_\lambda \otimes f'_\mu) is P⊗QP \otimes Q. If A′A' is equivalent (resp. similar) to AA and B′B' equivalent (resp. similar) to BB, then A′⊗B′A' \otimes B' is equivalent (resp. similar) to A⊗BA \otimes B.

The definition of tensor product of matrices can be generalized in an obvious way to an arbitrary finite number of matrices over C\mathbf{C}; in particular we have the associativity formula

(⨂i∈I1Xi)⊗(⨂i∈I2Xi)=⨂i∈IXi \left( \bigotimes_{i \in I_1} X_i \right) \otimes \left( \bigotimes_{i \in I_2} X_i \right) = \bigotimes_{i \in I} X_i

for every partition (I1,I2)(I_1, I_2) of the finite indexing set II.

11. Trace of a matrix

Let CC be a commutative ring; for every square matrix X=(xij)X = (x_{ij}) over CC corresponding to the finite indexing set II, the trace of XX is the element

Tr⁡(X)=∑i∈Ixii. \operatorname{Tr}(X) = \sum_{i \in I} x_{ii}.

Let EE be a CC-module admitting a finite basis (ei)i∈I(e_i)_{i \in I}; for every endomorphism uu of EE,

Tr⁡(u)=Tr⁡(M(u)) \operatorname{Tr}(u) = \operatorname{Tr}(M(u))

M(u)M(u) being the matrix uu with respect to the basis (ei)(e_i); this follows immediately from § 4, no. 3, formula (17), when this formula is applied to the endomorphism x↦⟨x,ei∗⟩ejx \mapsto \langle x, e_i^*\rangle e_j (where ei∗e_i^*) is the dual basis of (ei)(e_i)); from this we pass to the general case by linearity. Formula (49) shows that

Tr⁡(u)=∑i⟨u(ei),ei∗⟩ \operatorname{Tr}(u) = \sum_i \langle u(e_i), e_i^* \rangle

for every basis (ei)(e_i) of EE (cf. § 4, no. 3, formula (17)).

If XX is a matrix of type (m,n)(m, n) over CC and YY a matrix of type (n,m)(n, m) over CC, then

Tr⁡(XY)=Tr⁡(YX) \operatorname{Tr}(XY) = \operatorname{Tr}(YX)

as follows from the above and Proposition 3 of § 4, no. 3; (52) can also be obtained directly, for if X=(xij),Y=(yji)X = (x_{ij}), Y = (y_{ji}) (1≤i≤m,1≤j≤n1 \leq i \leq m, 1 \leq j \leq n), then

Tr⁡(XY)=∑i,jxijyji \operatorname{Tr}(XY) = \sum_{i,j} x_{ij} y_{ji}

by (49). The latter formula proves moreover:

Proposition 7

Let CC be a commutative ring and for every matrix P∈Mn(C)P \in \mathbf{M}_n(C) let fPf_P be the linear form X↦Tr⁡(PX)X \mapsto \operatorname{Tr}(PX) on Mn(C)\mathbf{M}_n(C); the mapping P↦fPP \mapsto f_P is a CC-linear bijection of Mn(C)\mathbf{M}_n(C) onto its dual.

Proposition 8

If gg is a linear form on the CC-module Mn(C)\mathbf{M}_n(C) such that g(XY)=g(YX)g(XY) = g(YX) for all matrices X,YX, Y in Mn(C)\mathbf{M}_n(C), there exists one and only one scalar c∈Cc \in C such that g(X)=c⋅Tr⁡(X)g(X) = c \cdot \operatorname{Tr}(X) for every matrix X∈Mn(C)X \in \mathbf{M}_n(C).

Since the proposition is trivial for n=1n = 1, attention may be confined to the case where n⩾2n \geqslant 2. Taking X=Eij, Y=EjkX = E_{ij},\ Y = E_{jk} with i≠ki \neq k, we obtain g(Eik)=0g(E_{ik}) = 0; then taking X=Eij, Y=EjiX = E_{ij},\ Y = E_{ji} with i≠ji \neq j, we find g(Eii)=g(Ejj)g(E_{ii}) = g(E_{jj}); the proposition follows immediately since the EijE_{ij} form a basis of Mn(C)\mathbf{M}_n(\mathbf{C}).

12. Matrices over a field

The finite matrices with mm rows and nn columns over a field KK are in one-to-one correspondence with the linear mappings of the right vector space E=KdnE = K_d^n into the right vector space KdmK_d^m when the matrices of these mappings are taken with respect to the canonical bases of EE and FF. By definition, the rank of such a matrix XX is the rank of the linear mapping u:E→Fu : E \to F corresponding to it; as this number is by definition the dimension of the subspace u(E)u(E) of FF, it amounts to the same (identifying the columns of XX with the images under uu of the canonical basis of EE) to give the following definition:

Definition 7

Given a matrix XX with mm rows and nn columns over a field KK, the dimension of the subspace of KdmK_d^m generated by the nn columns of XX is called the rank of XX with respect to KK and denoted by rg⁡(X)\operatorname{rg}(X).

It can also be said that the rank of XX is the maximum number of linearly independent columns of XX (as elements of KdmK_d^m). Obviously rg⁡(X)⩽inf⁡(m,n)\operatorname{rg}(X) \leqslant \inf(m, n); for every submatrix YY of XX, rg⁡(Y)⩽rg⁡(X)\operatorname{rg}(Y) \leqslant \operatorname{rg}(X).

If EE and FF are two finite-dimensional vector spaces over KK and uu a linear mapping of EE into FF, the rank of the matrix M(u)M(u) with respect to any two bases is equal to the rank of uu.

Proposition 9

If the elements of a matrix XX with mm rows and nn columns belong to a subfield K0K_0 of a field KK, the rank of XX with respect to K0K_0 is equal to the rank of XX with respect to KK.

Let F0F_0 be the right vector K0K_0-space generated by the canonical basis of the right vector KK-space E=KdmE = K_d^m; by hypothesis the columns of XX belong to E0E_0. Let V0V_0 (resp. VV) be the vector sub-K0K_0-space of F0F_0 (resp. the vector sub-KK-space of EE) generated by these columns. Then V=V0⊗K0KV = V_0 \otimes_{K_0} K (§ 8, no. 2, Proposition 2) and hence dim⁡KV=dim⁡K0V0\dim_K V = \dim_{K_0} V_0.

Proposition 10

The rank of a matrix XX over a field KK is equal to the rank of its transpose tX{}^t X over the opposite field K0K^0.

In the notation introduced before Definition 7, the rank of uu is equal to that of tu{}^t u (§ 7, no. 5, Proposition 10) and the proposition therefore follows from no. 4, Proposition 3.

It is thus seen that the rank of XX can also be defined as the maximum number of linearly independent rows of XX (considering them as elements of the left vector KK-space KsnK_s^n).

The square matrices of order nn over a field KK correspond bijectively with the endomorphisms of E=KdnE = K_d^n and form a ring isomorphic to the ring

EndK_{\mathbf{K}} (E) (no. 7); corresponding to the automorphisms of E are the invertible square matrices.

Proposition 11

Let X be a square matrix of order n over a field K. The following properties are equivalent:

(a) X is invertible in Mn(K)\mathbf{M}_n(\mathbf{K}). (b) X is right invertible in Mn(K)\mathbf{M}_n(\mathbf{K}). (c) X is left invertible in Mn(K)\mathbf{M}_n(\mathbf{K}). (d) X is of rank n.

This is just a translation of § 7, no. 4, Corollary to Proposition 9.

Proposition 12

For a system of m linear equations in n unknowns

∑j=1naijxj=bi(1≤i≤m) \sum_{j=1}^n a_{ij} x_j = b_i \quad (1 \leq i \leq m)

over a field K to have at least one solution, it is necessary and sufficient that the matrix A=(aij)A = (a_{ij}) of the system and the matrix B, obtained by bordering A with an (n+1)(n+1)-th column equal to (bi)(b_i), be matrices of the same rank.

It has been seen (no. 4) that the existence of a solution of (54) is equivalent to the fact that the column (bi)(b_i) is a linear combination of the columns of AA and the proposition therefore follows from § 7, no. 3, Corollary 4 to Proposition 4.

Note that the condition of Proposition 12 is always fulfilled when m=nm = n and AA is invertible, that is of rank nn (Proposition 11). If xx and bb then denote the matrices with one column (xi)(x_i) and (bi)(b_i) respectively, system (54) is equivalent to A.x=bA.x = b and its unique solution is x=A−1.bx = A^{-1}.b.

13. Equivalence of matrices over a field

Proposition 13

Let E, F be two finite-dimensional vector spaces over a field K. If u:E→Fu : E \to F is a linear mapping of rank r, there exist bases of E and F such that, with respect to these bases,

M(u)=(Ir000). M(u) = \begin{pmatrix} I_r & 0 \\ 0 & 0 \end{pmatrix}.

Every matrix of type (m,n)(m, n) over K and of rank r is equivalent to a matrix of the form (55).

The second assertion is trivially equivalent to the first. To show the latter, let dim⁡E=n\dim E = n, dim⁡F=m\dim F = m. The kernel N=u−1(0)N = u^{-1}(0) is of dimension n−rn - r (§ 7, no. 4, formula (11)); let V be a supplementary subspace of N in E and (ei)1≤i≤n(e_i)_{1 \leq i \leq n} a basis of E such that (ei)1≤i≤r(e_i)_{1 \leq i \leq r} is a basis of V and (ei)r+1≤i≤n(e_i)_{r+1 \leq i \leq n} a basis of N. Then the u(ej)u(e_j) (1≤j≤r)(1 \leq j \leq r) form a basis of u(E)u(E); hence there exists a basis (fj)1≤j≤m(f_j)_{1 \leq j \leq m} of F such that fj=u(ej)f_j = u(e_j) for 1≤j≤r1 \leq j \leq r (§ 7, no. 1, Theorem 2) and clearly with respect to the bases (ei)(e_i) and (fj)(f_j) the matrix M(u)M(u) is given by (55).

Corollary

For two matrices over a field, of type (m,n)(m, n), to be equivalent, it is necessary and sufficient that they have the same rank.

We shall now recover Proposition 13 by another more explicit method. For every ring AA, every λ∈A\lambda \in A, every integer m>1m > 1 and every ordered pair of distinct integers i,ji, j in [1,m][1, m], we write

Bij(λ)=Im+λEij B_{ij}(\lambda) = I_m + \lambda E_{ij}

an invertible matrix of order mm by no. 8.

Lemma 1

Let X=(ξij)X = (\xi_{ij}) be a matrix of type (m,n)(m, n) over a ring AA. Suppose that m⩾2m \geqslant 2 and that there exists an element ξi1\xi_{i1} in the first column of XX which is invertible in AA. Then there exist two invertible square matrices P∈Mm(A)P \in \mathbf{M}_m(A), Q∈Mn(A)Q \in \mathbf{M}_n(A) and a matrix YY of type (m−1,n−1)(m - 1, n - 1) over AA such that PP (resp. QQ) is a product of matrices of the form Bij(λ)B_{ij}(\lambda) of order mm (resp. nn) and

PXQ=(10⋯00⋮Y0). PXQ = \begin{pmatrix} 1 & 0 & \cdots & 0 \\ 0 & & & \\ \vdots & & Y & \\ 0 & & & \end{pmatrix}.

The matrix Bij(λ)XB_{ij}(\lambda)X is obtained by adding to the row of XX of index ii the row of index jj multiplied on the left by λ\lambda (no. 9, Example 2); if ξi1\xi_{i1} is invertible, then there exists λ∈A\lambda \in A such that, for the matrix X′=B1i(λ)X=(ξkl′)X' = B_{1i}(\lambda)X = (\xi'_{kl}), ξ11′=1\xi'_{11} = 1; multiplying X′X' on the left by suitably chosen matrices Bk1(μk)B_{k1}(\mu_k) of order mm (for 1≤k≤m1 \leq k \leq m), a matrix X′′=(ξkl′′)X'' = (\xi''_{kl}) is obtained such that ξj1′′=1\xi''_{j1} = 1, ξk1′′=0\xi''_{k1} = 0 for k≠1k \neq 1. Then the matrix obtained is multiplied successively on the right by suitable matrices B1j(vj)B_{1j}(v_j) of order nn (2≤j≤n)(2 \leq j \leq n) and a matrix is obtained of the form (57).

Proposition 14

Let XX be a matrix of type (m,n)(m, n) over a field KK. If XX is of rank rr, there exist two invertible square matrices P∈Mm(K)P \in \mathbf{M}_m(K), Q∈Mn(K)Q \in M_n(K) such that PP (resp. QQ) is a product of matrices of order mm (resp. nn) of the form Bij(λ)B_{ij}(\lambda) and

PXQ=(10⋯00⋯001⋯00⋯0⋯⋯⋯⋯⋯⋯⋯00⋯δr0⋯000⋯00⋯0⋯⋯⋯⋯⋯⋯⋯00⋯00⋯0) PXQ = \begin{pmatrix} 1 & 0 & \cdots & 0 & 0 & \cdots & 0 \\ 0 & 1 & \cdots & 0 & 0 & \cdots & 0 \\ \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots \\ 0 & 0 & \cdots & \delta_r & 0 & \cdots & 0 \\ 0 & 0 & \cdots & 0 & 0 & \cdots & 0 \\ \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots \\ 0 & 0 & \cdots & 0 & 0 & \cdots & 0 \end{pmatrix}

(a matrix (ηij)(\eta_{ij}) all of whose terms are zero except the ηli\eta_{li} for 1≤i≤r1 \leq i \leq r, with ηli=1\eta_{li} = 1 for 1≤i≤r−11 \leq i \leq r - 1, ηrr=δr≠0\eta_{rr} = \delta_r \neq 0). *If r≠mr \neq m or r≠nr \neq n, it may also be assumed that δr=1\delta_r = 1.

The proposition is obvious if X=0X = 0; suppose therefore X≠0X \neq 0. If m=n=1m = n = 1 the proposition is obvious (with P=ImP = I_m, Q=InQ = I_n, δ1≠0\delta_1 \neq 0 arbitrary). If n=1n = 1, m≥2m \geq 2, we can apply Lemma 1 (since X≠0X \neq 0), which gives the desired form (58) with r=1r = 1, δr=1\delta_r = 1. We argue by induction on n>1n > 1; there exists an element ξij≠0\xi_{ij} \neq 0 in XX; if j=1j = 1, Lemma 1 can be applied and reduces the problem to the case where XX has the form (57). The induction hypothesis then applies to YY and there are therefore invertible matrices

P′∈Mm−1(K),Q′∈Mn−1(K) P' \in \mathbf{M}_{m-1}(\mathbf{K}), \quad Q' \in \mathbf{M}_{n-1}(\mathbf{K})

which are products of matrices of the form Bij(λ)B_{ij}(\lambda) of order m−1m - 1 (resp. n−1n - 1), such that P′YQ′P'YQ' is of the form (58). But, if Bij(λ)B_{ij}(\lambda) belongs for example to Mm−1(K)\mathbf{M}_{m-1}(\mathbf{K}), then

(100Bij(λ))=Bi+1, j+1(λ); \begin{pmatrix} 1 & 0 \\ 0 & B_{ij}(\lambda) \end{pmatrix} = B_{i+1,\ j+1}(\lambda);

formula (58) then follows from the formula for block products writing

P=(100P′) and Q=(100Q′). P = \begin{pmatrix} 1 & 0 \\ 0 & P' \end{pmatrix} \text{ and } Q = \begin{pmatrix} 1 & 0 \\ 0 & Q' \end{pmatrix}.

If finally j≠1j \neq 1, it would be sufficient to consider the matrix XBj1(1)XB_{j1}(1) to reduce it to the above case.

Proposition 14 recovers Proposition 13 immediately.

Corollary 1

If XX is an invertible square matrix of order nn over a field K\mathbf{K}, there exist three invertible matrices P,Q,DP, Q, D of order nn such that X=PDQX = PDQ, PP and QQ being products of matrices of the form Bij(λ)B_{ij}(\lambda) and DD a diagonal matrix of the form

D=diag⁡(1,1,…,δ), D = \operatorname{diag}(1, 1, \ldots, \delta),

where δ≠0\delta \neq 0 (cf. Exercise 13).

Corollary 2

For every field K\mathbf{K}, the group of invertible matrices GL(n,K)\mathbf{GL}(n, \mathbf{K}) is generated by the permutation matrices (no. 7, Example 2), the diagonal matrices diag⁡(a,1,…,1)\operatorname{diag}(a, 1, \ldots, 1) (a≠0a \neq 0 in K\mathbf{K}) and the matrices B12(λ)B_{12}(\lambda) (λ∈K\lambda \in \mathbf{K}).

It has been seen (no. 9) that the right (resp. left) product of a matrix by the matrix of a suitable transposition exchanges any two columns (resp. rows). Then the matrix diag⁡(1,…,1,a)\operatorname{diag}(1, \ldots, 1, a) is equal to the product of diag⁡(a,1,…,1)\operatorname{diag}(a, 1, \ldots, 1) and permutation matrices and every matrix Bij(λ)B_{ij}(\lambda) is equal to the product of B12(λ)B_{12}(\lambda) and permutation matrices, whence the corollary.

Remark

(1) In Chapter III, we shall see that, if m=n=rm = n = r and KK is commutative, then, for all choices of PP and QQ satisfying the conditions of Proposition 14, the element δr\delta_r is always the same and equal to the determinant of XX (III, § 8, no. 6).

(2) The argument of Proposition 14, slightly modified, shows that there is a permutation matrix RR such that (with the same conditions on PP)

PXR=(IrN00) PX R = \begin{pmatrix} I_r & N \\ 0 & 0 \end{pmatrix}

if m=n=rm = n = r does not hold, and

PXR=diag⁡(1,…,1,δ) PX R = \operatorname{diag}(1, \ldots, 1, \delta)

otherwise. Observe also that the method of proof gives an explicit determination of the matrices P,Q,RP, Q, R when XX is given explicitly.

Exercises

See the exercises for § 10.

Transcribed from the printed edition, 1998, Springer. Not translated.