Linear Algebra/Definition and Examples of Vector Spaces

A vector space (over R > ) consists of a set V along with two operations " + " and " ⋅ " subject to these conditions.

Because it involves two kinds of addition and two kinds of multiplication, that definition may seem confused. For instance, in condition 7 " ( r + s ) ⋅ v → = r ⋅ v → + s ⋅ v → >=r\cdot >+s\cdot >> ", the first " + " is the real number addition operator while the " + " to the right of the equals sign represents vector addition in the structure V . These expressions aren't ambiguous because, e.g., r and s are real numbers so " r + s " can only mean real number addition.

The best way to go through the examples below is to check all ten conditions in the definition. That check is written out at length in the first example. Use it as a model for the others. Especially important are the first condition " v → + w → >+>> is in V " and the sixth condition " r ⋅ v → >> is in V ". These are the closure conditions. They specify that the addition and scalar multiplication operations are always sensible — they are defined for every pair of vectors, and every scalar and vector, and the result of the operation is a member of the set (see Example 1.4).

Example 1.3

The set R 2 ^> is a vector space if the operations " + " and " ⋅ " have their usual meaning.

We shall check all of the conditions.

There are five conditions in item 1. For 1, closure of addition, note that for any v 1 , v 2 , w 1 , w 2 ∈ R ,v_,w_,w_\in \mathbb > the result of the sum

is a column array with two real entries, and so is in R 2 ^> . For 2, that addition of vectors commutes, take all entries to be real numbers and compute

(the second equality follows from the fact that the components of the vectors are real numbers, and the addition of real numbers is commutative). Condition 3, associativity of vector addition, is similar.

For the fourth condition we must produce a zero element — the vector of zeroes is it.

For 5, to produce an additive inverse, note that for any v 1 , v 2 ∈ R ,v_\in \mathbb > we have

so the first vector is the desired additive inverse of the second.

The checks for the five conditions having to do with scalar multiplication are just as routine. For 6, closure under scalar multiplication, where r , v 1 , v 2 ∈ R ,v_\in \mathbb > ,

is a column array with two real entries, and so is in R 2 ^> . Next, this checks 7.

For 8, that scalar multiplication distributes from the left over vector addition, we have this.

and tenth conditions are also straightforward.

In a similar way, each R n ^> is a vector space with the usual operations of vector addition and scalar multiplication. (In R 1 ^> , we usually do not write the members as column vectors, i.e., we usually do not write " ( π ) ". Instead we just write " π ".)

Example 1.4 This subset of R 3 ^> that is a plane through the origin P = < ( x y z ) | x + y + z = 0 >x\\y\\z\end>\,\,x+y+z=0\>>

is a vector space if "+" and " ⋅ " are interpreted in this way.

The addition and scalar multiplication operations here are just the ones of R 3 ^> , reused on its subset P . We say that P inherits these operations from R 3 ^> . This example of an addition in P

illustrates that P is closed under addition. We've added two vectors from P — that is, with the property that the sum of their three entries is zero— and the result is a vector also in P . Of course, this example of closure is not a proof of closure. To prove that P is closed under addition, take two elements of P

(membership in P means that x 1 + y 1 + z 1 = 0 +y_+z_=0> and x 2 + y 2 + z 2 = 0 +y_+z_=0> ), and observe that their sum

is also in P since its entries add ( x 1 + x 2 ) + ( y 1 + y 2 ) + ( z 1 + z 2 ) = ( x 1 + y 1 + z 1 ) + ( x 2 + y 2 + z 2 ) +x_)+(y_+y_)+(z_+z_)=(x_+y_+z_)+(x_+y_+z_)> to 0 . To show that P is closed under scalar multiplication, start with a vector from P

(so that x + y + z = 0 ) and then for r ∈ R > observe that the scalar multiple

satisfies that r x + r y + r z = r ( x + y + z ) = 0 . Thus the two closure conditions are satisfied. Verification of the other conditions in the definition of a vector space are just as straightforward.

Example 1.5

