Skip to content
VidiMaster it, module by module
Module 1/Vector Spaces & Subspaces

Coordinates Relative to a Basis

A basis gives every vector a unique "address" — its coordinate vector. This lesson shows how to compute [v]B[v]_B by solving Bc=vBc = v and how to rebuild vv from its coordinates, all in R2\mathbb{R}^2 and R3\mathbb{R}^3.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

In R2\mathbb{R}^2, let B={[12],[31]}B = \left\{ \begin{bmatrix} 1 \\ 2 \end{bmatrix}, \begin{bmatrix} 3 \\ 1 \end{bmatrix} \right\}. Find [v]B[v]_B for v=[79]v = \begin{bmatrix} 7 \\ 9 \end{bmatrix}.

In R3\mathbb{R}^3, let B={[111],[011],[001]}B = \left\{ \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix} \right\} and v=[259]v = \begin{bmatrix} 2 \\ 5 \\ 9 \end{bmatrix}. What is the second entry of [v]B[v]_B?

What you’ll be able to do

  • Define the coordinate vector [v]B[v]_B and explain how a basis assigns a unique list of coordinates to each vector.
  • Compute [v]B[v]_B in R2\mathbb{R}^2 and R3\mathbb{R}^3 by solving the linear system Bc=vBc = v, where BB has the basis vectors as its columns.
  • Reconstruct a vector vv from its coordinate vector [v]B[v]_B and the basis BB.
  • Explain why coordinates relative to a basis are unique, and why the order of the basis matters.
  • Identify the change-of-coordinates matrix PB=[ b1 ⋯ bn ]P_B = [\,b_1\ \cdots\ b_n\,] and use the relationship v=PB[v]Bv = P_B[v]_B.

In your course

· MATH2015 · Linear Algebra & Probability
§2.4 Bases, Dimension, and Coordinates
  • Definition 2.8Coordinates with respect to a basis
  • Remark 2.9Notation [x]S=(c1,…,cn)ST[x]_S=(c_1,\dots,c_n)^{\mathsf T}_S (basis-dependent)
1

A vector's address: components vs. coordinates

When you write a vector such as v=[51]v = \begin{bmatrix} 5 \\ 1 \end{bmatrix} in R2\mathbb{R}^2, you are silently reading off its components in the standard basis E={e1,e2}\mathcal{E} = \{e_1, e_2\}, where e1=[10]e_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix} and e2=[01]e_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix}. The entries 55 and 11 are the amounts of e1e_1 and e2e_2 needed to build vv: v=5e1+1e2v = 5e_1 + 1e_2.

But the standard basis is just one choice of "measuring sticks." A basis B={b1,…,bn}B = \{b_1, \dots, b_n\} of Rn\mathbb{R}^n is any set of nn linearly independent vectors that span the space. Relative to a different basis BB, the same point in space gets a different list of numbers — its coordinates.

  • vv — the vector itself, an actual point/arrow in space. It does not change.
  • b1,…,bnb_1, \dots, b_n — the basis vectors, our chosen directions.
  • c1,…,cnc_1, \dots, c_n — the coordinates: how much of each bib_i we stack up to reach vv.

Think of the basis as a coordinate grid tilted and stretched to taste. The vector stays put; the coordinates are just the grid-readings along that particular grid.

2

The Unique Representation Theorem and the definition of $[v]_B$

The whole idea only works because a basis gives exactly one recipe for each vector.

Unique Representation Theorem. If B={b1,…,bn}B = \{b_1, \dots, b_n\} is a basis of a vector space VV, then for every v∈Vv \in V there exist unique scalars c1,…,cnc_1, \dots, c_n with v=c1b1+c2b2+⋯+cnbn.v = c_1 b_1 + c_2 b_2 + \cdots + c_n b_n. Uniqueness is what makes coordinates well-defined: it comes directly from the basis being linearly independent. (If two recipes gave the same vv, subtracting them would be a nontrivial dependence among the bib_i.)

We collect those unique scalars into the coordinate vector of vv relative to BB: [v]B=[c1c2⋮cn].[v]_B = \begin{bmatrix} c_1 \\ c_2 \\ \vdots \\ c_n \end{bmatrix}.

Two cautions:

  • BB is an ordered basis. Swapping b1b_1 and b2b_2 swaps c1c_1 and c2c_2, so the order is part of the data.
  • Relative to the standard basis E\mathcal{E}, coordinates and components coincide: [v]E=v[v]_{\mathcal{E}} = v.
3

Finding coordinates: solve $Bc = v$

