∑GATE DA Atlas

Vector Spaces, Subspaces, Independence, Basis and Dimension

The axioms of a vector space with the standard examples, the subspace test, span and linear combinations, linear dependence and independence and how to test it, bases, dimension and coordinates, sums and intersections of subspaces, and inner products, orthogonality and Gram–Schmidt.

Section 29 practice questions

Vector spaces

A vector space over R\mathbb R is a set VV with addition and scalar multiplication satisfying the familiar rules: closure under both operations, commutativity and associativity of addition, a zero vector, additive inverses, distributivity (a(u+v)=au+ava(\mathbf u + \mathbf v) = a\mathbf u + a\mathbf v, (a+b)v=av+bv(a + b)\mathbf v = a\mathbf v + b\mathbf v), a(bv)=(ab)va(b\mathbf v) = (ab)\mathbf v, and 1v=v1\mathbf v = \mathbf v.

SpaceElementsDimension
Rn\mathbb R^ncolumn vectorsnn
Rm×n\mathbb R^{m\times n}m×nm \times n matricesmnmn
Pn\mathcal P_npolynomials of degree ≤n\le nn+1n + 1
C[a,b]C[a, b]continuous functions on [a,b][a, b]infinite
symmetric n×nn \times n matricesn(n+1)/2n(n+1)/2
skew-symmetric n×nn\times n matricesn(n−1)/2n(n-1)/2
upper-triangular n×nn\times n matricesn(n+1)/2n(n+1)/2

Subspaces

A non-empty subset W⊆VW \subseteq V is a subspace iff it is closed under linear combinations:

u,v∈W, a,b∈R  ⟹  au+bv∈W.\mathbf u, \mathbf v \in W,\ a, b \in \mathbb R \implies a\mathbf u + b\mathbf v \in W.

Every subspace contains 0\mathbf 0 — the fastest way to rule a set out. Subspaces of R3\mathbb R^3 are: {0}\{\mathbf 0\}, lines through the origin, planes through the origin, and R3\mathbb R^3 itself.

Span and linear combinations

span⁡{v1,…,vk}={c1v1+⋯+ckvk}\operatorname{span}\{\mathbf v_1, \dots, \mathbf v_k\} = \{c_1\mathbf v_1 + \dots + c_k \mathbf v_k\} is the smallest subspace containing the vectors. b∈span⁡{… }\mathbf b \in \operatorname{span}\{\dots\} iff the system [v1⋯vk] c=b[\mathbf v_1 \cdots \mathbf v_k]\,\mathbf c = \mathbf b is consistent.

Linear dependence and independence

Vectors are linearly independent if

c1v1+c2v2+⋯+ckvk=0  ⟹  c1=c2=⋯=ck=0.c_1\mathbf v_1 + c_2 \mathbf v_2 + \dots + c_k \mathbf v_k = \mathbf 0 \implies c_1 = c_2 = \dots = c_k = 0.

Otherwise some vector is a combination of the others (dependent).

How to test:

  1. Put the vectors as columns of AA; they are independent iff rank⁡(A)=k\operatorname{rank}(A) = k iff Ac=0A\mathbf c = \mathbf 0 has only the trivial solution.
  2. For nn vectors in Rn\mathbb R^n: independent iff det⁡A≠0\det A \ne 0.
  3. Shortcuts: any set containing 0\mathbf 0 is dependent; more than nn vectors in Rn\mathbb R^n are dependent; two vectors are dependent iff one is a multiple of the other; non-zero mutually orthogonal vectors are independent.

Basis and dimension

A basis is a linearly independent spanning set. Every basis of a space has the same number of vectors, the dimension.

  • In an nn-dimensional space, any nn independent vectors form a basis, and any nn spanning vectors form a basis.
  • Any independent set can be extended to a basis; any spanning set can be reduced to one.
  • Coordinates: each v\mathbf v is a unique combination of basis vectors; the coefficients are its coordinates in that basis. If BB has the basis vectors as columns, [v]B=B−1v[\mathbf v]_B = B^{-1}\mathbf v.

Sums and intersections

For subspaces U,WU, W:

  • U∩WU \cap W and U+WU + W are subspaces; U∪WU \cup W generally is not.
  • dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U + W) = \dim U + \dim W - \dim(U\cap W).
  • If U∩W={0}U \cap W = \{\mathbf 0\}, the sum is direct, U⊕WU \oplus W, and every vector splits uniquely as u+w\mathbf u + \mathbf w.

