Docsity

Vector Spaces and Subspaces: Notes for CSci 124/224, Study notes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Vector Spaces and Subspaces: Notes for CSci 124/224
Poorvi L. Vora
1 Definition
A vector space over a field F(for the moment we consider only the field of real numbers, R) is a set
of vectors Vwith two operations:
vector addition:V×V→Vdenoted v+wfor vand w∈V
and
scalar multiplication:F×V→Vdenoted cvfor c∈Fand v∈V
such that:
1. Vis closed with respect to (wrt) vector addition. That is, v,w∈V⇒v+w∈V.
2. Vis closed wrt scalar multiplication. That is, c∈F, v∈V⇒cv∈V
3. The operation of vector addition has the following properties:
(a) It is commutative. That is, v,w∈V⇒v+w=w+v
(b) It is associative. That is, v,w,x∈V⇒(v+w) + x=v+ (w+x)
(c) It has an identity. That is, ∃e∈Vsuch that, ∀v∈V,v+e=v.
eis often denoted 0, the zero vector.
(d) It has an inverse. That is, ∀v∈V,∃(−v)∈Vsuch that v+ (−v) = e.
4. The operation of scalar multiplication has the following properties:
(a) It has an identity that is also the identity of F, denoted 1. That is, ∃1∈Fsuch that,
∀v∈V,1v=v, and, ∀c∈F, 1c=c.
(b) It is consistent with field multiplication. That is, v∈V, c, d, ∈F⇒(cd)v=c(dv)
(c) It is distributive over vector addition. That is, c∈F , v,w∈V⇒c(v+w) =
cv+cw.
(d) It is distributive over field addition. That is, v∈V, c, d, ∈F⇒(c+d)v=cv+dv
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Vector Spaces and Subspaces: Notes for CSci 124/224 and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

Vector Spaces and Subspaces: Notes for CSci 124/

Poorvi L. Vora

1 Definition

A vector space over a field F (for the moment we consider only the field of real numbers, R) is a set of vectors V with two operations:

vector addition: V × V → V denoted v + w for v and w ∈ V

and

scalar multiplication: F × V → V denoted cv for c ∈ F and v ∈ V

such that:

  1. V is closed with respect to (wrt) vector addition. That is, v, w ∈ V ⇒ v + w ∈ V.
  2. V is closed wrt scalar multiplication. That is, c ∈ F, v ∈ V ⇒ cv ∈ V
  3. The operation of vector addition has the following properties:

(a) It is commutative. That is, v, w ∈ V ⇒ v + w = w + v (b) It is associative. That is, v, w, x ∈ V ⇒ (v + w) + x = v + (w + x) (c) It has an identity. That is, ∃ e ∈ V such that, ∀ v ∈ V, v + e = v. e is often denoted 0 , the zero vector. (d) It has an inverse. That is, ∀ v ∈ V, ∃ (−v) ∈ V such that v + (−v) = e.

  1. The operation of scalar multiplication has the following properties:

(a) It has an identity that is also the identity of F , denoted 1. That is, ∃ 1 ∈ F such that, ∀ v ∈ V, 1 v = v, and, ∀ c ∈ F, 1 c = c. (b) It is consistent with field multiplication. That is, v ∈ V, c, d, ∈ F ⇒ (cd)v = c(dv) (c) It is distributive over vector addition. That is, c ∈ F, v, w ∈ V ⇒ c(v + w) = cv + cw. (d) It is distributive over field addition. That is, v ∈ V, c, d, ∈ F ⇒ (c + d)v = cv + dv

2 Examples of Vector Spaces

  1. The two-dimensional cartesian space over the field of real numbers, R.
  2. The three-dimensional cartesian space over R.
  3. The n-dimensional cartesian space over R, for positive integer n.
  4. R over R.
  5. The set of n × m matrices for positive integers n and m over R.

3 Examples of the Applications of Ideas from Vector Spaces

Now consider a two-dimensional grey scale image of size m × n, with each pixel taking on values from 0 to 255 , inclusive. For example, consider the following image of size 3 × 4 :

Figure 1: A grey-scale image

It can also be represented as an array of its pixel values:

100 200 225 235 125 225 250 155 150 250 225 125

The grey-scale values are often piled into a single column, row by row. That is, the image is often represented as a single column of size mn, with the first n values being the first row, in order, the next n values the second row, in order, and so on. In our example, the image would be represented

  1. An n × m color image, which has 3 nm components (3 colors for each pixel).
  2. A video clip consisting of p frames, each a color frame of size n × m. This will have 3 pnm components (each frame has 3 nm components).
  3. n consecutive samples of a sound signal, taken ∆t apart.

4 Example of a Set that is not a Vector Space

Example 1: The first quadrant in two-dimensional euclidean space over the field of real numbers, R. A = {b = (x, y)|x, y ∈ R, x ≥ 0 , y ≥ 0 }

(The symbol “|” stands for “such that”).

Figure 2: The first quadrant is not a vector space

Is A closed wrt vector addition?

