Docsity

Understanding Linearly Independent Vectors and Spanning Sets in Vector Spaces - Prof. Stef, Study notes of Linear Algebra

Toggle sidebar
bg1
3.4 c
2010 Stefania Tracogna, ASU 3.4
§3.4
Basis and Dimension
Basis and Dimension
Definition A BASIS for a vector space is a set of vectors that has the properties:
1. The vectors are linearly independent.
2. The vectors span the space.
REMARKS
(a) A basis of Vis the minimal spanning set for V, i.e. it contains the least number of vectors that
span the whole space V.
(b) Given any x∈V, there is one and only one way to write xas a linear combination of the basis
vectors.
EXAMPLES
1. {e1,e2,e3}=
1
0
0
,
0
1
0
,
0
0
1
is the standard basis for R3, but there are many other
basis for R3.
2.
1
0
0
,
0
1
1
,
1
0
1
The vectors are linearly independent: det(X) =
1 0 1
0 1 0
0 1 1
= 1 6= 0
and they span R3(we showed this in Section 3.2), thus they form a basis for R3.
3. A basis for R2×2(the set of all 2 ×2 matrices) is {E11 , E12, E21, E22 }where
E11 =1 0
0 0 , E12 =0 1
0 0 E21 =0 0
1 0 , E22 =0 0
0 1
If c1E11 +c2E12 +c3E21 +c4E22 = 0, then c1c2
c3c4=0 0
0 0 ⇒c1=c2=c3=c4= 0.
Thus the matrices are linearly independent.
Also, for every matrix Ain R2×2, we have A=a11E11 +a12 E12 +a21E21 +a22E22.
Thus the vectors span R2×2and they form a BASIS.
THEOREM If {v1,v2,...,vn}and {u1,u2,...,um}are both bases of a vector space V, then m=n.
Definition. If Vhas a basis consisting of nvectors, we say that Vhas dimension nand we write
dim(V) = n
1
pf3
pf4

Partial preview of the text

Download Understanding Linearly Independent Vectors and Spanning Sets in Vector Spaces - Prof. Stef and more Study notes Linear Algebra in PDF only on Docsity!

Basis and Dimension

Basis and Dimension

Definition A BASIS for a vector space is a set of vectors that has the properties:

  1. The vectors are linearly independent.
  2. The vectors span the space.

REMARKS

(a) A basis of V is the minimal spanning set for V , i.e. it contains the least number of vectors that span the whole space V.

(b) Given any x ∈ V , there is one and only one way to write x as a linear combination of the basis vectors.

EXAMPLES

  1. {e 1 , e 2 , e 3 } =

is the standard basis for R^3 , but there are many other

basis for R^3.

The vectors are linearly independent: det(X) =

and they span R^3 (we showed this in Section 3.2), thus they form a basis for R^3.

  1. A basis for R^2 ×^2 (the set of all 2 × 2 matrices) is {E 11 , E 12 , E 21 , E 22 } where E 11 =

[

]

, E 12 =

[

]

E 21 =

[

]

, E 22 =

[

]

If c 1 E 11 + c 2 E 12 + c 3 E 21 + c 4 E 22 = 0, then

[

c 1 c 2 c 3 c 4

]

[

]

⇒ c 1 = c 2 = c 3 = c 4 = 0. Thus the matrices are linearly independent. Also, for every matrix A in R^2 ×^2 , we have A = a 11 E 11 + a 12 E 12 + a 21 E 21 + a 22 E 22. Thus the vectors span R^2 ×^2 and they form a BASIS.

THEOREM If {v 1 , v 2 ,... , vn} and {u 1 , u 2 ,... , um} are both bases of a vector space V , then m = n.

Definition. If V has a basis consisting of n vectors, we say that V has dimension n and we write dim(V ) = n

In other words: All bases for a vector space contain the same number of vectors. This number is the dimension of the space.

