Linear Algebra I · Independence, span, bases, and dimension
Prerequisites: the two previous Linear Algebra lessons—Gaussian elimination, pivots, free variables, and the column interpretation of Ax. All scalars here are real. Goals: prove or disprove independence, describe a span, extract a basis from original columns, calculate dimension, and explain unique coordinates. Study the definitions and proofs, work the examples again, complete the downloadable or browser lab, then attempt practice and the assessment before opening the solutions.
Span and subspaces
For vectors v₁,…,vₙ in ℝᵐ, their span is every vector c₁v₁+⋯+cₙvₙ with real coefficients. It contains zero and is closed under addition and scalar multiplication: adding two combinations adds their coefficients, and scaling a combination scales its coefficients. These facts make the span a vector subspace of ℝᵐ. A nonempty set with those closure properties must contain zero; a line or plane displaced from the origin is not a subspace. A spanning list may contain redundant vectors.
Independence is a test of the whole list
The list is linearly independent when c₁v₁+⋯+cₙvₙ=0 forces every cⱼ=0. Otherwise it is dependent: at least one coefficient in a zero combination is nonzero. Such a relation expresses a redundant vector in terms of the others: if cₖ≠0, isolate vₖ=−∑ⱼ≠ₖ(cⱼ/cₖ)vⱼ. Conversely, any expression of one listed vector in terms of the others yields a nontrivial zero relation. A list containing the zero vector is dependent—put coefficient 1 on that vector and 0 on the rest.
Put the vectors in the columns of A and solve Ac=0, not Ac=b for a chosen nonzero b. Independence means no free variables, or a pivot in every column. If n>m, there cannot be n pivots, so any n vectors in ℝᵐ are dependent. Checking that no pair is a scalar multiple is sufficient for a pair of nonzero vectors, but is not sufficient for a longer list.
Bases, dimension, and unique coordinates
A basis of a subspace S is an independent list that spans S. Spanning guarantees that every b in S has coordinates in this basis; independence guarantees those coordinates are unique. Proof: if two coefficient lists give b, subtract them. Their difference gives a zero combination, so independence makes every difference zero. A basis need not be orthogonal or consist of unit vectors. Once its order is fixed, coordinates refer to that order.
Dimension is the number of vectors in any basis. Why is it well-defined? If p vectors span S, express any q independent vectors of S using those p vectors. When q>p, the p×q coefficient matrix has a nonzero homogeneous solution, which would give a nontrivial dependence among the q vectors—a contradiction. Thus q≤p. Applying this both ways to two bases proves equal sizes. The standard coordinate vectors form a basis of ℝᵐ, so its dimension is m. The zero subspace has the empty basis and dimension 0; the one-vector list containing zero is not a basis.
Extract a column-space basis using pivots
Row-reduce A, record the pivot-column indices, and choose those columns from the ORIGINAL A. They form a basis for its column space; its dimension is rank(A), the number of pivots. Reason: reversible row operations preserve every relation Ac=0. In echelon form the pivot columns are independent and every other column is a combination of them. Reversing the row operations transfers those same relations to the original columns. Row reduction generally changes the column space itself, so using columns of the reduced matrix as a basis for the original space is unsafe.
The nullspace of A is the set of all solutions c of Ac=0. If A has n columns and rank r, Ac=0 has n−r free variables. Assigning each free variable 1 in turn and the others 0 produces independent special solutions spanning the nullspace. Hence dim(null A)=n−r, while dim(col A)=r. These are different spaces: the first lies in ℝⁿ and the second in ℝᵐ. A small residual from rounded measured data does not establish exact dependence; the lab below uses exact symbolic input values.
Worked examples
- Redundancy in ℝ²: let u=(1,2), v=(2,4), w=(0,1). With these as columns, A=[1 2 0; 2 4 1]. Row 2 minus twice row 1 gives [0 0 1], so pivot columns are 1 and 3. The original columns u,w are a basis of ℝ² and the rank is 2. The full list is dependent because −2u+v=0. For target (3,7), coordinates in ordered basis (u,w) are (3,1): 3u+w=(3,7).
- A plane in ℝ³: u=(1,0,1), v=(0,1,1), w=(1,1,2). Since w=u+v, only u and v are needed. Their first two coordinates force the coefficients in su+tv=0 to be s=t=0, proving independence. Every point in their span is (s,t,s+t), exactly the plane z=x+y, of dimension 2. Target (2,−1,1)=2u−v belongs; (2,−1,2) does not because 2≠2+(−1).
- Pairwise checking fails: a=(1,0), b=(0,1), c=(1,1). No pair is parallel, but −a−b+c=0. Thus the list is dependent. The first two already form a basis of the plane; adding a third vector cannot increase its dimension beyond 2.
- Extend a basis: keep u,v from example 2 and add e₃=(0,0,1). Every (x,y,z) equals xu+yv+(z−x−y)e₃, so the list spans ℝ³. A zero combination forces its first coefficient, second coefficient, then third coefficient to be zero, so it is independent. This is a nonorthogonal basis of ℝ³.
Common mistakes
A nonzero vector list need not be independent. Spanning ℝ³ requires three independent directions, not merely three-component vectors. State which space a basis is for: two vectors can be a basis of a plane in ℝ³ without being a basis of ℝ³. A spanning list can be shortened by removing redundant vectors; removing an independent direction changes the span. Use pivot indices to select original columns, and keep basis order when reporting coordinates.
Practice
- Warm-up: is the list (1,2),(−3,−6) independent? Give a nontrivial zero relation and a basis of its span.
- For columns a=(1,0,1), b=(2,0,2), c=(0,1,1), find pivot indices, a column-space basis, rank, and nullspace dimension.
- Find coordinates of (3,1,4) in ordered basis u=(1,0,1), v=(0,1,1). Does (3,1,5) have coordinates in this basis?
- Challenge: prove any four vectors in ℝ³ are dependent. Explain why three nonzero vectors in ℝ³ are not automatically a basis.
Fully worked solutions
- With u=(1,2) and v=(−3,−6), 3u+v=0 has nonzero coefficients. The list is dependent; the single nonzero vector u is a basis of its line, of dimension 1.
- A=[1 2 0; 0 0 1; 1 2 1]. Row 3 minus row 1 minus row 2 is zero. Pivots are columns 1 and 3. Original columns a,c form a basis; rank=2. With three columns, nullspace dimension=3−2=1, with special solution (−2,1,0).
- su+tv=(s,t,s+t). The first two coordinates give s=3,t=1 and the third is 4, so coordinates are (3,1). Target (3,1,5) violates z=x+y and is outside the span, so no coordinates exist in this basis.
- A 3×4 matrix has at most three pivots, so Ac=0 has a free variable and a nonzero solution. Its columns are dependent. Three nonzero vectors might still lie on one line or plane, so independence must also be proved.
Assessment · Open book · 18 points
Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 40–60 minutes; this is a self-study guide, not a timed restriction.
- For a=(1,1,0), b=(2,2,0), c=(0,1,1), row-reduce the column matrix. Find a basis of its column space and its dimension, plus a nontrivial dependence relation. (5)
- Express (3,5,2) in ordered basis (a,c). Decide whether (3,5,3) lies in the same span. (3)
- A real 4×6 matrix has rank 3. State its column-space dimension, nullspace dimension, whether its columns are independent, and whether they span ℝ⁴. Justify each answer. (4)
Application and reasoning · 6 points
A=[1 2 1;1 2 2;0 0 1] has RREF [1 2 0;0 0 1;0 0 0]. A student uses the pivot columns of the RREF as a basis for col(A). Repair the basis (2), disprove the student’s answer with a specific vector (2), and find a nonzero vector in null(A) (2).
Complete answer key and scoring rubric
- A=[1 2 0; 1 2 1; 0 0 1]. Row 2 minus row 1 gives [0 0 1]; subtract it from row 3 to get zero (2). Pivot columns 1,3 select original a,c as a basis (1), dimension 2 (1). Relation −2a+b=0 proves dependence (1).
- sa+tc=(s,s+t,t). Thus s=3,t=2 gives (3,5,2), so coordinates are (3,2) (2). Every target obeys y=x+z; (3,5,3) fails because 5≠6 (1).
- Column-space dimension=3 (one per pivot); nullspace dimension=6−3=3 (free variables); columns are dependent since not every column pivots; they do not span ℝ⁴ since rank 3<4. Award 1 for each justified statement.
Application and reasoning · 6 points
Use original columns 1 and 3: (1,1,0),(1,2,1), dimension 2 (2). Their span satisfies y=x+z, whereas reduced pivot column (0,1,0) violates it (1 constraint, 1 counterexample). RREF gives x₃=0,x₁=−2x₂, so (−2,1,0) is a nonzero null vector; direct multiplication verifies zero (1 derivation, 1 check).
Scoring: existing questions 12 + application problem 6 = 18 points. Award the stated method and reasoning marks, not only final answers.
Download the basis-and-rank lab
Download the exact-arithmetic Python lab
Objective: determine when u=(1,0,1), v=(0,1,1), and w=(1,1,k) change from a redundant spanning list of a plane to a basis of ℝ³. Install free Python 3 from its official site for Windows, macOS, or Linux. Save the file, open a terminal in its folder, and run the commands below; on Windows replace python3 with py -3 if needed. It uses standard-library fractions, needs no account or additional packages, and runs offline after installation. The parameter k is between −4 and 6; rational input such as 5/2 is accepted.
python3 ee-basis.py 2
python3 ee-basis.py 3
python3 ee-basis.py 0
python3 ee-basis.py 5/2
Procedure: place u,v,w in columns, predict the last pivot after R₃←R₃−R₁−R₂, then run each case. Record the reduced matrix, pivot indices, original-column basis, rank, and nullspace dimension. Repeat in the browser lab. Expected: last pivot k−2; at k=2 rank 2, pivots 1,2, basis u,v, and relation −u−v+w=0. Every other tested k gives rank 3, pivots 1,2,3, and a basis of ℝ³. Question: does changing k from 2 to 2.5 create a new exact direction? Yes, because k−2=0.5≠0. This exact-rank result is not a claim about reliable independence in noisy measurements.
Free primary readings and software
Read MIT’s independence/basis summary pp. 1–3, then use its problems and solutions as extra practice. The column-space session clarifies why the target space matters. The free lecture summaries and videos suffice; no purchase of the suggested textbook or university login is required.
- MIT 18.06SC · Independence, Basis and Dimension: lecture, summary pp. 1–3, problems and solutions
- MIT 18.06SC · Column Space and Nullspace: subspaces and homogeneous solutions
- Python Software Foundation · Free Python 3 downloads
- Python documentation · Exact rational arithmetic with fractions
Basis lab · When does a third direction appear?
Find pivot columns, a basis, rank, and nullspace dimension for u=(1,0,1), v=(0,1,1), w=(1,1,k).
Free tool built into this page. Use it in your browser without an account or download.
Procedure
Predict the reduced last row, then try k=2,3,0,2.5. Compare with the downloaded lab. At k=2 explain why the three columns are not a basis of R3, and name a basis of their actual span.
Expected results and answer check
The last pivot is k−2. Only k=2 loses the third pivot: rank 2, nullspace dimension 1, basis u,v and relation −u−v+w=0. The other three cases have rank 3, nullspace dimension 0, and basis u,v,w for R3.
This exact algebraic family uses half-unit browser inputs; Python also accepts other rational values. Numerical rank for measured data requires a noise model and a tolerance; neither version measures a physical system or teaches instrument handling.