Docsity

Matrix Theory: Representing Linear Maps and Bilinear Forms by Matrices, Lecture notes of Linear Algebra

Partial preview of the text

Download Matrix Theory: Representing Linear Maps and Bilinear Forms by Matrices and more Lecture notes Linear Algebra in PDF only on Docsity!

Notes on Linear Algebra

Peter J. Cameron

ii

iv

These lecture notes correspond to the course Linear Algebra II, as given at Queen Mary, University of London, in the first sememster 2005–6. The course description reads as follows:

This module is a mixture of abstract theory, with rigorous proofs, and concrete calculations with matrices. The abstract component builds on the notions of subspaces and linear maps to construct the theory of bilinear forms i.e. functions of two variables which are linear in each variable, dual spaces (which consist of linear mappings from the original space to the underlying field) and determinants. The concrete applications involve ways to reduce a matrix of some specific type (such as symmetric or skew-symmetric) to as near diagonal form as possible.

In other words, students on this course have met the basic concepts of linear al- gebra before. Of course, some revision is necessary, and I have tried to make the notes reasonably self-contained. If you are reading them without the benefit of a previous course on linear algebra, you will almost certainly have to do some work filling in the details of arguments which are outlined or skipped over here. The notes for the prerequisite course, Linear Algebra I, by Dr Francis Wright, are currently available from

http://centaur.maths.qmul.ac.uk/Lin Alg I/

I have by-and-large kept to the notation of these notes. For example, a general field is called K, vectors are represented as column vectors, linear maps (apart from zero and the identity) are represented by Greek letters. I have included in the appendices some extra-curricular applications of lin- ear algebra, including some special determinants, the method for solving a cubic equation, the proof of the “Friendship Theorem” and the problem of deciding the winner of a football league, as well as some worked examples.

Peter J. Cameron September 5, 2008

Contents

2 CONTENTS

Chapter 1

Vector spaces

These notes are about linear maps and bilinear forms on vector spaces, how we represent them by matrices, how we manipulate them, and what we use this for.

1.1 Definitions

Definition 1.1 A field is an algebraic system consisting of a non-empty set K equipped with two binary operations + (addition) and · (multiplication) satisfying the conditions:

(A) (K, +) is an abelian group with identity element 0 (called zero );

(M) (K \ { 0 }, ·) is an abelian group with identity element 1;

(D) the distributive law a ( b + c ) = ab + ac holds for all a , b , c ∈ K.

If you don’t know what an abelian group is, then you can find it spelled out in detail in Appendix A. In fact, the only fields that I will use in these notes are

  • Q, the field of rational numbers;
  • R, the field of real numbers;
  • C, the field of complex numbers;
  • F p , the field of integers mod p , where p is a prime number.

I will not stop to prove that these structures really are fields. You may have seen F p referred to as Z p.

1.2. BASES 5









  







 

 











 

 

 

 

 









^ 







 

^1





 1

 

 

 

 >

Figure 1.1: The parallelogram law

Not only is this definition much simpler, but it is much easier to check that the rules for a vector space are really satisfied! For example, we check the law a ( v + w ) = av + aw. Let v = ( x 1 , y 1 ) and w = ( x 2 , y 2 ). Then we have

