Skip to content
GATEiit

GATE EC · Engineering Mathematics

Vector space, basis, linear dependence and independence

Vector spaces and subspaces, span, linear dependence and independence with the determinant and rank tests, basis and dimension of common spaces, the null and column spaces, and the rank-nullity theorem.

Before you start

This topic comes before: Rank, Vectors in plane and space

Concept notes

1. Vector spaces and subspaces

A vector space V over the reals is a set with addition and scalar multiplication that obey the usual rules (closure, associativity, commutativity, a zero vector, negatives, distributive laws, 1⋅v=v). Examples: Rn, all m×n matrices, polynomials of degree at most n, continuous functions on an interval.

A subset W of V is a subspace if it is itself a vector space. The quick subspace test:

  1. W contains the zero vector.
  2. u,v∈W⇒u+v∈W.
  3. v∈W⇒cv∈W for every scalar c.

(2 and 3 together: cu+dv∈W.)

Set in R3 Subspace? Reason
{x:x1+2x2−x3=0} Yes plane through the origin
{t(1,2,3)} Yes line through the origin
{x:x1=1} No no zero vector
{x:x1x2=0} No (1,0,0)+(0,1,0) leaves the set
{x:x1≥0} No fails for c=−1

Rule of thumb: sets defined by homogeneous linear equations are subspaces. Anything with a constant term, a product, a square, an inequality or an absolute value usually is not.

The subspaces of R3 are exactly: {0}, lines through the origin, planes through the origin, and R3. The solution set of Ax=b is a subspace only when b=0.

2. Span, linear dependence and independence

A linear combination of v1,…,vk is c1v1+⋯+ckvk. The set of all of them is the span, always a subspace.

The vectors are linearly independent if

c1v1+c2v2+⋯+ckvk=0  ⇒  c1=c2=⋯=ck=0

Otherwise they are dependent: at least one is a combination of the others.

Tests. Put the vectors as columns (or rows) of a matrix A.

  • Rank test: independent   ⟺  rank(A)=k (number of vectors). The rank is also the dimension of the span.
  • Determinant test (only for n vectors in Rn): independent   ⟺  det⁡A≠0.
  • Equivalently, Ac=0 has only c=0.

Quick facts.

  • Any set containing the zero vector is dependent.
  • Two vectors are dependent iff one is a scalar multiple of the other.
  • More than n vectors in Rn are always dependent.
  • A subset of an independent set is independent; a superset of a dependent set is dependent.
  • Eigenvectors for distinct eigenvalues are independent.
  • Functions: if the Wronskian is nonzero at some point, the functions are independent.
0v1v2v3 = v1 + v2w (out of the plane)plane = span{v1, v2}: every vector in it is a combination of v1 and v2{v1, v2, w}: independent, a basis of R3{v1, v2, v3}: dependent (v3 in the plane)
In R3, v1 and v2 span a plane; v3 = v1 + v2 lies in it (dependent set), while w leaves the plane, so {v1, v2, w} is a basis.

3. Basis and dimension

A basis of V is a set of vectors that is (1) linearly independent and (2) spans V. Every vector of V is then a combination of the basis vectors in exactly one way; the weights are its coordinates in that basis.

All bases of V have the same number of vectors, the dimension dim⁡V. In an n-dimensional space:

  • any n independent vectors form a basis, and any n vectors that span form a basis;
  • fewer than n vectors cannot span; more than n must be dependent.
Space Dimension A basis
Rn n e1,…,en
Polynomials of degree ≤n n+1 1,x,…,xn
m×n matrices mn matrices with a single 1
n×n symmetric n(n+1)2
n×n skew-symmetric n(n−1)2
n×n upper triangular n(n+1)2
n×n diagonal n
n×n with trace 0 n2−1

Dimension of a solution set. A subspace of Rn given by r independent homogeneous equations has dimension n−r.

Sum and intersection of subspaces U, W:

dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)

4. Null space, column space and rank-nullity

For an m×n matrix A of rank r:

Subspace Lives in Dimension
Column space C(A) (span of columns) Rm r
Row space C(AT) Rn r
Null space N(A)={x:Ax=0} Rn n−r
Left null space N(AT) Rm m−r

Rank-nullity theorem:

rank(A)+nullity(A)=n(number of columns)

Reading it.

  • Row-reduce A; the pivot columns of the original A form a basis of C(A). The nonzero rows of the echelon form are a basis of the row space.
  • The number of free variables equals the nullity; each free variable gives one basis vector of N(A).
  • Ax=b is solvable iff b∈C(A). If solvable and the nullity is positive, there are infinitely many solutions.
  • The columns of A are independent iff N(A)={0} iff r=n.
  • For a square A: independent columns   ⟺  det⁡A≠0  ⟺  A invertible   ⟺  0 is not an eigenvalue.

GATE often gives A with all rows multiples of one row (rank 1), so the nullity is n−1 at once.

Formulas to remember

Linear independence
∑i=1kcivi=0  ⇒  ci=0  ∀i
Rank test
{v1,…,vk} independent  ⟺  rank[v1⋯vk]=k
Determinant test
n vectors in Rn independent  ⟺  det⁡[v1⋯vn]≠0
Rank-nullityn = number of columns of A
rank(A)+nullity(A)=n
Sum of subspaces
dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)
Symmetric and skew-symmetric matrices
dim⁡=n(n+1)2,dim⁡=n(n−1)2

Common mistakes

  • Using the determinant test when the number of vectors differs from the dimension; use the rank instead.
  • Calling a plane or line that does not pass through the origin a subspace; it has no zero vector.
  • Applying rank-nullity with the number of rows; nullity is the number of columns minus the rank.
  • Taking the pivot columns of the echelon form as a basis of the column space; the basis is the matching columns of the original matrix.
  • Assuming pairwise non-parallel vectors are independent; three vectors in a plane are dependent even if no two are parallel.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Testing three vectors in R3

numerical

Are v1=(1,2,3), v2=(2,3,4), v3=(3,4,5) linearly independent? If not, find a relation.

  1. Step 1: Compute the determinant of the matrix with these rows.

    Try it on paper first.

Example 2: Value of k for dependence

numerical

For what k are (1,1,0), (0,1,1) and (1,0,k) linearly dependent?

  1. Step 1: Form the determinant.

    Try it on paper first.

Example 3: Basis of a solution space

numerical

Find the dimension and a basis of W={x∈R4:x1+x2+x3+x4=0,  x1=x2}.

  1. Step 1: Count independent equations.

    Try it on paper first.

Example 4: Rank-nullity and dimensions of matrix spaces

conceptual

(a) A 4×6 matrix has rank 3. Find the dimension of its null space and of its column space. (b) Find the dimension of the space of 3×3 real symmetric matrices.

  1. Step 1: Apply rank-nullity for (a).

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.