use elementary column operations to calculate the basis of the null space of a matrix by chen bihong

34
Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Upload: jocelyn-collins

Post on 16-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Use Elementary Column Operations to Calculate the Basis

of the Null Space of a Matrix

by Chen Bihong

Page 2: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Intruduction

In linear algebra, the kernel or null space (also nullspace) of a matrix A is the set of all vectors x for which Ax=0. The kernel of a matrix with n columns is a linear subspace of n-dimensional Euclidian space. The dimension of null space of A is called the nullity of A. With traditional method, for calculating the basis of null space of A, we must use row reduction to find a basis for the null space. That is, first use elementary row operations to put A in reduced row echelon form, then interpreting the reduced row echelon form as a homugeneous linear system, determine which of the variables in terms of the free variables, then write equations for the dependent variables in terms of the free variables, then for each free variable xi, choose the vector in the null space for which xi=1 and the remaining free variables are zero then resulting collection of vectors is a basis for the null space of A. In this paper we call it elementary row operations method.

Now I give another method which is called elementary column operations method. It is given by theorem as follows.

Page 3: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Chen Bihong Theorem:Given a matrix Amn, rank(A)=r<n

( )Elementary Column Operations

( )

m r m n rm n

n r n n rn

B OA

P QE

n-r columns of Q are basis of null space of matrix A.

Given a m rows n columns matrix A with rank(A)=r, and r less than n, construct a partition metrix by adding identity matrix E below A, then do elementary column operations to it to let A become (B, O) where O is a zero matrix with n-r columns, so the matrix is changed to partition matrix B,O,P,Q , and the all n minul r columns of Q are the basis of null space of matrix A.Proof this theorem is easy, but I will proof it use some special method as follows to suggest some thinking methods and teaching methods.

Page 4: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Chen Bihong Theorem:Given a matrix Amn, rank(A)=r<n

( )Elementary Column Operations

( )

m r m n rm n

n r n n rn

B OA

P QE

n-r columns of Q are basis of null space of matrix A.

Page 5: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Pinciple

Page 6: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Old system:

Ax=b

New system:

PAQy=Pb

where P and Q are invertible matrix.We call a usual system of linear equations Ax equal to b as old system, where A is a matrix with m rows and n columns and b is a column vector of n entrays. Given any invertible square matrix P of order m and invertible square matrix Q of order n, change the old system to PAQx equals Pb witch are called new system.

Page 7: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Old system: Ax=bNew system: PAQx=Pb

Given a solution kesai of the old system, so

Ax=b and let h=Q-1x, then h is solution of new system. because

PAQh=PAQQ-1x=PAx=Pb.

Otherwise, given a solution h of the new system, PAQh=Pb

Left multiply P-1 on two side of the equation can get

AQh=bso x=Qh is a solution of the old system.

Page 8: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Old system:Ax=b

New system:PAQx=Pb

If x is a solution of old system, then h=Q-1x is a solution of new system.If h is a solution of new system, then x=Qh is a solution of old system.

So the two sets of solutions of old and new systems have relation of one to one and invertible linear transformation. If we select suitable P and Q to let new system have simple form, we can find the new method to calculate solutions of system of linear equations

Page 9: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Standard matrix:

O and E are standard matrix.

Add some zero rows or zero columns to a standard matrix to get a new standard matrix.

Use Dmn to express a standard matrix,rank(D)=r

Page 10: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Standard system:Dmnx=d

where D is standard matrix, r(D)=r.d=(d1,d2,…,dr,dr+1,…,dm)Standard system if solutable, it must bedr+1=dr+2=…=dm=0, if they are exist.Then system can write as:xr+1 to xn can be any value.

1 1

2 2

,

,

,

0 0,

0 0.

r r

x d

x d

x d

Page 11: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

So the resolution x can write as1 1 1

2 2 2

1 21 1

2 2

0 0 0

0 0 0

0 0

1 00

0 10

0 00

r r rn r

r

r

n n r

x d d

x d d

x d dc c c

x c

x c

x c

x

1 1 2 2

0

0

0

1

r r n r nc c c

e e e

Page 12: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

change the note x to y, then Dy=d, its solution are:y=g+c1er+1+c2er+2+…+cn-ren,where ei is i-th column of En.and old system is

Ax=buse invertible matrix P and Q, let D=PAQ,this means do elementary operations to A. then old system's solutions arex=Qy=Qg+c1Qer+1+c2Qer+2+…+cn-rQen

Page 13: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Old system: Ax=bNew system: PAQy=Pb or Dy=dOld system's solution: x=Qg+c1Qer+1+c2Qer+2+…+cn-rQen

and Qei is just the i-th column of Q!Q is the record of doing elementary column operation to A to change A to standard matrix D, so add E below A, to record the Q

Page 14: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

construct matrix

A

E

do elementary operations to A's part to change A to standard matrix D, then E becomes Q.

A D

E Q

But row operations are not need to do.

Page 15: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example: Let 1 1 1 1

2 2 2 2

1 1 2 2

A

construct 1 1 1 1

2 2 2 2

1 1 2 2

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

A

E

Page 16: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

2 1

3 1

4 1

4 3

1 1 1 1 1 0 0 0

2 2 2 2 2 0 4 4

1 1 2 2 1 0 3 3

1 0 0 0 1 1 1 1

0 1 0 0 0 1 0 0

0 0 1 0 0 0 1 0

0 0 0 1 0 0 0 1

1 0 0 0

2 0 4 0

