Linear Algebra Lecture 13 Linear Independence, Spans, and Bases Linear Independence A set of vectors πΊ = {ππ , ππ , β― , ππ } is linearly independent if πΆπ ππ + πΆπ ππ + β― + πΆπ ππ = π βΉ πΆπ = π, πΆπ = π, β― , πΆπ = π Otherwise it is linearly dependent. πΊ is linearly dependent means that there are vectors in πΊ which can be represented as linear combination of the other vectors πΆπ ππ + πΆπ ππ + β― + πΆπ ππ = π πΆπ ≠ π πΆπ ππ = −πΆπ ππ − β― − πΆπ ππ ππ = −πΆπ π πΆπ π − β―− πΆπ π πΆπ π For example: π π π [ π] [ π] [ π] π π π are linearly independent Can we find a,b,c such that π π π π π [π] + π [π] + π [π] = [π] π π π π Notice π π π π π [π π π] [π] = [π] π π π π π π π π Det([π π π]) = ππ ≠ π π π π The system has only one solution and that one is a=0,b=0,c=0. For example: π [ π] π π [ π] π π [ π] π are linearly dependent(Keary) Can we find a,b,c such that π π π π π [π] + π [π] + π [π] = [π] π π π π Solution: a=-2, b=1,c=1 π π π π π [ ] + [π] = [π] π π π π π π Yes. This set of vectors is linearly dependent. The minimal number of independent vectors in the subspaces is called the rank or dimension of the subspace. How do we find the dimensions of the four spaces? Answer: Gauss-Jordan Elimination process π π π π π¨ = [ π π π π] π π π π The first 3 columns are independent. Why? π π [π π π π π π π π] [π] = [π] π π π π ππ = π ≠ π This means we have only one, the trivial solution. π π π π π π π [π π π π] [ ] = [π] π π π π π π π π −π π π [ ]=[ ] π −π π π π π π π π π [ ] π π π π π π Because the system has only one solution π π [ π ] = [ π] π π The fourth one is linearly dependent of the others. How about rows? π π π π π¨ = [ π π π π] π π π π if ππ πΉπ + ππ πΉπ + ππ πΉπ = π then ... What else could happen? π π π π π¨ = [ π π π π] π π π π The Rank is 2. π π π π π¨ = [ π π π π] π π π π The Rank is 2. π π π π π¨ = [ π π π π] π π π π The Rank is 1. Notice: Rank(Col(A))=Rank(Row(A)) _____________________________________ Let π π π π¨ = [π π π π π π π π π π¨ = [π π π π π −π π π] π π π] −π The rank of the Null(A) is called nullity. Find the Rank and Nullity Notice: Rank + Nullity=the number of Columns The Rank and Nullity Theorem More on Linear Independence ____________________________________________ (1)A finite set of vectors that contains a zero vector is linearly dependent π π π π π π π π π π π π Let πΊ = π , π , π , π , π , ππ π π π π π ππ {[π] [π] [π] [π] [π] [ππ]} Is S linearly independent or dependent? Dependent. ____________________________________________ (2) A set of two vectors is linearly independent iff neither of the vectors is a multiple of the other π π π π Let πΊ = π , ππ π ππ {[π] [ππ]} Is S linearly independent or dependent? Independent, because the two vectors are not multiple of each other. __________________________________________ (2)Let πΊ = {ππ , ππ , β― , ππ } be a set of vectors in πΉπ . If π > π, then S is linearly dependent. π π π π π π π π π π π π πΊ = π , π , π , π , π , ππ π π π π π ππ {[π] [π] [π] [π] [π] [ππ]} S is dependent. _________________________________________ Let πΊ = {ππ , ππ , β― , ππ } be a set of vectors Then ππππ(πΊ) = {π|π = ππ ππ + ππ ππ + β― + ππ ππ } i.e. Span(S) is a set of all vectors which can be represented as a linear combination of vectors in S. Span(S) is a vector space. Example: Let π π πΊ = {[π] , [π]} π π π π ππππ(πΊ) = {π [π] + π [π] , π, π πππ πππππππ} π π A Basis of the Vector space If V is a vector space and πΊ = {ππ , ππ , β― , ππ } is a set of vectors in V. Then S is called a basis if (1) S is linearly independent (2) span(S)=V Example: canonical example, V=πΉπ Canonical Basis π π π πΊ = {[π] , [π] , [π]} π π π Pickπ ∈ πΉπ . −π John’s π = [ π ] −ππ π π π −π π = [ π ] = −π [π] + π [π] − ππ [π] π π π −ππ Give me another basis for πΉπ π π π π» = {[π] , [π] , [π]} π π π Q:Is T a basis? Check independence! Det=1 hence they are linearly independent. −π John’s π = [ π ] −ππ π π π −π π = [ π ] = π [π] + π [π] + π [π] = π π π −ππ π π π π −π [π π π] [π] = [ π ] π π π π −ππ Does this system have a solution? Det=1 means it has the solution no matter what u you pick. T is a basis for πΉπ . Theorem: A vector representation in a basis is unique. Proof: Let u have two representation in the same basis. π = ππ ππ + ππ ππ + β― + ππ ππ and π = ππ ππ + ππ ππ + β― + ππ ππ Then π − π = (ππ − ππ )ππ + (ππ − ππ )ππ + β― + (ππ − ππ )ππ π = (ππ − ππ )ππ + (ππ − ππ )ππ + β― + (ππ − ππ )ππ Since ππ s are independent this can happen only if (ππ − ππ ) = π π = π, π, β― , π Therefore ππ = ππ and representation is unique. Theorem. Every vector space has a basis. All bases of the same vector space have the same number of elements. This number is called a DIMENSION of the vector space. Example and Problems: Let π π πΊ = {[π] , [π]} π π π π ππππ(πΊ) = {π [π] + π [π] , π, π πππ πππππππ} π π π Q: Is [ −π ] in span(S)? −ππ Yes, because π π π [ −π ] = π [π] + π [π] π −ππ π π π π π [π π] [ ] = [ −π ] π π π −ππ .. π π −π [π π] [−π] π π π Chad says: It is not in the span!!!!! _____________________ π π π π π π πΊ = {[ ] , [ ] , [ ]} π π π π π π Is this set linearly independent? π π π π π π [ ] π π π π π π π π π π −π π [ ] π π π π −π π π π π π −π π [ ] π π −π/π π −π π/π We performed Gauss –Jordan on columns and we learned the following: S is linearly independent. S is a basis for its span. Also π π π π π −π π» = {[ ] , [ ] , [ ]} −π/π π π π/π π −π T is also a basis for span(S). Example 2. π π π π π π πΊ = {[ ] , [ ] , [ ]} π π π π π π π π π π π π [ ] π π π π π π π π π π −π π [ ] π π π π −π π We performed Gauss –Jordan on columns and we learned the following: S is linearly dependent. S isn’t basis for span(S). But π π π −π π» = {[ ] , [ ]} is a basis for span(S). π π π −π Dimension span(S)=2 Example 3. Compression. π π π π π π πΊ= , π π π π {[π] [π]} π ππ π ππ π [π] S is linearly independent because they are not multiple of each other. S is a basis for its span. Assume that the signal vectors are coming from span(S). For example a signal vector from this span π ππ π is . ππ π [π] π π π ππ π π π π π =π +π ππ π π π π π [π] [π ] [π ] I need to send the signal to the other side. π ππ π I could send ππ I could send what? ππ π [π] π James says : Send instead [ ]. So we saved π 66%. Let us test the system. We are on the other side and we received π [ ]. What was the original signal vector? π π π π π π π π π π =π +π π π π π π π [π] [π ] [π ] _______________________________________ Q: Find a different basis for span(S). π Q:Find a representation of [ −π ] in the new −ππ basis. Big Question: Transition between two bases. Let πΊ = {ππ , ππ } and π» = { ππ , ππ } be two linear bases for the same vector space X. Let π ∈ πΏ. Then π = πππ + πππ and π = πππ + πππ Assume you know the first representation. How do you find the second representation? Or If you know a and b how can you find x and y(Really fast)? First notice that ππ , ππ ∈ πΏ Therefore it can be written in terms of the basis T. ππ = ππ ππ + ππ ππ ππ = ππ ππ + ππ ππ π = πππ + πππ = = π(ππ ππ + ππ ππ ) + π(ππ ππ + ππ ππ ) = = (πππ + πππ )ππ + (πππ + πππ )ππ = = πππ + πππ Hence by __uniqueness____ π = πππ + πππ π = πππ + πππ We can write this in matrix notation: ππ ππ π π [π ] [ ] = [π] π π π π ππ ππ π»π→π = [π ] transition matrix π π π π»π→π ππ = ππ ππ = π»π→π −π ππ In the case 2x2 transformation matrix π»π→π −π ππ −ππ = [−π ] π ππ ππ − ππ ππ π π π