Inner products, norms and orthogonality

The standard inner product ⟨u,v⟩=u⊤v=∑uivi\langle \mathbf u, \mathbf v\rangle = \mathbf u^\top \mathbf v = \sum u_i v_i gives:

  • Norm: ∥v∥=v⊤v\lVert\mathbf v\rVert = \sqrt{\mathbf v^\top \mathbf v}; other norms: ∥v∥1=∑∣vi∣\lVert\mathbf v\rVert_1 = \sum\lvert v_i\rvert, ∥v∥∞=max⁡∣vi∣\lVert\mathbf v\rVert_\infty = \max \lvert v_i\rvert.
  • Angle: cos⁡θ=u⊤v∥u∥ ∥v∥\cos\theta = \dfrac{\mathbf u^\top\mathbf v}{\lVert\mathbf u\rVert\,\lVert\mathbf v\rVert} — the cosine similarity used in ML.
  • Cauchy–Schwarz: ∣u⊤v∣≤∥u∥ ∥v∥\lvert\mathbf u^\top\mathbf v\rvert \le \lVert\mathbf u\rVert\,\lVert\mathbf v\rVert; triangle inequality ∥u+v∥≤∥u∥+∥v∥\lVert\mathbf u + \mathbf v\rVert \le \lVert\mathbf u\rVert + \lVert\mathbf v\rVert.
  • Orthogonal vectors: u⊤v=0\mathbf u^\top\mathbf v = 0. An orthonormal set is orthogonal with unit vectors. In an orthonormal basis, coordinates are just dot products: ci=qi⊤vc_i = \mathbf q_i^\top \mathbf v.
  • Orthogonal complement: W⊥={v:v⊤w=0 ∀w∈W}W^\perp = \{\mathbf v : \mathbf v^\top \mathbf w = 0\ \forall \mathbf w \in W\}, with dim⁡W+dim⁡W⊥=n\dim W + \dim W^\perp = n.

Gram–Schmidt

Turns an independent set a1,…,ak\mathbf a_1, \dots, \mathbf a_k into an orthonormal set spanning the same space:

uj=aj−∑i<j(qi⊤aj) qi,qj=uj∥uj∥.\mathbf u_j = \mathbf a_j - \sum_{i<j}(\mathbf q_i^\top \mathbf a_j)\,\mathbf q_i, \qquad \mathbf q_j = \frac{\mathbf u_j}{\lVert\mathbf u_j\rVert}.

Each step subtracts the projections onto the earlier directions (see projections). In matrix form this is the QR decomposition A=QRA = QR.

Quick revision

Practice questions

GATE-style questions: 5 one-mark and 4 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.

Q1MCQ1 mark

Which of the following subsets of R3\mathbb R^3 is a subspace?

Q2NAT1 mark

The dimension of the subspace {(x,y,z,w)∈R4:x+y=0, z−w=0}\{(x, y, z, w) \in \mathbb R^4 : x + y = 0,\ z - w = 0\} is ______.

Q3MSQ2 marks

Which of the following sets of vectors are linearly independent?

One or more options are correct.

Q4NAT2 marks

The dimension of span⁡{(1,2,1), (2,1,0), (3,3,1), (1,−1,−1)}\operatorname{span}\{(1,2,1),\ (2,1,0),\ (3,3,1),\ (1,-1,-1)\} is ______.

Q5MCQ1 mark

The dimension of the vector space of all real 3×33 \times 3 symmetric matrices is

Q6NAT2 marks

The value of kk for which the vectors (1,2,k)(1, 2, k), (0,1,1)(0, 1, 1) and (1,3,4)(1, 3, 4) are linearly dependent is ______.

Q7MCQ1 mark

The dimension of the vector space of real polynomials of degree at most 3 is

Q8MSQ2 marks

UU and WW are subspaces of a finite-dimensional vector space VV. Which statements are always true?

One or more options are correct.

Q9NAT1 mark

With respect to the basis {(1,1), (1,−1)}\{(1,1),\ (1,-1)\} of R2\mathbb R^2, the vector (3,5)(3, 5) has coordinates (a,b)(a, b). The value of aa is ______.