Vectors When the Scalars Are Residues
Vector-space calculations do not require real numbers as scalars. For a prime \(p\), the field \(\mathbb{F}_p\) consists of the residue classes modulo \(p\), represented by \(0,1,\dots,p-1\). Addition, subtraction, and multiplication are performed modulo \(p\). For example, in \(\mathbb{F}_5\), \(4+3=2\) and \(2\cdot 3=1\), because \(7\) has remainder \(2\) and \(6\) has remainder \(1\) on division by \(5\). The primality condition matters: every nonzero element of \(\mathbb{F}_p\) has a multiplicative inverse, so the scalars form a field.
A vector in \(\mathbb{F}_p^n\) is a column of \(n\) elements of \(\mathbb{F}_p\). Vector addition and scalar multiplication are performed coordinate by coordinate, always reducing each result modulo \(p\). Thus vectors that look like ordinary integer columns are not being calculated over \(\mathbb{R}\): their entries and coefficients belong to \(\mathbb{F}_p\).
These rules have the same form over \(\mathbb{F}_p\) as over \(\mathbb{R}\), but the calculations that verify them take place in the finite field. The zero vector in \(\mathbb{F}_p^n\) has every coordinate equal to \(0\). The additive inverse of a vector is found by taking the additive inverse of each coordinate; for instance, \(-2=3\) in \(\mathbb{F}_5\).
Why Tuples, Matrices, and Polynomials Are Vector Spaces
Proof. The field operations in \(\mathbb{F}_p\) are closed and obey the field laws. For tuples, adding two \(n\)-coordinate columns or multiplying one by a scalar produces another \(n\)-coordinate column over \(\mathbb{F}_p\). The zero column is an additive identity, and negating each entry gives an additive inverse. Each vector-space identity holds in every coordinate: for example, the \(i\)th coordinate of \(a(\mathbf{u}+\mathbf{v})\) is \(a(u_i+v_i)=au_i+av_i\), which is the \(i\)th coordinate of \(a\mathbf{u}+a\mathbf{v}\). Associativity, commutativity, the scalar addition rule, compatibility of scalar multiplication, and the identity-scalar rule follow coordinate by coordinate from the corresponding field laws. For fixed-size matrices, the same argument applies to each matrix entry, so the zero matrix and entrywise additive inverses supply the required zero and inverses. For polynomials, addition and scalar multiplication act on each coefficient. Sums and scalar multiples of polynomials still have only finitely many nonzero coefficients, and the zero polynomial and coefficientwise negatives supply the additive identity and inverses. Each axiom then holds coefficient by coefficient by the field laws. Therefore all three sets satisfy the vector-space axioms. \(\square\)
For a polynomial, “coefficientwise” means that like powers of \(x\) are combined. It does not mean that the exponent is reduced modulo \(p\). For example, over \(\mathbb{F}_2\), the coefficients \(1+1\) cancel to \(0\), but the term \(x^3\) remains a term of degree \(3\).
Computing Linear Combinations
A linear combination of \(\mathbf{v}_1,\dots,\mathbf{v}_k\) over \(\mathbb{F}_p\) is \(c_1\mathbf{v}_1+\cdots+c_k\mathbf{v}_k\), where each coefficient \(c_i\) is in \(\mathbb{F}_p\). The vector addition and scalar multiplication are those of the space in question. In particular, each coordinate or matrix entry is reduced modulo \(p\) as the calculation proceeds.
Worked Example: A Linear Combination in \(\mathbb{F}_5^2\)
Let \(\mathbf{u}=\begin{bmatrix}1\\2\end{bmatrix}\) and \(\mathbf{v}=\begin{bmatrix}3\\1\end{bmatrix}\) in \(\mathbb{F}_5^2\). Compute \(2\mathbf{u}+4\mathbf{v}\).
First multiply each coordinate by its scalar, reducing modulo \(5\):
Now add the columns coordinatewise:
Check: the first coordinate is \(2+12=14\), whose remainder modulo \(5\) is \(4\); the second is \(4+4=8\), whose remainder is \(3\). Thus the result is \(\begin{bmatrix}4\\3\end{bmatrix}\), with both coordinates reduced.
To form a span, allow all possible coefficients from the field, not just the coefficients \(0\) and \(1\). The resulting collection is a set of vectors in the same vector space.
Worked Example: Checking Membership in a Span
Use the vectors \(\mathbf{u}\) and \(\mathbf{v}\) from the previous example. Show that \(\begin{bmatrix}4\\3\end{bmatrix}\) belongs to \(\operatorname{span}\{\mathbf{u},\mathbf{v}\}\) over \(\mathbb{F}_5\).
Membership means that some coefficients in \(\mathbb{F}_5\) produce the target. Try \(c_1=2\) and \(c_2=4\). The computation is
Both coefficients \(2\) and \(4\) are allowed scalars, and the computed combination equals the target. Therefore \(\begin{bmatrix}4\\3\end{bmatrix}\in\operatorname{span}\{\mathbf{u},\mathbf{v}\}\).
Check: the first coordinate of the combination is \(2\cdot1+4\cdot3=14=4\) in \(\mathbb{F}_5\); the second is \(2\cdot2+4\cdot1=8=3\). Substitution reproduces the target in both coordinates.
Spans Are Closed Under the Vector-Space Operations
Proof. Let \(S=\operatorname{span}\{\mathbf{v}_1,\dots,\mathbf{v}_k\}\). The zero vector belongs to \(S\), since choosing every coefficient to be \(0\) gives \(0\mathbf{v}_1+\cdots+0\mathbf{v}_k=\mathbf{0}\). Take any \(\mathbf{x},\mathbf{y}\in S\). By the definition of span, there are coefficients \(a_1,\dots,a_k,b_1,\dots,b_k\in\mathbb{F}_p\) such that \(\mathbf{x}=\sum_{i=1}^k a_i\mathbf{v}_i\) and \(\mathbf{y}=\sum_{i=1}^k b_i\mathbf{v}_i\). Using the vector-space distributive laws, \(\mathbf{x}+\mathbf{y}=\sum_{i=1}^k(a_i+b_i)\mathbf{v}_i\). Each \(a_i+b_i\) is in \(\mathbb{F}_p\), so this sum belongs to \(S\). Now take any \(c\in\mathbb{F}_p\). Then \(c\mathbf{x}=\sum_{i=1}^k(ca_i)\mathbf{v}_i\), and each \(ca_i\) is in \(\mathbb{F}_p\), so \(c\mathbf{x}\in S\). Thus \(S\) contains zero and is closed under addition and scalar multiplication; it is a subspace. \(\square\)
This result explains why the word “span” is useful: it describes a collection that stays within the same vector space when its elements are added or multiplied by scalars. To establish that one vector belongs to a span, it is enough to exhibit coefficients and verify the resulting combination. To establish that a whole set is the span requires accounting for all possible coefficients, a different task from checking one membership claim.
Finite-Field Operations in Matrices and Polynomials
Worked Example: Combining Matrices over \(\mathbb{F}_3\)
Let \(\mathbf{A}=\begin{bmatrix}1&2\\0&1\end{bmatrix}\) and \(\mathbf{B}=\begin{bmatrix}2&1\\1&0\end{bmatrix}\), with entries in \(\mathbb{F}_3\). Compute \(2\mathbf{A}+\mathbf{B}\).
Multiply each entry of \(\mathbf{A}\) by \(2\), reducing modulo \(3\):
Add \(\mathbf{B}\) entrywise and reduce each entry:
Check: the entries of \(2\mathbf{A}+\mathbf{B}\), calculated directly, are \(2+2=4=1\), \(4+1=5=2\), \(0+1=1\), and \(2+0=2\), all modulo \(3\). This verifies the displayed matrix entry by entry.
Worked Example: Adding Polynomials over \(\mathbb{F}_2\)
Let \(f(x)=1+x+x^2\) and \(g(x)=1+x^3\), with coefficients in \(\mathbb{F}_2\). Compute \(f(x)+g(x)\).
Match terms with the same power of \(x\), adding their coefficients modulo \(2\):
Check: the constant coefficient is \(1+1=0\) in \(\mathbb{F}_2\); the coefficients of \(x\), \(x^2\), and \(x^3\) are respectively \(1+0=1\), \(1+0=1\), and \(0+1=1\). Hence the result has exactly the displayed terms. Also, \(1\cdot f(x)=f(x)\), whereas \(0\cdot f(x)=0\), illustrating that the available scalars are just \(0\) and \(1\).
Common Pitfall: Reducing Only at the End
A frequent error is to leave an answer as though the entries were ordinary integers. For example, over \(\mathbb{F}_5\), a mistaken calculation might write \(3\begin{bmatrix}1\\2\end{bmatrix}=\begin{bmatrix}3\\6\end{bmatrix}\) and conclude that this is the final vector. The correction is to reduce each entry modulo \(5\): \(6=1\), so the scalar multiple is \(\begin{bmatrix}3\\1\end{bmatrix}\). The unreduced column does not use entries in the chosen representative set \(0,1,2,3,4\).
The modulus itself is another essential condition. Modulo \(6\), the nonzero residue \(2\) has no multiplicative inverse: the possible products \(2\cdot0,2\cdot1,\dots,2\cdot5\) have remainders \(0,2,4,0,2,4\), never \(1\). Thus the residues modulo \(6\) do not form a field, and they cannot serve as the scalar field in the vector-space definition used here. For \(\mathbb{F}_p\), keep \(p\) prime, and reduce every coordinate, entry, and coefficient using that same modulus.
Check Your Understanding
Use the indicated finite field in each question, and reduce all results to field elements.
- In \(\mathbb{F}_7^2\), compute \(3\begin{bmatrix}2\\5\end{bmatrix}+4\begin{bmatrix}1\\3\end{bmatrix}\).
- In \(\mathbb{F}_3\), verify directly that \(2\begin{bmatrix}1&2\\0&1\end{bmatrix}+\begin{bmatrix}2&1\\1&0\end{bmatrix}\) is a matrix over \(\mathbb{F}_3\).
- Over \(\mathbb{F}_2\), compute \((1+x^2)+(1+x+x^2)\).
- Give coefficients in \(\mathbb{F}_5\) showing that \(\begin{bmatrix}2\\4\end{bmatrix}\) belongs to \(\operatorname{span}\left\{\begin{bmatrix}1\\2\end{bmatrix},\begin{bmatrix}3\\1\end{bmatrix}\right\}\), or explain why none exist.
- In one or two sentences, explain why reduction modulo \(6\) does not give a field of scalars.