Lesson 7
Lesson 7
α1 v1 + α2 v2 + . . . + αn vn
is a linear combination of v1 , . . . , vn .
span(S ∪ {v }) = span(S).
Proof.
If v ∈ span(S), then
v = α1 v1 + . . . + αn vn
for some v1 , . . . , vn ∈ S.
Clearly, span(S) ⊆ span(S ∪ {v }). If x ∈ span(S ∪ {v }), then
w.l.o.g.
x = βv + β1 v1 + . . . + βn vn .
Hence,
In
span((1, 1, 0), (1, 2, 3), (3, 4, 3)),
the vector (3, 4, 3) is redundant—a linear combination of other
vectors.
α1 v1 + α2 v2 + . . . + αn vn is
trivial if α1 = . . . = αn = 0,
non-trivial otherwise.
Let V be a vector space.
Definition
A set S ⊆ V is linearly independent if no non-trivial linear
combination of elements of S is equal to o.
Examples
The set {(1, 1, 0), (1, 2, 3), (3, 4, 3)} in R3 is not linearly
independent, since
1o = o.
1 0 4 0 0 0
the only solution is (α1 , α2 , α3 ) = (0, 0, 0). The vectors are
linearly independent.
Linear independence and RREF
Lemma
Vectors a1 , . . . , ak ∈ Fn×1 are linearly independent if and only if
all columns of
RREF(a1 |a2 | . . . |ak )
are basis columns.
Linear independence and minimality of span
Lemma
A set S ⊆ V is linearly independent if and only if for every
T ( S,
span(T ) 6= span(S).
Proof.
v = α1 v1 + . . . + αn vn
α1 v1 + . . . + αn vn − v = o
Proof.
α1 v1 + . . . + αn vn = o
and thus
span(S \ {v1 }) = span(S).
Basis
The vectors
(1, 0, 0), (0, 1, 0), (0, 0, 1)
form a basis of R3 .
(n) T
(1, 0, 0, . . .) = e1
(n) T
(0, 1, 0, . . .) = e2
...
(n) T
(0, 0, . . . , 0, 1) = en
“It depends.”
Equivalent to the Axiom of Choice.
E.g., no constructive way to obtain basis for the space of
functions R → R.
Basis in a “nice” space
Definition
A vector space V is countably generated if there exists a (finite
or infinite) sequence v1 , v2 , . . . ∈ V such that
V = span(v1 , v2 , . . .).
Lemma
Every countably generated space has a basis.
Proof.
If V = span(v1 , v2 , . . .), let
Proof.
Since span(S) 6= span(T ), there exists v ∈ T \ span(S).
Suppose that
αv + α1 v1 + . . . + αn vn = o
for some v1 , . . . , vn ∈ S. If α 6= 0, then
Proof.
Let S be an independent set. Keep adding elements of B to S
by the Transfer lemma until S becomes generating.
Exchange lemma
(S \ {s}) ∪ {t}
is linearly independent.
Proof.
Since S is linearly independent,
Proof.
Lemma
If a vector space V has a finite basis, then all its bases are finite
and have the same size.
Proof.
Let B1 and B2 be two bases of V, where B1 is finite.
span(B1 ) = V and B2 ⊆ V is linearly independent.
By the Generating-independent inequality, |B2 | ≤ |B1 |.
Symmetrically, |B1 | ≤ |B2 |.
Definition
The dimension dim(V) of a vector space is the size of its basis.
Examples
Rn has dimension n.
Rn×m has dimension nm.
Complex numbers as a vector space over R have
dimension 2.
The space of polynomials has infinite dimension.
The space of polynomials of degree at most n has
dimension n + 1.
The trivial space {o} has dimension 0.
Dimension, independent and generating sets
Lemma
Let V be a vector space of a finite dimension n.
Every independent set in V has size at most n, and all
independent sets of size n are bases.
Every set that generates V has size at least n, and all
generating sets of size n are bases.
Proof.
Let S be independent, G generating.
|S| ≤ n ≤ |G| by the Generating-independent inequality.
If |S| = n, then no proper superset of S is independent.
By the Transfer lemma, span(S) = V.
Dimension, independent and generating sets
Lemma
Let V be a vector space of a finite dimension n.
Every independent set in V has size at most n, and all
independent sets of size n are bases.
Every set that generates V has size at least n, and all
generating sets of size n are bases.
Proof.
Let S be independent, G generating.
|S| ≤ n ≤ |G| by the Generating-independent inequality.
If |G| = n, then no proper subset of G is generating.
Hence, span(A) 6= span(G) for every A ( G.
Implies that G is linearly independent.
Dimension and subspaces
Lemma
Suppose that V has finite dimension, and U b V.
dim(U) ≤ dim(V)
If dim(U) = dim(V), then U = V.
Proof.
Let BU be a basis of U.
By the Extension lemma, we have a basis BV ⊇ BU of V.
dim(U) = |BU | ≤ |BV | = dim(V)
If dim(U) = dim(V), then BU = BV and
U = span(BU ) = span(BV ) = V.
Example: Dimension and subspaces
Subspaces of R3 :
Dimension 3: R3
Dimension 2: spans of 2 independent vectors = planes
containing (0, 0, 0).
Dimension 1: spans of vectors = lines containing (0, 0, 0).
Dimension 0: {(0, 0, 0)}
Example: bases of polynomials
Pn has dimension n + 1
Basis 1, x, x 2 , . . . , x n .
Lagrange polynomials
(x − a0 ) · · · (x − ak −1 )(x − ak +1 ) · · · (x − an )
pk (x) = .
(ak − a0 ) · · · (ak − ak −1 )(ak − ak +1 ) · · · (ak − an )
(
1 if i = k
We have pk (ai ) =
0 if i 6= k
The set B = {p0 , . . . , pn } is another basis of Pn .
|B| = dim(Pn )
B is linearly independent:
Proof.
p = α0 p0 + . . . + αn pn .
For i = 0, . . . , n,
Therefore,
p = p(a0 )p0 + . . . + p(an )pn
is uniquely determined by the values of p in a0 , . . . , an .
Example
Problem
Find the equation of a quadratic function through points
y
9
8
7
6
5
4
3
2
1
x
−2 −1 1
Definition
For distinct real numbers a0 , . . . , an ,
1 a0 a02 . . . a0n
1 a1 a12 . . . a1n
(a0 ,...,an )
V =
,
. . .
1 an an2 . . . ann
is a Vandermonde matrix.
For any polynomial p(x) = β0 + β1 x + β2 x 2 + . . . + βn x n ,
β0 p(a0 )
β1 p(a1 )
V (a0 ,...,an )
... = ...
βn p(an )
Vandermonde matrix and polynomial interpolation
For b0 , . . . , bn , if a polynomial
p(x) = β0 + β1 x + β2 x 2 + . . . + βn x n
satisfies p(a0 ) = b0 , p(a1 ) = b1 , . . . , p(an ) = bn , then
β0 b0
β1 b1
V (a0 ,...,an )
... = ...
βn bn
By the Polynomial interpolation lemma, this system always has
a solution,
β0 + β1 x + β2 x 2 + . . . + βn x n = b0 p0 (x) + b1 p1 (x) + . . . + bn pn (x).
Corollary
Every Vandermonde matrix is regular.
Linear recurrences
Problem
Describe all infinite sequences a0 , a1 , . . . that satisfy
and thus A + B, γA ∈ U.
Linear recurrences
Problem
Describe all infinite sequences a0 , a1 , . . . that satisfy
Problem
Describe all infinite sequences a0 , a1 , . . . that satisfy
Nicer basis:
an = 2n → (1, 2, 4, 8, 16, . . .)
an = 3n → (1, 3, 9, 27, 81, . . .)
2n+2 = 4 · 2n = 10 · 2n − 6 · 2n = 5 · 2n+1 − 6 · 2n
3n+2 = 9 · 3n = 15 · 3n − 6 · 3n = 5 · 3n+1 − 6 · 3n