The Language of Vector Spaces
The span of a set of vectors is everything reachable by linear combinations of them. The set is independent when no member is a combination of the others. A basis is both independent and spanning: every vector then has exactly one coordinate representation, and every basis of the space has the same size, its dimension.
The two conditions pull in opposite directions. Spanning needs enough vectors to reach everything; independence forbids any redundant ones. In , the pair fails to span (both lie on one line), the triple spans but is dependent (the third is the sum of the first two), and is just right. A basis is a spanning set with nothing wasted, which is why its size measures the space.
Each independent linear condition on removes one dimension: the hyperplane in has dimension . Solution sets of homogeneous systems are subspaces — this is where geometry and equations meet.
Why each condition costs one dimension: the solution set of homogeneous equations in unknowns is a null space, and rank–nullity gives its dimension as . If the conditions are independent, the rank is and the dimension is . For the hyperplane , three variables are free and the fourth is determined, so a basis is , , .
To write in the basis : solve , , giving , . Changing basis is solving a linear system — and orthogonal bases make it a pair of one-line dot products.
The coordinates are directions for a walk: five steps along , then two along . On the grid built from the new basis, is the lattice point five lines over and two lines across. Check: ✓. The point never moved; only the ruler changed.
Polynomials, audio signals, quantum states, and solutions of linear ODEs all form vector spaces — the span/basis/dimension language transfers wholesale. That is why "the solution space of is 2-dimensional with basis " is a sentence, not an analogy: the differential equations course runs on this chapter.
What is the dimension of the space of matrices with trace ? Give a basis.
Show the answerHide the answer
All matrices form a space of dimension (one free number per entry). Trace zero is one linear condition, , so the dimension drops to . To get a basis, solve the condition: , with free, so every such matrix is
These three matrices span, and they are independent because each has a where the others have . So they form a basis, and the dimension is .
Subspaces: Testing and Building
A subset of a vector space is a subspace when it contains and is closed under the two operations: implies , and for every scalar . The fastest way to prove a set is a subspace is to exhibit it as a span or as the solution set of homogeneous linear equations; the fastest way to disprove it is one explicit failure.
The conditions are exactly what linear combinations need: if sums and multiples stay inside, every combination stays inside, so is a vector space in its own right and span, basis and dimension all make sense for it. Solution sets of pass automatically, because and . A nonzero right-hand side breaks the very first condition: .
Show that is a subspace of and find a basis. It is the null space of the matrix , so it is a subspace. To find a basis, solve the equation for its pivot variable: , with and free.
Every element is . So and span . They are independent — look at the second and third coordinates: and can be read off directly, so the only combination giving has . Hence they form a basis and , as "three dimensions minus one condition" predicts. Check that both lie in : ✓ and ✓.
Is (the first and third quadrants, axes included) a subspace of ? Is the line ? contains and is closed under scaling ( has ), so the test comes down to sums.
Take and , both in ( and ). Their sum has , so is not closed under addition and is not a subspace — one counterexample settles it. The line fails even sooner: is not on it, since . A line is a subspace of only if it passes through the origin.
Let be the polynomials of degree at most with . It is a subspace: if and , then and . Write ; the condition is one linear equation, .
The full space has dimension and we impose one condition, so expect dimension . Solve for : then . So spans ; the two are independent since neither is a multiple of the other (they have different degrees). So . The factor theorem says the same thing another way: exactly when , and the linear factor has two free coefficients.
"Two conditions in leave dimension " is only true when the conditions are independent. The set where and is a plane, dimension : the second equation is twice the first and cuts nothing. Row reduce the conditions first; the dimension is minus the rank, not minus the number of equations written down.
Find a basis and the dimension of the subspace of defined by and .
Show the answerHide the answer
The conditions are independent (neither equation is a multiple of the other), so expect dimensions. Solve: the second equation gives ; call it . Let . The first equation then gives . So
The vectors and span the subspace and are independent (look at the first and third coordinates), so they are a basis and the dimension is . Check the first: and ✓.
Change of Basis
Put the basis vectors as the columns of . If are the coordinates of in that basis, then
converts basis coordinates to standard ones; goes the other way.
The first formula is just the column picture of : a matrix times a vector is the combination of the columns weighted by the vector's entries. is invertible precisely because its columns form a basis — independent columns mean no nonzero combination vanishes, so has no null space. Going from standard coordinates to -coordinates means solving , which is the same as multiplying by .
Find the coordinates of in the basis , . Here with , so .
Multiply: . So . Check: ✓. On the grid drawn from and , is the lattice point two lines over and three across. Unlike the orthogonal basis earlier, here, so the one-dot-product shortcut does not apply; the inverse matrix does the work instead.
Write in the basis . We need . Setting kills the last two terms, so .
Differentiate both sides: , and at , . Differentiate again: , so . So and the coordinate vector is . Check by expanding: ✓. This is the Taylor expansion at — Taylor coefficients are coordinates in a shifted basis.
With and , computing and calling it the coordinates is the classic slip. Test it: , not . takes coordinates to vectors, so from a vector back to coordinates needs . The check "rebuild from the coordinates" catches the mistake every time.
Find the coordinates of in the basis , , and check them.
Show the answerHide the answer
has , so . Then . Check: ✓. Negative coordinates are fine; they mean walking backwards along .
Proofs & Why It Matters
Suppose in a basis . Subtract: . Independence forces every coefficient to vanish: . Existence comes from spanning, uniqueness from independence — a basis delivers both at once.
The exchange argument: if is independent and spans, insert the s one at a time into the spanning set, each time ejecting some (writing the new in the current spanning set must use a surviving , which can then be solved for). The process never runs out of s to eject, so . Applying this both ways to two bases gives and : dimension is well-defined.
Going Deeper: Explanations & Worked Problems
To decide whether vectors are independent, ask whether forces all — but that is a homogeneous linear system in the , with the vectors as columns.
Row reduce: if every column earns a pivot, only the zero combination works — independent; a pivotless column means a free variable, hence a nonzero combination summing to zero — dependent, and back-substitution hands you the actual dependence. The same computation delivers dimension: the pivot columns form a basis of the span, so . This is the great economy of the subject — span, independence, basis, dimension, and solvability are all read off one echelon form.
Test .
Step 1 — put them as columns and reduce: .
Step 2 — read: pivots in columns 1, 2 only — Dependent, dimension of the span is .
Step 3 — recover the dependence: the free column says is free; rows give and ; take : ✓ — i.e. , the hidden relation, now explicit.
Step 4 — basis: keep the pivot columns ; they span the same plane with nothing wasted.
Write in the basis , . The system route: means and ; adding, , ; subtracting, .
The orthogonal shortcut: because , each coefficient is an independent projection: and — no system solved, no interaction between coordinates. Check: ✓. This is precisely why orthogonal bases (and eventually Fourier series) are prized: coordinates decouple.