Jump to content

Vector space structure on matrices – "Math for Non-Geeks"

From Wikibooks, open books for an open world

Derivation

[edit | edit source]

Let m,n and let V be an n-dimensional and W an m-dimensional K-vector space. We have already seen that, after choosing ordered bases, we can represent linear maps from V to W as matrices. So let B be an ordered basis of V and C be an ordered basis of W.

The space HomK(V,W) of linear maps from V to W is also a K-vector space. The representing matrix of a linear map fHomK(V,W) with respect to the bases B and C is an (m×n)-matrix MCB(f)Km×n. We will try now transfer the vector space structure of HomK(V,W) to the space Km×n of (m×n)-matrices over K.

So we ask the question: Can we find addition and scalar multiplication on Km×n, such that MCB(f+g)=MCB(f)+MCB(g) and MCB(λf)=λMCB(f) for all linear maps f,g:VW and all λK?

On Km×n, is there perhaps even a vector space structure, such that for all finite dimensional vector spaces V and W and all ordered bases B of V and C of W, the mapping HomK(V,W)Km×n;fMCB(f) is linear?

It is best to think about these questions yourself. There is an exercise for matrix addition and one for scalar multiplication that can help you with this.

A first step is to answer this question is the following theorem:

Theorem (Bijective maps induce vector space structures)

Let V be a vector space with addition + and scalar multiplication and W be a set. Let f:VW be a bijective mapping. Then there exists exactly one vector space structure (,), on W, such that f is linear.

Proof (Bijective maps induce vector space structures)

Proof step: Existence

For w,wW and λK we define ww:=f(f1(w)+f1(w)), λw:=f(λf1(w)).

W is closed under these operations, since f always returns us to W. That W forms a vector space with these operations follows directly from the vector space structure of V. One can view f simply as a renaming of the elements of V.

For example, commutativity of the addition on W follows from commutativity of the addition on V as follows: ww=f(f1(w)+f1(w))=f(f1(w)+f1(w))=ww.

Associativity of the addition on W also follows from associativity of the addition on V:

w1(w2w3) definition of addition on W=f(f1(w1)+f1(w2w3)) definition of addition on W=f(f1(w1)+f1(f(f1(w2)+f1(w3)))) f1f is the identity=f(f1(w1)+(f1(w2)+f1(w3))) associativity of the addition on V=f((f1(w1)+f1(w2))+f1(w3)) f1f is the identity=f(f1(f((f1(w1)+f1(w2))+f1(w3)))) definition of addition on W=f(f1(w1w2)+f1(w3)) definition of addition on W=(w1w2)w3.

The establishment of the other vector space axioms work analogously. Thus, we have found a vector space structure on W. Let us now show that f is linear with respect to (,). Since f is bijective, it suffices to show that the inverse map with respect to f is linear (see isomorphism ). We have f1(ww)=f1(f(f1(w)+f1(w)))=f1(w)+f1(w) and f1(λw)=f1(f(λf1(w)))=λf1(w). Thus f1:(W,,)(V,+,) is linear and hence f:(V,+,)(W,,) is also linear.

Proof step: Uniqueness

Uniqueness: Suppose we have a vector space structure (,) such that f:(V,+,)(W,,) is linear. Then f1:(W,,)(V,+,) is the inverse function of a bijective linear function and hence also linear. Therefore we have that

ww=f(f1(ww))=f(f1(w)+f1(w)),

λw=f(f1(λw))=f(λf1(w)).

That is, any vector space structure on W with respect to which f is linear must be our previously defined vector space structure.

We would now like to explicitly determine the vector space structure of Km×n. Let B={v1,,vn} be a basis of V, and C={w1,,wm} a basis of W. We define the addition induced by MCB on the space of matrices as in the last theorem: A+A=MCB((MCB)1(A)+(MCB)1(A)). Now let A=(aij),A=(a'ij)Km×n be arbitrary and f,g:VW be the linear maps associated with A and A with MCB(f)=A,MCB(g)=A. Then

(bij)=A+A=MCB((MCB)1(A)+(MCB)1(A))=MCB(f+g).

We now calculate this bij: In the j-th column, (f+g)(vj)=i=1mbijwi must hold. However, by definition of f+g,

(f+g)(vj)=f(vj)+g(vj)=i=1maijwi+i=1ma'ijwi=i=1m(aij+a'ij)wj.

Since the representation of f(vj) is unique with respect to C, it follows that bij=aij+a'ij. That is, the addition induced by MCB on Km×n is a component-wise addition.

