Lecture 25 · Week 7· 17:15

Coordinates

Coordinate vectors, isomorphism with Fn.

Play: Lecture 25: Coordinates
Lecture · 17:15 · Open on YouTube · Report a problem with this video
TranscriptThe full text of the lecture. Click any sentence to play the video from there.

Today: a basis gives coordinates

Welcome to week seven. In lecture twenty three we proved that a basis gives every vector a unique address. If v one up to v n is a basis of a vector space V, then every vector of V is a combination of the basis vectors in exactly one way. Today we turn those weights into a list of numbers. Here is the idea in the plane. Take the basis b one, which is (two, one), and b two, which is (minus one, one). The multiples of b one and b two draw a slanted grid. Every point of the plane sits at exactly one crossing of this grid.

The vector x, which is (three, three), sits at the crossing two steps along b one and one step along b two. So in this basis, the address of x is (two, one). Here is the plan. We define coordinate vectors in any finite dimensional space. We prove that taking coordinates respects sums and scalar multiples, and that it matches the space with F n exactly. Then we use it to turn questions about polynomials into questions about columns of numbers.

Coordinate vectors

Here is the definition. Let V be a vector space over a field F, with a basis B, which is the list v one up to v n. Every vector v of V can be written in exactly one way as c one v one, plus and so on, plus c n v n. The coordinate vector of v in the basis B is the column with entries c one up to c n. We write it as v in square brackets, with a subscript B. It lies in F n. Let's compute one. First, b one and b two form a basis: neither is a multiple of the other, so they are independent, and by lecture twenty, two independent vectors in R two form a basis of R two. Now we need weights c one and c two with c one b one plus c two b two equal to x.

Entry by entry, this is a system of two equations. In the first entry, two c one minus c two equals three. In the second entry, c one plus c two equals three. Let's add the two equations, left side to left side, and right side to right side. Minus c two and plus c two cancel, two c one plus c one is three c one, and three plus three is six. So three c one equals six, and c one is two. Then the second equation gives c two equals three minus two, which is one. So x should be two times b one, plus one times b two. Let's check, one coordinate at a time. Two b one is (four, two), and one b two is (minus one, one). In the first coordinate, four plus minus one is three. In the second coordinate, two plus one is three. So we get x.

So the coordinate vector of x in the basis B is (two, one), exactly the address we read off the grid. A basis is a list, so its order matters. If we swap the two vectors, the weights swap with them, and the coordinate vector of x becomes (one, two). Example. In F n, take the standard basis e one up to e n. Every vector x is x one e one, plus and so on, plus x n e n, so its coordinate vector is x itself. For our x, the coordinate vector in the standard basis is (three, three): other bases describe the same vector with different numbers.

On the grid, these are two routes to the same point. Three, three means three steps along e one, then three steps along e two. Two, one means two steps along b one, then one step along b two. Both routes end at x. The coordinates came out as whole numbers only because we chose this example to keep the numbers simple. B spans the plane, so every point has coordinates in B, and a coordinate can be any real number: a whole number like two, a fraction like five thirds, a negative number like minus one half, or even the square root of two. Here is an example with fractions. Take the point y equal to (two, three). In the standard basis, its coordinates are the whole numbers two and three. In B, they are five thirds and four thirds: five thirds of a step along b one, then four thirds of a step along b two, and we land exactly on y.

So a coordinate is not a count of whole steps. It can be any real number, and it depends only on the point and on the basis. You can try this yourself. On the page of this lecture on the website, you will find the same grid, where you can drag the point and the basis vectors. Start with x: its coordinates in B are two, one. Move the point to y, and they become five thirds and four thirds. Drag it anywhere, and the coordinates follow, whole numbers or not. And in the standard basis, the coordinates are just the entries.

Coordinates of polynomials and matrices

Coordinates work in every finite dimensional space, not only in F n. In P two, the polynomials of degree at most two, take the standard basis from lecture twenty three: one, x, and x squared. A polynomial a plus b x plus c x squared is a times one, plus b times x, plus c times x squared. So its coordinate vector is (a, b, c), the list of its coefficients. For example, the polynomial p equal to three, minus two x, plus five x squared, has the coordinate vector (three, minus two, five).

Matrices work the same way. In the two by two matrices, take the standard basis E one one, E one two, E two one, and E two two. Each has a single entry one and zeros everywhere else. The matrix with first row a, b, and second row c, d, is a E one one, plus b E one two, plus c E two one, plus d E two two. So its coordinate vector is (a, b, c, d), its entries read row by row. So once a basis is fixed, a polynomial of degree at most two becomes a column of three numbers, and a two by two matrix becomes a column of four numbers. The rest of this lecture shows that nothing is lost in this translation.

Coordinates respect sums and scalar multiples

Here is the first theorem. Let V be a vector space over a field F, with a basis B, the list v one up to v n. Then for all vectors u and w of V, the coordinate vector of u plus w is the coordinate vector of u plus the coordinate vector of w. And for every scalar c in F, the coordinate vector of c times u is c times the coordinate vector of u. Proof. Write u as the sum of a i v i, and w as the sum of b i v i. So the coordinate vector of u has entries a i, and the coordinate vector of w has entries b i.