Example 1.3 shows that the set of all two-tall vectors with real entries is a vector space. Example 1.4 gives a subset of an R n ^> that is also a vector space. In contrast with those two, consider the set of two-tall columns with entries that are integers (under the obvious operations). This is a subset of a vector space, but it is not itself a vector space. The reason is that this set is not closed under scalar multiplication, that is, it does not satisfy condition 6. Here is a column with integer entries, and a scalar, such that the outcome of the operation

is not a member of the set, since its entries are not all integers.

Example 1.6

The singleton set

is a vector space under the operations

A vector space must have at least one element, its zero vector. Thus a one-element vector space is the smallest one possible.

Definition 1.7

A one-element vector space is a trivial space.

The examples so far involve sets of column vectors with the usual operations. But vector spaces need not be collections of column vectors, or even of row vectors. Below are some other types of vector spaces. The term "vector space" does not mean "collection of columns of reals". It means something more like "collection in which any linear combination is sensible".

Examples

Example 1.8

Consider P 3 = < a 0 + a 1 x + a 2 x 2 + a 3 x 3 | a 0 , … , a 3 ∈ R >>_=\+a_x+a_x^+a_x^\,\,a_,\ldots ,a_\in \mathbb \>> , the set of polynomials of degree three or less (in this book, we'll take constant polynomials, including the zero polynomial, to be of degree zero). It is a vector space under the operations

( a 0 + a 1 x + a 2 x 2 + a 3 x 3 ) + ( b 0 + b 1 x + b 2 x 2 + b 3 x 3 ) +a_x+a_x^+a_x^)+(b_+b_x+b_x^+b_x^)> = ( a 0 + b 0 ) + ( a 1 + b 1 ) x + ( a 2 + b 2 ) x 2 + ( a 3 + b 3 ) x 3 <\displaystyle =(a_+b_)+(a_+b_)x+(a_+b_)x^+(a_+b_)x^>

r ⋅ ( a 0 + a 1 x + a 2 x 2 + a 3 x 3 ) = ( r a 0 ) + ( r a 1 ) x + ( r a 2 ) x 2 + ( r a 3 ) x 3 +a_x+a_x^+a_x^)=(ra_)+(ra_)x+(ra_)x^+(ra_)x^>

(the verification is easy). This vector space is worthy of attention because these are the polynomial operations familiar from high school algebra. For instance, 3 ⋅ ( 1 − 2 x + 3 x 2 − 4 x 3 ) − 2 ⋅ ( 2 − 3 x + x 2 − ( 1 / 2 ) x 3 ) = − 1 + 7 x 2 − 11 x 3 -4x^)-2\cdot (2-3x+x^-(1/2)x^)=-1+7x^-11x^> .

Although this space is not a subset of any R n ^> , there is a sense in which we can think of P 3 >_> as "the same" as R 4 ^> . If we identify these two spaces's elements in this way

a 0 + a 1 x + a 2 x 2 + a 3 x 3 corresponds to ( a 0 a 1 a 2 a 3 ) +a_x+a_x^+a_x^\quad >\quad a_\\a_\\a_\\a_\end>>

then the operations also correspond. Here is an example of corresponding additions.

1 − 2 x + 0 x 2 + 1 x 3 + 2 + 3 x + 7 x 2 − 4 x 3 3 + 1 x + 7 x 2 − 3 x 3 corresponds to ( 1 − 2 0 1 ) + ( 2 3 7 − 4 ) = ( 3 1 7 − 3 ) &1-2x+0x^+1x^\\+&2+3x+7x^-4x^\\\hline &3+1x+7x^-3x^\end>\quad >\quad 1\\-2\\0\\1\end>+2\\3\\7\\-4\end>=3\\1\\7\\-3\end>>

Things we are thinking of as "the same" add to "the same" sum. Chapter Three makes precise this idea of vector space correspondence. For now we shall just leave it as an intuition.

Example 1.9

The set M 2 × 2 >_> of 2 × 2 matrices with real number entries is a vector space under the natural entry-by-entry operations.


As in the prior example, we can think of this space as "the same" as R 4 ^> .

Example 1.10

