Vector spaces and bases
Separate a vector from its coordinates, and discover what a basis actually guarantees.
On this page
The question for today
What you’ll understand
- Test whether a proposed set is a vector subspace.
- Distinguish spanning, independence, and a basis.
- Recover coordinates in an unfamiliar two-dimensional basis.
A pair of numbers can describe a displacement, two sensor readings, or coefficients of a polynomial. The useful common structure is the ability to add objects and scale them consistently. A vector space captures that structure without insisting that every vector be a physical arrow. This distinction becomes essential when quantum states are functions and machine-learning inputs have thousands of features: the coordinate list is a description of an object relative to a chosen basis.
A space must survive the allowed operations
Work over the real numbers first. A vector space has an addition operation and multiplication by real scalars, obeying the familiar rules for associativity, distributivity, a zero vector, and additive inverses. A subspace of an existing vector space contains zero and is closed under addition and scalar multiplication. The line passes these tests. The parallel line fails immediately because it excludes the origin.
The objects need not be arrows. Polynomials of degree at most two form a three-dimensional real vector space: adding two such polynomials or scaling one never introduces a cubic term. Polynomials of degree exactly two do not form a space, since subtracting a polynomial from itself produces zero. Asking what happens under cancellation is often faster than trying to memorize a catalogue of examples.
A basis gives existence and uniqueness
A collection spans a space if it can express every vector in that space. It is linearly independent if the only combination producing zero has every coefficient equal to zero. A basis satisfies both conditions. Spanning guarantees that coordinates exist; independence guarantees that they are unique. Three arrows in a plane can span the plane, but their redundant descriptions cannot provide a unique three-coordinate address.
The number of vectors in a basis is the dimension of a finite-dimensional space. The standard basis of the plane is convenient, not mandatory. Choosing two tilted, nonparallel arrows changes the coordinate numbers without changing the underlying displacement. When checking independence, keep the ambient space explicit: two independent vectors form a basis of their span, but they cannot span all of three-dimensional space.
Geometry is extra structure
A vector space alone does not specify angles or lengths. An inner product supplies that additional structure. For ordinary real coordinate vectors, the dot product produces lengths and tests orthogonality. An orthonormal basis consists of mutually perpendicular unit vectors; it makes each coordinate a simple dot product. A general basis is still valid, but coordinates then require solving simultaneous equations rather than merely reading projections.
This distinction prevents two later confusions. Quantum amplitudes use complex inner-product spaces, so conjugation enters the geometry. Machine-learning features can be expressed in any basis, but distances and regularization depend on the metric and scaling selected. We are establishing finite-dimensional language here; completeness, infinite-dimensional function spaces, and the quantum measurement rule require additional lessons rather than following automatically from an arrow drawing.
Work it through
Give one displacement a different address
Express in the basis and .
Write the representation before guessing coefficients: , so its ordinary coordinates are .
Match components to obtain and . Adding eliminates , giving and hence .
Substitute into the first equation to get . Reconstruct to check both components.
The new coordinates are (3,1). The displacement remains (4,2) in the standard basis; no physical motion occurred when its coordinate description changed.
The living notebook
Explore the model
Interactive lab · vectors
Resolve a vector in a fixed basis
Change angle and magnitude to inspect one vector and its x/y projections in the standard basis. Pause and predict the component signs before stepping. The projections supply coordinates in this orthonormal basis; the lab does not change to arbitrary tilted bases or test independence.
- x component
- 1.393
- y component
- 0.975
- Magnitude
- 1.7
Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forOne vector has coordinates relative to a chosen basis; its components depend on both direction and magnitude.
Pause & reason
Check your understanding
Your turn
Try it yourself
Are and a basis for ? Describe their span.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Ask whether one vector is a scalar multiple of the other, then inspect the zero combination.
Compare with the solution
They are dependent because uses nonzero coefficients. Their span is only the line , so they neither supply unique two-coordinate descriptions nor reach the whole plane. A single nonzero vector from the pair is a basis of that line.
Keep the idea
Take it with you
- A subspace is closed under linear combinations and includes zero.
- A basis spans without redundancy, giving unique coordinates.
- Lengths and angles require an inner product in addition to vector-space operations.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.