a ( v + w ) = a (( x 1 , y 1 ) + ( x 2 , y 2 ) = a ( x 1 + x 2 , y 1 + y 2 ) = ( ax 1 + ax 2 , ay 1 + ay 2 ) = ( ax 1 , ay 1 ) + ( ax 2 , ay 2 ) = av + aw.

In the algebraic definition, we say that the operations of addition and scalar multiplication are coordinatewise : this means that we add two vectors coordinate by coordinate, and similarly for scalar multiplication. Using coordinates, this example can be generalised.

Example 1.2 Let n be any positive integer and K any field. Let V = K n , the set of all n -tuples of elements of K. Then V is a vector space over K, where the operations are defined coordinatewise:

( a 1 , a 2 ,... , an ) + ( b 1 , b 2 ,... , bn ) = ( a 1 + b 1 , a 2 + b 2 ,... , an + bn ), c ( a 1 , a 2 ,... , an ) = ( ca 1 , ca 2 ,... , can ).

1.2 Bases

This example is much more general than it appears: Every finite-dimensional vec- tor space looks like Example 1.2. Here’s why.

Definition 1.3 Let V be a vector space over the field K, and let v 1 ,... , vn be vec- tors in V.

6 CHAPTER 1. VECTOR SPACES

(a) The vectors v 1 , v 2 ,... , vn are linearly independent if, whenever we have scalars c 1 , c 2 ,... , cn satisfying

c 1 v 1 + c 2 v 2 + · · · + cnvn = 0 ,

then necessarily c 1 = c 2 = · · · = 0.

(b) The vectors v 1 , v 2 ,... , vn are spanning if, for every vector v ∈ V , we can find scalars c 1 , c 2 ,... , cn ∈ K such that

v = c 1 v 1 + c 2 v 2 + · · · + cnvn.

In this case, we write V = 〈 v 1 , v 2 ,... , vn 〉.

(c) The vectors v 1 , v 2 ,... , vn form a basis for V if they are linearly independent and spanning.

Remark Linear independence is a property of a list of vectors. A list containing the zero vector is never linearly independent. Also, a list in which the same vector occurs more than once is never linearly independent. I will say “Let B = ( v 1 ,... , vn ) be a basis for V ” to mean that the list of vectors v 1 ,... , vn is a basis, and to refer to this list as B.

Definition 1.4 Let V be a vector space over the field K. We say that V is finite- dimensional if we can find vectors v 1 , v 2 ,... , vn ∈ V which form a basis for V.

Remark In these notes we are only concerned with finite-dimensional vector spaces. If you study Functional Analysis, Quantum Mechanics, or various other subjects, you will meet vector spaces which are not finite dimensional.

Proposition 1.1 The following three conditions are equivalent for the vectors v 1 ,... , vn of the vector space V over K :

(a) v 1 ,... , vn is a basis;

(b) v 1 ,... , vn is a maximal linearly independent set (that is, if we add any vector to the list, then the result is no longer linearly independent);

(c) v 1 ,... , vn is a minimal spanning set (that is, if we remove any vector from the list, then the result is no longer spanning).

The next theorem helps us to understand the properties of linear independence.

8 CHAPTER 1. VECTOR SPACES

We do this for each value of i = 1 ,... , m. Now take a non-zero solution to the set of equations (∗) above: that is, m ∑ i = 1

a (^) jixi = 0

for j = 1 ,... , n. Multiplying the formula for wi by xi and adding, we obtain

x 1 w 1 + · · · + xmwm =

n ∑ j = 1

m ∑ i = 1

a (^) jixi

v (^) j = 0.

But the coefficients are not all zero, so this means that the vectors ( w 1 ,... , wm ) are not linearly dependent, contrary to hypothesis. So the assumption that no wi can be added to ( v 1 ,... , vn ) to get a linearly independent set must be wrong, and the proof is complete.

The Exchange Lemma has some important consequences:

Corollary 1.4 Let V be a finite-dimensional vector space over a field K_. Then_

(a) any two bases of V have the same number of elements;

(b) any linearly independent set can be extended to a basis.

The number of elements in a basis is called the dimension of the vector space V. We will say “an n -dimensional vector space” instead of “a finite-dimensional vector space whose dimension is n ”. We denote the dimension of V by dim( V ).

Proof Let us see how the corollary follows from the Exchange Lemma. (a) Let ( v 1 ,... , vn ) and ( w 1 ,... , wm ) be two bases for V. Suppose, for a con- tradiction, that they have different numbers of elements; say that n < m , without loss of generality. Both lists of vectors are linearly independent; so, according to the Exchange Lemma, we can add some vector wi to the first list to get a larger linearly independent list. This means that v 1 ,... , vn was not a maximal linearly independent set, and so (by Proposition 1.1) not a basis, contradicting our assump- tion. We conclude that m = n , as required. (b) Let ( v 1 ,... , vn ) be linearly independent and let ( w 1 ,... , wm ) be a basis. Necessarily n ≤ m , since otherwise we could add one of the v s to ( 1 ,... , wm ) to get a larger linearly independent set, contradicting maximality. But now we can add some w s to ( v 1 ,... , vn ) until we obtain a basis.

1.3. ROW AND COLUMN VECTORS 9

Remark We allow the possibility that a vector space has dimension zero. Such a vector space contains just one vector, the zero vector 0; a basis for this vector space consists of the empty set.

Now let V be an n -dimensional vector space over K. This means that there is a basis v 1 , v 2 ,... , vn for V. Since this list of vectors is spanning, every vector v ∈ V can be expressed as v = c 1 v 1 + c 2 v 2 + · · · + cnvn

for some scalars c 1 , c 2 ,... , cn ∈ K. The scalars c 1 ,... , cn are the coordinates of v (with respect to the given basis), and the coordinate representation of v is the n -tuple ( c 1 , c 2 ,... , cn ) ∈ K n.

Now the coordinate representation is unique. For suppose that we also had

v = c ′ 1 v 1 + c ′ 2 v 2 + · · · + c ′ nvn

for scalars c ′ 1 , c ′ 2... , c ′ n. Subtracting these two expressions, we obtain

0 = ( c 1 − c ′ 1 ) v 1 + ( c 2 − c ′ 2 ) v 2 + · · · + ( cn − c ′ n ) vn.

Now the vectors v 1 , v 2... , vn are linearly independent; so this equation implies that c 1 − c ′ 1 = 0, c 2 − c ′ 2 = 0,... , cn − c ′ n = 0; that is,

c 1 = c ′ 1 , c 2 = c ′ 2 ,... cn = c ′ n.

Now it is easy to check that, when we add two vectors in V , we add their coordinate representations in K n^ (using coordinatewise addition); and when we multiply a vector v ∈ V by a scalar c , we multiply its coordinate representation by c. In other words, addition and scalar multiplication in V translate to the same operations on their coordinate representations. This is why we only need to con- sider vector spaces of the form K n , as in Example 1.2. Here is how the result would be stated in the language of abstract algebra:

Theorem 1.5 Any n-dimensional vector space over a field K is isomorphic to the vector space K n.

1.3 Row and column vectors

The elements of the vector space K n^ are all the n -tuples of scalars from the field K. There are two different ways that we can represent an n -tuple: as a row, or as

1.4. CHANGE OF BASIS 11

1.4 Change of basis

The coordinate representation of a vector is always relative to a basis. We now have to look at how the representation changes when we use a different basis.

Definition 1.6 Let B = ( v 1 ,... , vn ) and B ′^ = ( v ′ 1 ,... , v ′ n ) be bases for the n -dimensional vector space V over the field K. The transitition matrix P from B to B ′^ is the n × n matrix whose j th column is the coordinate representation [ v ′ j ] B of the j th vector of B ′^ relative to B. If we need to specify the bases, we write PB , B ′.

Proposition 1.6 Let B and B ′^ be bases for the n-dimensional vector space V over the field K_. Then, for any vector v_ ∈ V , the coordinate representations of v with respect to B and B ′^ are related by

[ v ] B = P [ v ] B ′.

Proof Let pi j be the i , j entry of the matrix P. By definition, we have

v ′ j =

n ∑ i = 1

pi jvi.

Take an arbitrary vector v ∈ V , and let

[ v ] B = [ c 1 ,... , cn ]>, [ v ] B ′ = [ d 1 ,... , dn ]>.

This means, by definition, that

v =

n ∑ i = 1

civi =

n ∑ j = 1

d (^) jv ′ j.

Substituting the formula for v ′ j into the second equation, we have

v =

n ∑ j = 1

d (^) j

n ∑ i = 1

pi jvi

Reversing the order of summation, we get

v =

n ∑ i = 1

n ∑ j = 1

pi jd (^) j

vi.

Now we have two expressions for v as a linear combination of the vectors vi. By the uniqueness of the coordinate representation, they are the same: that is,

ci =

n ∑ j = 1

pi jd (^) j.

12 CHAPTER 1. VECTOR SPACES

In matrix form, this says (^) 

c 1 .. . cn

 = P

d 1 .. . dn

or in other words [ v ] B = P [ v ] B ′ ,

as required.

In this course, we will see four ways in which matrices arise in linear algebra. Here is the first occurrence: matrices arise as transition matrices between bases of a vector space. The next corollary summarises how transition matrices behave. Here I denotes the identity matrix , the matrix having 1s on the main diagonal and 0s everywhere else. Given a matrix P , we denote by P −^1 the inverse of P , the matrix Q satisfying PQ = QP = I. Not every matrix has an inverse: we say that P is invertible or non-singular if it has an inverse.

Corollary 1.7 Let B , B ′, B ′′^ be bases of the vector space V.

(a) PB , B = I.

(b) PB ′, B = ( PB , B ′ )−^1_._

(c) PB , B ′′ = PB , B ′ PB ′, B ′′.

This follows from the preceding Proposition. For example, for (b) we have

[ v ] B = PB , B ′^ [ v ] B ′^ , [ v ] B ′^ = PB ′, B [ v ] B ,

so [ v ] B = PB , B ′ PB ′, B [ v ] B.

By the uniqueness of the coordinate representation, we have PB , B ′^ PB ′, B = I.

Corollary 1.8 The transition matrix between any two bases of a vector space is invertible.

This follows immediately from (b) of the preceding Corollary.

Remark We see that, to express the coordinate representation w.r.t. the new basis in terms of that w.r.t. the old one, we need the inverse of the transition matrix:

[ v ] B ′^ = P B −,^1 B ′ [ v ] B.

14 CHAPTER 1. VECTOR SPACES

The next result summarises some properties of these subspaces. Proofs are left to the reader.

Proposition 1.9 Let V be a vector space over K_._

(a) For any v 1 ,... , vn ∈ V , the dimension of 〈 v 1 ,... , vn 〉 is at most n, with equal- ity if and only if v 1 ,... , vn are linearly independent.

(b) For any two subspaces U 1 and U 2 of V , we have

dim( U 1 ∩ U 2 ) + dim( U 1 + U 2 ) = dim( U 1 ) + dim( U 2 ).

An important special case occurs when U 1 ∩ U 2 is the zero subspace { 0 }. In this case, the sum U 1 + U 2 has the property that each of its elements has a unique expression in the form u 1 + u 2 , for u 1 ∈ U 1 and u 2 ∈ U 2. For suppose that we had two different expressions for a vector v , say

v = u 1 + u 2 = u ′ 1 + u ′ 2 , u 1 , u ′ 1 ∈ U 1 , u 2 , u ′ 2 ∈ U 2.

Then u 1 − u ′ 1 = u ′ 2 − u 2.

But u 1 − u ′ 1 ∈ U 1 , and u ′ 2 − u 2 ∈ U 2 ; so this vector is in U 1 ∩ U 2 , and by hypothesis it is equal to 0, so that u 1 = u ′ 1 and u 2 = u ′ 2 ; that is, the two expressions are not different after all! In this case we say that U 1 + U 2 is the direct sum of the subspaces U 1 and U 2 , and write it as U 1 ⊕ U 2. Note that

dim( U 1 ⊕ U 2 ) = dim( U 1 ) + dim( U 2 ).

The notion of direct sum extends to more than two summands, but is a little complicated to describe. We state a form which is sufficient for our purposes.

Definition 1.8 Let U 1 ,... , Ur be subspaces of the vector space V. We say that V is the direct sum of U 1 ,... , Ur , and write

V = U 1 ⊕... ⊕ Ur ,

if every vector v ∈ V can be written uniquely in the form v = u 1 + · · · + ur with ui ∈ Ui for i = 1 ,... , r.

Proposition 1.10 If V = U 1 ⊕ · · · ⊕ Ur, then

(a) dim( V ) = dim( U 1 ) + · · · + dim( Ur ) ;

(b) if Bi is a basis for Ui for i = 1 ,... , r, then B 1 ∪ · · · ∪ Br is a basis for V.

Chapter 2

Matrices and determinants

You have certainly seen matrices before; indeed, we met some in the first chapter of the notes. Here we revise matrix algebra, consider row and column operations on matrices, and define the rank of a matrix. Then we define the determinant of a square matrix axiomatically and prove that it exists (that is, there is a unique “determinant” function satisfying the rules we lay down), and give some methods of calculating it and some of its properties. Finally we prove the Cayley–Hamilton Theorem: every matrix satisfies its own characteristic equation.

2.1 Matrix algebra

Definition 2.1 A matrix of size m × n over a field K, where m and n are positive integers, is an array with m rows and n columns, where each entry is an element of K. For 1 ≤ i ≤ m and 1 ≤ j ≤ n , the entry in row i and column j of A is denoted by Ai j , and referred to as the ( i , j ) entry of A.

Example 2.1 A column vector in K n^ can be thought of as a n × 1 matrix, while a row vector is a 1 × n matrix.

Definition 2.2 We define addition and multiplication of matrices as follows.

(a) Let A and B be matrices of the same size m × n over K. Then the sum A + B is defined by adding corresponding entries:

( A + B ) i j = Ai j + Bi j.

(b) Let A be an m × n matrix and B an n × p matrix over K. Then the product AB is the m × p matrix whose ( i , j ) entry is obtained by multiplying each