What is a vector space?
Last updated: 2026-11-26
A vector space is a set of objects that you can add together and multiply by numbers, with the results staying in the set and the usual rules of arithmetic holding. The objects are called vectors, whatever they are: arrows, lists of numbers, matrices or polynomials.
Start learning No account needed
1. The ten properties
Beezer, A First Course in Linear Algebra defines a vector space as a set with two operations, vector addition and scalar multiplication, that satisfies ten properties. In plain words:
| Group | Properties |
|---|---|
| Staying inside | A sum of two vectors is in the set. A scalar times a vector is in the set. |
| Addition behaves | Order does not matter. Grouping does not matter. There is a zero vector. Each vector has an additive inverse. |
| Scaling behaves | Scaling twice equals scaling by the product. Scaling distributes over a sum of vectors, and over a sum of scalars. Scaling by 1 changes nothing. |
Beezer states the definition with complex numbers as scalars and notes that scalars can come from other fields, such as the real numbers, the rational numbers or the two-element set {0, 1}. Whether a set is a vector space depends on its operations and its scalars, so name all of them.
2. The shortcut for subsets of R^n
Often you are asked about a part of a space you already trust, such as a set of points in the plane. Margalit and Rabinoff, Interactive Linear Algebra define a subspace of R^n as a subset that contains the zero vector, is closed under addition, and is closed under scalar multiplication. A subspace is a vector space with the same operations. The rules about order, grouping and scaling hold for its vectors because they hold in all of R^n, and the additive inverse of v is (−1)v, which closure under scaling keeps in the set. So the three conditions are what you check. The solutions of Ax = 0, for an m by n matrix A, form one such subspace of R^n; see what is a null space.
3. A worked example: four sets in the plane
Use real scalars and the usual operations. The checks are in scripts/what-is-a-vector-space-worked-example.py.
| Set | Contains zero | Closed under addition | Closed under scaling | Verdict |
|---|---|---|---|---|
| Line y = 2x | yes | yes | yes | vector space |
| Line y = 2x + 1 | no | no | no | not one |
| First quadrant, x ≥ 0 and y ≥ 0 | yes | yes | no | not one |
| Both axes together | yes | no | yes | not one |
The line y = 2x. Two points on it are (a, 2a) and (b, 2b). Their sum is (a + b, 2(a + b)), on the line, and c times (a, 2a) is (ca, 2ca), also on the line. The point (0, 0) is on it.
The line y = 2x + 1. The zero vector is missing, which settles it. You can also see (0, 1) + (1, 3) = (1, 4), but 2 × 1 + 1 = 3.
The first quadrant. −1 times (1, 2) = (−1, −2), which has left the set.
Both axes. (1, 0) + (0, 1) = (1, 1), which is on neither axis.
To show that a set fails, one specific counterexample is enough. To show that it passes, argue with general letters, as for the line y = 2x. A few numbers that work do not prove it.
Output from the script:
line y = 2x: zero yes, addition yes, scaling yes
line y = 2x + 1: zero no, addition no, scaling no
first quadrant: zero yes, addition yes, scaling no
both axes: zero yes, addition no, scaling yes
(0, 1) + (1, 3) = (1, 4), but 2 x 1 + 1 = 3
-1 times (1, 2) = (-1, -2)
(1, 0) + (0, 1) = (1, 1)
question 1: (3, -3) + (-5, 5) = (-2, 2), and -2 times (3, -3) = (-6, 6)
question 2: 0.5 times (1, 0) = (0.5, 0)
question 3: (x^2 + x) + (-x^2) = x
4. Vector space, field and affine space
A field is where the scalars come from. The vector space definition tells you how to add two vectors and how to scale a vector by a scalar, and it asks for no way to multiply two vectors together. The real numbers can play both parts, as a vector space over themselves. The dot product is a further operation on R^n that takes two vectors and returns a number. Maps between vector spaces that keep sums and scalar multiples are called linear transformations. For describing a space by a few of its vectors, see span and basis.
An affine space is a relative of a vector space with no special starting point. Wikipedia’s article says an affine space has no distinguished origin and no predefined way to add points or multiply them by a number, while differences between points do form vectors. The line y = 2x + 1 is a picture to keep in mind: it is not a subspace of the plane, but the step from one of its points to another runs along the line y = 2x.
5. A common misconception: containing zero is enough
A missing zero vector rules a set out. Having it does not rule the set in: the first quadrant and the pair of axes both contain zero and both fail.
6. Test yourself
Decide each one on paper, with a proof or a counterexample, then open the answer.
Question 1. The points of the plane with x + y = 0, with real scalars.
Answer to question 1
A vector space. It contains (0, 0), and sums and multiples keep x + y = 0. For instance (3, −3) + (−5, 5) = (−2, 2), and −2 times (3, −3) = (−6, 6). In general letters, (a, −a) + (b, −b) = (a + b, −(a + b)) and c times (a, −a) is (ca, −ca), both of which satisfy x + y = 0.
Question 2. The points with integer coordinates, with real scalars.
Answer to question 2
Not a vector space: 0.5 times (1, 0) = (0.5, 0).
Question 3. The polynomials of degree exactly 2.
Answer to question 3
Not a vector space: (x^2 + x) + (−x^2) = x, which has degree 1. Polynomials of degree at most 2, including the zero polynomial, do form one.
If the abstraction is what is getting in the way, see why linear algebra is so hard.
What the sources found, and their limits
Beezer, A First Course in Linear Algebra, section "Vector Spaces." Gives the ten-property definition, examples including matrices of a fixed size, and the remark on other fields of scalars. Limits: a textbook; the grouping into three rows and the wording are ours. Source: linear.pugetsound.edu, vector spaces, read on 2026-11-25.
Margalit and Rabinoff, Interactive Linear Algebra, "Subspaces." Defines subspaces of R^n by three conditions and lists non-examples, including a line missing the origin and the first quadrant. Limits: covers subsets of R^n; our line equations and self-test are ours. Source: textbooks.math.gatech.edu, subspaces, read on 2026-11-25.
Wikipedia, "Affine space." Describes how an affine space differs from a vector space. Limits: a general reference article; we read it for that contrast, and the line picture is ours. Source: en.wikipedia.org, affine space, read on 2026-11-25.
Wikipedia, "Examples of vector spaces." Lists a field as a vector space over itself. Source: en.wikipedia.org, examples of vector spaces, read on 2026-11-25.
How Professor Turing helps
Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.
Bring a set you are testing. Its first reply asks about your attempt, such as how far you got and what you tried there, before it teaches anything. You must be 18 or older. Guest conversations are deleted 7 days after your last activity; with an account they are kept while the account is active.
FAQ
Is every field a vector space? A field is a vector space over itself, using its own addition and multiplication. A vector space in general has no multiplication between two vectors, so it need not be a field.
How do I prove a set is not a vector space? Find one property that fails and give specific elements that show it, such as two vectors in the set whose sum is outside it.
Start with what you're working on
Tell the tutor which set you are testing and let it ask you the questions.
Start learning No account needed
See also: eigenvalues and eigenvectors · all study guides