Tutorials › Linear Algebra › Dual Bases and Coordinate Extraction

Dual Spaces and Bilinear Forms · Tutorial 883 of 1000

Dual Bases and Coordinate Extraction

Learn to build a dual basis and use its functionals to recover coordinates, both abstractly and by matrix inversion.

Advanced 9 min read

What You'll Learn

  • Define the dual basis associated with an ordered basis of a finite-dimensional space.
  • Prove that dual-basis functionals extract the coefficients of any vector.
  • Show that the dual basis is a basis of the dual space.
  • Compute dual functionals as rows of the inverse basis matrix.
  • Distinguish coordinate extraction from transposing or inverting the wrong matrix.
  • Apply the method to a basis of a subspace of three-dimensional space.

Why a Dual Basis Extracts Coordinates

A basis represents each vector using a unique list of scalar coefficients. A dual basis provides a direct way to retrieve those coefficients: its functionals act on a vector and return one coordinate at a time. This is useful both as a conceptual link between vectors and linear functionals and as a practical computation. In coordinates, the dual functionals can be read from the inverse of the matrix whose columns are the basis vectors.

Let \(V\) be a finite-dimensional vector space over a field \(\mathbb{F}\), where \(\mathbb{F}\) is \(\mathbb{R}\) or \(\mathbb{C}\). A linear functional on \(V\) is a linear map \(f:V\to\mathbb{F}\). The dual space \(V^*\) is the vector space of all such functionals, with addition and scalar multiplication defined pointwise. In the complex case, these are linear functionals, not conjugate-linear functionals.

Definition: Let \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) be an ordered basis of \(V\). Its dual basis is the ordered list \(\mathcal{B}^*=(f_1,\dots,f_n)\) in \(V^*\) satisfying \(f_i(\mathbf{b}_j)=\delta_{ij}\) for all \(i,j\), where \(\delta_{ij}=1\) if \(i=j\) and \(\delta_{ij}=0\) otherwise.

The order matters: \(f_i\) returns the coefficient of \(\mathbf{b}_i\), so matching the functional to the corresponding basis vector is essential. If \(\mathbf{v}=c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n\), then linearity and the defining values give \(f_i(\mathbf{v})=c_i\). The next result proves this for every vector and also establishes that the required functionals exist.

Theorem (Dual basis and coordinate extraction): Let \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) be an ordered basis of a finite-dimensional vector space \(V\) over \(\mathbb{F}\). There is a unique dual basis \((f_1,\dots,f_n)\) satisfying \(f_i(\mathbf{b}_j)=\delta_{ij}\). For every \(\mathbf{v}\in V\), if \(\mathbf{v}=\sum_{j=1}^n c_j\mathbf{b}_j\), then \(f_i(\mathbf{v})=c_i\). Moreover, \((f_1,\dots,f_n)\) is a basis of \(V^*\).

Proof. Since \(\mathcal{B}\) is a basis, every \(\mathbf{v}\in V\) has a unique expression \(\mathbf{v}=\sum_{j=1}^n c_j\mathbf{b}_j\). Define \(f_i(\mathbf{v})=c_i\). This defines a function on all of \(V\) because the coefficients are unique. If \(\mathbf{v}=\sum_j c_j\mathbf{b}_j\) and \(\mathbf{w}=\sum_j d_j\mathbf{b}_j\), then \(a\mathbf{v}+b\mathbf{w}=\sum_j(ac_j+bd_j)\mathbf{b}_j\); its \(i\)-th coefficient is \(ac_i+bd_i\). Thus \(f_i(a\mathbf{v}+b\mathbf{w})=af_i(\mathbf{v})+bf_i(\mathbf{w})\), so \(f_i\) is linear. The \(i\)-th coefficient of \(\mathbf{b}_j\) is \(\delta_{ij}\), giving \(f_i(\mathbf{b}_j)=\delta_{ij}\). Any functional \(g_i\) with these values must satisfy \(g_i(\mathbf{v})=\sum_j c_jg_i(\mathbf{b}_j)=c_i\), proving uniqueness. The same computation proves coordinate extraction. To show the functionals form a basis of \(V^*\), take any \(g\in V^*\). For every \(\mathbf{v}=\sum_j c_j\mathbf{b}_j\), linearity gives \(g(\mathbf{v})=\sum_j c_jg(\mathbf{b}_j)=\sum_j g(\mathbf{b}_j)f_j(\mathbf{v})\). Hence \(g=\sum_j g(\mathbf{b}_j)f_j\), so the functionals span \(V^*\). If \(\sum_i a_if_i\) is the zero functional, evaluating at \(\mathbf{b}_j\) gives \(a_j=0\) for every \(j\). They are linearly independent and therefore form a basis. \(\square\)

In particular, coordinate extraction can be written as a vector identity: \(\mathbf{v}=\sum_{i=1}^n f_i(\mathbf{v})\mathbf{b}_i\). The functionals return the coefficients; the basis vectors then assemble those coefficients back into the vector. This identity is valid for the zero vector as well: every \(f_i(\mathbf{0})=0\), so the reconstruction gives \(\mathbf{0}\).