NOTE The subspace { 0 } of V consisting of the zero vector is said to have dimension 0. The empty set is a basis for { 0 } since we can never allow the zero vector into a basis because then independence is lost.

EXAMPLES

  1. dim(R^2 ×^2 ) = 4, since we showed that {E 11 , E 12 , E 21 , E 22 } is a basis and it consists of four elements.
  2. dim(R^3 ) = 3, since the standard basis {e 1 , e 2 , e 3 } consists of three elements.
  3. • A line through the origin has dimension ONE since it is spanned by a single vector.
    • A plane through the origin in R^3 has dimension two since a basis consists of TWO linearly independent vectors on the plane.
    • if x, y and z are linearly independent, then span(x, y, z) = R^3.

THEOREM If dim(V ) = n, then any set of n linearly independent vectors is a basis for V.

EXAMPLE Show that (1, 1 , 1)T^ , (0, 1 , 1)T^ , (2, 0 , 1)T^ form a basis for R^3. Answer: Since dim(R^3 ) = 3, we only need to show that the 3 vectors are linearly independent.

det(X) =

thus the vectors are linearly independent and they form a basis.

EXAMPLE Find a basis for the subspace of R^4 spanned by

x 1 =

 ,^ x^2 =

 ,^ x^3 =

 ,^ x^4 =

Solution. We must find the largest set of linearly independent vectors by eliminating all vectors that are linear combinations of the others. By inspection we can see that x 4 = x 1 − x 3 , thus x 1 , x 3 and x 4 are linearly dependent and we can eliminate either one of them. Let’s eliminate x 4. To check whether the vectors x 1 , x 2 and x 3 are linearly independent, we need to see whether c 1 x 1 + c 2 x 2 + c 3 x 3 = Xc = 0 has only the trivial solution.

The RREF of the matrix X is

. Thus^ c^3 is a free variable and the system has infinitely

many solutions. For instance, setting c 3 = 2 we find c 1 = −1 and c 2 = −1 (i.e. −x 1 − x 2 + 2x 3 = 0 ). The vectors are linearly dependent and we can eliminate either one of them. Let’s eliminate x 3. x 1 and x 2 are obviously linearly independent since they are not scalar multiples of each other, thus a possible basis for the subspace consists of the two vectors x 1 and x 2 , and the dimension of the subspace is two.

corresponding to x is (0, 1 , 0)T^. Similarly, since x − 1 = -1 · 1 + 1 · x + 0 · x^2 , the vector corresponding to x − 1 is (− 1 , 1 , 0)T^. The vector corresponding to x^2 +1 is (1, 0 , 1)T^ and the vector corresponding to x^2 −1 is (− 1 , 0 , 1)T^.

The RREF of the corresponding matrix is

. We have one free variable, thus the

four vectors are linearly dependent. If we eliminate the fourth one, the corresponding RREF is the identity matrix, thus the remaining three vectors are linearly independent. Therefore a basis for the subspace is {x, x − 1 , x^2 + 1} and the dimension of the subspace is three.

  1. Find the dimension of 2 × 2 matrices with trace 0.

Solution. A 2 × 2 matrix with zero trace has the form:

[

a 11 a 12 a 21 −a 11

]

Thus a possible basis is :

{[

]

[

]

[

]}

, and the dimension is three (recall that the dimension of all 2 × 2 matrices is four).

REMARK: Every time we impose a linear condition on the entries of a matrix ( for instance tr(A) = 0) we loose one degree of freedom and therefore we lower the dimension by one. Similarly, if we impose two linearly independent conditions on the entries of the matrix A, then we lower the dimension by two (because we loose two degrees of freedom). For instance, the dimension of the subspace of 3 × 3 matrices such that a 11 − a 22 = 0 and a 11 + a 12 + a 13 = 0 has dimension 9 − 2 = 7, where 9 is the dimension of all 3 × 3 matrices and 2 is the number of conditions imposed on the entries of the matrix A.