# Coordinate vector

In linear algebra, a coordinate vector is a representation of a vector as an ordered list of numbers (a tuple) that describes the vector in terms of a particular ordered basis. An easy example may be a position such as (5, 2, 1) in a 3-dimensional Cartesian coordinate system with the basis as the axes of this system. Coordinates are always specified relative to an ordered basis. Bases and their associated coordinate representations let one realize vector spaces and linear transformations concretely as column vectors, row vectors, and matrices; hence, they are useful in calculations.
The idea of a coordinate vector can also be used for infinite-dimensional vector spaces, as addressed below.

## Definition

Let V be a vector space of dimension n over a field F and let
    $B=\{b_{1},b_{2},\ldots ,b_{n}\}$
be an ordered basis for V. Then for every $v\in V$ there is a unique linear combination of the basis vectors that equals $v$:
    $v=\alpha _{1}b_{1}+\alpha _{2}b_{2}+\cdots +\alpha _{n}b_{n}.$
The coordinate vector of $v$ relative to B is the sequence of coordinates
    $[v]_{B}=(\alpha _{1},\alpha _{2},\ldots ,\alpha _{n}).$
This is also called the representation of $v$ with respect to B, or the B representation of $v$. The $\alpha _{1},\alpha _{2},\ldots ,\alpha _{n}$ are called the coordinates of $v$. The order of the basis becomes important here, since it determines the order in which the coefficients are listed in the coordinate vector.
Coordinate vectors of finite-dimensional vector spaces can be represented by matrices as column or row vectors. In the above notation, one can write
    $[v]_{B}={\begin{bmatrix}\alpha _{1}\\\vdots \\\alpha _{n}\end{bmatrix}}$
and
    $[v]_{B}^{T}={\begin{bmatrix}\alpha _{1}&\alpha _{2}&\cdots &\alpha _{n}\end{bmatrix}}$
where $[v]_{B}^{T}$ is the transpose of the matrix $[v]_{B}$.

## The standard representation

We can mechanize the above transformation by defining a function $\phi _{B}$, called the standard representation of V with respect to B, that takes every vector to its coordinate representation: $\phi _{B}(v)=[v]_{B}$. Then $\phi _{B}$ is a linear transformation from V to F$^n$. In fact, it is an isomorphism, and its inverse $\phi _{B}^{-1}:F^{n}\to V$ is simply
    $\phi _{B}^{-1}(\alpha _{1},\ldots ,\alpha _{n})=\alpha _{1}b_{1}+\cdots +\alpha _{n}b_{n}.$
Alternatively, we could have defined $\phi _{B}^{-1}$ to be the above function from the beginning, realized that $\phi _{B}^{-1}$ is an isomorphism, and defined $\phi _{B}$ to be its inverse.

## Examples
### Example 1

Let $P_{3}$ be the space of all the algebraic polynomials of degree at most 3 (i.e. the highest exponent of x can be 3). This space is linear and spanned by the following polynomials:
    $B_{P}=\left\{1,x,x^{2},x^{3}\right\}$
matching
    $1:={\begin{bmatrix}1\\0\\0\\0\end{bmatrix}};\quad x:={\begin{bmatrix}0\\1\\0\\0\end{bmatrix}};\quad x^{2}:={\begin{bmatrix}0\\0\\1\\0\end{bmatrix}};\quad x^{3}:={\begin{bmatrix}0\\0\\0\\1\end{bmatrix}}$
then the coordinate vector corresponding to the polynomial
    $p\left(x\right)=a_{0}+a_{1}x+a_{2}x^{2}+a_{3}x^{3}$
is
    ${\begin{bmatrix}a_{0}\\a_{1}\\a_{2}\\a_{3}\end{bmatrix}}.$
According to that representation, the differentiation operator d/dx which we shall mark D will be represented by the following matrix:
    $Dp(x)=P'(x);\quad [D]={\begin{bmatrix}0&1&0&0\\0&0&2&0\\0&0&0&3\\0&0&0&0\\\end{bmatrix}}$
Using that method it is easy to explore the properties of the operator, such as: invertibility, Hermitian or anti-Hermitian or neither, spectrum and eigenvalues, and more.

### Example 2

The Pauli matrices, which represent the spin operator when transforming the spin eigenstates into vector coordinates.

## Basis transformation matrix

Let B and C be two different bases of a vector space V, and let us mark with $\lbrack M\rbrack _{C}^{B}$ the matrix which has columns consisting of the C representation of basis vectors b$_1$, b$_2$, …, b$_n$:
    $\lbrack M\rbrack _{C}^{B}={\begin{bmatrix}\lbrack b_{1}\rbrack _{C}&\cdots &\lbrack b_{n}\rbrack _{C}\end{bmatrix}}$
This matrix is referred to as the basis transformation matrix from B to C. It can be regarded as an automorphism over $F^{n}$. Any vector v represented in B can be transformed to a representation in C as follows:
    $\lbrack v\rbrack _{C}=\lbrack M\rbrack _{C}^{B}\lbrack v\rbrack _{B}.$
Under the transformation of basis, notice that the superscript on the transformation matrix, M, and the subscript on the coordinate vector, v, are the same, and seemingly cancel, leaving the remaining subscript. While this may serve as a memory aid, it is important to note that no such cancellation, or similar mathematical operation, is taking place.

### Corollary

The matrix M is an invertible matrix and M$^{−1}$ is the basis transformation matrix from C to B. In other words,
    ${\begin{aligned}\operatorname {Id} &=\lbrack M\rbrack _{C}^{B}\lbrack M\rbrack _{B}^{C}=\lbrack M\rbrack _{C}^{C}\\[3pt]&=\lbrack M\rbrack _{B}^{C}\lbrack M\rbrack _{C}^{B}=\lbrack M\rbrack _{B}^{B}\end{aligned}}$

## Infinite-dimensional vector spaces

Suppose V is an infinite-dimensional vector space over a field F. If the dimension is κ, then there is some basis of κ elements for V. After an order is chosen, the basis can be considered an ordered basis. The elements of V are finite linear combinations of elements in the basis, which give rise to unique coordinate representations exactly as described before. The only change is that the indexing set for the coordinates is not finite. Since a given vector v is a finite linear combination of basis elements, the only nonzero entries of the coordinate vector for v will be the nonzero coefficients of the linear combination representing v. Thus the coordinate vector for v is zero except in finitely many entries.
The linear transformations between (possibly) infinite-dimensional vector spaces can be modeled, analogously to the finite-dimensional case, with infinite matrices. The special case of the transformations from V into V is described in the full linear ring article.