The set < f | f : N → R >\,f:\mathbb \to \mathbb \>> of all real-valued functions of one natural number variable is a vector space under the operations

( f 1 + f 2 ) ( n ) = f 1 ( n ) + f 2 ( n ) ( r ⋅ f ) ( n ) = r f ( n ) +f_)\,(n)=f_(n)+f_(n)\qquad (r\cdot f)\,(n)=r\,f(n)>

so that if, for example, f 1 ( n ) = n 2 + 2 sin ⁡ ( n ) (n)=n^+2\sin(n)> and f 2 ( n ) = − sin ⁡ ( n ) + 0.5 <\displaystyle f_(n)=-\sin(n)+0.5> then ( f 1 + 2 f 2 ) ( n ) = n 2 + 1 +2f_)\,(n)=n^+1> .

We can view this space as a generalization of Example 1.3— instead of 2 -tall vectors, these functions are like infinitely-tall vectors.

n f ( n ) = n 2 + 1 0 1 1 2 2 5 3 10 ⋮ ⋮ corresponds to ( 1 2 5 10 ⋮ ) n&f(n)=n^+1\\\hline 0&1\\1&2\\2&5\\3&10\\\vdots &\vdots \\\end>\quad >\quad 1\\2\\5\\10\\\vdots \end>>

Addition and scalar multiplication are component-wise, as in Example 1.3. (We can formalize "infinitely-tall" by saying that it means an infinite sequence, or that it means a function from N > to R > .)

Example 1.11

The set of polynomials with real coefficients

makes a vector space when given the natural " + "

( a 0 + a 1 x + ⋯ + a n x n ) + ( b 0 + b 1 x + ⋯ + b n x n ) +a_x+\cdots +a_x^)+(b_+b_x+\cdots +b_x^)> = ( a 0 + b 0 ) + ( a 1 + b 1 ) x + ⋯ + ( a n + b n ) x n <\displaystyle =(a_+b_)+(a_+b_)x+\cdots +(a_+b_)x^>

r ⋅ ( a 0 + a 1 x + … a n x n ) = ( r a 0 ) + ( r a 1 ) x + … ( r a n ) x n +a_x+\ldots a_x^)=(ra_)+(ra_)x+\ldots (ra_)x^>

This space differs from the space P 3 >_> of Example 1.8. This space contains not just degree three polynomials, but degree thirty polynomials and degree three hundred polynomials, too. Each individual polynomial of course is of a finite degree, but the set has no single bound on the degree of all of its members.

This example, like the prior one, can be thought of in terms of infinite-tuples. For instance, we can think of 1 + 3 x + 5 x 2 > as corresponding to ( 1 , 3 , 5 , 0 , 0 , … ) . However, don't confuse this space with the one from Example 1.10. Each member of this set has a bounded degree, so under our correspondence there are no elements from this space matching ( 1 , 2 , 5 , 10 , … ) . The vectors in this space correspond to infinite-tuples that end in zeroes.

Example 1.12

The set < f | f : R → R >\,f:\mathbb \to \mathbb \>> of all real-valued functions of one real variable is a vector space under these.

( f 1 + f 2 ) ( x ) = f 1 ( x ) + f 2 ( x ) ( r ⋅ f ) ( x ) = r f ( x ) +f_)\,(x)=f_(x)+f_(x)\qquad (r\cdot f)\,(x)=r\,f(x)>

The difference between this and Example 1.10 is the domain of the functions.

Example 1.13

The set F = < a cos ⁡ θ + b sin ⁡ θ | a , b ∈ R >\,a,b\in \mathbb \>> of real-valued functions of the real variable θ is a vector space under the operations

( a 1 cos ⁡ θ + b 1 sin ⁡ θ ) + ( a 2 cos ⁡ θ + b 2 sin ⁡ θ ) = ( a 1 + a 2 ) cos ⁡ θ + ( b 1 + b 2 ) sin ⁡ θ \cos \theta +b_\sin \theta )+(a_\cos \theta +b_\sin \theta )=(a_+a_)\cos \theta +(b_+b_)\sin \theta >

