General Vector Space
General Vector Space
General Vector Space
Table of contents
1 Vector space Rn
Properties
For any vectors u, v, w ∈ Rn and any numbers (scalars) a, b, we have
1 u+v=v+u
2 (u + v) + w = u + (v + w)
3 u+0=0+u=u
4 u+ (-u) = 0
5 a(u + v) = au + av
6 (a + b)u = au + bu
7 a(bu) = (ab)u
8 1u = u
General vector space 4 / 47
General vector space
Table of contents
1 Vector space Rn
2 (u ⊕ v) ⊕ w = u ⊕ (v ⊕ w)
3 u ⊕ 0 = 0 ⊕ u = u
5 a ⊙ (u ⊕ v) = a ⊙ u ⊕ a ⊙ v
6 (a + b) ⊙ u = au ⊕ bu
7 a ⊙ (b ⊙ u) = (ab) ⊙ u
8 1 ⊙ u = u
Example
The set of all real numbers with ⊕ as the usual addition of real numbers
and ⊙ as the usual multiplication of real numbers is a vector space.
Example
The set Mmn of all m × n matrices is a vector space using matrix addition
and scalar multiplication. Vector 0 is a m × n zeros matrix
Example
h i
Let Rn be the set of all 1 × n matrix a1 a2 . . . an and define ⊕ by
h i h i h i
a1 a2 . . . an + b1 b2 . . . bn = a1 + b1 a2 + b2 . . . an + bn
and define ⊙ by
h i h i
c ⊙ a1 a2 . . . an = ca1 ca2 . . . can
Example
The set P of all polynomials is a vector space with the foregoing addition
and scalar multiplication.
(Addition) If p(x) = a0 + a1 x + a2 x2 + . . . and
q(x) = b0 + b1 x + b2 x2 + . . . then
( Scalar multiplication)
Two polynomial p(x) and q(x) are equal if p(x) = q(x) for all x. This
happens if and only if ai = bi for all i.
Vector 0 is a polynomial with all zero coefficient
General vector space 10 / 47
General vector space
Example
The set
Pn = {a0 + a1 x + n · · · + an xn }
of all polynomials whose degree is at most n is a vector space with the
foregoing addition and scalar multiplication.
(Addition) If p(x) = a0 + a1 x + a2 x2 + · · · + an xn and
q(x) = b0 + b1 x + b2 x2 + · · · + bn xn then
( Scalar multiplication)
0(x) = 0 ∀x ∈ [a, b]
Cancellation rule
v+u=v+w
−v + v +u = −v
| {z }
+ v +w
| {z }
0 0
thus
u=w
Example
Let u, v, w be vectors in a vector space V . Simplify the expression
Table of contents
1 Vector space Rn
Subspace
Definition
If V is a vector space, a nonempty subset U ⊂ V is called a subspace of V
if U is itself a vector space using the addition and scalar multiplication of
V
Subspace
Definition
If V is a vector space, a nonempty subset U ⊂ V is called a subspace of V
if U is itself a vector space using the addition and scalar multiplication of
V
Subspace Test
A subset U of a vector space is a subspace of V if and only if it satisfies
the following three conditions:
1 0 lies in U where 0 is the zero vector of V .
2 u1 and u2 are in U ,then u1 + u2 is also in U .
3 If u is in U , then au is also in U for each scalar a.
Example
If V is any vector space, then {0} and V are subspaces of V .
Example
The set U of all polynomials in P that have 3 as a root
U = {p ∈ P| p(3) = 0}
is a subspace of P
Example
P3 the set of polynomials with degree at most 3 is a subspace of P
Example
Let v be a vector in a vector space V then
Rv = {av|a ∈ R}
is a subspace in V
Example
Mnn is a vector space of square matrix of size n and Snn is the set of
symmetric matrix in Mnn . Then Snn is a subspace of Mnn
The set of all linear combinations of these vectors is called their span, and
is denoted by
span(v1 , . . . , vm ) = {a1 v1 + · · · + am vm | a1 , a2 , · · · ∈ R}
Example
Consider the vectors p1 = 1 + x + 4x2 and p2 = 1 + 5x + x2 in P2 .
Determine whether p1 and p2 in span{1 + 2x − x2 , 3 + 5x + 2x2 }
Example
Consider the vectors p1 = 1 + x + 4x2 and p2 = 1 + 5x + x2 in P2 .
Determine whether p1 and p2 in span{1 + 2x − x2 , 3 + 5x + 2x2 }
Solution
For p1 , we need to determine whether exists real numbers s, t such that
1 = s + 3t 1 = 2s + 5t 4 = −s + 2t
Example
Consider the vectors p1 = 1 + x + 4x2 and p2 = 1 + 5x + x2 in P2 .
Determine whether p1 and p2 in span{1 + 2x − x2 , 3 + 5x + 2x2 }
Solution
For p1 , we need to determine whether exists real numbers s, t such that
1 = s + 3t 1 = 2s + 5t 4 = −s + 2t
Pn = {a +0 +a1 x + · · · + an xn | ai ∈ R ∀i}
Example
Pn = span{1, x, x2 , . . . , xn }
Theorem
Let U = span{v1 , . . . , vn } in vector space V . Then
1 U is a subspace of V containing each of v1 , . . . , vn
2 U is the “smallest” subspace containing these vectors in the sense
that any subspace that contains each of v1 , . . . , vn must contain U .
Example
Show that P3 = span{x2 + x3 , x, 2x2 + 1, 3}
Example
Show that P3 = span{x2 + x3 , x, 2x2 + 1, 3}
Solution
Let U = span{x2 + x3 , x, 2x2 + 1, 3}
Prove that U ⊆ P3
All the elements in spanning set of U is in P3 . Thus U ⊆ P3 .
Prove that P3 ⊆ U
We know that P3 = span{1, x, x2 , x3 }. So in order to prove that
P3 ⊆ U , we will show that 1, x, x2 , x3 are all in U
1
It is clear that x and 1 = 3 · 3 lie in U . We can verify that
1 1 1
x2 = [(2x2 + 1) − 1] and x3 = (x2 + x3 ) − (2x2 + 1) − · 3
2 2 6
That is x2 , x3 also lie on U .
Hence P3 = U
General vector space 23 / 47
Subspace and Spanning Set Linear combination and spanning set
Exercise
Table of contents
1 Vector space Rn
If s1 v1 + s2 v2 + · · · + sn vn = 0, then s1 = s2 = · · · = sn = 0.
Example
Show that {1 + x, 3x + x2 , 2 + x − x2 } is independent in P2
Example
Show that {1 + x, 3x + x2 , 2 + x − x2 } is independent in P2
Solution
Suppose a linear combination of these polynomials vanishes
s1 (1+x)+s2 (3x+x2 )+s3 (2+x−x2 ) = 0 ⇔ (s1 +2s3 )+(s1 +3s2 +s3 )x+(s2 −s
s1 + 2s3 = 0
s1 + 3s2 + s3 = 0
s2 − s3
Example
Show that {sin(x), cos(x)} is independent in the vector space F[0, 2π] of
function defined on the interval [0, 2π].
Example
Show that {sin(x), cos(x)} is independent in the vector space F[0, 2π] of
function defined on the interval [0, 2π].
Solution
Suppose that a linear combination of these functions vanishes
s sin(x) + t cos(x) = 0
This must hold for all values of x in [0, 2π]. Taking x = 0 yields s = 0.
Similarly, t = 0 follows from taking s = π2 .
Example
Suppose that A is an n × n matrix such that Ak = 0 but Ak−1 ̸= 0. Show
that B = {I, A, A2 , . . . , Ak−1 } is independent in Mnn
Solution
Suppose that
s0 I + s1 A + s2 A2 + · · · + sk−1 Ak−1 = 0
Thus we have
s1 A + s2 A2 + · · · + sk−1 Ak−1 = 0
Now multiply by Ak−2 to conclude that s1 = 0. Continuing, we obtain
si = 0 for each i, so B is independent
General vector space 30 / 47
Linear Independence and Dimension Linear Independence
Exercise
v = s1 v1 + s2 v2 + · · · + sn vn
v = t1 v1 + t2 v2 + · · · + tn vn
Proof.
Let V = span{v1 , v2 , . . . , vn } and {u1 , u2 , . . . , um } is an independent set
in V then
u1 = a1 v1 + a2 v2 + · · · + an vn
Since u1 ̸= 0, not all of ai are zero, say a1 ̸= 0 then
V = span{u1 , v2 , . . . , vn }. Hence write
u2 = b1 u1 + b2 v2 + · · · + bn vn ̸= 0
V = span{u1 , u2 , . . . , un }
Definition (Dimension)
The number of vectors in any basis of a vector space V is the same and
called by the dimension of V .
The zero vector space {0} is defined to have dimension 0.
Example
Show that {1, x, . . . , xn } is a basis, called the standard basis of Pn and
then dim(Pn ) = n + 1
Example
Show that {1, x, . . . , xn } is a basis, called the standard basis of Pn and
then dim(Pn ) = n + 1
Solution
Each polynomial p(x) = a0 + a1 x + · · · + an xn in Pn is a linear
combination of {1, x, . . . , xn } so Pn = span{1, x, dots, xn }. If a linear
combination of {1, x, dots, xn } vanishes, that is
Exercise
Exercise
Show that the set V of all symmetric 2 × 2 matrices is a vector space, and
find the dimension of V
Table of contents
1 Vector space Rn
Proof.
Consider
tu + s1 v1 + · · · + sn vn = 0
First t must be equal to 0 because if t ̸= 0, we can represent
s1 sn
u=− v1 − · · · − vn
t t
thus u ∈ span{v1 , v2 , . . . , vn }, contrary to our assumption. Hence t = 0
and then
s1 v1 + · · · + sn vn = 0
The independence of {v1 , v2 , . . . , vn } implies that s1 = . . . sn = 0. That is
what we want.
General vector space 40 / 47
Finite Dimension Spaces
Lemma
Let V be a finite dimensional vector space. If U is any subspace of V ,
then any independent subset of U can be enlarged to a finite basis of U .
Proof.
Let I be an independent set in U . If span(I) = U then I is already a
basis of U . If span(I) ̸= U then choose u1 ∈ U such that u1 ∈ / span(U ).
Hence {u1 , I} is an independent set in U . If span{u1 , I} = U , we are
done. Otherwise, choose u2 ∈ U but u2 ∈ / span{u1 , I}. Hence {u1 , u2 , I}
is independent and process continues. Because the number of element in a
basis of U is finite, the process must stop after several time and we reach
the basis of U .
General vector space 41 / 47
Finite Dimension Spaces
Theorem
Let V be a finite dimensional vector space spanned by m vector. Then
1 V has a finite basis and dim(V ) ≤ m
2 Every independent set in V can be enlarged to a basis of V by adding
vectors from any fixed basis of V
3 If U is a subspace of V then
1 dim(U ) ≤ dim(V )
2 If dim(U ) = dim(V ) then U = V
Theorem
Let V be a finite dimensional vector space. Any spanning set for V can be
cut down (by deleting vectors) to a basis of V .
Example
Find a basis of P3 containing the independent set {1 + x, 1 + x2 }
Solution
The standard basis of P3 is {1, x, x2 , x3 } so including two of these vector
will do.
1∈/ span({1 + x, 1 + x2 }) so we enlarge {1 + x, 1 + x2 } to a bigger
independent set {1, 1 + x, 1 + x2 }
x ∈ span{1, 1 + x, 1 + x2 } so we can not enlarge independent set
with x
x2 ∈ span{1, 1 + x, 1 + x2 } so we can not enlarge independent set
with x2
x3 ∈/ span{1, 1 + x, 1 + x2 } we enlarge the independent set to
{1, 1 + x, 1 + x2 , x3 }. That is the basis that we want.
Exercise
to a basis of M22
Example
Find a basis of P3 in the spanning set
S = {1, x + x2 , 2x − 3x2 , 1 + 3x − 2x2 , x3 }.
Example
Find a basis of P3 in the spanning set
S = {1, x + x2 , 2x − 3x2 , 1 + 3x − 2x2 , x3 }.
Solution
Since dim(P3 ) = 4, we must elimimate one polynomial from S
{1} is independent
x + x2 ∈
/ span{1} so {1, x + x2 } is independent
2x − 3x2 ∈
/ span{1, x + x2 } so {1, x + x2 , 2x − 3x2 } is independent
1 − 3x − 2x2 ∈ span{1, x + x2 , 2x − 3x2 } so we should remove
1 − 3x − 2x2
It is clear that {1, x + x2 , 2x − 3x2 , x3 } is indepenent so it is a basis
of P3
Theorem
Let V be a vector space with dim(V ) = n and S is a set of exactly n
vectors. Then S is independent if and only if S is a basis of V or S span V
and
intersection U ∩ W = {v ∈ V |u ∈ U and v ∈ W }
then they are also subspaces of V
Theorem
If V is a finite dimensional vector space then U + W is finite dimensional
and