Sunday 1 November 2020

Introduction to Linear Algebra - 3. Vector Spaces and Subspaces

 3. Vector Spaces and Subspaces

This article is a summary and a note-taking from the book 'Introduction to Linear Algebra, Gilbert Strang'. 

https://math.mit.edu/~gs/linearalgebra/

3.1. Spaces of Vectors


Matrix calculations에 있어서 이제 가장 높은 차원의 이해로 넘어가려고 한다.

Number -> Vector (Vectors of numbers) -> Space (Spaces of vectors)


우리는 vector space, 특히 subspace를 논의하지 않고서는 Ax=b 의 모든 것을 이해했다고 볼 수 없다. 


이번 chapter에서는 space에 관한 논의와 함께 “Fundamental theorem of Linear Algebra”로 마무리 지으려고 한다. 


Vector Space


먼저 가장 중요한 vector space로 시작하려고한다. R1, R2, … Rn로 표시되며 각각은 각 dimension 내의 모든 vector들을 포함한다. 


Def.

The space Rn consists of all column vectors v with n components.


임의의 vector space에서 vector의 기본 연산인 vector addition, scalar multiplication 이후에도 그 결과는 vector space에 존재한다. 이 연산은 linear combination을 생성한다.


아래는 vector space의 정의에 따라, vector addition, scalar multiplication이 따르는 8가지 rule 이다. 

(1)

(2) 

/.. 


Subspace


Rn 내부에 중요한 vector spaces들이 존재하며 Rn의 subspace라 한다. 


Def. 

A subspace of a vector space is a set of vectors (including 0) that satisfies two requirements. if v and w are vectors in the subspace an c is any scalar, then

  1. v+w is in the subspace.

  2. cv is in the subspace. 

=> All linear combinations stay in the subspace. 



https://en.wikipedia.org/wiki/Linear_subspace#Definition


In mathematics, and more specifically in linear algebra, a linear subspace, also known as a vector subspace[1][2] is a vector space that is a subset of some larger vector space. A linear subspace is usually simply called a subspace, when the context serves to distinguish it from other types of subspaces.


If V is a vector space over a field K and if W is a subset of V, then W is a subspace of V if under the operations of V, W is a vector space over K. Equivalently, a nonempty subset W is a subspace of V if, whenever w1, w2 are elements of W and a, b are elements of K, it follows that a*w1+b*w2 is in W.


주의해야 할 것은 subspace에는 항상  zero vector가 포함되어야 한다는 것. 



The column space of A 


subspace 중 가장 중요한 subspace는 linear system Ax = b에서의 matrix A와 관련이 있다. 


Def. 

The column space consists of all linear combinations of the columns. The combinations are all possible vectors Ax.They fill the column space C(A). 


system에 대한 solvable 여부를 판단하기 위해서는 Ax를 columns의 linear combination으로 보고 이들이 만들어내는 subspace, 즉 column space C(A)에 대해 탐색해야 하기 때문이다. Ax = b 는 b가 A의 column space 내에 있을 때만 해를 가진다. 책에서는 이렇게 표현하고 있다.


To solve Ax = b is to express b as a combination of the columns. 



3.2. The Null Space of A: Solving Ax = 0


Null Space

For non-invertible matrix A, there are non-zero solutions to given Ax=0. The null space of A N(A) consists of all solutions to Ax = 0. These vectors x are in Rn. 


matrix A가 invertible하다면 Ax = 0의 유일한 해는 x = 0이지만 대부분의 경우 A는 rectangular하고 또한 Ax = 0 를 만족시키는 다른 해들도 가진다. 


주의사항은 Ax = b에서 b가 zero vector가 아니면 solution은 subspace가 아니라는 것이다. 

The null space consists of all combinations of the special solutions. 


Linearly Independent 

이후에 다룰 것이지만 zero null space Z의 사례는 매우 중요하다. 왜냐하면 이 경우 A columns의 linear combination이 유일하게 x = 0일 때만 0이 되므로 column들이 independent 하다는 의미를 가지기 때문이다. 

  • No combination of columns gives the zero vector.

  • All columns have pivots, no columns are free. 


Solving Ax=0 by Elimination 


  1. Borward elimination 

  2. Back substitution


헷갈리지 말아야 할 것. m by n matrix에서 column space의 m번 째 component가 항상 0이더라도 column space는 R^m에 있다. 


(예제 풀어보기) 


Echelon Matrices 

137P의 matrix를 통해서 다음의 사실을 도출한다.

  • Three pivot variables

  • Four free variables