To find [v]B[v]_B, read the defining equation v=c1b1+⋯+cnbnv = c_1 b_1 + \cdots + c_n b_n as a matrix equation. Stack the basis vectors as columns to form the change-of-coordinates matrix PB=B=[ b1  b2 ⋯ bn ].P_B = B = [\,b_1\ \ b_2\ \cdots\ b_n\,]. Then c1b1+⋯+cnbn=Bcc_1 b_1 + \cdots + c_n b_n = Bc, so the coordinates c=[v]Bc = [v]_B are the solution of Bc=v.Bc = v. Because the columns of BB are a basis, BB is invertible, which guarantees the unique solution [v]B=B−1v.[v]_B = B^{-1} v. In practice you rarely invert the matrix by hand — you just solve the system Bc=vBc = v by elimination or substitution. Each symbol:

  • BB (equivalently PBP_B): n×nn \times n matrix whose ii-th column is bib_i.
  • c=[v]Bc = [v]_B: the unknown coordinate vector you are solving for.
  • vv: the known right-hand side (the vector's standard components).

Direction of the map: BB turns coordinates into the vector (v=B[v]Bv = B[v]_B), while B−1B^{-1} turns a vector into its coordinates ([v]B=B−1v[v]_B = B^{-1}v).

4

Reconstructing $v$ and checking your work

Going the other way is pure arithmetic — no system to solve. Given a coordinate vector [v]B=[c1⋮cn][v]_B = \begin{bmatrix} c_1 \\ \vdots \\ c_n \end{bmatrix} and the basis BB, rebuild the actual vector with a linear combination: v=c1b1+c2b2+⋯+cnbn=B[v]B.v = c_1 b_1 + c_2 b_2 + \cdots + c_n b_n = B[v]_B. This is the ideal sanity check for any coordinate computation: after you solve Bc=vBc = v, plug the cic_i back into c1b1+⋯+cnbnc_1 b_1 + \cdots + c_n b_n and confirm you recover the original vv. If it does not match, a coordinate is wrong.

The two operations are perfect inverses — a round trip. Starting from vv, computing [v]B=B−1v[v]_B = B^{-1}v, and reconstructing B[v]B=BB−1v=vB[v]_B = B B^{-1} v = v returns you exactly where you started.

Unique Representation Theorem

Let B={b1,…,bn}B = \{b_1, \dots, b_n\} be a basis for a vector space VV. Then for each v∈Vv \in V there is a unique list of scalars c1,…,cnc_1, \dots, c_n such that v=c1b1+c2b2+⋯+cnbnv = c_1 b_1 + c_2 b_2 + \cdots + c_n b_n.

Intuition. A basis both spans (so at least one recipe exists) and is linearly independent (so no two different recipes can produce the same vector). Uniqueness is exactly what lets us define coordinates: [v]B[v]_B would be ambiguous if a vector had more than one representation.
Definition: Coordinate vector relative to a basis

If B={b1,…,bn}B = \{b_1, \dots, b_n\} is an ordered basis and v=c1b1+⋯+cnbnv = c_1 b_1 + \cdots + c_n b_n, the coordinate vector of vv relative to BB is [v]B=[c1⋮cn]∈Rn[v]_B = \begin{bmatrix} c_1 \\ \vdots \\ c_n \end{bmatrix} \in \mathbb{R}^n.

Intuition. [v]B[v]_B answers the question 'how much of each basis vector do I need?' It is the vector's address on the grid that BB defines. Because BB is ordered, the ii-th entry always pairs with bib_i.
Definition: Change-of-coordinates matrix

For a basis B={b1,…,bn}B = \{b_1, \dots, b_n\} of Rn\mathbb{R}^n, the change-of-coordinates matrix is PB=[ b1 ⋯ bn ]P_B = [\,b_1\ \cdots\ b_n\,]. It satisfies v=PB[v]Bv = P_B[v]_B and, since PBP_B is invertible, [v]B=PB−1v[v]_B = P_B^{-1} v.

Intuition. Stacking the basis vectors as columns gives the machine that converts coordinates back to ordinary components; its inverse does the reverse. 'Matrix times coordinates = vector.'

Worked examples

Example 1

In R2\mathbb{R}^2, let B={b1,b2}B = \{b_1, b_2\} with b1=[11]b_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix} and b2=[1−1]b_2 = \begin{bmatrix} 1 \\ -1 \end{bmatrix}. Find the coordinate vector [v]B[v]_B of v=[51]v = \begin{bmatrix} 5 \\ 1 \end{bmatrix}, then reconstruct vv as a check.

  1. 1

    Set up the defining equation. We want scalars c1,c2c_1, c_2 with v=c1b1+c2b2v = c_1 b_1 + c_2 b_2, i.e. c1[11]+c2[1−1]=[51]c_1\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2\begin{bmatrix} 1 \\ -1 \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix}.

  2. 2

    Write it as a system Bc=vBc = v. Placing b1,b2b_1, b_2 as columns gives B=[111−1]B = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}, so the equation is [111−1][c1c2]=[51]\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}\begin{bmatrix} c_1 \\ c_2 \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix}. Reading rows: c1+c2=5c_1 + c_2 = 5 and c1−c2=1c_1 - c_2 = 1.

  3. 3

    Solve. Add the two equations: (c1+c2)+(c1−c2)=5+1(c_1 + c_2) + (c_1 - c_2) = 5 + 1, so 2c1=62c_1 = 6 and c1=3c_1 = 3. Substitute into c1+c2=5c_1 + c_2 = 5: 3+c2=53 + c_2 = 5, so c2=2c_2 = 2.

  4. 4

    Write the coordinate vector. The unique coordinates are c1=3c_1 = 3, c2=2c_2 = 2, so [v]B=[32][v]_B = \begin{bmatrix} 3 \\ 2 \end{bmatrix}.

  5. 5

    Reconstruct vv to verify. Compute 3b1+2b2=3[11]+2[1−1]=[3+23−2]=[51]=v3b_1 + 2b_2 = 3\begin{bmatrix} 1 \\ 1 \end{bmatrix} + 2\begin{bmatrix} 1 \\ -1 \end{bmatrix} = \begin{bmatrix} 3+2 \\ 3-2 \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix} = v. It matches, so the coordinates are correct.

Answer. [v]B=[32][v]_B = \begin{bmatrix} 3 \\ 2 \end{bmatrix}
Example 2

In R3\mathbb{R}^3, let B={[100],[110],[111]}B = \left\{ \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix}, \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} \right\}. Find [v]B[v]_B for v=[531]v = \begin{bmatrix} 5 \\ 3 \\ 1 \end{bmatrix}.