Adding, and collecting the terms in each v i with the rules of vector algebra, u plus w is the sum of a i plus b i, times v i. This writes u plus w as a combination of the basis, and by uniqueness it is the only way. So the coordinates of u plus w are a i plus b i. Entry by entry, that is the coordinate vector of u plus the coordinate vector of w. For scaling, c times u is the sum of c a i, times v i. Again by uniqueness, its coordinates are c a i. Entry by entry, that is c times the coordinate vector of u.

Part c extends this to any linear combination. For vectors u one up to u k and scalars c one up to c k, the coordinate vector of the combination is the same combination of the coordinate vectors. We prove part c by induction on k. For k equal to one, it is part b. For k bigger than one, call the sum of the first k minus one terms s. By parts a and b, the coordinate vector of s plus c k u k is the coordinate vector of s, plus c k times the coordinate vector of u k. By the induction hypothesis, the coordinate vector of s is c one times the coordinate vector of u one, plus and so on, up to the term with k minus one. That proves part c. Here is the rule at work in P two, with the standard basis. Take p equal to one plus two x, and q equal to x minus x squared. Their sum is one, plus three x, minus x squared.

Now add the coordinate vectors, one coordinate at a time. In the first coordinate, one plus zero is one. In the second, two plus one is three. In the third, zero plus minus one is minus one. So the coordinate vector of p plus q is (one, three, minus one), the coefficients of p plus q, just as the theorem says. Adding polynomials is adding their coefficient lists.

Matching V with F^n

Taking coordinates is a map from V to F n. It sends each vector v to its coordinate vector. We call it the coordinate map of the basis B. This map is one to one: different vectors have different coordinates. Indeed, if u and w have the same coordinate vector, then they are the same combination of the basis, so u equals w. And it is onto: every column in F n is a coordinate vector. Given entries c one up to c n, the vector c one v one, plus and so on, plus c n v n, has exactly these coordinates, by uniqueness.

So the coordinate map pairs the vectors of V with the columns of F n, one to one. And by the theorem, it respects sums and scalar multiples. Maps between vector spaces that respect sums and scalar multiples are the subject of week eight. Today we need one special kind. Definition. Let V and W be vector spaces over the same field F. An isomorphism from V to W is a map T from V to W that is one to one and onto, and that respects sums and scalar multiples. That is, T of u plus w is T of u plus T of w, and T of c u is c times T of u, for all u and w in V and every c in F. When there is an isomorphism from V to W, we say that V is isomorphic to W.

Theorem. Let V be a vector space over F, with a basis B of n vectors. Then the coordinate map of B is an isomorphism from V to F n. Proof. It is one to one: if u and w have the same coordinate vector, they are the same combination of the basis, so u equals w. It is onto: any column c one up to c n is the coordinate vector of c one v one, plus and so on, plus c n v n, because that vector has the weights c one up to c n, and by uniqueness these are its only weights. And it respects sums and scalar multiples, by theorem five point one point four. In particular, a vector space of dimension n over F has a basis of n vectors, so it is isomorphic to F n.

For example, P two over the real numbers is isomorphic to R three, and the two by two real matrices are isomorphic to R four. Isomorphic spaces are the same space in different clothes: every statement about sums and scalar multiples in one becomes the same statement in the other. One caution: the coordinate map depends on the basis. A different basis gives different coordinates, and lecture twenty eight shows how to convert from one basis to another.

Working in coordinates

Here is why this matters. Let V be a vector space over F with a basis B of n vectors, and let u one up to u k, and u, be vectors of V. Part a: u lies in the span of u one up to u k exactly when its coordinate vector lies in the span of their coordinate vectors. More precisely, u equals c one u one, plus and so on, plus c k u k, exactly when its coordinate vector is c one times the coordinate vector of u one, plus and so on, plus c k times the coordinate vector of u k, with the same weights. Part b: u one up to u k are linearly independent exactly when their coordinate vectors are. Part c: they form a basis of V exactly when their coordinate vectors form a basis of F n.

The proof is short, but each step uses the theorems we just proved, so take it slowly, and pause or rewatch it if you need to. Part a. By the theorem on combinations, the coordinate vector of c one u one, plus and so on, plus c k u k, is c one times the coordinate vector of u one, plus and so on, plus c k times the coordinate vector of u k. So if u is such a combination, its coordinate vector is the same combination of their coordinate vectors. Conversely, if the coordinate vector of u is such a combination, then u and the combination of the u's with the same weights have the same coordinate vector. The coordinate map is one to one, so they are equal.

