Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Coordinates and bases

Constructing bases and reading coefficients as coordinate vectors.

This page builds bases from given vectors and then uses a basis to turn each vector into a column of coordinates. Coordinates let calculations in any finite-dimensional space be done with columns in FnF^n.

Constructing a basis from data

[DEFINITION]

Basis

A set BB in a vector space VV is a basis for VV if it is linearly independent and spans VV.

[DEFINITION]

Dimension

If a vector space VV has a finite basis, then VV is finite-dimensional and its dimension, denoted dim⁡(V)\dim(V), is the common number of vectors in all bases of VV.

A basis can be built from given vectors in two directions, both using pivot columns. A spanning set is cut down to a maximal independent subset and an independent set is extended by standard basis vectors until it spans.

If SS is a finite non-empty subset of a vector space, then SS contains a subset which is a basis for span⁡(S)\operatorname{span}(S). In particular, a non-zero vector space spanned by a finite set has a basis.

[METHOD]

Reduce a spanning set to a basis

For a finite set S={u1,…,un}⊆RmS=\{u_1,\ldots,u_n\}\subseteq\mathbb R^m:

  1. Form the matrix A=[ u1 ⋯ un ]A=[\,u_1\ \cdots\ u_n\,].
  2. Row reduce AA to echelon form.
  3. Keep the original vectors whose columns correspond to pivot columns of the echelon form.

The remaining original vectors form a basis for span⁡(S)\operatorname{span}(S).

Row operations identify which columns are redundant, but the basis must use the corresponding columns of the original matrix. Removing the redundant vectors preserves the span.

[EXAMPLE]

Eight vectors in R5\mathbb R^5

Suppose the row-reduced matrix has columns corresponding to eight original vectors:

(1234571500016826000019370000001800000000).\begin{pmatrix} 1&2&3&4&5&7&1&5\\ 0&0&0&1&6&8&2&6\\ 0&0&0&0&1&9&3&7\\ 0&0&0&0&0&0&1&8\\ 0&0&0&0&0&0&0&0 \end{pmatrix}.

The leading columns are 1,4,5,71,4,5,7. Retaining the four original vectors in those positions gives a basis for the span of the eight vectors, so that span has dimension 44.

If VV is spanned by a finite set and SS is an independent subset of VV, then there exists a basis for VV containing SS. In other words, every independent subset can be extended to a basis. To build it, keep adjoining a vector outside the current span until the set spans VV. Each addition preserves independence and the dimension of VV bounds the size of any independent set, so the process stops after finitely many steps.

[METHOD]

Extend an independent set to a basis

For an independent set S={u1,…,un}⊆RmS=\{u_1,\ldots,u_n\}\subseteq\mathbb R^m:

  1. Form the matrix with columns
[ u1 ⋯ un e1 ⋯ em ],[\,u_1\ \cdots\ u_n\ e_1\ \cdots\ e_m\,],

where e1,…,eme_1,\ldots,e_m are the standard basis vectors. 2. Row reduce this matrix to echelon form. 3. Keep the original columns corresponding to all pivot columns.

The resulting vectors form a basis for Rm\mathbb R^m containing SS.

The standard basis supplies candidate vectors outside the current span. The pivot columns keep the given independent vectors and add only the candidates needed to reach dimension mm. As before, take the columns from the original matrix: row reduction changes the vectors but not the pivot positions.

[EXAMPLE]

Extending a set in R3\mathbb R^3

Let

S={(123),(124),(125)}.S=\left\{ \begin{pmatrix}1\\2\\3\end{pmatrix}, \begin{pmatrix}1\\2\\4\end{pmatrix}, \begin{pmatrix}1\\2\\5\end{pmatrix} \right\}.

Writing u1,u2,u3u_1,u_2,u_3 for these vectors, the first two are independent and

u3=2u2−u1,u_3=2u_2-u_1,

so {u1,u2}\{u_1,u_2\} is a basis for span⁡(S)\operatorname{span}(S). Following the construction, adjoin the standard basis columns:

