Change of Basis

April 13, 2026

Problem

Express v = [5, 3] in the basis B = {[1,1], [1,−1]}. Find the new coordinates and show the relationship between the two coordinate grids.

Explanation

Coordinates depend on the basis

In the standard basis {e1,e2}\{\mathbf{e}_1, \mathbf{e}_2\} of R2\mathbb{R}^2, a vector v=(5,3)\mathbf{v} = (5, 3) means 5e1+3e25\mathbf{e}_1 + 3\mathbf{e}_2. The numbers (5,3)(5, 3) are the coordinates of v\mathbf{v} with respect to the standard basis.

In a different basis B={b1,b2}B = \{\mathbf{b}_1, \mathbf{b}_2\}, the same geometric vector has different coordinates: v=c1b1+c2b2\mathbf{v} = c_1 \mathbf{b}_1 + c_2 \mathbf{b}_2, and the pair (c1,c2)(c_1, c_2) is called [v]B[\mathbf{v}]_B.

The change-of-basis formulas

Let P=[b1b2bn]P = [\mathbf{b}_1 \mid \mathbf{b}_2 \mid \cdots \mid \mathbf{b}_n] be the matrix with basis vectors as columns. Then v=P[v]B[v]B=P1v\mathbf{v} = P [\mathbf{v}]_B \quad \Longleftrightarrow \quad [\mathbf{v}]_B = P^{-1} \mathbf{v}

PP converts BB-coordinates back to standard; P1P^{-1} converts standard to BB-coordinates.

Step-by-step

v=(5,3)\mathbf{v} = (5, 3) in standard coords; B={(1,1),(1,1)}B = \{(1, 1), (1, -1)\}.

Step 1 — Build PP.

P=(1111)P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}

Step 2 — Compute P1P^{-1}.

detP=(1)(1)(1)(1)=2\det P = (1)(-1) - (1)(1) = -2.

P1=12(1111)=12(1111)P^{-1} = \dfrac{1}{-2} \begin{pmatrix} -1 & -1 \\ -1 & 1 \end{pmatrix} = \dfrac{1}{2} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}

Step 3 — Multiply: [v]B=P1v[\mathbf{v}]_B = P^{-1} \mathbf{v}.

[v]B=12(1111)(53)=12(82)=(41)[\mathbf{v}]_B = \dfrac{1}{2} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} \begin{pmatrix} 5 \\ 3 \end{pmatrix} = \dfrac{1}{2} \begin{pmatrix} 8 \\ 2 \end{pmatrix} = \begin{pmatrix} 4 \\ 1 \end{pmatrix}

Verification: 4b1+1b2=4(1,1)+(1,1)=(5,3)=v4 \mathbf{b}_1 + 1 \mathbf{b}_2 = 4(1, 1) + (1, -1) = (5, 3) = \mathbf{v} ✓

So in the basis BB, the vector v=(5,3)std\mathbf{v} = (5, 3)_{\text{std}} has coordinates (4,1)B\boxed{(4, 1)_B}.

Change of basis for linear transformations

Given a linear map TT with matrix AA in the standard basis, its matrix ABA_B in a new basis BB is AB=P1APA_B = P^{-1} A P

Same map, different coordinate system. Diagonalization A=PDP1A = P D P^{-1} is exactly this: pick PP = eigenvectors, and the map becomes diagonal — stretching along the new axes.

Why change basis?

  • Simpler representations. Rotations simplify in aligned axes; covariance is diagonal in PCA coordinates; linear ODEs decouple in eigenbases.
  • Computational speedup. Diagonal matrices are trivial to exponentiate, invert, multiply.
  • Conceptual clarity. Principal components, symmetry axes, natural frequencies — all are bases adapted to the problem.

When is P1P^{-1} painless?

  • Orthogonal basis (PP is orthogonal): P1=PTP^{-1} = P^T — cheap.
  • Orthonormal basis: even better; [v]B[\mathbf{v}]_B entries are dot products vbi\mathbf{v} \cdot \mathbf{b}_i.
  • Upper/lower triangular bases: P1P^{-1} comes from back-substitution.

Our BB has orthogonal (not orthonormal) columns: (1,1)(1,1)=0(1,1) \cdot (1,-1) = 0. Their lengths are both 2\sqrt{2}, not 1. For dot-product-based formulas, scale the basis to orthonormal first.

Orthonormal variant

q1=(1,1)/2,q2=(1,1)/2\mathbf{q}_1 = (1, 1)/\sqrt{2}, \quad \mathbf{q}_2 = (1, -1)/\sqrt{2}. Then [v]Q=(vq1vq2)=(8/22/2)=(422)[\mathbf{v}]_{Q} = \begin{pmatrix} \mathbf{v} \cdot \mathbf{q}_1 \\ \mathbf{v} \cdot \mathbf{q}_2 \end{pmatrix} = \begin{pmatrix} 8/\sqrt{2} \\ 2/\sqrt{2} \end{pmatrix} = \begin{pmatrix} 4\sqrt{2} \\ \sqrt{2} \end{pmatrix}

Different numbers for the same vector — coordinates always depend on basis.

Common mistakes

  • Inverting the wrong direction. PP converts BB-coords to standard; P1P^{-1} converts standard to BB.
  • Forgetting the basis needs to be linearly independent. If columns of PP are dependent, P1P^{-1} doesn't exist.
  • Conflating "vector" with "coordinates." A geometric vector is basis-independent; its coordinates change with the basis. Keep them conceptually separate.

Try it in the visualization

Two coordinate grids are overlaid: the standard xxyy axes (gray) and the new BB-basis axes (gold). A single vector is drawn; its coordinates are read in both grids and displayed.

Interactive Visualization

Parameters

5.00
3.00
1.00
1.00
1.00
-1.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day