r ⋅ ( a cos ⁡ θ + b sin ⁡ θ ) = ( r a ) cos ⁡ θ + ( r b ) sin ⁡ θ

inherited from the space in the prior example. (We can think of F as "the same" as R 2 ^> in that a cos ⁡ θ + b sin ⁡ θ corresponds to the vector with components a and b .)

Example 1.14

is a vector space under the, by now natural, interpretation.

( f + g ) ( x ) = f ( x ) + g ( x ) ( r ⋅ f ) ( x ) = r f ( x )

In particular, notice that closure is a consequence:


of basic Calculus. This turns out to equal the space from the prior example— functions satisfying this differential equation have the form a cos ⁡ θ + b sin ⁡ θ — but this description suggests an extension to solutions sets of other differential equations.

Example 1.15

The set of solutions of a homogeneous linear system in n variables is a vector space under the operations inherited from R n ^> . For closure under addition, if

both satisfy the condition that their entries add to 0 then v → + w → >+>> also satisfies that condition: c 1 ( v 1 + w 1 ) + ⋯ + c n ( v n + w n ) = ( c 1 v 1 + ⋯ + c n v n ) + ( c 1 w 1 + ⋯ + c n w n ) = 0 (v_+w_)+\cdots +c_(v_+w_)=(c_v_+\cdots +c_v_)+(c_w_+\cdots +c_w_)=0> . The checks of the other conditions are just as routine.

As we've done in those equations, we often omit the multiplication symbol " ⋅ ". We can distinguish the multiplication in " c 1 v 1 v_> " from that in " r v → >\,> " since if both multiplicands are real numbers then real-real multiplication must be meant, while if one is a vector then scalar-vector multiplication must be meant.

The prior example has brought us full circle since it is one of our motivating examples.

Remark 1.16

Now, with some feel for the kinds of structures that satisfy the definition of a vector space, we can reflect on that definition. For example, why specify in the definition the condition that 1 ⋅ v → = v → >=>> but not a condition that 0 ⋅ v → = 0 → <\displaystyle 0\cdot >=>> ?

One answer is that this is just a definition— it gives the rules of the game from here on, and if you don't like it, put the book down and walk away.

Another answer is perhaps more satisfying. People in this area have worked hard to develop the right balance of power and generality. This definition has been shaped so that it contains the conditions needed to prove all of the interesting and important properties of spaces of linear combinations. As we proceed, we shall derive all of the properties natural to collections of linear combinations from the conditions given in the definition.

The next result is an example. We do not need to include these properties in the definition of vector space because they follow from the properties already listed there.

For 1, note that v → = ( 1 + 0 ) ⋅ v → = v → + ( 0 ⋅ v → ) >=(1+0)\cdot >=>+(0\cdot >)> . Add to both sides the additive inverse of v → >> , the vector w → >> such that w → + v → = 0 → >+>=>> .


The second item is easy: ( − 1 ⋅ v → ) + v → = ( − 1 + 1 ) ⋅ v → = 0 ⋅ v → = 0 → >)+>=(-1+1)\cdot >=0\cdot >=>> shows that we can write " − v → <\displaystyle ->\,> " for the additive inverse of v → <\displaystyle >> without worrying about possible confusion with ( − 1 ) ⋅ v → <\displaystyle (-1)\cdot >> .

For 3, this r ⋅ 0 → = r ⋅ ( 0 ⋅ 0 → ) = ( r ⋅ 0 ) ⋅ 0 → = 0 → >=r\cdot (0\cdot >)=(r\cdot 0)\cdot >=>> will do.

Summary

We finish with a recap.

Our study in Chapter One of Gaussian reduction led us to consider collections of linear combinations. So in this chapter we have defined a vector space to be a structure in which we can form such combinations, expressions of the form c 1 ⋅ v → 1 + ⋯ + c n ⋅ v → n \cdot >_+\dots +c_\cdot >_> (subject to simple conditions on the addition and scalar multiplication operations). In a phrase: vector spaces are the right context in which to study linearity.