1 0 3 0

1 1 1 0

0 1 0 0

0 0 1 1

0 0 0 1

c cc cc c

c c

A

E

a basis of null space of matrix A:

1 0

1 0,

0 1

0 1

Page 17: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Old method:

2 1

3 1

2

3 2

1 2

2

( 4)3

1 1 1 1 1 1 1 1

2 2 2 2 0 0 4 4

1 1 2 2 0 0 3 3

1 1 0 0

0 0 1 1

0 0 0 0

r rr r

rr rr r

A

Page 18: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Old method:1 1 1 1 1 1 0 0

2 2 2 2 0 0 1 1

1 1 2 2 0 0 0 0

A

go back to system of linear equations:

1 2

3 4

,

.

x x

x x

Let x2=c1,x4=c2,c1,c2 can be any number.

Page 19: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Ole method:

Then we get

1 2

3 4

,

.

x x

x x

Let x2=c1,x4=c2,c1,c2 can be any number.

1 1

2 11 2

3 2

4 2

1 0

1 0

0 1

0 1

x c

x cc c

x c

x c

x

Page 20: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

ConclusionAfter Chen Bihong theorem is discovered, a lot of concepts of linear algebra, like "free variable", "reduced row echelon", "Gaussian elimination", etc. become stupid and will be discarded or less use. Entire textbook of linear algebra should rewrite, and a lot of computer programs to calculate the solution of system of linear equations should be reprogrammed.

Page 21: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Thank you!

Page 22: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 1: Let 1 2 1 3

2 5 2 1

1 3 1 1

A

Then 1 2 1 3

2 5 2 1

1 3 1 1

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

A

E

Page 23: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

2 1

3 1

4 1

2

3

1 2 1 3 1 0 0 0

2 5 2 1 2 1 0 5

1 3 1 1 1 1 0 4

1 0 0 0 1 2 1 3

0 1 0 0 0 1 0 0

0 0 1 0 0 0 1 0

0 0 0 1 0 0 0 1

c cc cc c

(-1,0,1,0)T is a basis of nulspace of A.

Page 24: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 2: For a lunch, a big monk need 3 breads, 3 small monk need 1 bread, 100 monk just eat 100 breads, calculate the number of big monk and small monk.

Page 25: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 2: For a lunch, a big monk need 3 breads, 3 small monk need 1 bread, 100 monk just eat 100 breads, calculate the number of big monk and small monk.Solution: Let x and y is the number of big monk and small monk, so

100,

13 100.

3

x y

x y

1 1 100

13 100

3

Page 26: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

so, x=25, y=75.

2 1

3 1

3 2

3

100

600

8( 1)

1 1 100 1 0 0

3 1/ 3 100 3 8 / 3 200

1 0 0 1 1 100

0 1 0 0 1 0

1 0 0

3 8 / 3 0

1 1 25

0 1 75

c cc c

c c

c

Page 27: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 3: Determine whether the vectorsv1=(1 2 3), v2=(1 2 -1), v3=(3 -1 0), andv4=(2 1 2) form a basis of F3. If not, choose, if possible, a basis of F3 consisting of vector of the given set of vectors.

Page 28: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 3: Determine whether the vectorsv1=(1 2 3), v2=(1 2 -1), v3=(3 -1 0), andv4=(2 1 2) form a basis of F3. If not, choose, if possible, a basis of F3 consisting of vector of the given set of vectors.Solution: Construct matrix A:

1 1 3 2

2 2 1 1

3 1 0 2

A

Page 29: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

2 1

3 1

4 1

32

1 1 3 2 1 0 0 0

2 2 1 1 2 0 7 3

3 1 0 2 3 4 9 4

1 0 0 0 1 1 3 2

0 1 0 0 0 1 0 0

0 0 1 0 0 0 1 0

0 0 0 1 0 0 0 1

c cc cc c

A

E

Page 30: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

4 33

( )7

1 0 0 0

2 0 7 01 0 0 012 0 7 3 3 4 973 4 9 45

1 1 3 2 1 1 37

0 1 0 00 1 0 0

0 0 1 03

0 0 10 0 0 1 70 0 0 1

c c

Page 31: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

41

28

1 0 0 0 1 0 0 0

2 0 7 0 2 0 7 0

1 3 4 9 03 4 9

7 191 1 3

5 281 1 37 1

0 1 00 1 0 0 28

3 30 0 1 0 0 1

7 70 0 0 1 0 0 0 1

c

so v1,v2,v3 is a basis of F3, and

4 1 2 3

19 1 3

28 28 7v v v v

Page 32: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 4: Get the general resolution of equation x1+x2+2x3=1.

Page 33: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

Example 4: Get the general resolution of equation x1+x2+2x3=1.resolution: construct matrix as follows:

2 1

3 1

4 1

4

2

( 1)

1 1 2 1 1 0 0 0

1 0 0 0 1 1 2 1

0 1 0 0 0 1 0 0

0 0 1 0 0 0 1 0

c cc cc cc

Page 34: Use Elementary Column Operations to Calculate the Basis of the Null Space of a Matrix by Chen Bihong

2 1

3 1

4 1

4

2

( 1)

1 1 2 1 1 0 0 0

1 0 0 0 1 1 2 1

0 1 0 0 0 1 0 0

0 0 1 0 0 0 1 0

c cc cc cc

1

2 1 2 1 2

3

1 1 2

0 1 0 ,( , )

0 0 1

x

x k k k k F

x

x1+x2+2x3=1