Take any two vectors from A, (x 1 , y 1 ) and (x 2 , y 2 ). Their sum is (x 1 + x 2 , y 1 + y 2 ). This is in A if and only if x 1 + x 2 , y 1 + y 2 ∈ R, and x 1 + x 2 ≥ 0 , y 1 + y 2 ≥ 0

  • By the definition of A, x 1 , y 1 , x 2 , y 2 ∈ R. This implies that x 1 + x 2 , y 1 + y 2 ∈ R.
  • Also by the definition of A, x 1 ≥ 0 , y 1 ≥ 0 , x 2 ≥ 0 , y 2 ≥ 0. This implies that x 1 + x 2 ≥ 0 , y 1 + y 2 ≥ 0. (See Figure 2).

Hence A is closed wrt vector addition.

Is A closed wrt scalar multiplication?

Take any vector (x, y) from A, and any scalar c from R. Then c(x, y) = (cx, cy). This is in A if and only if cx, cy ∈ R, and cx ≥ 0 , cy ≥ 0.

  • By the definition of A, x, y ∈ R. This implies that cx, cy ∈ R (product of two real numbers is real).
  • Also by the definition of A, x ≥ 0 , y ≥ 0. If c ≥ 0 , then cx ≥ 0 , cy ≥ 0. However, if c < 0 , cx ≤ 0 , cy ≤ 0. In particular, for any x, y 6 = 0 and c < 0 , c(x, y) is not in A. For example, if c = − 1 , and b ∈ A, but b 6 = (0, 0), cb is in the third quadrant.

Hence A is not closed wrt scalar multiplication.

Hence A is not a vector space.

5 Subspaces

Definition A subset A of vector space V is a subspace of V if it is closed wrt vector addition and scalar multiplication.

Examples: The x and y axes are subspaces of R^2 as is any straight line passing through the origin.

Example 2: Consider a straight line:

A = {b = (x, y)|y = mx + c}

where m and c are real constants.

Figure 3: A straight line is a subspace of R^2 if and only if it passes through the origin

Solutions

  1. Consider the union of the first and third quadrants in two-dimensional euclidean space over the field of real numbers, R.

A = {b = (x, y)|x, y ∈ R, x ≥ 0 , y ≥ 0 } ∪ {b = (x, y)|x, y ∈ R, x ≤ 0 , y ≤ 0 }

Is A closed wrt vector addition? Is it closed under scalar multiplication? Is it a vector space?

Answer: Is A closed wrt vector addition?

Take any two vectors from A, (x 1 , y 1 ) and (x 2 , y 2 ). Their sum is (x 1 + x 2 , y 1 + y 2 ). This is in A if and only if

(a) x 1 + x 2 , y 1 + y 2 ∈ R, and

(b) x 1 + x 2 ≥ 0 , y 1 + y 2 ≥ 0 OR x 1 + x 2 ≤ 0 , y 1 + y 2 ≤ 0

By the definition of A, x 1 , y 1 , x 2 , y 2 ∈ R. This implies that x 1 + x 2 , y 1 + y 2 ∈ R.

Also by the definition of A,

either x 1 ≥ 0 , y 1 ≥ 0 OR x 1 ≤ 0 , y 1 ≤ 0 ,

and

either x 2 ≥ 0 , y 2 ≥ 0 OR x 2 ≤ 0 , y 2 ≤ 0.

We cannot say that x 1 + x 2 ≥ 0 , y 1 + y 2 ≥ 0. For example, if (x 1 , y 1 ) = (2, 3) and (x 2 , y 2 ) = (− 3 , −2), their sum is (− 1 , 1) is not in A.

Hence A is not closed wrt vector addition.

Is A closed wrt scalar multiplication?

Take any vector (x, y) from A, and any scalar c from R. Then c(x, y) = (cx, cy). This is in A if and only if cx, cy ∈ R, and either cx ≥ 0 , cy ≥ 0 OR cx ≤ 0 , cy ≤ 0.

By the definition of A, x, y ∈ R. This implies that cx, cy ∈ R (product of two real numbers is real).

Also by the definition of A, either

(a) x ≥ 0 , y ≥ 0 OR

(b) x ≤ 0 , y ≤ 0.

For (a), if c ≥ 0 , then cx ≥ 0 , cy ≥ 0 , and c(x, y) ∈ A. If c ≤ 0 , then cx ≤ 0 , cy ≤ 0 , and c(x, y) ∈ A.

For (b), if c ≥ 0 , then cx ≤ 0 , cy ≤ 0 , and c(x, y) ∈ A. If c ≤ 0 , then cx ≥ 0 , cy ≥ 0 , and c(x, y) ∈ A.

Hence A is closed wrt scalar multiplication.

Hence A is not a vector space.

Recall the example of section 3 that was not a vector space: the set consisting of only the first quadrant. It was not closed under scalar multiplication, though it was closed wrt vector addition. By adding the third quadrant, we were able to construct a set closed under scalar multiplication, but now the set is not closed under vector addition.

  1. Is the set of integers, Z, a vector space over R?

Answer: Consider any two elements of Z. Their sum is also an integer, hence the sum of two vectors is also in the set, hence it is closed wrt vector addition.

Consider a scalar c. Multiplying it with any member of the set does not necessarily give an integer because c may not be an integer (for example, c = 12 ). Hence the set is not closed wrt scalar multiplication.

Hence Z is not a vector space over R.