Basis Finder for Vector Spaces
Input a set of vectors over a finite field $Z_p$. This tool computes the dimension, finds a basis, and visualizes the span in the 2D plane.
Prime number (e.g., 2, 3, 5, 7)
Length of each vector
Format: (x,y), (a,b)…
Theory: Vector Spaces over Finite Fields
Vector Spaces are fundamental structures in linear algebra. While students typically study vector spaces over the real numbers ($\mathbb{R}$), vector spaces can be defined over any Field, including Finite Fields like $Z_p$ (integers modulo a prime $p$).
A Basis of a vector space is a set of vectors that is both Linearly Independent and Spans the entire space. The number of vectors in a basis is called the Dimension of the space.
In a finite field $Z_p$, arithmetic is performed modulo $p$. For example, in $Z_5$, $3 + 4 = 7 \equiv 2 \pmod 5$. This leads to interesting geometric properties. A vector space $Z_p^n$ contains exactly $p^n$ distinct vectors. A subspace of dimension $k$ contains $p^k$ vectors.
To find a basis from a set of spanning vectors, we construct a matrix where the rows are the given vectors. We then perform Gaussian Elimination (using modular arithmetic inverses) to reduce the matrix to Row Reduced Echelon Form (RREF). The non-zero rows of the RREF form a basis for the row space (the subspace spanned by the inputs).