Linear dependence, independence, and basis
Hand someone three vectors in and ask: do all three genuinely point in "new" directions, or is one of them secretly built from the other two? That single question — redundant, or independent? — is the seed of some of the most load-bearing machinery in linear algebra. Once you can answer it reliably, you can also answer the next two questions that follow from it: what is the full set of points these vectors can reach (their span), and what is the smallest, most efficient list of vectors — a basis — needed to describe that reach exactly once each? This node makes all three ideas precise and mechanical: a determinant or rank computation for independence, a row-reduction for span and basis, and a single number, the dimension, that every basis of a space agrees on.
A set of vectors is linearly independent exactly when the only way to combine them to zero is trivially, which for vectors in reduces to checking , and a basis is a minimal independent set whose span is the whole space, with every basis of a given space sharing the same size, its dimension.
The core idea
Dependence and independence. A set in a vector space is linearly dependent if some non-trivial combination of them vanishes — that is, scalars , not all zero, exist with
where: are scalars and are the given vectors. If the only solution to this equation is (the trivial one), the set is linearly independent — no vector in it can be written in terms of the others. This is the entire content of the topic: dependence means "at least one vector is redundant," independence means "none of them is."
Span. The span of a set of vectors is every linear combination you can build from them,
where: the range over all real scalars. The span is always a subspace of — a line through the origin if there is really only one independent direction among the , a plane if there are two, and so on.
Basis and dimension. A basis of is a set that is simultaneously linearly independent and spans . Every vector of then has a unique expression as a combination of basis vectors — uniqueness is exactly what independence buys you, and coverage is what spanning buys you. Every basis of a given finite-dimensional turns out to have the same number of vectors, called : for instance (standard basis ) and (basis ). Two facts tie everything together: an independent set can never have more than vectors, and a spanning set can never have fewer.
The determinant/rank test for independence
The goal of this derivation is to justify, with nothing beyond solving a homogeneous linear system, why testing vectors for independence in can be reduced entirely to a single number — the determinant of the matrix they form — and why the more general case of vectors in any dimension reduces to a rank computation instead, since that reduction is exactly the tool used in every worked problem on this topic.
Step 1. Assemble the vectors as the columns of a matrix. If , form , an matrix. The dependence equation is then exactly the matrix equation , where — a linear combination of columns is precisely what matrix-vector multiplication computes.
Step 2. Translate independence into a statement about solutions. The set is linearly independent exactly when has only the trivial solution . From the theory of linear systems, a homogeneous system has only the trivial solution precisely when the columns of have no free variable after row reduction, which happens exactly when , the number of columns.
Step 3. Specialize to the square case. When , is a square matrix, and (full rank) is equivalent to being invertible, which is equivalent to . So for exactly vectors in , independence collapses to the single check ; a zero determinant certifies dependence and simultaneously guarantees a non-trivial solution exists, which row reduction then extracts explicitly.
Step 4. Read off the general-shape cases. If (more vectors than dimensions), the columns can never all be independent, since rank is capped at — any or more vectors in are automatically dependent. If , independence is possible but does not by itself give a basis of , since the set cannot span the whole space; rank must still equal for independence to hold.
Worked example
Problem. Determine whether , , are linearly independent in , and if not, find the explicit dependency relation.
Step 1. Since there are exactly three vectors in , form the square matrix of columns and compute its determinant:
Expanding along the third column, .
Step 2. Since , the set is dependent (by Step 3 of the derivation above). To pin down the actual relation, row-reduce to solve :
Step 3. Row 2 gives . Setting gives ; row 1 then gives .
Step 4. Check: . Confirmed: , so the vectors are dependent and do not form a basis of .
Competitive stretch
The same row reduction found more than the yes/no answer — it recovered the exact non-trivial relation between the vectors, which is the reduced echelon form's real payoff. If instead you were handed a fourth vector and asked for a basis of , the same machinery applies: stack them as rows, row-reduce, and discard any row that becomes zero (redundant) — the surviving non-zero rows form a basis, and their count is the dimension.
Common traps
- Testing independence "by eye" — checking that no vector is an obvious multiple of another is not enough once there are three or more vectors; example above has no pairwise multiples yet is still dependent.
- Confusing "spans " with "is a basis of " — a spanning set can have more vectors than and still be redundant; a basis is the minimal spanning / maximal independent case.
- Forgetting the size cap — any set of more than vectors in is automatically dependent, no computation needed.
- Sign slips while back-substituting the free variable during row reduction — always verify the recovered combination actually sums to .
Ask the tutor: not sure whether your set of vectors is independent, or want help pulling a clean basis out of a messy spanning set — ask the AI tutor to walk through the row reduction with you.
If det A turns out to be zero, does that tell me which vector is the redundant one?
Not by itself — a zero determinant only certifies that some non-trivial dependency exists among the columns. To find out exactly which combination vanishes, you have to go one step further and row-reduce to solve , as in the worked example. The resulting free variable hands you the explicit relation, and from it you can see which vector could be dropped while keeping the same span.
Why does rank equal to the number of vectors mean independence, rather than rank equal to n?
Rank counts how many independent directions the columns of actually produce. If you have vectors and , none of the columns is expressible via the others — that is independence, regardless of the ambient dimension . Rank equal to is a different, stronger statement: it says the columns span all of . The two coincide only when , which is exactly the square case where independence and spanning become the same yes/no question, testable by a single determinant.
Is there a shortcut for spotting a basis without full row reduction?
For small, simple examples yes: if you already know and you can produce vectors that you can show are independent (e.g. a square matrix with visibly nonzero determinant, or vectors that are pairwise non-parallel and not coplanar), independence plus the right count automatically gives a basis — you don't need to separately check spanning. This "count trick" is a direct consequence of the fact that an independent set of exactly vectors must also span . For anything less clean, row reduction is the reliable method.