Fiveable

๐Ÿ”ขCoding Theory Unit 2 Review

QR code for Coding Theory practice questions

2.2 Vector Spaces and Linear Independence

2.2 Vector Spaces and Linear Independence

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025
๐Ÿ”ขCoding Theory
Unit & Topic Study Guides

Vector spaces and linear independence are key concepts in linear algebra. They provide a foundation for understanding the structure of mathematical systems used in coding theory.

These concepts help us analyze and manipulate data in multiple dimensions. By grasping vector spaces and linear independence, we can better understand error-correcting codes and their properties.

Vector Spaces and Subspaces

Definition and Properties of Vector Spaces

  • Vector space consists of a set VV of vectors and two operations (vector addition and scalar multiplication) that satisfy certain axioms
    • Closure under vector addition: Adding any two vectors in VV results in another vector in VV
    • Closure under scalar multiplication: Multiplying any vector in VV by a scalar (real or complex number) results in another vector in VV
    • Associativity of vector addition: (u+v)+w=u+(v+w)(u + v) + w = u + (v + w) for all vectors uu, vv, and ww in VV
    • Commutativity of vector addition: u+v=v+uu + v = v + u for all vectors uu and vv in VV
    • Existence of additive identity: There exists a unique vector 00 (zero vector) such that v+0=vv + 0 = v for all vectors vv in VV
    • Existence of additive inverses: For every vector vv in VV, there exists a unique vector โˆ’v-v such that v+(โˆ’v)=0v + (-v) = 0
  • Examples of vector spaces include
    • Rn\mathbb{R}^n: The set of all nn-tuples of real numbers (x1,x2,โ€ฆ,xn)(x_1, x_2, \ldots, x_n)
    • Cn\mathbb{C}^n: The set of all nn-tuples of complex numbers (z1,z2,โ€ฆ,zn)(z_1, z_2, \ldots, z_n)
    • Pn\mathcal{P}_n: The set of all polynomials of degree at most nn

Subspaces and Their Properties

  • Subspace is a non-empty subset WW of a vector space VV that is itself a vector space under the same operations as VV
    • Closure under vector addition: If uu and vv are in WW, then u+vu + v is also in WW
    • Closure under scalar multiplication: If vv is in WW and cc is a scalar, then cvcv is also in WW
  • Examples of subspaces include
    • The zero vector space {0}\{0\} is a subspace of any vector space
    • The set of all polynomials of degree at most kk is a subspace of Pn\mathcal{P}_n for kโ‰คnk \leq n
  • To prove a subset is a subspace, show it satisfies the subspace properties or use the subspace test
    • Subspace test: A non-empty subset WW of a vector space VV is a subspace if and only if for any u,vโˆˆWu, v \in W and any scalar cc, we have u+vโˆˆWu + v \in W and cuโˆˆWcu \in W

Linear Combinations and Span

  • Linear combination of vectors v1,v2,โ€ฆ,vkv_1, v_2, \ldots, v_k in a vector space VV is a vector of the form c1v1+c2v2+โ‹ฏ+ckvkc_1v_1 + c_2v_2 + \cdots + c_kv_k, where c1,c2,โ€ฆ,ckc_1, c_2, \ldots, c_k are scalars
    • Coefficients c1,c2,โ€ฆ,ckc_1, c_2, \ldots, c_k can be any scalars (real or complex numbers)
    • Example: In R3\mathbb{R}^3, if v1=(1,0,0)v_1 = (1, 0, 0), v2=(0,1,0)v_2 = (0, 1, 0), and v3=(0,0,1)v_3 = (0, 0, 1), then (2,โˆ’3,5)(2, -3, 5) is a linear combination of v1v_1, v2v_2, and v3v_3 with coefficients c1=2c_1 = 2, c2=โˆ’3c_2 = -3, and c3=5c_3 = 5
  • Span of a set of vectors {v1,v2,โ€ฆ,vk}\{v_1, v_2, \ldots, v_k\} in a vector space VV is the set of all linear combinations of these vectors
    • Denoted as span(v1,v2,โ€ฆ,vk)\text{span}(v_1, v_2, \ldots, v_k) or โŸจv1,v2,โ€ฆ,vkโŸฉ\langle v_1, v_2, \ldots, v_k \rangle
    • Span is always a subspace of VV
    • Example: In R3\mathbb{R}^3, the span of v1=(1,0,0)v_1 = (1, 0, 0) and v2=(0,1,0)v_2 = (0, 1, 0) is the xyxy-plane

Basis and Dimension

Basis of a Vector Space

  • Basis of a vector space VV is a linearly independent set of vectors that spans VV
    • Linearly independent: No vector in the set can be written as a linear combination of the other vectors
    • Spans VV: Every vector in VV can be written as a linear combination of the basis vectors
  • Examples of bases include
    • Standard basis for Rn\mathbb{R}^n: {e1,e2,โ€ฆ,en}\{e_1, e_2, \ldots, e_n\}, where eie_i has a 1 in the ii-th position and 0s elsewhere
    • Basis for P2\mathcal{P}_2: {1,x,x2}\{1, x, x^2\}
  • Every vector space has a basis, and any two bases of a vector space have the same number of elements
Definition and Properties of Vector Spaces, Vectors ยท Precalculus

