You learn to test the subspace spanned by a set of vectors, whether the set spans the whole space, and whether the vectors are linearly independent, using a homogeneous system or a determinant, and to apply the same method in Rⁿ, P₂ and M₂₂.
linear combinationspanspanning setspans Vlinearly independentlinearly dependenttrivial solutiondependence relationcoefficient vector
We defined a subspace inside a set; now we do the opposite: starting from a few vectors, we build the subspace they generate. This idea has two faces. Span answers “where can I get to with these vectors?”, linear independence answers “is any of these vectors unnecessary?”. Combined, they give next week’s topic: the basis. The computing side is familiar: it is all Gaussian elimination.
Golden rules:
Write the vectors as columns of a matrix.
A span question = consistency of a nonhomogeneous system. An independence question = the homogeneous system having only the trivial solution.
n vectors in Rn: the determinant alone answers both.
Turn polynomials and matrices into coefficient vectors first.
Span
Let S={v1,…,vk} be in a space V. The span of S is the set of all its linear combinations:
span(S)={c1v1+⋯+ckvk:ci∈R}.
span(S) is always a subspace of V (the sum and multiples of two combinations are again combinations) and it is the smallest subspace containing S. If span(S)=V we say ”S spans V”.
Geometric intuition (R3):
S
span
a single nonzero vector
a line through the origin
two non-parallel vectors
a plane through the origin
three vectors not in the same plane
R3
Whether a set spans the space
Example 1. Does S={(1,2,3),(2,1,0),(4,5,6)} span R3? Reduce [A∣b] for an arbitrary b=(b1,b2,b3):
The right side of the last row is b3−3b1−2(b2−2b1)=b1−2b2+b3. The system is consistent only when b1−2b2+b3=0. So S does not span R3; the span is the plane x−2y+z=0. For example (1,1,0) is not in the span (1−2+0=0).
Square shortcut. With n vectors in Rn the matrix is square: det=0⟺ a unique solution for every b⟺S spans. In Example 1 det=0, in Q2 det=2.
PITFALL · spanning with too few vectors. You can’t span R3 with two vectors: a 3×2 matrix has at most 2 pivots, the third row becomes zero and a consistency condition appears. To span Rn you need at least n vectors.
Linear independence
For S={v1,…,vk}, if the equation
c1v1+c2v2+⋯+ckvk=0
has only the solution c1=⋯=ck=0 (the trivial solution), S is linearly independent. If there is a nontrivial solution, it is dependent and that solution is a dependence relation.
Equivalent definition: S is dependent ⟺ at least one of the vectors is a linear combination of the others. In a dependent set there is an “unnecessary” vector: removing it does not change the span.
The test
Write the vectors as columns of a matrix A.
Solve Ac=0 (REF is enough).
No free variable ⇒ independent. A free variable ⇒ dependent; give the free variable 1 and read off the relation.
c3 is free. c3=1: c2=−1, c1=−2c2=2. The relation: 2v1−v2+v3=0. Check: (2−2+0,0−1+1,4−1−3)=(0,0,0). Dependent, and v3=v2−2v1.
Cases that decide without computation
Case
Result
The set contains 0
dependent (1⋅0=0)
Two vectors, one a multiple of the other
dependent
Two vectors, not multiples
independent
More than n vectors in Rn
dependent
A subset of an independent set
independent
Adding a vector to a dependent set
stays dependent
Polynomials and matrices
In P2 match the polynomial a+bx+cx2 with the vector (a,b,c), in M2,2 match [acbd] with (a,b,c,d). Since linear combinations are preserved exactly in the coefficients, span and independence questions turn into questions in R3 or R4.
Example 3. Does {1+x,x+x2,1+x2} span P2? The coefficient vectors are (1,1,0), (0,1,1), (1,0,1); the determinant is 2=0. It is both independent and spanning. The set in Q9 is different because it contains 1−x2: there the determinant is 0.
TIP · fix the order. When converting to coefficient vectors, use the same order for every polynomial (constant, x, x2). If you write x2 first in one polynomial, the columns get mixed up.
Span and independence together
Independent
Dependent
Spans
a basis (next week)
there are extra vectors, remove them
Does not span
a vector is missing, add one
both problems
In Rn, whether exactly n vectors span and whether they are independent is the same question: det=0.
Common mistakes
Wrong
Right
Writing the vectors as rows and setting up [A∣b]
Vectors are columns, b is the last column
Deciding “doesn’t span” without finding a single example b
Write the consistency condition or use det
Putting b on the right in the independence test
Independence is a homogeneous system: right side 0
Thinking three vectors are independent because two are
The third may be a combination of the first two
Confusing spanning with independence
{(1,2),(3,4),(5,6)} spans but is dependent
Saying “no solution” when det=0
In a homogeneous system det=0 means infinitely many solutions = dependent
Writing polynomial coefficients in a different order
Always (constant, x, x2)
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1easy
Are u=(1,2) and v=(−3,−6) linearly independent?
Show answer
No
v=−3u. Two vectors are dependent if one is a multiple of the other: 3u+v=0 is a nontrivial relation. Geometrically the two are on the same line.
Question 2medium
Does S={(1,1,0),(0,1,1),(1,0,1)} span R3?
Show answer
Yes
Make the vectors columns: det110011101=1(1−0)−0+1(1−0)=2=0. The square matrix is invertible, so Ac=b can be solved for every b. It spans R3 (and is independent).
Question 3medium
Describe span{(1,2,3),(2,1,0),(4,5,6)} as a geometric object in R3.
Show answer
The plane x−2y+z=0
det=0, so the three are dependent and do not span R3. Elimination on [A∣b] gives the consistency condition b1−2b2+b3=0. Check: (1,2,3): 1−4+3=0; (2,1,0): 2−2=0; (4,5,6): 4−10+6=0. The first two vectors are not parallel, so the span is a plane through the origin.
Question 4medium
Show that v1=(1,−1,2), v2=(2,1,1), v3=(0,3,−3) are linearly dependent and find a dependence relation.
Show answer
2v1−v2+v3=0
Solve the system c1v1+c2v2+c3v3=0. The column matrix is 1−1221103−3.R2←R2+R1: (0,3,3). R3←R3−2R1: (0,−3,−3). R3←R3+R2: a zero row. c3=t is free: c2=−t, c1=−2c2=2t.t=1: 2v1−v2+v3=(2−2+0,−2−1+3,4−1−3)=0.
Question 5hard
For which values of k are (1,k,0), (0,1,k), (k,0,1) linearly dependent?
Show answer
k=−1
The determinant of the matrix written with these as rows (the transpose does not change the determinant): 10kk100k1=1(1−0)−k(0−k2)+0=1+k3. Dependent ⟺1+k3=0⟺k=−1 (the only real root).
Question 6easy
True or false: Any set of four vectors in R3 is linearly dependent.
Show answer
True
c1v1+⋯+c4v4=0: a homogeneous system with 3 equations and 4 unknowns. There are more unknowns, at least one free variable, so there is a nontrivial solution. General rule: more than n vectors in Rn are always dependent.
Question 7medium
Is {1+x,x+x2,1+x2} linearly independent in P2?
Show answer
Yes
The coefficient vectors, in the order (1,x,x2): (1,1,0), (0,1,1), (1,0,1). The determinant of the column matrix is 2=0, so c1=c2=c3=0 is the only solution. Independent.
Question 8medium
Are A1=[1101], A2=[0110], A3=[1211] linearly independent in M2,2?
Show answer
No: A3=A1+A2
A1+A2=[1211]=A3, so A1+A2−A3=O. Systematic way: turn each matrix into the vector (a11,a12,a21,a22); the 4×3 matrix has rank 2.
Question 9hard
Is p(x)=1+4x+x2 in span{1+x,x+x2,1−x2}?
Show answer
No
a(1+x)+b(x+x2)+c(1−x2)=(a+c)+(a+b)x+(b−c)x2. Equations: a+c=1, a+b=4, b−c=1. Add the 1st and 3rd: a+b=2. But the 2nd equation says a+b=4. Inconsistent. Note: the three polynomials are dependent ((1+x)−(x+x2)=1−x2), the span is only 2-dimensional.
Question 10hard
Suppose {u,v,w} is linearly independent. Is {u+v,v+w,u+w} linearly independent?
Show answer
Yes
a(u+v)+b(v+w)+c(u+w)=(a+c)u+(a+b)v+(b+c)w=0. Because u,v,w are independent, a+c=0, a+b=0, b+c=0. The determinant of the coefficient matrix is 2=0, the only solution is a=b=c=0.
Question 11medium
Does {(1,2),(3,4),(5,6)} span R2? Is it linearly independent?
Show answer
Spans R2; linearly dependent
(1,2) and (3,4) are already independent: det[1234]=−2=0. The two span R2, and adding the third does not shrink the span. But three vectors in R2 are always dependent. Spanning and being independent are different questions.
Question 12hard
Find k so that (1,2,k) lies in span{(1,1,1),(1,3,2)}.
Show answer
k=3/2
a(1,1,1)+b(1,3,2)=(a+b,a+3b,a+2b).a+b=1, a+3b=2: 2b=1, b=21, a=21. Third component: k=a+2b=21+1=23.
Verification: The span and independence tests were done in node with BigInt fractions using exact RREF, rank and determinants; the dependence relations were found from the null space and recomputed to confirm that the linear combination gives the zero vector; in the parametric independence question det = 1 + k³ was checked at many values of k (verify/MAT1041/07.mjs).
Review card
span(S) = ALL linear combinations of the vectors in S. Always a subspace.
w ∈ span(S)? → solve the system [v1 ... vk | w] (vectors as COLUMNS). Is it consistent?
Does S span Rⁿ? → is it consistent for every b? If square: det ≠ 0 ⇔ spans.
Independent: c1v1 + ... + ckvk = 0 ⇒ only c1 = ... = ck = 0.
Test: [v1 ... vk] x = 0 → NO free variable ⇔ independent.
Square (n vectors, Rⁿ): det ≠ 0 ⇔ independent ⇔ spans.
If dependent, a null space vector = a dependence relation.
Quick rules:
a set containing the 0 vector → dependent
two vectors: one is a multiple of the other ⇔ dependent
more than n vectors in Rⁿ → dependent; fewer than n vectors do NOT span Rⁿ
P_n, M_mn: turn the polynomial/matrix into a coefficient vector, same test.
Dependent ⇔ at least one is a combination of the others.