Generating set and span
Consider a vector space V=(V,+,⋅) and set of vectors A={x1,…,xk}⊆V. If every vector v∈V can be expressed as a linear combination of x1,…,xk,A is called a generating set of V.The set of all linear combination of vectors in A is called the span of A.If A spans the vector space V, we write V=span[A] or V=span[x1,…,xk].
Generating sets are sets of vectors that span vector (sub)spaces, i.e.,every vector can be represented as a linear combination of the vectors in the generating set. Now, we will be more specific and characterize the smallest generating set that spans a vector (sub)space.
Basis
Consider a vector space V=(V,+,⋅) and A⊆V. A generating set Aof V is called minimal if there exists no smaller set ˆA⊆A⊆V that spans V.Every linearly independent generating set of V is minimal and is called the basis of V.
Let V=(V,+,⋅) be a vector space and B⊆V,B≠ϕ. Then the following statements are equivalent.
- B is a basis of V.
- B is a minimal generating set.
- B is a maximal linearly independent set of vectors in V ,i.e; adding any other vector to this set will make it linearly dependent.
- every vector x∈V is a linear combination of vectors from B, and every linear combination is unique i.e, with
x=∑ki=1λibi=∑ki=1ψibi
and λi,ψi∈R,bi∈B it follows that λi=ψi,i=1,…,k.
Example:
In R2 the canonical standard basis are
Remark. Every vector space V possesses a basis B. The preceding examples show that there can be many bases of a vector space V , i.e., there is no unique basis. However, all bases possess the same number of elements,the basis vectors.
We only consider finite-dimensional vector spaces V . In this case, the dimension of V is the number of basis vectors of V , and we write dim(V ).
If U⊆V is a subspace of V , then dim(U)≤dim(V) and dim(U)=dim(V) if and only if U=V.Intuitively, the dimension of a vector space can be thought of as the number of independent directions in this vector space.
by executing the following steps:
1. Write the spanning vectors as columns of a matrix A
2. Determine the row-echelon form of A.
3. The spanning vectors associated with the pivot columns are a basis of U.
Example:
Since the pivot columns indicate which set of vectors is linearly independent,we see from the row-echelon form that x1,x2,x4 are linearly independent.Therefore {x1,x2,x4} is a basis of U.
import sympy as sp
import numpy as np
row1=[1,2,3,-1]
row2=[2,-1,-4,8]
row3=[-1,1,3,-5]
row4=[-1,2,5,-6]
row5=[-1,-2,-3,1]
M = sp.Matrix((row1,row2,row3,row4,row5))
print("Coefficient Matrix")
display(M)
print(" Echelon Form")
display(M.echelon_form())
O/P
Coefficient Matrix
[123−12−1−48−113−5−125−6−1−2−31]
Echelon Form
[123−10−5−1010000−500000000]A set of n linearly independent vectors in Rn forms a basis. Does the set of vectors (2,4,−3),(0,1,1),(0,1,−1) form a basis for R3? Explain your reasons.
Lets find out whether these vectors form a linear independent set
R1=R1/2
[100411−31−1]
[10001101−1]
[100011001]
R2=R2−R3
[100010001]It is noted that the three vectors are linearly independent and hence form the basis in R3
Determine the basis for a vector space U⊆R3 spanned by the vectors (university question)
x1=[101]x2=[−121]x3=[011]Represent these vectors as column of a matrix and perform row reduction. The pivot columns indicate linearly independent vectors and they form the basis of the vector space.
[1−10021111]
R3=R3−R1
[1−10021021]
R3=R3−R2
[1−10021000]
R1=R1+R2
[111021000]
R2=R2/2
[111011/2000]
R1=R1−R2
[101/2011/2000]
It is notes that the first two columns are the pivot columns. The third vector can be represented as the linear combination of the first two vectors. So the basis isBasis=[101][−121]
Comments
Post a Comment