Tutorials › Linear Algebra › Nonstandard Coordinates in R2 and R3

Coordinates and Change of Basis · Tutorial 373 of 1000

Nonstandard Coordinates in R2 and R3

Use a basis’s vectors as columns to compute coordinates by row reduction, then reconstruct and check the original vector.

Intermediate 9 min read

What You'll Learn

  • Set up a coefficient system for coordinates in an ordered basis of \(\mathbb{R}^2\) or \(\mathbb{R}^3\).
  • Find basis coordinates by row-reducing an augmented matrix.
  • Reconstruct a vector from its basis coordinates.
  • Verify coordinates by multiplying the basis vectors by their coefficients.
  • Recognize why dot-product shortcuts fail for nonorthogonal bases.

Coordinates Depend on the Chosen Basis

A vector in \(\mathbb{R}^2\) or \(\mathbb{R}^3\) is often written using its standard coordinates, but those entries are not the only way to describe it. Choose a different ordered basis, and the same vector is described by a different list of coefficients. Finding those coefficients is a concrete problem: express the vector as a linear combination of the basis vectors, or, equivalently, solve a linear system.

Throughout, scalars are real. An ordered basis \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) of \(\mathbb{R}^n\) is a list that is linearly independent and spans \(\mathbb{R}^n\). To say that it spans means that every vector in \(\mathbb{R}^n\) is a linear combination of the vectors in the list. The order matters: the first coordinate is the coefficient of \(\mathbf{b}_1\), the second is the coefficient of \(\mathbf{b}_2\), and so on.

Definition: If \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) is an ordered basis and \(\mathbf{x}\in\mathbb{R}^n\), the coordinate vector of \(\mathbf{x}\) relative to \(\mathcal{B}\), written \([\mathbf{x}]_{\mathcal{B}}\), is the column of coefficients \(c_1,\dots,c_n\) satisfying \(\mathbf{x}=c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n\).

The entries of \([\mathbf{x}]_{\mathcal{B}}\) are generally not the entries of \(\mathbf{x}\) in standard coordinates. For example, if the first basis vector is \((1,1)\), then multiplying it by \(c_1\) contributes \(c_1\) to both standard-coordinate entries. The coefficients have to be determined from the whole linear combination.

Theorem: For every ordered basis \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) of \(\mathbb{R}^n\) and every \(\mathbf{x}\in\mathbb{R}^n\), there is exactly one coordinate vector \([\mathbf{x}]_{\mathcal{B}}\).

Proof. Because \(\mathcal{B}\) spans \(\mathbb{R}^n\), there are scalars \(c_1,\dots,c_n\) such that \(\mathbf{x}=c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n\), so a coordinate vector exists. To show uniqueness, suppose also that \(\mathbf{x}=d_1\mathbf{b}_1+\cdots+d_n\mathbf{b}_n\). Subtracting these equations gives \((c_1-d_1)\mathbf{b}_1+\cdots+(c_n-d_n)\mathbf{b}_n=\mathbf{0}\). Since the basis vectors are linearly independent, every coefficient \(c_i-d_i\) is zero. Thus \(c_i=d_i\) for every \(i\), and the coordinate vector is unique. \(\square\)

Set Up the Coefficient System

Write each basis vector as a column in standard coordinates. If \(\mathbf{x}=(x_1,\dots,x_n)^\top\), then the equation defining its coordinates is

$$ \begin{bmatrix}\mathbf{b}_1&\cdots&\mathbf{b}_n\end{bmatrix} \begin{bmatrix}c_1\\\vdots\\c_n\end{bmatrix} = \mathbf{x}. $$

Each row of this system says that the corresponding standard-coordinate entry of the weighted sum must match the entry of \(\mathbf{x}\). In dimensions two and three, it is usually efficient to solve by row-reducing the augmented matrix \(\begin{bmatrix}\mathbf{b}_1&\cdots&\mathbf{b}_n&\mathbf{x}\end{bmatrix}\). The entries in the last column then give the coefficients when the left side has been reduced to the identity matrix.

Theorem: Let \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) be an ordered basis of \(\mathbb{R}^n\), and let \(\mathbf{x}\in\mathbb{R}^n\). Row-reducing \(\begin{bmatrix}\mathbf{b}_1&\cdots&\mathbf{b}_n&\mathbf{x}\end{bmatrix}\) gives the unique solution \([\mathbf{x}]_{\mathcal{B}}\) in its last column.

Proof. By the definition of matrix multiplication, the equation \(\begin{bmatrix}\mathbf{b}_1&\cdots&\mathbf{b}_n\end{bmatrix}\mathbf{c}=\mathbf{x}\) is exactly the equation \(\mathbf{x}=c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n\). Its solution \(\mathbf{c}\) is therefore the coordinate vector. Each elementary row operation is reversible: swapping rows reverses itself, scaling a row by a nonzero scalar is reversed by scaling by its reciprocal, and adding a multiple of one row to another is reversed by subtracting that multiple. Consequently these operations preserve the set of solutions to the augmented system. The basis theorem just proved gives exactly one solution, so after row reduction the last column records that unique solution. \(\square\)

Coordinates in a Nonorthogonal Basis of \(\mathbb{R}^2\)

Worked Example: Solve for Two Basis Coordinates

Let \(\mathcal{B}=((1,1)^\top,(1,2)^\top)\) and \(\mathbf{x}=(5,8)^\top\). Find \([\mathbf{x}]_{\mathcal{B}}\).

The two basis vectors are independent: if \(a(1,1)^\top+b(1,2)^\top=\mathbf{0}\), then \(a+b=0\) and \(a+2b=0\); subtracting the equations gives \(b=0\), then \(a=0\). Since two independent vectors in \(\mathbb{R}^2\) span \(\mathbb{R}^2\), they form a basis. Their dot product is \(1\cdot1+1\cdot2=3\), so they are not orthogonal.

Set up the coefficient system and reduce its augmented matrix. First subtract row 1 from row 2; then subtract the new row 2 from row 1:

$$ \begin{bmatrix}1&1&5\\1&2&8\end{bmatrix} \xrightarrow{R_2\to R_2-R_1} \begin{bmatrix}1&1&5\\0&1&3\end{bmatrix} \xrightarrow{R_1\to R_1-R_2} \begin{bmatrix}1&0&2\\0&1&3\end{bmatrix}. $$

The solution is \(c_1=2\), \(c_2=3\), so \([\mathbf{x}]_{\mathcal{B}}=(2,3)^\top\). Check: \(2(1,1)^\top+3(1,2)^\top=(2+3,2+6)^\top=(5,8)^\top=\mathbf{x}\).

This example illustrates why the coefficients must be found together. The first standard-coordinate entry requires \(c_1+c_2=5\), while the second requires \(c_1+2c_2=8\). Neither coefficient can be read off from just one entry of \(\mathbf{x}\).

Coordinates in a Nonorthogonal Basis of \(\mathbb{R}^3\)

Worked Example: Three Coordinates from a System

Let \(\mathcal{B}=((1,0,1)^\top,(1,1,0)^\top,(0,1,1)^\top)\) and \(\mathbf{x}=(5,4,5)^\top\). Find \([\mathbf{x}]_{\mathcal{B}}\).

The basis vectors are not orthogonal: for instance, \((1,0,1)^\top\cdot(1,1,0)^\top=1\). Set up the augmented matrix, subtract row 1 from row 3, and add the new row 2 to row 3:

$$ \begin{bmatrix}1&1&0&5\\0&1&1&4\\1&0&1&5\end{bmatrix} \xrightarrow{R_3\to R_3-R_1} \begin{bmatrix}1&1&0&5\\0&1&1&4\\0&-1&1&0\end{bmatrix} \xrightarrow{R_3\to R_3+R_2} \begin{bmatrix}1&1&0&5\\0&1&1&4\\0&0&2&4\end{bmatrix}. $$

Divide row 3 by \(2\), subtract row 3 from row 2, and subtract row 2 from row 1:

$$ \begin{bmatrix}1&1&0&5\\0&1&1&4\\0&0&2&4\end{bmatrix} \xrightarrow{R_3\to \frac12R_3} \begin{bmatrix}1&1&0&5\\0&1&1&4\\0&0&1&2\end{bmatrix} \xrightarrow{R_2\to R_2-R_3} \begin{bmatrix}1&1&0&5\\0&1&0&2\\0&0&1&2\end{bmatrix} \xrightarrow{R_1\to R_1-R_2} \begin{bmatrix}1&0&0&3\\0&1&0&2\\0&0&1&2\end{bmatrix}. $$

Therefore \([\mathbf{x}]_{\mathcal{B}}=(3,2,2)^\top\). Check: \(3(1,0,1)^\top+2(1,1,0)^\top+2(0,1,1)^\top=(3+2,\;2+2,\;3+2)^\top=(5,4,5)^\top\).

The row-reduction steps solve the three equations together. For this example they are \(c_1+c_2=5\), \(c_2+c_3=4\), and \(c_1+c_3=5\). Each equation involves two coefficients, so trying to assign coefficients one at a time without using the full system risks missing a constraint.

Reconstruct a Vector from Its Coordinates

The coordinate equation works in both directions. When a vector is given, solve for its coefficients. When the coefficients are given, form the indicated linear combination. Reconstructing is also a direct way to check a coordinate calculation: the result must be the original vector in standard coordinates.

Worked Example: Reconstruct and Then Recover the Coordinates

Use \(\mathcal{C}=((1,2)^\top,(2,1)^\top)\) and the proposed coordinate vector \(\mathbf{d}=(3,-1)^\top\). Reconstruct \(\mathbf{x}\), then confirm its coordinates by solving the system.

By the meaning of the coefficients, the reconstructed vector is \(3(1,2)^\top-1(2,1)^\top=(3-2,6-1)^\top=(1,5)^\top\). The basis vectors are nonorthogonal because their dot product is \(1\cdot2+2\cdot1=4\). To recover the coordinates of \(\mathbf{x}=(1,5)^\top\), row-reduce:

$$ \begin{bmatrix}1&2&1\\2&1&5\end{bmatrix} \xrightarrow{R_2\to R_2-2R_1} \begin{bmatrix}1&2&1\\0&-3&3\end{bmatrix} \xrightarrow{R_2\to-\frac13R_2} \begin{bmatrix}1&2&1\\0&1&-1\end{bmatrix} \xrightarrow{R_1\to R_1-2R_2} \begin{bmatrix}1&0&3\\0&1&-1\end{bmatrix}. $$

The system returns \([\mathbf{x}]_{\mathcal{C}}=(3,-1)^\top\), as proposed. Check: \(3(1,2)^\top-(2,1)^\top=(1,5)^\top\), so reconstruction gives the original vector.

A Common Mistake: Treating the Basis as Orthogonal

For an orthogonal basis, dot products can be used to isolate individual coefficients. A nonorthogonal basis does not have that property: taking the dot product of \(\mathbf{x}=c_1\mathbf{b}_1+c_2\mathbf{b}_2\) with \(\mathbf{b}_1\) produces \(c_1(\mathbf{b}_1\cdot\mathbf{b}_1)+c_2(\mathbf{b}_2\cdot\mathbf{b}_1)\). The second term remains when the basis vectors are not orthogonal, so dividing by \(\mathbf{b}_1\cdot\mathbf{b}_1\) alone does not generally give \(c_1\).

For the first worked example, a tempting but wrong calculation is to use the separate ratios \(\mathbf{x}\cdot\mathbf{b}_1/(\mathbf{b}_1\cdot\mathbf{b}_1)=13/2\) and \(\mathbf{x}\cdot\mathbf{b}_2/(\mathbf{b}_2\cdot\mathbf{b}_2)=21/5\) as coordinates. These would reconstruct \((107/10,149/10)^\top\), not \((5,8)^\top\). The correction is to solve both coefficient equations together; row reduction gives \((2,3)^\top\), and \(2(1,1)^\top+3(1,2)^\top=(5,8)^\top\).

Keep the roles of the two columns distinct: the vector \(\mathbf{x}\) is written in standard coordinates, while \([\mathbf{x}]_{\mathcal{B}}\) records coefficients relative to the chosen ordered basis. A reliable routine is to write the basis vectors as columns, append \(\mathbf{x}\), row-reduce, and substitute the resulting coefficients back into the linear combination.

Check Your Understanding

For each coordinate calculation, check by reconstructing the vector in standard coordinates.

  1. For \(\mathcal{B}=((1,0)^\top,(1,2)^\top)\), find \([(4,6)^\top]_{\mathcal{B}}\).
  2. For \(\mathcal{C}=((1,1,0)^\top,(0,1,1)^\top,(1,0,1)^\top)\), find \([(3,4,5)^\top]_{\mathcal{C}}\).
  3. Using \(\mathcal{B}=((1,2)^\top,(2,1)^\top)\), reconstruct the vector with coordinate vector \((2,-1)^\top\).
  4. Explain why the coefficients in a nonorthogonal basis cannot generally be found by taking separate dot-product ratios.
  5. In the system \(\mathbf{x}=c_1\mathbf{b}_1+c_2\mathbf{b}_2\), what does each row of the augmented matrix represent?

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