Part b. The zero vector of V is zero times each basis vector, so its coordinate vector is zero, and since the coordinate map is one to one, it is the only such vector. So, for any weights, the combination of the u's is zero exactly when its coordinate vector is zero, that is, exactly when the same combination of the coordinate vectors is zero. So the u's have a nontrivial combination equal to zero exactly when their coordinate vectors have one. That is part b. Part c. By part b, the u's are independent exactly when their coordinate vectors are. And the u's span V exactly when every vector of V lies in their span. By part a, that happens exactly when every coordinate vector lies in the span of theirs. Since every column of F n is a coordinate vector, this means that their coordinate vectors span F n.

Let's use it. Is the list one, x minus one, and x minus one squared a basis of P two? Take coordinates in the standard basis. One has coordinates (one, zero, zero). x minus one has (minus one, one, zero). And x minus one squared, which is one minus two x plus x squared, has (one, minus two, one). Put these three columns side by side in a matrix. It is already in echelon form, with a pivot in every column. So by lecture eleven, the columns are independent. And by lecture twenty, three independent vectors in R three form a basis of R three. By part c, the three polynomials form a basis of P two. Call it C. Now let's find the coordinates of p, three minus two x plus five x squared, in the basis C. By part a, we need weights with the same combination of the three columns equal to the coordinate vector of p, which is (three, minus two, five).

Back substitution. The last row says c three is five. The second row says c two minus two c three is minus two, so c two is minus two plus ten, which is eight. The first row says c one minus c two plus c three is three, so c one is three plus eight minus five, which is six. So the coordinate vector of p in the basis C is (six, eight, five). That is, p is six, plus eight times x minus one, plus five times x minus one squared. As a quick check, put x equal to one: the right side gives six, and p gives three minus two plus five, which is six too. This is the pattern for much of the course. Choose a basis, translate into coordinates, compute with columns and matrices, and translate the answer back.

Summary

Let's summarise. A basis B of V gives every vector v unique weights, and the column of these weights is the coordinate vector of v in B. Its order follows the order of the basis. The coordinate vector of a sum is the sum of the coordinate vectors, and the coordinate vector of a scalar multiple is the same multiple of the coordinate vector. The coordinate map is one to one and onto, so it is an isomorphism from V to F n. Every vector space of dimension n over F is isomorphic to F n.

So span, independence and bases in V can be decided in coordinates, with the elimination methods we already know. Before the next lecture, read section five point one of the course book, try the problems on sheet seven about coordinates, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we look at the rows of a matrix: the row space, and the rank. See you there.

In this lecture

  1. 0:00Today: a basis gives coordinates
  2. 1:08Coordinate vectors
  3. 4:31Try it on the website
  4. 4:55Coordinates of polynomials and matrices
  5. 6:20Coordinates respect sums and scalar multiples
  6. 9:06Matching V with Fn
  7. 11:48Working in coordinates
  8. 16:03Summary

Materials

Try it

One point, two sets of coordinates

Drag the violet point p, or the tips of b₁ and b₂. The coral and blue route walks c₁ steps along b₁, then c₂ steps along b₂, and lands on p: those weights are the coordinates of p in ℬ. The green dashed route is the standard one, p₁ along e₁ and p₂ along e₂. The same point gets different numbers in different bases, and they need not be whole numbers.

Check yourself

3 questions, from warm-up to stretch

Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.

  1. Question 1 of 3 Warm-up

    In take the basis with and , and let . Find the coordinate vector .

    Hint 1 of 2

    The coordinates are the weights in (Definition 5.1.1). Write this vector equation as two equations, one for each entry.

    Hint 2 of 2

    The entries give and . Solve, for example by elimination.

    Worked solution
    1. We need , that is, and .
    2. Subtract twice the first equation from the second: , so . Then .
    3. So . Check: .
  2. Question 2 of 3 Core

    In take the basis and . Find the coordinate vector .

    Hint 1 of 2

    Take coordinates in the standard basis , as in Example 5.1.10. Since , the three columns are , and , and .

    Hint 2 of 2

    By Theorem 5.1.9 (a), solve . The matrix is already in echelon form: start with the last row.

    Worked solution
    1. In : , , and since , . Also .
    2. By Theorem 5.1.9 (a), the weights solve the system with augmented matrix .
    3. Back substitution: ; , so ; , so .
    4. So , that is, . Check: .
  3. Question 3 of 3 Stretch

    In let , and . Are linearly independent? Find and with .

    are linearly independent:
    Hint 1 of 2

    Take coordinates in the standard basis : read each matrix row by row (Example 5.1.3 (c)). By Theorem 5.1.9, the matrices are independent exactly when their coordinate vectors are, and the same weights work on both sides.

    Hint 2 of 2

    The coordinate vectors are , and . The first entry of is , and its third entry is .

    Worked solution
    1. In the standard basis, , and , the entries read row by row.
    2. We need . The first entry gives and the third gives . Check the others: and , as needed.
    3. So , and by Theorem 5.1.9 (a), with the same weights.
    4. Then is a combination with weights not all zero, so are linearly dependent (Theorem 5.1.9 (b)).

Found a mistake, or something not working on this page? Report it and we'll fix it. See what we've corrected.