일반화시키면 n>m의 n by m matrix에서는 n-m ~ m개의 free variables을 얻게 되고 이것이 null space의 dimension을 의미한다. 


The nullspace is a subspace. Its dimension is the number of free variables. 



3.3. The Rank and The Row Reduced Form


The true size of A is given by its rank. 


Def.

The rank r of A is the number of pivots. 


(예제)

2 pivots, 2 frees, rank = 2.


Rank One 


(예제)


Defs of ranks. 

  • If a given matrix A’s rank is r, the matrix A have r independent rows, and r independent columns. 

  • The rank r is the dimension of the column space. 


The Pivot Columns 


(예제) 

다음 정의는 순전히 computational 합니다.  


정리. 

The pivot columns are not combinations of earlier columns. The free columns are combinations of earlier columns. And these combinations are the special solutions. 


The Special Solutions


(예제) 


각 free variable이 1인 경우에 대응하는 special solution을 구하여 nullspace matrix N을 얻을 수 있다. 


정리. 

Ax = 0 has r pivots and n-r free variables. n columns -r pivot columns. The null space matrix N contains n-r special solutions. Then AN = 0. the special solutions are independent. 


주어진 matrix A의 reduced row echelon form R에서 다음과 같이 정형화 할 수 있다. 

R = [ I F && 0 0 ], N = [-F && I] 


을 통해서 column space와 그에 따른 null space를 정형화시켜서 표현할 수 있다는 이야기를 하고 있음. 그리고 MATLAB, 혹은 다른 program에 따라서 elimination 과정은 다를 수 있지만 최종적으로 R은 같음을 이야기하고 있다. 그 말은 주어진 column이 가지는 column space, null space 등은 항상 일관되다는 말이다. 


3.4. The Complete Solution to Ax = b

지난 section에서 Ax=0의 solution을 살펴보았다. Forward elimination,  backward substitution 과정에서 b는 여전히 0 vector 이기 때문에 Ax=0은 Rx=0으로 그대로 치환되어 풀었다. 이제 b가 non-zero vector인 경우를 살펴보자. 


One Particular Solution


(예제)


particular solution을 고르는 방법. free variable을 모두 0으로 설정하면 pivot variable은 Rx = d에서 대응되는 d와 값이 같다. 

  • x particular = the particular solution solves Axp = b

  • x nullspace = the n-r special solutions solve Axn = 0

So, A(xp+xn)=b. 


만약 A가 square matrix이고 n = m = r이면? (A가 independent columns을 가진다면?)

particular solution만 존재하고 special solutions은 zero vector이다. 


Full column rank (r=n) 

A has independent columns. 

  1. All columns of A are pivot columns 

  2. There are no free variables or special solutions.

  3. The null space N(A) contains only the zero vector x=0

  4. If Ax=b has a solution (it might not, overdetermined) then it has only one solution.


The Complete Solution

Full row rank (r=m)

  1. All rows have pivots, and R has no zero rows.

  2. Ax=b has a solution for every right side b.

  3. The column space is the whole space Rm.

  4. There are n-r=n-m special solutions in the nullspace of A.


Four possibilities for linear equations. 

  • r=m and r=n square and invertible Ax=b has 1 solution

  • r=m and r<n short and wide Ax=b has infinite solutions

  • r<m and r=n tall and thin AX=b has 0 or 1 solution  

  • r<m and r<n not full rank Ax=b has 0 or infinite solution. 

이들 각각을 system의 해로서 4개로 유형화할 수 있다. 159p 참고. 



3.5. Independence, Basis and Dimension


This important section is about the true size of a subspace. The true dimension is measured by counting independent columns. We will see that the true dimension of the column space is the rank r. 


The goal is to understand a basis: independent vectors that “span the space”


이번 단원의 essential idea는 다음과 같다.

  1. Independent vectors: no extra vectors

  2. Spanning a space: enough vectors to produce the rest

  3. Basis for a space: not too many or too few

  4. Dimension of a space: the number of vectors in a basis


Linear Independence


Def.

The columns of A are linearly independent when the only solutions to Ax = 0 is x = 0. no other combination Ax of the columns gives the zero vector.


역으로 Ax=0에서 x=0이 아닌 solution이 있으면 각 vector는 다른 vector들의 linear combination이 되어 linear dependent가 된다. 


위 정의는 matrix에 한정되어 있지만 아래 정의는 어떤 vector space의 vectors sequence에도 적용된다. 


Def.

The sequence of vectors v1, …, vn is linearly independent if the only combination that gives the zero vector is 0v1+ …+ 0vn. X1v1+x2v2+...+xnvn=0 only happens when all x’s are zero. 



