Basis and coordinates in this visualization
A basis of the plane is an ordered pair of vectors that do not lie on one line. Every vector can then be written in exactly one way as , and the numbers are the coordinates of in the basis , written .
The left picture is the standard grid, with and as ink arrows, the slanted grid they make, and in blue. The right picture is the B-coordinate chart, where and are the sides of the unit square and sits at its coordinates. Drag or and does not move on the left. Only the grid and the numbers change, because coordinates are a reading taken with a ruler, not a property of the arrow.
To read the coordinates, push back to each axis of along the other basis vector. Moving parallel to , it reaches the axis at . Moving parallel to , it reaches the axis at . These are the two yellow segments, and with the dashed lines from they form a parallelogram whose diagonal is . Because and are not on one line, each push meets its axis in exactly one point, so the coordinates exist and are unique.
Stretch to with , and keep . Since , the first coordinate becomes and the second stays the same: a ruler twice as long gives half the reading. Turning a basis vector follows no such rule, and both coordinates can change.
Put and side by side as the columns of a matrix . Then says : turns coordinates in into standard ones, and going the other way needs .
The B-coordinate chart is the whole plane moved by . It sends and to and , so the grid of is square there and our standard grid can become slanted. The standard basis vectors and land on the columns of . The chart is drawn in B-coordinates. It keeps all lengths and angles only when and are perpendicular unit vectors.
A tempting shortcut is to drop perpendiculars from to the lines of and , and read where they land. Perpendicular feet draws this reading. It gives the coordinates when , and for perpendicular unit vectors each reading is simply the dot product . In a slanted basis it is wrong for every except 0.
Two vectors on one line are not a basis. Then and the grid collapses onto that line, or onto O if both vectors are zero. If lies in the collapsed grid, it has endless readings: with and , every with works. If lies outside it, it has none.
Things to notice
- Dragging or does not transform . On the linear transformation page the vector moves with the grid. Here only the ruler changes.
- The yellow numbers are coordinates in , written next to the basis vector they count, as in . The standard coordinates are on the edge scales of the left picture.
Controls
- Drag in the chart to set its coordinates directly. Moving the pointer over one picture marks the same point in the other with a small cyan ring.