Arrows, lists of numbers, polynomials and functions can all be added and scaled by the same ten rules, so we study the rules once and get results for all of them.
Taught in 375/376Beyond the courseApostol 1.1 to 1.6Spagnolie, Lectures 1 and 2MATH 375 HW1
In JEE a vector was an arrow: something with a length and a direction. But many other things also get added and stretched: lists of numbers, polynomials, sound waves, images, the solutions of a differential equation. They all obey the same handful of rules. This chapter writes those rules down. Anything that obeys them is a vector space, and every fact we prove from the rules is then true for all of these things at once.
Two names come up throughout. Apostol is the textbook MATH 375 used (Tom Apostol, Calculus, Volume 2). Spagnolie is the professor who taught your 375 section; his lecture examples appear where they explain something well. “Apostol 1.4” means section 1.4 of that book, not a chapter of this one.
Before you start
Only high-school algebra. The set language used below is defined in the first section, so nothing from CS 240 is assumed. Two quick checks on the names of the rules of ordinary arithmetic, because the axioms reuse them:
Quick checkWhich rule of ordinary arithmetic says a(b+c)=ab+ac?
Distributing means multiplying a into each term of the bracket. Commutative is about order (a+b=b+a); associative is about grouping ((a+b)+c=a+(b+c)).
Quick checkWhich rule says (a+b)+c=a+(b+c)?
The order of a, b, c is unchanged; only the brackets (the grouping) move. That is associativity.
The picture
Start with two operations you already know for arrows: add two arrows (tip to tail), and stretch an arrow by a number. Now switch the visualizer to functions, then to lists of numbers. The objects change, but the two operations and the way they behave do not.
Three things to notice:
In every case, adding two objects gives another object of the same kind. Two arrows give an arrow, two functions give a function, and two lists of four numbers give a list of four numbers.
In every case, multiplying by a number does the same. Setting a=0 shrinks the object to “nothing”, which is the zero arrow, the zero function (a flat line at height 0), or the list (0,0,0,0).
In every case, a=−1 produces the opposite object, which cancels the original when you add them.
An axiom is a rule we agree to accept without proof. In this chapter the axioms are the rules of adding and scaling. Every theorem after that is built only from the axioms, one cited step at a time. The observations above, made precise, are the axioms.
The language: sets
A few words used in the rest of the book.
Same idea elsewhere· Recap: sets
A set is a collection of objects, called its elements. We write x∈S for ”x is an element of S” and x∈/S for “it is not”. A set is determined by its elements alone: {1,2,3} and {3,1,2} are the same set. Chapter 0.3 defines sets properly, with unions, intersections and how to prove two sets are equal.
The notation you will see most:
Notation
Read it as
Example
R
the set of all real numbers
π∈R
Rn
the set of all ordered lists (x1,…,xn) of n real numbers
(1,−2,0)∈R3
{x:condition}
the set of all x that satisfy the condition (set-builder notation)
{x∈R:x>0} is the positive reals
S⊆V
S is a subset of V: every element of S is also in V
{(x,0):x∈R}⊆R2
An “ordered list” means order matters: (1,2)=(2,1) in R2. Each xi is called an entry or component of the list.
The idea, in words
Why· Why bother with axioms
We want to prove a fact once and use it everywhere. For example: “if a⋅x=0, then a=0 or x=0.” We could prove it for arrows, then again for polynomials, then again for matrices. Or we can notice that the proof only ever uses a few rules about adding and scaling. If an object obeys those rules, the proof works for it automatically.
So we list the rules, and give the name “vector space” to anything that obeys them. The rules are the axioms. A theorem proved from the axioms alone holds in every vector space, including ones nobody has thought of yet.
Where this came from· From arrows to axioms
Physicists added forces and velocities as arrows long before anyone wrote rules down. In 1844 Hermann Grassmann, a German schoolteacher, published the Ausdehnungslehre (“theory of extension”). It was an algebra of geometric quantities that worked in any number of dimensions, with linear combinations, independence and dimension already in it. It was so unusual that almost nobody read it. In 1888 Giuseppe Peano, building on Grassmann, wrote down the first axiomatic definition of a real vector space, very close to the ten axioms below. The idea only became standard in the 1920s, when Stefan Banach and others needed spaces of functions to behave like spaces of arrows. That need is why Apostol, and this book, start from axioms instead of from arrows.
Definitions and theorems
Definition T
Scalar
A scalar is a number used to multiply vectors. In a real vector space the scalars are the real numbers. In a complex vector space they are the complex numbers (used in quantum mechanics and in Unit 3).
In one lineA number you multiply vectors by. In this book it is a real number unless we say complex.
Why it existsWe need a word that separates the numbers doing the stretching from the objects being stretched.
Definition T
Vector space
A real vector space (Apostol says linear space) is a non-empty set V together with two operations:
addition, which takes two elements x,y∈V and gives an element written x+y;
scalar multiplication, which takes a real number a and an element x∈V and gives an element written ax;
such that the ten axioms below hold. The elements of V are then called vectors, whatever they actually are.
In one lineA non-empty set V with an addition and a scalar multiplication that obey the ten axioms below; its elements are called vectors.
Why it existsIt captures exactly the behaviour that arrows, lists, polynomials and functions share, so one theorem covers all of them.
Here are the ten axioms, with Apostol’s numbering, which the course used. In axioms 1 and 2, closure means that adding (or scaling) things from the set never takes you outside the set. It gets a formal definition right after the table. In each, x,y,z are any elements of V and a,b are any real numbers.
Axiom
In symbols
What it says, for arrows
1
Closure under addition
x+y∈V
Adding two arrows gives an arrow, not something else.
2
Closure under scalar multiplication
ax∈V
Stretching an arrow gives an arrow.
3
Commutative law
x+y=y+x
Tip to tail in either order lands at the same point.
4
Associative law
(x+y)+z=x+(y+z)
With three arrows, the grouping does not matter.
5
Zero element
there is an element O∈V with x+O=x for every x
The arrow of length 0 changes nothing.
6
Negatives
x+(−1)x=O
Flipping an arrow and adding it brings you back to the start.
7
Associative law for scalars
a(bx)=(ab)x
Stretch by 2 then by 3, or by 6 at once.
8
Distributive law, adding vectors
a(x+y)=ax+ay
Scaling a triangle of arrows scales each side.
9
Distributive law, adding numbers
(a+b)x=ax+bx
5x is 2x followed by 3x.
10
Identity
1x=x
Multiplying by 1 changes nothing.
Quick checkTake V = the positive real numbers, with ordinary addition and ordinary multiplication by real numbers. Which axiom fails first?
Adding two positive numbers gives a positive number, so axiom 1 holds. But scaling by −1 turns 2 into −2, which is not positive. (Axiom 5 fails too: 0 is not positive.)
Definition T
Closed under
A set S is closed under addition if x+y∈S whenever x,y∈S. It is closed under scalar multiplication if ax∈S whenever x∈S and a is a scalar.
In one lineA set is closed under an operation when applying it to elements of the set never produces something outside the set.
Why it existsAxioms 1 and 2 are closure statements, and the subspace test below is nothing but two closure checks.
Watch out· Which axioms actually fail in practice
When the operations are the usual ones, axioms 3, 4 and 7 to 10 are facts about real numbers. They hold automatically for lists and functions, because those operations work entry by entry, or point by point. The usual way a set fails is axiom 1 or 2: adding two of its elements, or scaling one, leaves the set. Axioms 5 and 6 then come for free from axiom 2, because O=0x and −x=(−1)x are scalings of x. The subspace test below proves this.
Apostol’s axiom 6 is more specific than you might expect. It names the opposite of x exactly: (−1)x. Spagnolie wrote it as x+(−x)=O, which says the same thing once we know that negatives are unique (proved below).
First consequences
For arrows, the next results are what you would expect. The point is that they follow from the ten axioms alone, so they hold in every vector space. These are your first proofs from axioms. In each step, the reason names the axiom used.
Definition T
Zero vector
The zero vector (or zero element) of V is the element O given by axiom 5. In Rn it is (0,…,0); for functions it is the function that is 0 everywhere; for matrices it is the matrix of zeros.
In one lineThe element O of axiom 5, with x+O=x for every x; it is unique.
Why it existsEvery subspace must contain it, which makes it the fastest test for whether a set can be a vector space.
Uniqueness matters because it lets us say the zero vector and the negative of x. Without it, "−x" would not name one thing.
Theorem TApostol Thm 1.1
Uniqueness of the zero vector
In any vector space there is one and only one zero element.
In one lineA vector space has exactly one zero element.
Why it is trueIf O1 and O2 are both zeros, then O1=O1+O2=O2.
ProofApostol 1.4; Spagnolie Lecture 2
The idea: Suppose there were two zeros, and add them to each other. Each one 'does nothing' to the other, so the sum equals both of them.
Suppose O1 and O2 are both zero elements.
Axiom 5 gives at least one. To show there is only one, take any two and show they are equal.
O1+O2=O1.
O2 is a zero element, so adding it to anything (x=O1 here) changes nothing.
O2+O1=O2.
O1 is a zero element, so adding it to O2 changes nothing.
O1+O2=O2+O1.
Axiom 3: addition can be done in either order.
O1=O1+O2=O2+O1=O2, so O1=O2.
Chain the last three lines together.
Proof workshopGive the reason for each line: the zero vector is unique
Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.
Suppose O1 and O2 are both zero elements.
O1+O2=O1
O2+O1=O2
O1+O2=O2+O1
O1=O2
Definition T
Negative
The negative of x, written −x, is the element (−1)x from axiom 6. Subtraction is defined by y−x=y+(−x).
In one lineThe negative of x is (−1)x, written −x. It is the only y with x+y=O (proved below).
Why it existsSubtraction, y−x=y+(−x), is built from it.
Theorem TApostol Thm 1.2
Uniqueness of negatives
For every x in a vector space there is one and only one y with x+y=O.
In one lineEach x has exactly one y with x+y=O, namely (−1)x.
Why it is trueAdd the second candidate to both sides of the first equation and regroup.
ProofApostol 1.4; Spagnolie Lecture 2
The idea: We want y₁ = y₂. The trick is to build one expression, y₂ + x + y₁, that equals y₂ when grouped one way and y₁ when grouped the other way. Both answers come from the same expression, so they must be equal.
Suppose x+y1=O and x+y2=O.
Axiom 6 says (−1)x works, so at least one exists. Now take any two.
y2+(x+y1)=y2+O=y2.
Group as y2+(x+y1). The bracket is O by the first assumption, and axiom 5 removes it.
y2+(x+y1)=(y2+x)+y1.
Axiom 4: the grouping of a sum does not matter.
(y2+x)+y1=(x+y2)+y1.
Axiom 3: y2+x=x+y2.
(x+y2)+y1=O+y1.
The second assumption says x+y2=O.
O+y1=y1+O=y1.
Axiom 3 then axiom 5.
y2=y1.
The two lines computed the same expression y2+(x+y1), so the answers agree.
Theorem TApostol Thm 1.3(a)
Scaling by zero
For every x∈V, 0x=O. (On the left, 0 is the number zero; on the right, O is the zero vector.)
In one line0x=O for every vector x.
Why it is true0x=(0+0)x=0x+0x, and subtracting 0x leaves O.
ProofApostol 1.4
The idea: Write the number 0 as 0 + 0 and use the distributive law. That shows 0x added to itself is 0x, and the only vector with that property is the zero vector.
Let z=0x.
A name, to keep the lines short.
z=0x=(0+0)x=0x+0x=z+z.
The number 0 equals 0+0; then axiom 9 splits the scalar.
z+(−z)=(z+z)+(−z).
Add −z to both sides of z=z+z. We are allowed to do the same thing to both sides because they are the same element.
Left side: z+(−z)=O.
Axiom 6: a vector plus its negative is O.
Right side: (z+z)+(−z)=z+(z+(−z))=z+O=z.
Axiom 4 regroups; axiom 6 turns z+(−z) into O; axiom 5 removes the O.
So O=z, that is, 0x=O.
The two sides were equal, so their simplified forms are equal. And z was our name for 0x.
Same idea elsewhere· Where this kind of proof came from
The move “write 0 as 0+0, then cancel” is the same trick that proves 0⋅a=0 for ordinary numbers. School never asked you to prove that, because it was taken for granted. Here it is a theorem because “vector” could mean anything, and you only know what the axioms give you.
Worked example Apostol 1.5, adapted
Prove from the axioms: if x+y=x+z, then y=z (cancellation).
Solution. The plan: add −x to both sides to remove x, and track each axiom used.
Start from the hypothesis.x+y=x+z. This is what we are told.
Add −x on the left of both sides.(−x)+(x+y)=(−x)+(x+z). Both sides are the same vector, so adding the same thing to each keeps them equal.
Regroup.((−x)+x)+y=((−x)+x)+z. Axiom 4 (associativity) lets us move the brackets.
Cancel the pair.(−x)+x=x+(−x)=O, so O+y=O+z. Axiom 3 swaps the order, then axiom 6 (with −x=(−1)x) gives O.
Remove the zero.y+O=z+O, so y=z. Axiom 3 swaps again, then axiom 5 says adding O changes nothing.
Answer.y=z. Every step cited one axiom: this is what “proof from the axioms” means.
Subspaces
Most vector spaces you meet sit inside a bigger one: a plane through the origin inside 3D space, or the polynomials of degree at most 3 inside all functions. These are subspaces.
Definition T
Subspace
Let V be a vector space and S⊆V a non-empty subset. If S is a vector space under the same addition and scalar multiplication as V, then S is a subspace of V.
In one lineA non-empty subset S of a vector space V that is itself a vector space with the same operations.
Why it existsSolution sets, spans, null spaces and eigenspaces are all subspaces. The test below lets you confirm one with two quick checks.
The flat plane in the picture is a subspace of R3. Every sum of multiples of its two arrows stays on it, and it passes through the origin.
Theorem TApostol Thm 1.4 (section 1.6)
Subspace test
Let S be a non-empty subset of a vector space V. Then S is a subspace of V if and only if S is closed under addition and closed under scalar multiplication.
In one lineA non-empty subset of a vector space is a subspace exactly when it is closed under addition and under scalar multiplication.
Why it is trueThe other eight axioms are either inherited from V, or (zero and negatives) produced by scaling with 0 and −1.
“If and only if” means two statements, and we prove each. (⇒) means “subspace implies closed”. (⇐) means “closed implies subspace”.
ProofApostol 1.6; Spagnolie Lecture 2
The idea: One direction is immediate. For the other, sort the ten axioms into three kinds: closure (assumed), equations that hold for all elements of V and so for elements of S (inherited), and the two that ask for an element to EXIST in S (zero and negatives). Produce those two by scaling.
(⇒) If S is a subspace, it satisfies axioms 1 and 2, which say exactly that S is closed.
A subspace is a vector space, so axioms 1 and 2 hold for it.
(⇐) Now assume S is non-empty and closed under both operations. We check the ten axioms for S.
This direction is the harder one, because each of the ten axioms has to be checked inside S.
Axioms 1 and 2 hold.
These are the assumptions.
Axioms 3, 4, 7, 8, 9 and 10 hold, because each is an equation that is true for every element of V, in particular for those in S.
Each of these is an equation about elements. It holds for all elements of V, and elements of S are elements of V.This is what Spagnolie meant by 'inherited from V'.
Pick x∈S. Then O=0x∈S, so axiom 5 holds in S.
Axiom 5 asks for O to be IN S. That is not inherited, so we build it. S is non-empty, so pick any x∈S. Closure under scalars puts 0x in S, and 0x=O by 'Scaling by zero' above.This is where 'non-empty' is used. The empty set is closed under everything but contains no zero.
For any x∈S, (−1)x∈S, and x+(−1)x=O by axiom 6 in V. So axiom 6 holds in S.
Axiom 6 asks for (−1)x to be in S. Closure under scalars, with a=−1, gives it.
S is a vector space with the operations of V, so it is a subspace.
All ten checked.
Quick checkIn the proof of the subspace test, where is the assumption that S is NON-EMPTY used?
Axioms 3, 4, 7, 8, 9, 10 are inherited from V, and closure is assumed. Only 'there is a zero in S' needs a vector to start from: pick x∈S, and 0x=O lands in S. The empty set is closed under everything yet contains no zero.
Proof workshopRebuild the subspace test (the closed-implies-subspace direction)
Tap the lines in the order a proof would write them. Each line can only use what is already above it.
These are the hypotheses of the direction we are proving; axioms 1 and 2 hold in S at once.
Each is an equation true for all elements of V, and elements of S are elements of V (inherited).
First say what is assumed, so you know which axioms are still unchecked.
This is possible because S is non-empty; it gives us a vector to build with.
Choose an element only after the assumptions say the set has one.
Closure under scalars puts 0x in S, and 0x=O by Scaling by zero.
You need an element x of S before you can scale it.
Closure under scalars with a=−1 puts the negative in S; the sum is O by axiom 6 in V.
Axiom 6 needs O to be in S first, so do the zero vector before the negatives.
The conclusion: nothing is left unchecked.
You can only conclude after all ten axioms have been checked.
Why· The quick test you will actually use
To show a set S is a subspace, check three things:
O∈S. This also shows S is non-empty.
If x,y∈S, then x+y∈S.
If x∈S and a is any scalar, then ax∈S.
To show a set is not a subspace, one failure with one specific example is enough. Check whether O∈S first. That check alone rules out most impostors.
Quick checkS={(x,y):xy=0}, the two coordinate axes together. Is it a subspace of R2?
It does contain (0,0), and scaling a point on an axis keeps it on that axis. But (1,0)+(0,1)=(1,1) has xy=1. Passing two of the three checks is not enough.
Examples and non-examples
Lists, Rn. Add entry by entry, scale entry by entry. Every axiom reduces to the same fact about real numbers in each entry. For example, axiom 3 holds because xi+yi=yi+xi in every entry. So Rn is a vector space.
Matrices. The set Rm×n of m by n arrays of real numbers, added and scaled entry by entry, is a vector space. Spagnolie’s advice for checking an axiom here: “go slowly and only use the definitions.” Write aij for the entry of A in row i and column j, and use λ (lambda) for a scalar. For axiom 8, λ(A+B) has entries λ(aij+bij). The ordinary distributive law turns that into λaij+λbij, and those are exactly the entries of λA+λB.
Your answerLet A=[1324] and B=[05−12]. The matrix 2A−3B is computed entry by entry. What is its entry in row 2, column 1?
Only the (2,1) entries of A and B are needed: 3 and 5.
Row 2, column 1 of A is 3 and of B is 5. So the entry is 2⋅3−3⋅5=6−15=−9. Addition and scaling act on each position separately; no other entry matters.
Functions. Let V be the set of all real functions on [0,1]. Define f+g by (f+g)(t)=f(t)+g(t), and af by (af)(t)=af(t). Each axiom holds because it holds for the numbers f(t) at every t. The zero vector is the function that is 0 everywhere.
Watch out· Each vector is a whole function
In a function space, one vector is a whole function: the entire graph. Spagnolie underlined this. The number f(0.3) is one value of one vector. It is a number, and the vectors of this space are functions.
Your answerIn the space of real functions, let f(t)=t2+1 and g(t)=3t. The vector 2f−g is itself a function, defined point by point. What is its value at t=2?
Find f(2) and g(2) first.
(2f−g)(2)=2f(2)−g(2)=2⋅5−6=4. Scaling and adding functions means scaling and adding their values at each t.
Quick checkIn the vector space of all real functions on [0,1], which of these is a vector?
A vector is an element of the space, and the elements of a function space are functions. f(0.3) is one number read off from one vector, and 0.3 is just an input.
Polynomials of degree at most n. Write Pn for these: polynomials c0+c1t+⋯+cntn, including the zero polynomial. A sum of two of them still has degree at most n, and so does a scalar multiple. So Pn is a subspace of the function space.
Worked example
Is the line {(x,y):y=2x} a subspace of R2? Is the line y=2x+1?
Solution.
Zero vector.(0,0) satisfies 0=2⋅0, so it is on the first line. The fastest first test: every subspace contains O.
Addition, with arbitrary points. Two points on the line look like (p,2p) and (q,2q). Their sum is (p+q,2p+2q)=(p+q,2(p+q)), which has the form (number, twice that number). Closure must be shown for ANY two points, so we name them with letters, not numbers.
Scaling.a(p,2p)=(ap,2(ap)), again on the line. Closure under scalar multiplication.
The second line.(0,0) does not satisfy 0=2⋅0+1. One failure is enough to say no.
Answer.y=2x is a subspace. y=2x+1 is not: it misses the origin.
Quick checkWhich of these is a subspace of R3?
The first misses O (its right side is 1, not 0). The third is closed under addition but not under scaling by −1. The second is a line through the origin: both conditions are linear and homogeneous, so sums and multiples keep x=0 and y=z.
Worked example
Do the polynomials of degree exactly 3 form a vector space?
Solution.
Look for a pair whose sum leaves the set. Take p(t)=t3+t and q(t)=−t3. Both have degree exactly 3. Adding can cancel the top term, so try a pair whose t3 terms cancel.
Add them.p+q=t, which has degree 1. So the sum is outside the set.
Conclude. Closure under addition (axiom 1) fails. One counterexample is enough.
Answer. No. (The zero polynomial is missing too.) Compare: the polynomials of degree AT MOST 3 do form a vector space, P3, because cancelling the top term only lowers the degree, and lower degrees are allowed.
Worked example
Is the first quadrant {(x,y):x≥0,y≥0} a subspace of R2?
Solution.
Zero vector.(0,0) has 0≥0 and 0≥0. In the set. Passing this test proves nothing yet; it only fails to rule the set out.
Addition. If x1,y1,x2,y2≥0, then x1+x2≥0 and y1+y2≥0. Closed. Sums of non-negative numbers are non-negative.
Scaling. Take a=−1 and the point (1,1): (−1)(1,1)=(−1,−1), not in the quadrant. Scaling allows negative numbers, and they flip the sign.
Answer. Not a subspace: closure under scalar multiplication fails. Compare the union of the two axes in the quick check above: that one fails addition instead. Different sets fail in different places, so check all three.
Worked example
Show that the solutions of x+2y−z=0 and 3x−y+4z=0 form a subspace of R3.
A system of linear equations is homogeneous when every right-hand side is 0. This one is.
Solution.
Zero vector.(0,0,0) gives 0=0 in both equations. Homogeneous systems always have the zero solution.
Addition. Suppose (x1,y1,z1) and (x2,y2,z2) both solve the system. Then (x1+x2)+2(y1+y2)−(z1+z2)=(x1+2y1−z1)+(x2+2y2−z2)=0+0=0, and the second equation works the same way. Regroup the sum into the two original left sides, each of which is 0.
Scaling.ax1+2(ay1)−(az1)=a(x1+2y1−z1)=a⋅0=0, and likewise for the second equation. Factor out a.
Answer. A subspace. Now change a right side to 5. Then (0,0,0) is no longer a solution, so O is missing. Closure fails too: two solutions add up to something with right side 10. Only homogeneous systems give subspaces.
Worked example
Is W={f:f(0)=0} a subspace of the real functions on [0,1]? Is {f:f(0)=1}?
Solution.
Zero vector. The zero function has value 0 at 0, so it is in W. It is not in the second set, since 0=1. The zero vector of a function space is the zero function.
Addition. If f(0)=0 and g(0)=0, then (f+g)(0)=f(0)+g(0)=0. Functions add value by value; that is how f+g is defined.
Scaling.(af)(0)=af(0)=a⋅0=0. Same reason.
Answer.W is a subspace. The second set is not: no zero function, and also (f+g)(0)=2. A condition “equals 0” tends to give a subspace; “equals 1” never does.
Worked example
On R2, keep ordinary addition but define scaling by a(x1,x2)=(x1,ax2). Which of the ten axioms fail?
When an operation is changed, every axiom that uses it has to be tested. Addition is the usual one, so axioms 1, 3, 4 and 5 hold as in R2.
Solution.
Axiom 2 (closure).a(x1,x2)=(x1,ax2) is a pair of reals. Holds. The output is still a list of two real numbers.
Axiom 7.a(bx)=a(x1,bx2)=(x1,abx2)=(ab)x. Holds. Scale twice: only the second entry is multiplied, and it picks up b then a.
Axiom 8.a(x+y)=(x1+y1,a(x2+y2)) and ax+ay=(x1+y1,ax2+ay2). Equal, so holds. Compare both sides entry by entry.
Axiom 10.1x=(x1,1⋅x2)=x. Holds. Multiplying the second entry by 1 changes nothing.
Axiom 9.(a+b)x=(x1,(a+b)x2), but ax+bx=(2x1,(a+b)x2). Take a=b=1 and x=(1,0): the left side is (1,0), the right is (2,0). Fails. The first entry is not scaled, so adding two copies doubles it.
Axiom 6.x+(−1)x=(x1,x2)+(x1,−x2)=(2x1,0), which is not O unless x1=0. Fails. Same cause: the first entry is never flipped.
Answer. Axioms 9 and 6 fail; the other eight hold. So this is not a vector space. One failing axiom is enough, and a single example (x=(1,0) here) shows it.
A preview· Preview: null spaces
“The solutions of a system whose right sides are all zero form a subspace” is the first example of a null space. Chapter 2.3 shows that the null space of every linear map is a subspace, and the reason is the same two lines of algebra.
A strange one: Apostol 1.5 #29. Let V be the positive real numbers. Define the “sum” of x and y to be their ordinary product xy, and “scaling” x by c to be the power xc. All ten axioms hold; the last stretch problem checks them. Here the zero vector, the element that plays the role of O, is the number 1, because the “sum” x⋅1=x. Check it against ‘Scaling by zero’: "0⋅x" here means x0=1, which is indeed this space’s zero vector. The negative of x is 1/x, because the “sum” x⋅(1/x)=1. A vector space can look nothing like arrows, as long as it follows the rules. (Taking log turns this space into R with ordinary operations, because log(xy)=logx+logy and log(xc)=clogx. That is a preview of isomorphism, chapter 2.4.)
Your answerIn this space ('sum' is the product, 'scaling by c' is the power xc), which positive number is the vector 3⋅4, meaning the vector 4 scaled by the scalar 3?
Scaling by c means raising to the power c.
Scaling x by c is defined as xc, so scaling 4 by 3 gives 43=64.
Your answerIn the same space, what is the negative of the vector 8? (It is the vector y with 8+y=O, where 'sum' is multiplication and O is 1.)
Which number multiplied by 8 gives 1?
We need 8⋅y=1 (the 'sum' is the product, and the zero vector is 1). So y=1/8. Check with the formula: (−1)⋅8=8−1=1/8.
Where it is used
Used inside maths· Inside maths: differential equations
The solutions of y′′+y=0 form a vector space. If y1 and y2 are solutions, then (y1+y2)′′+(y1+y2)=(y1′′+y1)+(y2′′+y2)=0, and scaling works the same way. This is why the solutions can be described by a basis. The solution space has dimension 2 (chapter 7.2 proves it), and cos and sin are two independent solutions, so every solution is acost+bsint. MATH 376 used this without ever saying “vector space”. Unit 7 explains it fully.
Used in the real world· Physics: superposition
A guitar string’s displacement u(x,t) (how far the point at position x is from rest at time t) obeys the wave equation utt=c2uxx. Here utt is the second derivative with respect to t and uxx the second derivative with respect to x. It is linear and homogeneous, so its solutions form a vector space. When you pluck a string fixed at both ends and let it go from rest, its motion is a sum of standing waves, the fundamental plus overtones: u=∑kaksin(kπx/L)cos(kπct/L). The mix of coefficients ak is why a guitar and a piano playing the same note sound different.
Noise-cancelling headphones use axiom 6. A microphone records the incoming noise n(t), and the speaker plays (−1)n(t). The two add to the zero function, which is silence.
Used in the real world· AI: words and images as vectors
word2vec (Google, 2013) represents each English word as a vector in R300, learned from billions of sentences. The famous result: the vector king−man+woman lands closest to queen. That calculation uses only the two operations of this chapter. Image models do the same with pictures: a 28 by 28 greyscale digit from the MNIST dataset is a vector in R784, one entry per pixel. Averaging a thousand images of the digit 3 means adding them and scaling by 1/1000.
Traps
Watch out· Check for the zero vector first
Every subspace contains O. A line or plane that misses the origin is never a subspace. A set defined by a condition like "f(1)=1" is never one either, because the zero function has f(1)=0. This was Spagnolie’s test question in Lecture 2.
Watch out· One example proves 'no'; only a general argument proves 'yes'
To show closure fails, one pair of specific elements is enough. To show closure holds, you must take ARBITRARY elements (call them x and y, with nothing assumed beyond membership) and show their sum is in the set. Checking a few examples proves nothing.
Watch out· There is no vector times vector
The axioms never multiply two vectors together. “Scalar multiplication” means number times vector. Products of vectors (dot products, products of matrices or of functions) are extra structure, added later for particular spaces.
Problems
check
Is {(x,y)∈R2:y=−3x} a subspace of R2? Is {(x,y):y=−3x+2}?
Solution
The first is: it contains (0,0), and sums and scalar multiples of points with y=−3x still satisfy y=−3x, because the condition is linear. The second is not: (0,0) does not satisfy 0=−3⋅0+2.
checkSpagnolie, Lecture 2
Is the set of all real functions f with f(1)=1 a vector space under the usual operations?
Solution
No. If f(1)=1 and g(1)=1, then (f+g)(1)=2, so closure under addition fails. Also the zero function is missing.
checkApostol 1.5 #31(a)
On R2, keep ordinary addition but define scaling by a(x1,x2)=(ax1,0). Which axiom fails?
Solution
Axiom 10. 1⋅(1,1)=(1,0)=(1,1). (This was on MATH 375 HW1, and the posted answer key wrongly called it a vector space. When an operation is changed, test every axiom that uses it.)
checkApostol 1.5 #11
Is the set of increasing functions on R a vector space?
Solution
No. If f is increasing and not constant, then (−1)f is decreasing, so closure under scalar multiplication (axiom 2) fails. (If ‘increasing’ means strictly increasing, the zero function is not in the set either, so axiom 5 fails too.)
useApostol 1.5 #4
Show that the set of functions f with 2f(0)=f(1) is a subspace of the space of all real functions.
Solution
The zero function satisfies 2⋅0=0. If 2f(0)=f(1) and 2g(0)=g(1), then 2(f+g)(0)=2f(0)+2g(0)=f(1)+g(1)=(f+g)(1). For a scalar a, 2(af)(0)=a⋅2f(0)=af(1)=(af)(1). So all three checks pass.
use
Which of these are subspaces of the 2 by 2 matrices R2×2? (a) Matrices with trace 0 (the trace is the sum of the diagonal entries). (b) Matrices with determinant 0.
Solution
(a) Yes. The zero matrix has trace 0, and tr(A+B)=trA+trB and tr(aA)=atrA, so trace-0 matrices stay trace 0.
(b) No. [1000] and [0001] both have determinant 0, but their sum is the identity, with determinant 1.
use
Show that the solutions of y′′−3y′+2y=0 form a vector space, and check that et and e2t are in it.
Solution
If y1 and y2 are solutions, then (y1+y2)′′−3(y1+y2)′+2(y1+y2)=(y1′′−3y1′+2y1)+(y2′′−3y2′+2y2)=0+0=0. The same works for ay1. The zero function is a solution. So the solutions form a subspace of the twice-differentiable functions.
For y=et: y′=y′′=et, so y′′−3y′+2y=(1−3+2)et=0. For y=e2t: y′=2e2t and y′′=4e2t, so the left side is (4−6+2)e2t=0.
use
Is the set of real sequences (a1,a2,…) that converge to 0 a vector space? What about those that converge to 1?
Solution
Converging to 0: yes. The limit of a sum is the sum of the limits (0+0=0), and the limit of can is c⋅0=0. The zero sequence converges to 0. (Chapter 1.2 of this book proves these limit laws.)
Converging to 1: no. The sum of two such sequences converges to 2.
proveApostol Thm 1.3(b)
Prove from the axioms that aO=O for every scalar a.
Solution
Let z=aO. By axiom 5, O+O=O. So z=aO=a(O+O)=aO+aO=z+z (axiom 8). Add −z to both sides. The left side becomes z+(−z)=O (axiom 6). The right side becomes (z+z)+(−z)=z+(z+(−z))=z+O=z (axioms 4, 6, 5). So O=z=aO.
proveApostol Thm 1.3(c)
Prove that (−a)x=−(ax) for every scalar a and vector x.
Solution
By uniqueness of negatives, it is enough to show that (−a)x added to ax gives O. Now (−a)x+ax=(−a+a)x=0x=O, by axiom 9 and ‘Scaling by zero’. So (−a)x is the negative of ax.
proveApostol 1.5 #32(d), MATH 375 HW1
Prove: if ax=O, then a=0 or x=O.
Solution
Suppose ax=O. If a=0, we are done. Otherwise a=0, so 1/a is a real number, and we can multiply both sides by it:
x=1x=(a1a)x=a1(ax)=a1O=O.
The steps use axioms 10 and 7, then the hypothesis, then the problem above proving aO=O. So x=O.
prove
Let U and W be subspaces of V. Prove that their intersection U∩W (the vectors in both) is a subspace.
Solution
O∈U and O∈W, since every subspace contains O, so O∈U∩W. If x,y∈U∩W, then x+y∈U because U is closed, and x+y∈W because W is closed. So x+y∈U∩W. In the same way, ax∈U and ax∈W. By the subspace test, U∩W is a subspace.
prove
Prove the one-line subspace test: a non-empty subset S of V is a subspace if and only if ax+y∈S for all x,y∈S and every scalar a.
Solution
If S is a subspace, then ax∈S and so ax+y∈S by closure.
Conversely, suppose the condition holds. Take a=1: then 1x+y=x+y∈S (axiom 10), so S is closed under addition. Next, pick any x∈S (possible because S is non-empty) and take a=−1, y=x. That gives (−1)x+x=x+(−1)x=O (axioms 3 and 6), so O∈S. Finally, with y=O, we get ax=ax+O∈S, so S is closed under scaling. By the subspace test, S is a subspace.
stretchclassic; Axler 1C
Let U and W be subspaces of V. Prove that the union U∪W (vectors in at least one of them) is a subspace if and only if U⊆W or W⊆U.
Solution
If U⊆W, the union is W, a subspace. The case W⊆U is the same.
For the other direction, suppose neither is inside the other. Then there is some u∈U with u∈/W, and some w∈W with w∈/U. Suppose u+w∈U∪W. If u+w∈U, then w=(u+w)+(−1)u∈U, because U is closed under scaling (by −1) and under addition. That contradicts the choice of w. If u+w∈W, then u=(u+w)−w∈W, a contradiction too. So u+w∈/U∪W, and the union is not closed under addition. The two axes in R2 are exactly this situation.
stretchApostol 1.5 #29
For the positive reals with “sum” xy and “scaling” xc, check all ten axioms. What is the “negative” of x? What does axiom 9 say about exponents?
Solution
1: xy>0. 2: xc>0. 3: xy=yx. 4: (xy)z=x(yz). 5: the zero vector is 1, since x⋅1=x. 6: the “negative” of x is (−1)⋅x, which here is x−1=1/x, and x⋅(1/x)=1. 7: (xb)a=xab. 8: (xy)a=xaya. 9: xa+b=xaxb. 10: x1=x.
Axiom 9 is the exponent law xa+b=xaxb. The laws of exponents are the vector-space axioms for this space.
Summary
A vector space is a non-empty set with an addition and a scalar multiplication obeying ten axioms. Its elements are called vectors, whatever they are: arrows, lists, matrices, polynomials, functions, solutions of equations.
The axioms are the familiar rules of adding and scaling arrows, written down so that proofs can cite them.
Facts proved from the axioms hold in every vector space. Examples: the zero vector is unique, negatives are unique, 0x=O, and aO=O.
A subspace is a non-empty subset that is a vector space with the same operations.
Subspace test: contains O, closed under addition, closed under scaling.
The fast “no” is that O is missing. Then look for two elements whose sum leaves the set, or a scaling that does.
Solution sets of homogeneous linear equations, whether algebraic or differential, are subspaces. That is the reason superposition works.
Watch and read
The same ideas explained by someone else. Use these when an explanation here does not land.
CS 240: Sets, the symbols for 'is an element of' and 'for all', and set-builder notation come from CS 240's first chapters. This chapter uses them constantly.
MATH 376: The solutions of a linear differential equation form a vector space. That is why 376 could write every solution as a combination of a few basic ones.
MATH 541: A vector space is the first algebraic structure you meet. Groups, rings and fields (541) are built the same way: a set, some operations, and a list of rules.