Vectors that Span a Subspace


We now introduce the single word “span” to describe this: This column space is spanned by the columns. 


Def.

A set of vectors spans a space if their linear combinations fill the space. 


A Basis for a Vector Space


Two vectors cannot span all of R3, even if they are independent. four vectors cannot be independent, even if they span R3. We want enough independent vectors to span the space. 

=> A basis is just right.


Def. 

A basis for a vector space is a sequence of vectors with two properties. The basis vectors are linearly independent and the span the space. 


Proposition.

There is one and only one way to write v as a combination of the basis vectors.

Proof. 

(refer book)


A basis in a vector space is not unique!

어떤 vector space에서 basis는 infinite 하다. 우리는 직관을 위해 standard basis를 Rn의 basis로 이야기한다. 


Question.

Given five vectors in R7, how do you find a basis for the space they span? 

=> Make them the rows of A, and eliminate to the non-zero rows of R, or put the five vectors into the column of A. 


Dimension of a Vector Space


https://en.wikipedia.org/wiki/Dimension_(vector_space)

In mathematics, the dimension of a vector space V is the cardinality (i.e. the number of vectors) of a basis of V over its base field.[1] It is sometimes called Hamel dimension (after Georg Hamel) or algebraic dimension to distinguish it from other types of dimension.

For every vector space there exists a basis,[a] and all bases of a vector space have equal cardinality;[b] as a result, the dimension of a vector space is uniquely defined. We say V is finite-dimensional if the dimension of V is finite, and infinite-dimensional if its dimension is infinite.


Trivial question.

Does a set of n linearly independent vectors always span Rn? 

https://math.stackexchange.com/questions/978327/does-a-set-of-n-independent-vectors-in-rn-always-span-rn

Proof by contradiction.

Rn has dimension n- which means any basis can have no more than n vectors (in fact exactly n vectors). Now if a set of linearly independent vectors didn’t span Rn then we would have a basis consisting of more than n vectors by extending to the L.I. set. 



Proposition.

 If v1,…, vm and w1,…,wn are both bases for the same vector space, then m = n.

Proof.

We want to reach a contradiction with a supposition of m>n, n>m. W = VA 로 만드는 coefficient matrix A를 두면 n=m이 아닐 때 non-zero solution을 얻으므로 W가 basis라는 가정은 모순이 된다.


Def.

The dimension of a space is the number of vectors in every basis. 


Terminology.

We never say “the rank of a space” or “the dimension of a basis” or “the basis of a matrix”. Those terms have no meaning. It is the dimension of the column space that equals to the rank of the matrix. 


Bases for Matrix Spaces and Function Spaces 


The word “independence” and “basis” and “dimension” are not at all restricted to column vectors. We can also ask them for matrix spaces and function spaces. 


궁금증.

이 section에서 subspace에 관한 essential idea들 다루고 있는데 정의에 대해서만 이야기한다. 왜냐하면 이전 section들에서 다루었던 pivot variable, free variable, 해의 존재 여부 등이 independence, dimension 등을 구하기 위한 계산 과정에 있기 때문으로 보인다. 


3.6. Dimensions of the Four Subspaces


The main theorem in this chapter connects rank and dimension. The rank of a matrix is the number of pivots. The dimension of a subspace is the number of vectors in a basis. The rank of A reveals the dimensions of all four fundamental subspaces. 


Four Fundamental Subspaces

  1. The row space is C(At), a subspace of Rn.

  2. The column space is C(A), a subspace of Rm.

  3. The nullspace is N(A), a subspace of Rn.

  4. The left nullspace is N(At), a subspace of Rm. This is our new space. 


Part 1. 

The dimensions of the four subspaces.

Part 2.

How the four subspaces fit together. 


The Four Subspaces for R


예제에 따라서 각 subspace의 dimension 구하기. E (eliminated matrix)의 rank, free vars 개수 등으로 바로 구할 수 있다.


The Four Subspaces for A 

The subspace dimensions for A are the same as for R. The job is to explain why. 

EA= R이므로 independent vectors, basis에 대한 논의가 동일하다. 단 column space는 다를 수 있음. 


Fundamental Theorem of Linear Algebra, Part 1.

The column space and row space both have dimension r.

The nullspaces have dimensions n-r and m-r.




Matrices of Rank One 


주어진 matrix A가 rank 1일 때 A=uvt의 특별한 형태를 가진다. 이때 N(A)는 uvtx = u(vtx)이므로 v와 perpendicular한 plane으로 주어진다. 이러한 perpendicularity는 Fundamental Theorem의 Part 2 중 일부이다.


No comments:

Post a Comment