Computing the Dual Basis with a Matrix Inverse

For \(V=\mathbb{F}^n\), let \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) be an ordered basis of column vectors, and form the basis matrix \(\mathbf{P}=[\mathbf{b}_1\ \cdots\ \mathbf{b}_n]\). Its columns form a basis, so \(\mathbf{P}\) is invertible by the Invertible Matrix Theorem. If \(\mathbf{x}\) is a vector and \(\mathbf{c}\) is its coordinate column relative to \(\mathcal{B}\), then \(\mathbf{x}=\mathbf{P}\mathbf{c}\), hence \(\mathbf{c}=\mathbf{P}^{-1}\mathbf{x}\). Each row of \(\mathbf{P}^{-1}\) therefore represents one dual functional.

Theorem (Inverse-matrix formula for the dual basis): Let \(\mathbf{P}=[\mathbf{b}_1\ \cdots\ \mathbf{b}_n]\) be the basis matrix of a basis of \(\mathbb{F}^n\), and let the \(i\)-th row of \(\mathbf{P}^{-1}\) be \(\mathbf{r}_i\). Then \(f_i(\mathbf{x})=\mathbf{r}_i\mathbf{x}\) defines the corresponding dual basis functional. In particular, \(\mathbf{r}_i\mathbf{b}_j=\delta_{ij}\).

Proof. By the definition of an inverse, \(\mathbf{P}^{-1}\mathbf{P}=\mathbf{I}_n\). The entry in row \(i\), column \(j\) of this product is \(\mathbf{r}_i\mathbf{b}_j\), so it equals \(\delta_{ij}\). Matrix multiplication also shows that each function \(f_i(\mathbf{x})=\mathbf{r}_i\mathbf{x}\) is linear. Thus these functionals have the defining values of the dual basis, which is unique by the dual-basis theorem. For any \(\mathbf{x}\), the coordinate column is \(\mathbf{P}^{-1}\mathbf{x}\), whose \(i\)-th entry is \(\mathbf{r}_i\mathbf{x}=f_i(\mathbf{x})\). \(\square\)

This row formula uses ordinary matrix multiplication, including when the scalar field is \(\mathbb{C}\). No conjugation is applied to the rows: the objects being represented are linear functionals.

Worked Example: A Dual Basis in R²

Find the dual basis for \(\mathbf{b}_1=(1,1)\), \(\mathbf{b}_2=(1,-1)\), then recover the coordinates of \(\mathbf{x}=(5,1)\).

The basis matrix and its inverse are

$$ \mathbf{P}= \begin{bmatrix}1&1\\1&-1\end{bmatrix}, \qquad \mathbf{P}^{-1}= \begin{bmatrix}\tfrac12&\tfrac12\\ \tfrac12&-\tfrac12\end{bmatrix}. $$

Multiplication verifies the inverse:

$$ \mathbf{P}^{-1}\mathbf{P} = \begin{bmatrix}\tfrac12&\tfrac12\\ \tfrac12&-\tfrac12\end{bmatrix} \begin{bmatrix}1&1\\1&-1\end{bmatrix} = \begin{bmatrix}1&0\\0&1\end{bmatrix}. $$

The rows give \(f_1(x_1,x_2)=\tfrac12x_1+\tfrac12x_2\) and \(f_2(x_1,x_2)=\tfrac12x_1-\tfrac12x_2\). For \(\mathbf{x}=(5,1)\),

$$ f_1(\mathbf{x})=\tfrac12(5)+\tfrac12(1)=3, \qquad f_2(\mathbf{x})=\tfrac12(5)-\tfrac12(1)=2. $$

Thus \([\mathbf{x}]_{\mathcal{B}}=(3,2)^{\top}\), and the reconstruction check is \(3(1,1)+2(1,-1)=(3+2,3-2)=(5,1)\). The duality check also holds: \(f_1(\mathbf{b}_1)=1\), \(f_1(\mathbf{b}_2)=0\), \(f_2(\mathbf{b}_1)=0\), and \(f_2(\mathbf{b}_2)=1\).

Worked Example: Inverting a Nonsymmetric Basis Matrix

Let \(\mathbf{b}_1=(1,0)\) and \(\mathbf{b}_2=(1,1)\). Compute the dual basis and the coordinates of \(\mathbf{x}=(3,2)\).

The basis matrix is \(\mathbf{P}=\begin{bmatrix}1&1\\0&1\end{bmatrix}\). Row-reduce the augmented matrix, recording each operation:

$$ \left[\begin{array}{cc|cc} 1&1&1&0\\0&1&0&1 \end{array}\right] \xrightarrow{R_1\to R_1-R_2} \left[\begin{array}{cc|cc} 1&0&1&-1\\0&1&0&1 \end{array}\right]. $$

Therefore \(\mathbf{P}^{-1}=\begin{bmatrix}1&-1\\0&1\end{bmatrix}\), and the dual functionals are \(f_1(x,y)=x-y\) and \(f_2(x,y)=y\). Their values on the basis vectors are \(f_1(\mathbf{b}_1)=1\), \(f_1(\mathbf{b}_2)=0\), \(f_2(\mathbf{b}_1)=0\), and \(f_2(\mathbf{b}_2)=1\). Applying them to \((3,2)\) gives \(f_1(3,2)=3-2=1\) and \(f_2(3,2)=2\).

