Lecture 21 · Week 6· 17:41

Vector spaces

Axioms over a field; polynomials, matrices, functions as vectors.

Play: Lecture 21: Vector spaces
Lecture · 17:41 · Open on YouTube · Report a problem with this video
TranscriptThe full text of the lecture. Click any sentence to play the video from there.

Today: one set of rules, many kinds of vectors

Welcome back. Up to now, a vector has been a list of numbers. In lecture two we found eight rules for adding and scaling vectors in R n, and we proved several facts using only those rules, without ever looking at an entry. In lecture six, the same rules carried over to F n. But lists are not the only things we add and scale. We add two polynomials, and we multiply a polynomial by a number. We do the same with matrices of one size, and with functions. Each time, the same eight rules hold. So today we turn them around. Any set with an addition and a scalar multiplication that obey the eight rules will be called a vector space, and its elements, vectors.

Then every theorem proved from the rules alone holds in all of these settings at once. Here is the plan. We give the definition, and meet the standard examples: lists, polynomials, matrices, and functions. Then an unusual example, and two sets that fail. We derive the first consequences of the rules, and finish with linear combinations and subspaces in a general vector space.

The definition

Here is the definition. Let F be a field. A vector space over F is a set V, together with two operations. Addition takes two vectors u and v in V, and gives a vector u plus v, again in V. Scalar multiplication takes a scalar c in F and a vector v in V, and gives a vector c v, again in V. These operations must obey eight axioms, for all vectors u, v and w in V, and all scalars a and b in F. The first four are about addition.

One: u plus v equals v plus u. Two: u plus v, plus w, equals u plus, v plus w. Three: there is a vector zero in V, with v plus zero equal to v, for every v. Four: every v in V has a vector minus v in V, with v plus minus v equal to zero. The other four are about scaling. Five: one times v is v. Six: a times b v is a b, times v. Seven: a times u plus v is a u plus a v. And eight: a plus b, times v, is a v plus b v. These are exactly the eight rules of lecture two. There, they were facts about lists, proved entry by entry. Here, they are the definition.

The elements of V are called vectors, whatever they are. The vector of axiom three is the zero vector, or zero sub V when we need to name the space. Over the real numbers, V is called a real vector space, and over the complex numbers, a complex vector space.

Lists and polynomials

The first example is the one we know. F n, with addition and scaling entry by entry, is a vector space over F. In lecture six we checked the eight rules, each one from a law of arithmetic in the field. The second example is polynomials. For a whole number n, P n of F is the set of all polynomials of degree at most n, together with the zero polynomial: a zero plus a one x, plus and so on, up to a n x to the n, with coefficients in F. Here are two vectors in P two of R: p equals one plus two x, and q equals two minus x squared.

We add polynomials coefficient by coefficient. For the constant terms, one plus two is three. For x, two plus zero is two. For x squared, zero plus minus one is minus one. So p plus q is three plus two x minus x squared. On the graphs, the sum adds the heights at every point. At x equals one, p is three, q is one, and p plus q is four. To scale a polynomial, we multiply every coefficient. For example, minus one times q is minus two plus x squared. Its graph is the graph of q, flipped.

Why do the eight axioms hold? A polynomial in P n of F is given by its n plus one coefficients, and both operations act on them exactly as in F n plus one. So each axiom holds in P n of F because it holds in F n plus one, and P n of F is a vector space over F. The zero vector is the zero polynomial, whose coefficients are all zero. And minus p is the polynomial with every coefficient of p negated. We also use P of F, the set of all polynomials, of any degree. The polynomials in any one axiom all lie in a common P n of F, with n the largest of their degrees. The axiom holds there, so P of F is a vector space too.

Matrices

The third example is matrices. For whole numbers m and n, at least one, M m by n of F is the set of all m by n matrices with entries in F, with the sum and the scalar multiple from lecture fourteen. Here are two vectors in M two by two of R: A has rows (one, two), and (zero, minus one), and B has rows (three, minus two), and (one, one). We add entry by entry. In row one, one plus three is four, and two minus two is zero. In row two, zero plus one is one, and minus one plus one is zero.

An m by n matrix is a list of m n entries, arranged in a rectangle, and both operations act entry by entry. So the eight axioms hold for the same reason as in F n, and M m by n of F is a vector space over F. The zero vector is the zero matrix, O. Square matrices can also be multiplied together. That is extra structure. The vector space M n by n of F uses only the sum and the scalar multiple.

Functions

The fourth example is functions. Let S be any nonempty set. Then F to the S is the set of all functions from S to F. Functions are added and scaled point by point. The sum f plus g is the function whose value at each point s is f of s plus g of s. And c f is the function whose value at s is c times f of s. For example, with S and F both the real numbers, take f of x equals sine x, and g of x equals x over two. At each point, the height of f plus g is the height of f plus the height of g. Doing this at every point draws the graph of the sum.

