Skip to content
GATEiit

GATE DA · Linear Algebra

Vector spaces and subspaces; linear dependence and independence of vectors

Vector spaces, the subspace test, span, linear dependence and independence, basis and dimension; GATE asks which sets are subspaces, when vectors are independent, and dimension counts.

Before you start

This topic comes before: Determinant, rank and nullity; projections, Eigenvalues and eigenvectors, Support vector machine, Systems of linear equations and their solutions; Gaussian elimination

Concept notes

1. Vector space and the subspace test

A vector space V over R is a set with addition and scalar multiplication that satisfies the usual rules (closure, associativity, a zero vector, additive inverses, distributivity). In GATE DA the spaces are almost always Rn, matrices, polynomials or functions, so you rarely check all axioms.

A subspace W of V is a non-empty subset that is itself a vector space under the same operations. Use the subspace test: W is a subspace if and only if

  1. 0∈W, and
  2. u,v∈W and scalar c imply u+cv∈W.

Quick filters for Rn:

Set Subspace? Reason
{x:Ax=0} (null space) Yes Homogeneous linear equations
{x:Ax=b}, b≠0 No Does not contain 0
A line or plane through the origin Yes Span of its direction vectors
{(x,y):xy=0} No (1,0)+(0,1)=(1,1) is outside
{(x,y):x≥0} No −1⋅(1,0) is outside

Rule of thumb: a set defined by linear homogeneous equations is a subspace; constants, products, squares, absolute values or inequalities usually break it. The intersection of two subspaces is a subspace; the union is a subspace only when one contains the other.

2. Span and linear combinations

A linear combination of v1,…,vk is c1v1+⋯+ckvk. The span of the set is the collection of all such combinations. The span is always a subspace, and it is the smallest subspace that contains every vi.

To test whether b lies in the span of the columns of A=[v1⋯vk], ask whether Ac=b has a solution. That happens exactly when rank⁡(A)=rank⁡([A∣b]).

The span of the columns of A is called the column space C(A); the solution set of Ax=0 is the null space N(A). Both are subspaces and appear again under rank and nullity.

Geometric picture in R3: the span of one non-zero vector is a line through the origin; of two non-parallel vectors, a plane through the origin; of three vectors not in one plane, all of R3. Adding a vector that already lies in the span does not enlarge it; this is exactly what dependence means.

u2uvu, v independent: span is the whole planeu2uu, 2u dependent: span is one line
Two vectors in the plane: independent vectors span the plane, dependent ones span only a line

3. Linear dependence and independence

Vectors v1,…,vk are linearly independent if c1v1+⋯+ckvk=0  ⟹  c1=⋯=ck=0. Otherwise they are linearly dependent: some non-trivial combination gives 0, so at least one vector is a combination of the others.

How to test:

  • Put the vectors as columns (or rows) of a matrix A. They are independent if and only if rank⁡(A)=k.
  • For n vectors in Rn the matrix is square: independent if and only if det⁡A≠0.
  • Two vectors are dependent if and only if one is a scalar multiple of the other.

Facts that settle many MCQs at once:

  • Any set containing 0 is dependent.
  • 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.
  • Non-zero mutually orthogonal vectors are independent.

For functions, the same definition applies: sin⁡2x, cos⁡2x and 1 are dependent because sin⁡2x+cos⁡2x−1=0.

4. Basis and dimension

A basis of V is a linearly independent set that spans V. Every basis of V has the same number of vectors; that number is the dimension dim⁡V. Every vector has a unique representation in a given basis.

In a space of dimension n: any n independent vectors form a basis, any n spanning vectors form a basis, fewer than n cannot span, and more than n cannot be independent.

Space Dimension A basis
Rn n standard vectors 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 entries on and above the diagonal
n×n skew-symmetric n(n−1)2 entries above the diagonal
n×n upper triangular n(n+1)2 entries on and above the diagonal
{0} 0 empty set

Each independent linear constraint cuts the dimension by one: the plane x+2y−z=0 in R3 has dimension 3−1=2, and polynomials of degree ≤3 with p(1)=0 have dimension 4−1=3.

For two subspaces U,W of a finite-dimensional space: dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W). Since dim⁡(U+W)≤dim⁡V, this gives the lower bound dim⁡(U∩W)≥dim⁡U+dim⁡W−dim⁡V.

Formulas to remember

Subspace test
0∈W,u,v∈W, c∈R⇒u+cv∈W
Independence
∑icivi=0⇒ci=0 ∀i
Rank test
v1,…,vk independent  ⟺  rank⁡[v1⋯vk]=k
Square test
n vectors in Rn independent  ⟺  det⁡A≠0
Sum of subspaces
dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)
Symmetric and skew-symmetric matricesFor n×n matrices
dim⁡=n(n+1)2,n(n−1)2
PolynomialsPolynomials of degree at most n
dim⁡Pn=n+1

Common mistakes

  • Calling a set like x+y=1 a subspace: a subspace must contain the zero vector, so any non-zero constant term rules it out.
  • Taking the union of two subspaces as a subspace; it is the intersection (or the sum U+W) that is always a subspace.
  • Counting vectors instead of rank: four vectors may span only a 2-dimensional space if some are combinations of others.
  • Using dim⁡(U∩W)=dim⁡U+dim⁡W−n as an equality; it is only a lower bound, reached when U+W is the whole space.
  • Forgetting that polynomials of degree at most n have dimension n+1, not n, because the constant term counts.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Is a plane a subspace, and what is its basis?

numerical

Let W={(x,y,z)∈R3:x+2y−z=0}. Show that W is a subspace and find a basis and its dimension.

  1. Step 1: Check that the zero vector is in $W$.

    Try it on paper first.

Example 2: Find $k$ that makes three vectors dependent

numerical

For what value of k are (1,2,3), (2,5,7) and (1,3,k) linearly dependent?

  1. Step 1: Three vectors in $\mathbb{R}^3$: which test is fastest?

    Try it on paper first.

Example 3: Intersection of two planes

numerical

U and W are two different 2-dimensional subspaces of R3. Find dim⁡(U∩W) and dim⁡(U+W).

  1. Step 1: What can $\dim(U + W)$ be?

    Try it on paper first.

Example 4: Spot the subspaces

conceptual

Which of these are subspaces? (i) n×n matrices with trace 0; (ii) n×n invertible matrices; (iii) polynomials p of degree ≤2 with p(0)=1; (iv) solutions of y′′+y=0.

  1. Step 1: Look for the zero element first.

    Try it on paper first.

Previous year questions

3 official GATE DA questions on this topic, newest first.

Practise these 3 PYQs →

Topic test

10 questions: up to 3 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 DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.