Let us now examine the scalar multiplication λA=MCB(λ(MCB)1(A)) induced by MCB. Let again f=(MCB)1(A) and consider (a'ij)=A=λA. We have that

(λf)(vj)=i=1ma'ijwi.

Furthermore, we have

λf(vj)=λi=1maijwi=i=1mλaijwi.

Since (λf)(vj)=λf(vj) we obtain

i=1ma'ijwi=i=1mλaijwi.

Thus, from the uniqueness of the representation it follows that a'ij=λaij. We see, the scalar multiplication induced from HomK(V,W) by MCB on Km×n is the component-wise scalar multiplication.

We also see here that the induced vector space structure is independent of our choice of V,W,B and C.

Definition

[edit | edit source]

We have just seen: To define a meaningful vector space structure on the matrices, we need to perform the operations component-wise. So we define addition and scalar multiplication as follows:

Definition (Addition of matrices)

Let K be a field and let A=(aij)i=1,...,m;j=1,...,n and B=(bij)i=1,...,m;j=1,...,n be matrices of the same type (m×n) over K. Then

A+B:=(aij+bij)i=1,...,m;j=1,...,n

Written out explicitly in terms of matrices, this definition looks as follows:

A+B=(a11a1nam1amn)+(b11b1nbm1bmn)=(a11+b11a1n+b1nam1+bm1amn+bmn)

Definition (Scalar multiplication of matrices)

Let Kbe a field and let A=(aij) be a matrix over K. Then, for λK we have

λA=λ(aij):=(λaij)

Written out explicitly in terms of matrices, this definition looks as follows:

λA=λ(a11a1nam1amn)=(λa11λa1nλam1λamn)

Example (Addition of matrices)

We are in 2×3.

(246135)+(122321)=(2+(1)4+26+(2)1+33+25+1)=(164456)

Example (Multiplication by a field element)

As an example we take the matrix (120231)2×3 and as field element the real number (3). Then

(3)(120231)=((3)1(3)(2)(3)0(3)2(3)(3)(3)(1))=(360693)

Theorem (Matrices form a vector space)

The set of (m×n)-matrices Km×n forms a K-vector space with the addition and scalar multiplication defined above. The neutral element of addition of this vector space is the zero matrix (0)Km×n and the additive inverse of a matrix A=(aij)Km×n is A:=(aij).

Proof (Matrices form a vector space)

Proof step: Component-wise addition and scalar multiplication form a vector space structure on Km×n

Let B be a basis of Kn and C a basis of Km. For example, we can choose the standard bases. Using the above theorem, we see that the bijective mapping MCB:HomK(Kn,Km)Km×n induces a vector space structure on the space of matrices. We have already considered at the end of the derivation that in this vector space structure is given by component-wise addition and scalar multiplication. So, component-wise addition and scalar multiplication generate a vector space structure on Km×n.

Proof step: (0)Km×n is the neutral element of the addition

We need to show that A+(0)=A holds for any matrix AKm×n. So let A=(aij)Km×n be arbitrary. By definition of addition of matrices, (aij)+(0)=(aij+0)=(aij) holds, where we have exploited that 0K is the neutral element of addition in K.

Proof step: Every matrix A=(aij)Km×n has additive inverse A:=(aij)

We have to show that A+(A)=(0) holds for any matrix AKm×n. So let A=(aij)Km×n be arbitrary. Then by definition of A=(aij) and by the definition of addition of matrices, we have A+(A)=(aij)+(aij)=(aijaij)=(0). In the last equality we used that aij is the additive inverse of aij in K.

If we consider matrices just as tables of numbers (without considering them as mapping matrices), we see the following: Matrices are nothing more than a special way of writing elements of Kmn, since matrices have mn entries. Just as in Kmn, the vector space structure for matrices is defined component-wise. So we get alternatively the following significantly shorter proof:

Alternative proof (Matrices form a vector space)

We can simply use the proof that coordinate spaces are vector spaces, since Km×n is a certain coordinate space. As an example, we show the associativity of addition: If A=(aij),B=(bij),C=(cij) are three (n×m)-matrices, then (A+B)+C=((aij+bij)+cij)=(aij+(bij+cij))=A+(B+C). In the second step we used associativity in the field K.

Dimension of Km×n

[edit | edit source]

By the above identification of Km×n with Kmn we obtain a canonical basis of Km×n: Let Bij be for i{1,...,m},j{1,...,n} the matrix Bij=(bkl) with

bkl={1if k=i and l=j0else.

Example

In K2×3, the basis elements are given by

B11=(100000),B12=(010000),B13=(001000),B21=(000100),B22=(000010),B23=(000001)

Thus, Km×n is a (mn)-dimensional K-vector space. We constructed the vector space structure on Kmn such that for n- and m-dimensional vector spaces V and W with bases B and C, respectively, we have that the map

MCB:HomK(V,W)Km×n,fMCB(f)

is a linear isomorphism. So HomK(V,W) is a (mn)-dimensional K-vector space. This result can also be found in the article vector space of a linear map.