Dimension of a Vector Space

  • Dimension of a vector space VV is the number of vectors in any basis of VV
    • Denoted as dimโก(V)\dim(V)
    • All bases of a vector space have the same number of elements, so the dimension is well-defined
  • Examples of dimensions include
    • dimโก(Rn)=n\dim(\mathbb{R}^n) = n
    • dimโก(Pn)=n+1\dim(\mathcal{P}_n) = n + 1
  • Dimension provides a measure of the "size" of a vector space
    • Finite-dimensional vector space: A vector space with a finite basis (and thus a finite dimension)
    • Infinite-dimensional vector space: A vector space that is not finite-dimensional

Coordinate Vectors

  • Coordinate vector of a vector vv with respect to a basis {v1,v2,โ€ฆ,vn}\{v_1, v_2, \ldots, v_n\} is the unique nn-tuple (c1,c2,โ€ฆ,cn)(c_1, c_2, \ldots, c_n) such that v=c1v1+c2v2+โ‹ฏ+cnvnv = c_1v_1 + c_2v_2 + \cdots + c_nv_n
    • Represents vv as a linear combination of the basis vectors
    • Uniqueness follows from the linear independence of the basis vectors
  • Example: In R3\mathbb{R}^3 with the standard basis {e1,e2,e3}\{e_1, e_2, e_3\}, the coordinate vector of (2,โˆ’3,5)(2, -3, 5) is (2,โˆ’3,5)(2, -3, 5)
  • Coordinate vectors provide a way to represent vectors in terms of a basis
    • Allows for computation and analysis using the coordinates rather than the vectors themselves
    • Coordinate vectors depend on the chosen basis

Linear Independence

Definition and Properties of Linear Independence

  • Set of vectors {v1,v2,โ€ฆ,vk}\{v_1, v_2, \ldots, v_k\} in a vector space VV is linearly independent if the equation c1v1+c2v2+โ‹ฏ+ckvk=0c_1v_1 + c_2v_2 + \cdots + c_kv_k = 0 has only the trivial solution c1=c2=โ‹ฏ=ck=0c_1 = c_2 = \cdots = c_k = 0
    • Equivalent to saying that no vector in the set can be written as a linear combination of the other vectors
    • Example: In R3\mathbb{R}^3, the vectors (1,0,0)(1, 0, 0), (0,1,0)(0, 1, 0), and (0,0,1)(0, 0, 1) are linearly independent
  • Set of vectors is linearly dependent if it is not linearly independent
    • Equivalent to saying that at least one vector in the set can be written as a linear combination of the other vectors
    • Example: In R3\mathbb{R}^3, the vectors (1,0,0)(1, 0, 0), (0,1,0)(0, 1, 0), and (1,1,0)(1, 1, 0) are linearly dependent, as (1,1,0)=(1,0,0)+(0,1,0)(1, 1, 0) = (1, 0, 0) + (0, 1, 0)
  • Properties of linearly independent sets
    • Any subset of a linearly independent set is linearly independent
    • If a set contains the zero vector, it is linearly dependent
    • In a vector space of dimension nn, any set of more than nn vectors is linearly dependent

Determining Linear Independence

  • To determine if a set of vectors {v1,v2,โ€ฆ,vk}\{v_1, v_2, \ldots, v_k\} is linearly independent, solve the equation c1v1+c2v2+โ‹ฏ+ckvk=0c_1v_1 + c_2v_2 + \cdots + c_kv_k = 0 for the coefficients c1,c2,โ€ฆ,ckc_1, c_2, \ldots, c_k
    • If the only solution is the trivial solution (c1,c2,โ€ฆ,ck)=(0,0,โ€ฆ,0)(c_1, c_2, \ldots, c_k) = (0, 0, \ldots, 0), the set is linearly independent
    • If there are non-trivial solutions, the set is linearly dependent
  • Example: To determine if the vectors (1,2,3)(1, 2, 3), (2,1,1)(2, 1, 1), and (3,5,7)(3, 5, 7) in R3\mathbb{R}^3 are linearly independent, solve the equation c1(1,2,3)+c2(2,1,1)+c3(3,5,7)=(0,0,0)c_1(1, 2, 3) + c_2(2, 1, 1) + c_3(3, 5, 7) = (0, 0, 0)
    • This leads to a system of linear equations, which can be solved using techniques like Gaussian elimination
    • In this case, the only solution is (c1,c2,c3)=(0,0,0)(c_1, c_2, c_3) = (0, 0, 0), so the vectors are linearly independent

Importance of Linear Independence in Bases

  • Linear independence is a crucial property for bases of vector spaces
    • Ensures that each vector in the basis is not redundant and contributes to spanning the entire vector space
    • Guarantees that every vector in the vector space has a unique representation as a linear combination of the basis vectors
  • In a finite-dimensional vector space, a set of vectors is a basis if and only if it is linearly independent and spans the vector space
    • Linear independence ensures that the set is not "too large"
    • Spanning ensures that the set is "large enough" to generate all vectors in the space
  • Example: In R3\mathbb{R}^3, the standard basis {(1,0,0),(0,1,0),(0,0,1)}\{(1, 0, 0), (0, 1, 0), (0, 0, 1)\} is linearly independent and spans R3\mathbb{R}^3, making it a basis for the vector space