[u1 u2 e1 e2 e3]=(111002201034001)⟶(1002−1010−321001−120).\left[ u_1\ u_2\ e_1\ e_2\ e_3 \right] = \begin{pmatrix} 1&1&1&0&0\\ 2&2&0&1&0\\ 3&4&0&0&1 \end{pmatrix} \longrightarrow \begin{pmatrix} 1&0&0&2&-1\\ 0&1&0&-\frac32&1\\ 0&0&1&-\frac12&0 \end{pmatrix}.

The leading columns are 1,2,31,2,3. Keeping the corresponding original columns gives the basis

{(123),(124),(100)}\left\{ \begin{pmatrix}1\\2\\3\end{pmatrix}, \begin{pmatrix}1\\2\\4\end{pmatrix}, \begin{pmatrix}1\\0\\0\end{pmatrix} \right\}

for R3\mathbb R^3.

Coordinates record the unique coefficients

Once an ordered basis is fixed, the unique coefficients of a vector form a column of scalars.

[DEFINITION]

Coordinate vector

Let B=(u1,…,un)B=(u_1,\ldots,u_n) be an ordered basis for a vector space VV. If

u=x1u1+⋯+xnun,u=x_1u_1+\cdots+x_nu_n,

then the coordinate vector of uu with respect to BB is the column

[u]B=(x1⋮xn).[u]_B= \begin{pmatrix} x_1\\ \vdots\\ x_n \end{pmatrix}.

The order of BB fixes the order of the entries. Changing the order of the basis changes the coordinate vector even though it does not change uu.

[METHOD]

Compute a coordinate vector

To find [u]B[u]_B for an ordered basis B=(u1,…,un)B=(u_1,\ldots,u_n):

  1. Solve
u=x1u1+⋯+xnunu=x_1u_1+\cdots+x_nu_n

for the coefficients. 2. Place the coefficients in the order determined by BB:

[u]B=(x1⋮xn).[u]_B= \begin{pmatrix} x_1\\ \vdots\\ x_n \end{pmatrix}.

Step 1 is a span membership problem and its solution is unique because BB is independent.

[EXAMPLE]

Coordinates in the standard polynomial basis

For the ordered basis

B=(1,x,x2,…,xn)B=(1,x,x^2,\ldots,x^n)

of Pn(F)P_n(F) over the chosen scalar field FF, the polynomial

p=a0+a1x+⋯+anxn,a0,…,an∈F,p=a_0+a_1x+\cdots+a_nx^n, \qquad a_0,\ldots,a_n\in F,

has coordinate vector

[p]B=(a0a1⋮an).[p]_B= \begin{pmatrix} a_0\\ a_1\\ \vdots\\ a_n \end{pmatrix}.
[EXAMPLE]

Coordinates in a non-standard polynomial basis

Let

B=(1+x, x+x2, 1+x2).B=(1+x,\ x+x^2,\ 1+x^2).

First check that these polynomials form a basis. If λ1(1+x)+λ2(x+x2)+λ3(1+x2)=0\lambda_1(1+x)+\lambda_2(x+x^2)+\lambda_3(1+x^2)=0, equating the constant, linear and quadratic coefficients gives

λ1+λ3=0,λ1+λ2=0,λ2+λ3=0.\lambda_1+\lambda_3=0,\qquad \lambda_1+\lambda_2=0,\qquad \lambda_2+\lambda_3=0.

These equations force all three coefficients to be zero. Thus BB is an independent set of three vectors in the three-dimensional space P2(R)P_2(\mathbb R), so it is a basis. To find the coordinates of x2+x+1x^2+x+1, solve

x2+x+1=λ1(1+x)+λ2(x+x2)+λ3(1+x2).x^2+x+1 =\lambda_1(1+x)+\lambda_2(x+x^2)+\lambda_3(1+x^2).

Equating coefficients gives

λ1+λ3=1,λ1+λ2=1,λ2+λ3=1.\lambda_1+\lambda_3=1,\qquad \lambda_1+\lambda_2=1,\qquad \lambda_2+\lambda_3=1.

Thus

λ1=λ2=λ3=12,\lambda_1=\lambda_2=\lambda_3=\frac12,