The axioms are checked one point at a time. For axiom one: at each s, f plus g, at s, is f of s plus g of s. By commutativity in F, that equals g of s plus f of s, which is g plus f, at s. The two functions agree at every point, so they are equal. The other axioms follow in the same way, each from a law of arithmetic in F. The zero vector is the zero function, which takes the value zero at every point. And minus f takes the value minus f of s at each s. Two special cases. When S is the set one, two, up to n, a function is just its list of values, f of one up to f of n. For example, the function on one, two, three, four, with values two, minus one, three, one, is the vector (two, minus one, three, one). So F to the S is F n in disguise.

And when S is the set of all positive whole numbers, a function is an infinite sequence, and F to the S is the space of sequences. So it helps to think of a function as a vector with one entry for each point of S. A vector in F n has n entries. A function on the real line has one entry for every real number. Inside the real valued functions on the real line sit the continuous functions and the differentiable functions. At the end of this lecture, we will see that they form vector spaces too.

An unusual vector space

In a vector space, the operations need not be the familiar addition and scaling. Any two operations will do, as long as they obey the eight axioms. Here is an example. Let V be the set of positive real numbers, over the field R. Define the sum of two vectors u and v in V to be their product, u v, and define c times v to be v to the power c. To keep these apart from ordinary addition and multiplication, we draw them with boxes. Both results are again positive, so they lie in V. For example, two box plus three is six, and three box times two is two cubed, which is eight.

Now the axioms. One and two hold, because multiplication of numbers is commutative and associative. Three: the zero vector is the number one, because v times one is v. Four: the negative of v is one over v, because v times one over v is one, the zero vector. Five: v to the power one is v. Six: v to the b, all to the power a, is v to the a b. Seven: u v, to the power a, is u to the a times v to the a. Eight: v to the a plus b is v to the a times v to the b. These are the laws of exponents. So V is a real vector space, with the number one as its zero vector. Here, adding means multiplying, and scaling means raising to a power. These are not the usual operations, yet they obey all eight axioms, and that is all a vector space asks.

Sets that fail

Not every set with two operations is a vector space. Take the real polynomials of degree exactly two, with the usual operations. The sum of x squared and minus x squared plus x is x, which has degree one. So the sum leaves the set. The zero polynomial is missing too. A subtler example. On R two, keep the usual addition, but for c in R, define c box times the vector (x, y), to be the vector (c x, zero). Axioms one to four are about addition, which has not changed, so they hold. But axiom five fails: one box times the vector (one, one), is the vector (one, zero), which is not the vector (one, one).

Axiom five asks the scalar one to leave every vector unchanged, and here it does not. In fact, no scalar does: c box times the vector (one, one), is the vector (c, zero), whose second entry is always zero. So this scaling has no identity: no scalar leaves every vector as it is. Now let's see whether the remaining axioms hold. The other scaling axioms hold. For six: a box times, b box times the vector (x, y), is a box times the vector (b x, zero). That is the vector (a b x, zero), which is a b box times the vector (x, y).

For seven, take a second vector (x prime, y prime). Then a box times their sum is the vector (a times, x plus x prime, zero). That is the vector (a x, zero), plus the vector (a x prime, zero), which is a box times the first vector, plus a box times the second. For eight: a plus b, box times the vector (x, y), is the vector (a x plus b x, zero). That is the vector (a x, zero), plus the vector (b x, zero), which is a box times the vector (x, y), plus b box times the vector (x, y). So axiom five is the only one that fails, and it shows that this axiom is not redundant. It rules out a scaling that throws information away.

First consequences of the axioms

In lecture two we proved several facts from the eight rules alone. Those proofs never looked at an entry, so the same arguments work in every vector space. Let V be a vector space over F, let v be in V, and let c be in F. First, the zero vector is unique. Second, the negative of v is unique. Third, zero times v is the zero vector. Fourth, c times the zero vector is the zero vector. Fifth, minus one times v is minus v. And sixth, if c v is the zero vector, then c is zero, or v is the zero vector.

Facts three, four and five have the same proofs as in lecture two, with F in place of R, and the book writes them out. We prove the first, the second and the last here. Proofs straight from axioms are demanding the first time, so take them slowly, one axiom per step. For the first, suppose a vector z also has the property of axiom three: x plus z is x, for every x. Then z equals z plus zero, by axiom three for zero. By axiom one, that is zero plus z. And by the property of z, with x equal to zero, that is zero. So z equals zero: there is only one zero vector.

For the second fact, suppose v plus u is zero. Then u is u plus zero, by axiom three, which is u plus, v plus minus v, by axiom four. By axiom two, that is u plus v, plus minus v. By axiom one and the assumption, u plus v is zero, so this is zero plus minus v, which is minus v, by axioms one and three. So the negative of v is unique. For the last fact, suppose c v is zero, and c is not zero. Because F is a field, c has an inverse, c to the minus one. Then v equals one v, by axiom five. Since c to the minus one times c is one, that is c to the minus one times c, times v, which by axiom six is c to the minus one, times c v. As c v is zero, that is c to the minus one times zero, which is zero, by the fourth fact. So v is the zero vector.

