Vector Spaces


< all posts

Published : 2026-06-30

Vector Spaces

This note introduces vector spaces, one of the most fundamental structures in mathematics, and explores why they are so useful. For example,

Once you start looking vectors appear everywhere.

What is a vector ?

To explain it in one simple line :

Vector is an element of vector space

Although vectors are often represented as lists of numbers, they can also be polynomials, matrices, functions, or many other mathematical objects. What makes them vectors is not their appearance, but the operations defined on them.

Vector Space

Let's begin with the familiar vector space Rn\mathbb R^n :

For example, consider vectors in R4\mathbb R^4 We define two operations on these vectors :

u=[u1u2u3u4]v=[v1v2v3v4]u = \begin{bmatrix} u_1 \\ u_2 \\ u_3 \\ u_4 \end{bmatrix} \qquad v = \begin{bmatrix} v_1 \\ v_2 \\ v_3 \\ v_4 \end{bmatrix}

Here ui,viRu_i, v_i \in \mathbb R

u+v=[u1+v1u2+v2u3+v3u4+v4]u + v = \begin{bmatrix} u_1 + v_1 \\ u_2 + v_2 \\ u_3 + v_3 \\ u_4 + v_4 \end{bmatrix}

Suppose cRc \in \mathbb R, then :

cu=[cu1cu2cu3cu4]cu = \begin{bmatrix} cu_1 \\ cu_2 \\ cu_3 \\ cu_4 \end{bmatrix}

Together with the vector space axioms, these operations make Rn\mathbb R^n a vector space.

A subset WRnW \subset \mathbb R^n is called subspace if it satisfies the following properties :

Defining Vector Spaces over F\mathbb F

A vector space VV over a field F\mathbb F is a set together with two operations :

These two operations must satisfy the collection of axioms which are defined below.

Axioms for Vector Spaces

So far, we have defined the objects and operations of a vector space. The next question is: how can we build new vectors from existing ones ?

Span

Let's define a vector S=(v1,v2,....,vn)S = (v_1, v_2, ....,v_n) where viv_i is vector. Define XX to be a column in Fn\mathbb F^n

SX=[v1,v2,....,vn][x1....xn]=v1x1+v2x2+....+vnxnSX = \begin{bmatrix} v_1, v_2, ....,v_n \end{bmatrix} \begin{bmatrix} x_1 \\ .. \\ .. \\ x_n \end{bmatrix} = v_1x_1 + v_2x_2 + .... + v_nx_n

The set of all vectors that are linear combinations of SS form a subspace of VV, this is known as subspace spanned by set.

This span is the smallest subspace of VV that contains SS, and it is denoted by Span(S)Span(S).

span(S)={x1v1+x2v2++xnvn  |  x1,x2,,xnF}.\operatorname{span}(S) = \left\{ x_1v_1+x_2v_2+\cdots+x_nv_n \;\middle|\; x_1,x_2,\ldots,x_n\in\mathbb{F} \right\}.

To give a small example where we have a span which equals to the whole of vector space :

Example in R3\mathbb R^3 Consider the vectors :

(1,0,0),(0,1,0),(0,0,1)(1,0,0),(0,1,0),(0,0,1)

And any vector (x,y,z)(x,y,z) Can be written as :

x(1,0,0)+y(0,1,0)+z(0,0,1)x(1,0,0) + y(0,1,0) + z(0,0,1)

Therefore in this case we can say that :

span{(1,0,0),(0,1,0),(0,0,1)}=R3span\left\{(1,0,0),(0,1,0),(0,0,1)\right\} = \mathbb R^3

Basis

A Basis of vector space VV is a set (v1,...vn)(v_1, ... v_n) of vector that are independent and also spans VV. Set B=(v1,v2,...,vn)\mathbf B = (v_1, v_2, ... ,v_n) is a basis of VV if wVw \in V can be written in a unique combination

w=v1x1+....+vnxn=BXw = v_1x_1 + .... + v_nx_n = \mathbf BX

Dimension of a finite dimensional vector space VV is the number of vectors in the basis, denoted by dimV\dim V.

Computing with Basis

Suppose we choose the standard basis of R2\mathbb{R}^2

B={(1,0),(0,1)}.\mathbf B=\{(1,0),(0,1)\}.

Now consider the vector

v=(3,2).v=(3,2).

Since B\mathbf B is a basis, the vector vv can be written uniquely as a linear combination of the basis vectors:

v=3(1,0)+2(0,1).v = 3(1,0) + 2(0,1).

The coefficients 33 and 22 are called the coordinates of vv with respect to the basis B\mathbf B.

We denote the coordinate vector of vv by

[v]B=(32).[v]_B= \begin{pmatrix} 3\\ 2 \end{pmatrix}.

The vector itself has not changed. We are simply recording how to construct it from the chosen basis vectors.


Now consider a different basis

B={(1,1),(1,1)}.\mathbf B'=\{(1,1),(1,-1)\}.

The same vector

v=(3,2)v=(3,2)

can now be written as

v=52(1,1)+12(1,1).v=\frac{5}{2}(1,1)+\frac{1}{2}(1,-1).

Therefore,

[v]B=(5212).[v]_{B'}= \begin{pmatrix} \frac{5}{2}\\ \frac{1}{2} \end{pmatrix}.

Although the coordinates have changed, the vector itself remains exactly the same. Only its representation with respect to the chosen basis has changed.

A vector is independent of the basis, but its coordinates are not.

Vector Spaces and Linear Codes

One of the most useful applications of vector spaces is in coding theory. In a linear error-correcting code, every codeword is simply a vector over a finite field such as F2\mathbb{F}_2. The collection of all valid codewords forms a vector space (or more precisely, a subspace of Fn\mathbb{F}^n). Concepts such as span, basis, dimension, and coordinates become fundamental in constructing and analyzing these codes.

For example, a basis of a linear code allows every codeword to be represented uniquely as a linear combination of basis vectors. These coefficients correspond to the information being encoded, while the resulting vector is the transmitted codeword.