Finally, a comment. From the fact that it forms a whole chapter, and especially because that chapter is the first one, a reader could come to think that the study of linear systems is our purpose. The truth is, we will not so much use vector spaces in the study of linear systems as we will instead have linear systems start us on the study of vector spaces. The wide variety of examples from this subsection shows that the study of vector spaces is interesting and important in its own right, aside from how it helps us understand linear systems. Linear systems won't go away. But from now on our primary objects of study will be vector spaces.

Exercises

Name the zero vector for each of these vector spaces.

  1. The space of degree three polynomials under the natural operations
  2. The space of 2 × 4 matrices
  3. The space < f : [ 0 , 1 ] → R | f is continuous >\,\,f>\>>
  4. The space of real-valued functions of one natural number variable
This exercise is recommended for all readers.

Find the additive inverse, in the vector space, of the vector.

This exercise is recommended for all readers.

Show that each of these is a vector space.

  1. The set of linear polynomials P 1 = < a 0 + a 1 x | a 0 , a 1 ∈ R >>_=\+a_x\,\,a_,a_\in \mathbb \>> under the usual polynomial addition and scalar multiplication operations.
  2. The set of 2 × 2 matrices with real entries under the usual matrix operations.
  3. The set of three-component row vectors with their usual operations.
  4. The set L = < ( x y z w ) ∈ R 4 | x + y − z + w = 0 >x\\y\\z\\w\end>\in \mathbb ^\,\,x+y-z+w=0\>> under the operations inherited from R 4 <\displaystyle \mathbb ^> .
This exercise is recommended for all readers.

Show that each of these is not a vector space. (Hint. Start by listing two members of each set.)

Define addition and scalar multiplication operations to make the complex numbers a vector space over R > .

This exercise is recommended for all readers.

Is the set of rational numbers a vector space over R > under the usual addition and scalar multiplication operations?

Show that the set of linear combinations of the variables x , y , z is a vector space under the natural addition and scalar multiplication operations.

Prove that this is not a vector space: the set of two-tall column vectors with real entries subject to these operations.

Prove or disprove that R 3 ^> is a vector space under these operations.

This exercise is recommended for all readers. Problem 10

For each, decide if it is a vector space; the intended operations are the natural ones.

This exercise is recommended for all readers. Problem 11

Prove or disprove that this is a vector space: the real-valued functions f of one real variable such that f ( 7 ) = 0 .

This exercise is recommended for all readers. Problem 12

Show that the set R + ^> of positive reals is a vector space when " x + y " is interpreted to mean the product of x and y (so that 2 + 3 is 6 ), and " r ⋅ x " is interpreted as the r -th power of x .

Problem 13

Is < ( x , y ) | x , y ∈ R >\,x,y\in \mathbb \>> a vector space under these operations?

  1. ( x 1 , y 1 ) + ( x 2 , y 2 ) = ( x 1 + x 2 , y 1 + y 2 ) ,y_)+(x_,y_)=(x_+x_,y_+y_)> and r ⋅ ( x , y ) = ( r x , y )
  2. ( x 1 , y 1 ) + ( x 2 , y 2 ) = ( x 1 + x 2 , y 1 + y 2 ) ,y_)+(x_,y_)=(x_+x_,y_+y_)> and r ⋅ ( x , y ) = ( r x , 0 )
Problem 14

Prove or disprove that this is a vector space: the set of polynomials of degree greater than or equal to two, along with the zero polynomial.

Problem 15

At this point "the same" is only an intuition, but nonetheless for each vector space identify the k for which the space is "the same" as R k ^> .

This exercise is recommended for all readers. Problem 16

Using + → >> to represent vector addition and ⋅ → >\,> for scalar multiplication, restate the definition of vector space.

This exercise is recommended for all readers. Problem 17
  1. Any vector is the additive inverse of the additive inverse of itself.
  2. Vector addition left-cancels: if v → , s → , t → ∈ V >,>,>\in V> then v → + s → = v → + t → >+>=>+>\,> implies that s → = t → <\displaystyle >=>> .
Problem 18

The definition of vector spaces does not explicitly say that 0 → + v → = v → >+>=>> (it instead says that v → + 0 → = v → <\displaystyle >+>=>> ). Show that it must nonetheless hold in any vector space.