Check: the recovered coordinate column \((1,2)^{\top}\) reconstructs the vector: \(1(1,0)+2(1,1)=(1+2,0+2)=(3,2)\).

Dual Bases on a Subspace

The inverse-matrix formula applies directly when the basis matrix is square and its columns form a basis of the whole coordinate space. For a subspace, the same coordinate-extraction idea works, but the functionals have that subspace as their domain. A rectangular matrix of basis columns does not have an ordinary matrix inverse; instead, one can express a vector in the given basis and identify its coefficients.

Worked Example: A Plane in R³

Let \(V=\{(x,y,z)\in\mathbb{R}^3:y=x+z\}\), with \(\mathbf{b}_1=(1,1,0)\) and \(\mathbf{b}_2=(0,1,1)\). Find the dual basis on \(V\) and extract the coordinates of \(\mathbf{v}=(2,5,3)\).

Every vector in \(V\) has the form \((x,x+z,z)=x(1,1,0)+z(0,1,1)\). The representation is unique because its first coordinate is \(x\) and its third coordinate is \(z\). Thus \((\mathbf{b}_1,\mathbf{b}_2)\) is a basis of \(V\), and the coordinate functionals on \(V\) are \(f_1(x,y,z)=x\) and \(f_2(x,y,z)=z\). They satisfy \(f_1(\mathbf{b}_1)=1\), \(f_1(\mathbf{b}_2)=0\), \(f_2(\mathbf{b}_1)=0\), and \(f_2(\mathbf{b}_2)=1\).

Since \(5=2+3\), the vector \((2,5,3)\) belongs to \(V\). Its coordinates are \(f_1(2,5,3)=2\) and \(f_2(2,5,3)=3\), so \([\mathbf{v}]_{\mathcal{B}}=(2,3)^{\top}\). Indeed, \(2(1,1,0)+3(0,1,1)=(2,2,0)+(0,3,3)=(2,5,3)\), as required.

Common Pitfall: Using the Wrong Matrix

For coordinate extraction, the correct operation is \(\mathbf{P}^{-1}\mathbf{x}\), not \(\mathbf{P}^{\top}\mathbf{x}\). The transpose generally does not undo the action of the basis matrix. For the basis in the preceding two-dimensional worked example, \(\mathbf{P}=\begin{bmatrix}1&1\\0&1\end{bmatrix}\) and \(\mathbf{x}=(3,2)^{\top}\). The incorrect calculation gives

$$ \mathbf{P}^{\top}\mathbf{x} = \begin{bmatrix}1&0\\1&1\end{bmatrix} \begin{bmatrix}3\\2\end{bmatrix} = \begin{bmatrix}3\\5\end{bmatrix}, $$

which cannot be the coordinates, since \(3\mathbf{b}_1+5\mathbf{b}_2=(8,5)\ne(3,2)\). The correction is to use the inverse: \(\mathbf{P}^{-1}\mathbf{x}=\begin{bmatrix}1&-1\\0&1\end{bmatrix}\begin{bmatrix}3\\2\end{bmatrix}=(1,2)^{\top}\), and \(1\mathbf{b}_1+2\mathbf{b}_2=(3,2)\). A transpose can occur in other settings, but it is not the general coordinate-extraction rule for an arbitrary basis.

There is also no need for an inner product to define a dual basis. A dual functional is specified by its linearity and its values on the basis vectors. In particular, for a complex vector space, using conjugated rows would represent conjugate-linear expressions rather than the linear functionals defined here.

Why Dual Coordinates Are Useful

The dual basis turns the abstract statement “a vector has unique basis coordinates” into a collection of scalar-valued measurements. Each \(f_i\) isolates exactly one coefficient, while the identity \(\mathbf{v}=\sum_i f_i(\mathbf{v})\mathbf{b}_i\) rebuilds the vector from those measurements. In a coordinate space, the rows of the inverse basis matrix perform these measurements simultaneously. The same viewpoint applies to any finite-dimensional vector space, even when its vectors are not initially presented as columns.

Check Your Understanding

Use the defining values of a dual basis and verify coordinate answers by reconstructing the vector.

  1. For \(\mathbf{b}_1=(1,0)\), \(\mathbf{b}_2=(2,1)\), find the dual functionals by inverting the basis matrix.
  2. For the basis in question 1, find the coordinates of \((7,3)\) and check by reconstruction.
  3. Explain why a functional satisfying \(f_i(\mathbf{b}_j)=\delta_{ij}\) must return the \(i\)-th coordinate of every vector.
  4. Let \(V=\{(x,y,z)\in\mathbb{R}^3:z=x+y\}\), with basis \((1,0,1),(0,1,1)\). Find its two coordinate functionals on \(V\).
  5. For a complex vector space, explain why the rows of the inverse basis matrix are used without taking complex conjugates.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon