Linear Algebra, Interactive EditionXYZ Homework Edition

⇩ Download ▾

2.7 Coordinates in a New Basis

If a subspace has infinitely many bases and no reason to prefer one, then naming a point of it is a two-part act: you choose a basis, and only then can you say which combination of it you mean. That second part is what coordinates are, and the previous section quietly established that they always exist and are always unique — spanning gives existence, independence gives uniqueness.

Make the choice deliberately awkward, so that nothing can be read off by habit. In the plane V:z=0.5x+0.5yV: z = 0.5x + 0.5y, take

𝐛 1 = ( 2 , 1 , 1.5 ) , 𝐛 2 = ( 1 , 3 , 2 ) \mathbf{b}_1 = (2, 1, 1.5), \qquad \mathbf{b}_2 = (1, 3, 2)

Both lie in VV — check the third coordinates against 0.5x+0.5y0.5x + 0.5y: 0.5(2)+0.5(1)=1.50.5(2) + 0.5(1) = 1.5 and 0.5(1)+0.5(3)=20.5(1) + 0.5(3) = 2. Neither is a multiple of the other, so by the previous section's counting argument they are a basis of VV. They are also at an oblique angle and of different lengths, which is the point: a basis owes you nothing but spanning and independence.

Given coefficients ss and aa, the point they name is

s 𝐛 1 + a 𝐛 2 = ( 2 s + a , s + 3 a , 1.5 s + 2 a ) s\,\mathbf{b}_1 + a\,\mathbf{b}_2 = (2s + a, \; s + 3a, \; 1.5s + 2a)

and we write [𝐩]ℬ=(s,a)[\,\mathbf{p}\,]_\mathcal{B} = (s, a) to say that 𝐩\mathbf{p} is the point with those coordinates in the basis ℬ={𝐛1,𝐛2}\mathcal{B} = \{\mathbf{b}_1, \mathbf{b}_2\}. The figure turns that formula into a pair of dials.

A large semi-transparent tilted plane through the origin. A short red segment and a short blue segment run from the origin inside it, meeting there at an oblique angle rather than a right angle - the skewed basis. Two amber lines, one parallel to the red segment and one parallel to the blue, also lie in the plane and cross at a single point; two sliders slide them across the sheet, so their crossing is the point with the chosen pair of coordinates. The figure opens with both sliders at 0.5, so neither amber line lies on a basis segment. A white dot further out on the sheet marks the target (5, 5, 5); setting the sliders to 2 and 1 slides the crossing exactly onto it, which is what it means for that point to have coordinates 2 and 1 in this basis.Explore in 3D (opens in a new tab)

A large semi-transparent tilted plane through the origin. A short red segment and a short blue segment run from the origin inside it, meeting there at an oblique angle rather than a right angle - the skewed basis. Two amber lines, one parallel to the red segment and one parallel to the blue, also lie in the plane and cross at a single point; two sliders slide them across the sheet, so their crossing is the point with the chosen pair of coordinates. The figure opens with both sliders at 0.5, so neither amber line lies on a basis segment. A white dot further out on the sheet marks the target (5, 5, 5); setting the sliders to 2 and 1 slides the crossing exactly onto it, which is what it means for that point to have coordinates 2 and 1 in this basis.

The plane VV with the skewed basis drawn from the origin: red 𝐛1=(2,1,1.5)\mathbf{b}_1 = (2, 1, 1.5) and blue 𝐛2=(1,3,2)\mathbf{b}_2 = (1, 3, 2). The two amber lines are the coordinate lines of that basis, one running in each basis direction, and they cross at the point named by the current sliders ss and aa. The white dot further out on the sheet is the target (5,5,5)(5, 5, 5).

Explore the figure

  1. The figure opens at s=0.5s = 0.5, a=0.5a = 0.5, with both amber lines clear of the arrows. Set s=1s = 1, a=0a = 0: the crossing moves onto the tip of the red arrow. Of course it does — coordinates (1,0)(1, 0) mean one 𝐛1\mathbf{b}_1 and no 𝐛2\mathbf{b}_2, so the basis vectors are the points with coordinates (1,0)(1, 0) and (0,1)(0, 1), exactly as 𝐞1\mathbf{e}_1 and 𝐞2\mathbf{e}_2 are in the standard grid.
  2. Set s=0s = 0, a=0a = 0. The crossing collapses onto the origin. Every basis puts its origin in the same place, because 0𝐛1+0𝐛2=00\mathbf{b}_1 + 0\mathbf{b}_2 = \mathbf{0} whatever the basis is.
  3. Now hunt the white dot. Drag ss and aa until the crossing lands on (5,5,5)(5, 5, 5); you should find it at s=2s = 2, a=1a = 1. Those two numbers are the target's coordinates in this basis, and reading them off the sliders is reading them off the figure.
  4. Watch the amber lines rather than the crossing as you drag one slider. They stay parallel to the basis directions and slide, never rotating. The two families of amber lines are a grid on the plane — a skewed one, but a perfectly good one.

Finding coordinates is solving a system

Step 3 was a search. Doing it properly means solving for ss and aa, and the equation is s𝐛1+a𝐛2=𝐩s\mathbf{b}_1 + a\mathbf{b}_2 = \mathbf{p}. Since a point of VV is determined by its first two coordinates — the third is forced by the plane — only two equations carry information:

2 s + a = 5 , s + 3 a = 5 2s + a = 5, \qquad s + 3a = 5

Solve however you like: the first gives a=5−2sa = 5 - 2s, and substituting into the second gives s+15−6s=5s + 15 - 6s = 5, so −5s=−10-5s = -10 and s=2s = 2, whence a=1a = 1. The coordinates of (5,5,5)(5, 5, 5) are [(5,5,5)]ℬ=(2,1)[\,(5,5,5)\,]_\mathcal{B} = (2, 1), agreeing with the sliders. Confirm it forwards: 2(2,1,1.5)+(1,3,2)=(4,2,3)+(1,3,2)=(5,5,5)2(2, 1, 1.5) + (1, 3, 2) = (4, 2, 3) + (1, 3, 2) = (5, 5, 5).

Doing that from scratch for every point is wasteful, because the left-hand side never changes. Collect the basis vectors' first two coordinates into the coordinate matrix

C = ( 2 1 1 3 ) C = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix}

whose columns are 𝐛1\mathbf{b}_1 and 𝐛2\mathbf{b}_2 as seen in the standard grid. Then C(s,a)=(p1,p2)C\,(s, a) = (p_1, p_2), and the coordinates come from inverting once and reusing forever.

[35−15−1525]\begin{bmatrix}\frac{3}{5} & -\frac{1}{5} \\ -\frac{1}{5} & \frac{2}{5}\end{bmatrix}
The change-of-coordinates matrix ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The change-of-coordinates matrix, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The inverse of the coordinate matrix, computed symbolically. Multiplying the first two standard coordinates of a point of VV by this matrix returns its ℬ\mathcal{B}-coordinates in one step. On the target: 35(5)−15(5)=3−1=2\tfrac{3}{5}(5) - \tfrac{1}{5}(5) = 3 - 1 = 2 and −15(5)+25(5)=−1+2=1-\tfrac{1}{5}(5) + \tfrac{2}{5}(5) = -1 + 2 = 1, which is the pair (2,1)(2, 1) the sliders found. An inverse exists here for the same reason the basis is a basis — the columns are independent — and the next chapter makes that equivalence official.

The two matrices are a translation pair. CC takes coordinates and returns the point's first two entries; C−1C^{-1} takes those two entries and returns the coordinates. The third entry is never needed in either direction, because VV is a graph over the xyxy-plane: z=0.5x+0.5yz = 0.5x + 0.5y is determined by the other two. That is what makes a 2×22 \times 2 matrix enough here, and it is worth noticing as a condition rather than a habit. It fails for a subspace that is not a graph over the xyxy-plane: in the plane x=0x = 0, the points (0,1,2)(0, 1, 2) and (0,1,3)(0, 1, 3) share the pair (0,1)(0, 1), so dropping the third coordinate would confuse them and no 2×22 \times 2 matrix could tell them apart. Neither direction is more fundamental than the other, which is worth insisting on, because the standard grid feels like the truth and a skewed basis feels like a description of it. It is not so: 𝐞1,𝐞2,𝐞3\mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3 are themselves a basis chosen for convenience, and the entries of any vector you have ever written down were already coordinates with respect to it.

An original work of XYZ Homework, built around interactive XYZ 3D figures. Chapters 1–6 follow the topic sequence of Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL). Chapter 0's scope (its topics, their order, and the idea each figure shows) follows the Vectors chapter of Ximera's Linear Algebra: An Interactive Introduction. The prose, worked examples and figures were written for this book, which is not affiliated with or endorsed by the authors of either work. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or any other accessibility standard. Every page is built against an automated accessibility gate, and our target for the published editions is WCAG 2.2 Level AA. If something is unusable, please tell us.