This is where the field matters. In Z six, which is not a field, two times three is zero, though neither factor is. Scalars like these could not be cancelled, and this fact would fail. These small facts may look obvious, but they are the ground we stand on. Every time we cancel, subtract, or move a term across an equals sign in a general vector space, we use one of them.

Linear combinations and subspaces

Everything we defined from addition and scaling now makes sense in any vector space. Let V be a vector space over F, and let v one up to v k be vectors in V. A linear combination of them is c one v one, plus and so on, up to c k v k, with scalars c i in F. The span of v one up to v k is the set of all their linear combinations. In P two of F, every polynomial a zero plus a one x plus a two x squared is a combination of the three vectors one, x, and x squared, with weights a zero, a one and a two. So P two of F is the span of one, x and x squared.

Subspaces make sense too. Let V be a vector space over F. A subset U of V is a subspace of V if three conditions hold: the zero vector is in U, U is closed under addition, and U is closed under scalar multiplication. A subspace is a vector space in its own right, with the same operations. By closure, both operations stay inside U. Axioms one and two, and five to eight, hold in U because they hold in V. The zero vector of V is in U, so axiom three holds. And for u in U, minus u is minus one times u, by the fifth fact, so it is in U by condition c. For example, P n of F is a subspace of P of F. It contains the zero polynomial, and sums and multiples of polynomials of degree at most n have degree at most n.

The continuous functions form a subspace of the real valued functions on the real line. The zero function is continuous, and by calculus, sums and multiples of continuous functions are continuous. The same holds for differentiable functions. But the functions with f of zero equal to one do not form a subspace. The zero function takes the value zero at zero, so it is not in this set. In lecture twenty two we combine subspaces, with sums and intersections. And in lecture twenty three we bring bases and dimension to every vector space. There we will see that P two of F has dimension three, and M two by two of F has dimension four.

Summary

Let's summarise. A vector space is a set with an addition and a scalar multiplication over a field, obeying eight axioms. Lists, polynomials, matrices and functions are all vector spaces. Facts such as the uniqueness of the zero vector follow from the axioms alone. So every theorem we prove from the axioms holds in every vector space at once. That is the power of the abstract definition. Linear combinations, spans and subspaces are defined exactly as in F n, and every subspace is a vector space in its own right.

Before the next lecture, read section four point three of the course book, try the problems on sheet six about vector spaces, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we combine subspaces, with sums, intersections and direct sums. See you there.

In this lecture

  1. 0:00Today: one set of rules, many kinds of vectors
  2. 1:06The definition
  3. 2:46Lists and polynomials
  4. 4:44Matrices
  5. 5:52Functions
  6. 7:59An unusual vector space
  7. 9:32Sets that fail
  8. 11:45First consequences of the axioms
  9. 14:21Linear combinations and subspaces
  10. 16:35Summary

Materials

Check yourself

3 questions, from warm-up to stretch

Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.

  1. Question 1 of 3 Warm-up

    In the vector space , let and . Write and find , and .

    Hint 1 of 2

    In the operations act on coefficients (Example 4.3.3): to scale a polynomial, multiply every coefficient; to add, add the coefficients of the same power of . And means .

    Hint 2 of 2

    and . Now add them power by power.

    Worked solution
    1. Scalar multiplication multiplies every coefficient: and .
    2. Addition adds the coefficients of each power of : .
    3. So , and . In coefficient columns this is in , as in Example 4.3.3.
  2. Question 2 of 3 Core

    Let be the positive reals with and (Example 4.3.6). Find the zero vector of , the negative of the vector , and the vector .

    Hint 1 of 2

    The zero vector is the with for every (axiom 3), and the negative of is the with (axiom 4). Write both with the ordinary product.

    Hint 2 of 2

    For , work from the inside out: , then , then that is a cube.

    Worked solution
    1. Zero vector: we need for every , so .
    2. Negative of : we need , the zero vector, so . In general the negative of is , and agrees with Proposition 4.3.8(e).
    3. For : , then , then . So .
  3. Question 3 of 3 Stretch

    Use Definition 4.3.11 to decide which of these sets are subspaces. (a) , in . (b) , in . (c) , in .

    is a subspace:
    is a subspace:
    is a subspace:
    Hint 1 of 2

    Check the three conditions one at a time: is the zero vector in the set, is the set closed under addition, and is it closed under scalar multiplication? One failure is enough for No. Values add: and .

    Hint 2 of 2

    For , look at the zero polynomial at . For , try the scalar on a function such as .

    Worked solution
    1. (a) The zero polynomial has value at , so it lies in . If and , then and . All three conditions hold: is a subspace, and by Theorem 4.3.12 a vector space in its own right.
    2. (b) The zero polynomial has value at , so it is not in : condition (a) fails and is not a subspace.
    3. (c) The zero function is in , and a sum of two functions with values has values . But lies in and has value , so : condition (c) fails and is not a subspace.

Found a mistake, or something not working on this page? Report it and we'll fix it. See what we've corrected.