and

[x2+x+1]B=(121212).[x^2+x+1]_B= \begin{pmatrix} \frac12\\[2pt] \frac12\\[2pt] \frac12 \end{pmatrix}.

Orthonormal coordinates

When the basis vectors in Rm\mathbb R^m are orthonormal, dot products give the coordinates directly, with no system to solve.

[DEFINITION]

Orthonormal set

A set S={u1,…,un}S=\{u_1,\ldots,u_n\} in Rm\mathbb R^m is orthonormal if

ui⋅uj={1,i=j,0,i≠j.u_i\cdot u_j= \begin{cases} 1,&i=j,\\ 0,&i\ne j. \end{cases}
[THEOREM]

Orthonormal sets are independent

Every orthonormal set is linearly independent.

If λ1u1+⋯+λnun=0\lambda_1u_1+\cdots+\lambda_nu_n=0, take the dot product with uku_k. Orthonormality leaves λk=0\lambda_k=0. This holds for every kk.

[DEFINITION]

Orthonormal basis

An orthonormal basis of a subspace of Rm\mathbb R^m is a basis that is also an orthonormal set.

[THEOREM]

Coordinates in an orthonormal basis

If B=(u1,…,un)B=(u_1,\ldots,u_n) is an ordered orthonormal basis of a subspace V⊆RmV\subseteq\mathbb R^m and v∈Vv\in V, then

[v]B=(u1⋅v⋮un⋅v).[v]_B= \begin{pmatrix} u_1\cdot v\\ \vdots\\ u_n\cdot v \end{pmatrix}.

Each dot product extracts one coefficient because the other basis vectors are perpendicular to it.

[PROOF]

Write v=x1u1+⋯+xnunv=x_1u_1+\cdots+x_nu_n. Taking the dot product with uku_k gives

uk⋅v=∑j=1nxj(uk⋅uj)=xk.u_k\cdot v =\sum_{j=1}^n x_j(u_k\cdot u_j) =x_k.

These are exactly the entries of [v]B[v]_B.

[EXAMPLE]

An orthonormal basis of R3\mathbb R^3

The set

B=(13(111),12(1−10),16(11−2))B=\left( \frac1{\sqrt3}\begin{pmatrix}1\\1\\1\end{pmatrix}, \frac1{\sqrt2}\begin{pmatrix}1\\-1\\0\end{pmatrix}, \frac1{\sqrt6}\begin{pmatrix}1\\1\\-2\end{pmatrix} \right)

is orthonormal, hence independent. It has three vectors in R3\mathbb R^3, so it is a basis. For

v=(a1a2a3),v=\begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix},

the orthonormal formula gives

[v]B=((a1+a2+a3)/3(a1−a2)/2(a1+a2−2a3)/6).[v]_B= \begin{pmatrix} (a_1+a_2+a_3)/\sqrt3\\ (a_1-a_2)/\sqrt2\\ (a_1+a_2-2a_3)/\sqrt6 \end{pmatrix}.

Coordinate arithmetic and matrix tests

[THEOREM]

Coordinates preserve vector-space operations

If BB is an ordered basis for VV, u,v∈Vu,v\in V and λ∈F\lambda\in F, then

u=v  ⟺  [u]B=[v]B,[u+v]B=[u]B+[v]B,[λu]B=λ[u]B.u=v\iff [u]_B=[v]_B, \qquad [u+v]_B=[u]_B+[v]_B, \qquad [\lambda u]_B=\lambda[u]_B.

These identities follow by adding or scaling the coefficients in the unique representations.

[COROLLARY]

Square-matrix basis criteria

For a square matrix AA with columns u1,…,unu_1,\ldots,u_n, the following are equivalent:

  • the columns are linearly independent;
  • the columns span Rn\mathbb R^n;
  • the columns form a basis for Rn\mathbb R^n.

For a square matrix, these basis criteria are equivalent to the familiar tests for invertibility.

Data fitting uses coordinates in Pn(R)P_n(\mathbb R) to express interpolation conditions. Later, coordinates in the domain and codomain turn a linear transformation into a matrix.

On this page