This exercise is recommended for all readers. Problem 19

Prove or disprove that this is a vector space: the set of all matrices, under the usual operations.

Problem 20

In a vector space every element has an additive inverse. Can some elements have two or more?

  1. Prove that every point, line, or plane thru the origin in R 3 ^> is a vector space under the inherited operations.
  2. What if it doesn't contain the origin?
This exercise is recommended for all readers. Problem 22

Using the idea of a vector space we can easily reprove that the solution set of a homogeneous linear system has either one element or infinitely many elements. Assume that v → ∈ V >\in V> is not 0 → >> .

  1. Prove that r ⋅ v → = 0 → >=>> if and only if r = 0 .
  2. Prove that r 1 ⋅ v → = r 2 ⋅ v → \cdot >=r_\cdot >> if and only if r 1 = r 2 =r_> .
  3. Prove that any nontrivial vector space is infinite.
  4. Use the fact that a nonempty solution set of a homogeneous linear system is a vector space to draw the conclusion.
Problem 23

Is this a vector space under the natural operations: the real-valued functions of one real variable that are differentiable?

Problem 24

A vector space over the complex numbers C > has the same definition as a vector space over the reals except that scalars are drawn from C > instead of from R > . Show that each of these is a vector space over the complex numbers. (Recall how complex numbers add and multiply: ( a 0 + a 1 i ) + ( b 0 + b 1 i ) = ( a 0 + b 0 ) + ( a 1 + b 1 ) i +a_i)+(b_+b_i)=(a_+b_)+(a_+b_)i> and ( a 0 + a 1 i ) ( b 0 + b 1 i ) = ( a 0 b 0 − a 1 b 1 ) + ( a 0 b 1 + a 1 b 0 ) i +a_i)(b_+b_i)=(a_b_-a_b_)+(a_b_+a_b_)i> .)

Problem 25

Name a property shared by all of the R n ^> 's but not listed as a requirement for a vector space.

This exercise is recommended for all readers.
  1. Prove that a sum of four vectors v → 1 , … , v → 4 ∈ V >_,\ldots ,>_\in V> can be associated in any way without changing the result. ( ( v → 1 + v → 2 ) + v → 3 ) + v → 4 = ( v → 1 + ( v → 2 + v → 3 ) ) + v → 4 = ( v → 1 + v → 2 ) + ( v → 3 + v → 4 ) = v → 1 + ( ( v → 2 + v → 3 ) + v → 4 ) = v → 1 + ( v → 2 + ( v → 3 + v → 4 ) ) ((>_+>_)+>_)+>_&=(>_+(>_+>_))+>_\\&=(>_+>_)+(>_+>_)\\&=>_+((>_+>_)+>_)\\&=>_+(>_+(>_+>_))\end>> This allows us to simply write " v → 1 + v → 2 + v → 3 + v → 4 >_+>_+>_+>_> " without ambiguity.
  2. Prove that any two ways of associating a sum of any number of vectors give the same sum. (Hint. Use induction on the number of vectors.)
Problem 27

For any vector space, a subset that is itself a vector space under the inherited operations (e.g., a plane through the origin inside of R 3 ^> ) is a subspace.

  1. Show that < a 0 + a 1 x + a 2 x 2 | a 0 + a 1 + a 2 = 0 >+a_x+a_x^\,\,a_+a_+a_=0\>> is a subspace of the vector space of degree two polynomials.
  2. Show that this is a subspace of the 2 × 2 matrices. < ( a b c 0 ) | a + b = 0 >a&b\\c&0\end>\,\,a+b=0\>>
  3. Show that a nonempty subset S of a real vector space is a subspace if and only if it is closed under linear combinations of pairs of vectors: whenever c 1 , c 2 ∈ R <\displaystyle c_,c_\in \mathbb > and s → 1 , s → 2 ∈ S >_,>_\in S> then the combination c 1 s → 1 + c 2 s → 2 <\displaystyle c_>_+c_>_> is in S .
Linear Algebra
← Definition of Vector Space Definition and Examples of Vector Spaces Subspaces and Spanning sets →