Skip to content
LoveToCalc

Theorem — what does that mean?

Change of basis

The same vector has different coordinates in different bases. The matrix whose columns are the new basis vectors converts between them.

In Swedish: Basbyte

Change of basis

The relation

(x₁, x₂)=x′₁(p₁₁, p₂₁)+x′₂(p₁₂, p₂₂)

If the columns of P are the new basis vectors written in the old basis, a vector with coordinates x′ in the new basis has the coordinates x = P x′ in the old one, and x′ = P⁻¹x goes back.

Solved for x

x=(p₁₁x′₁+p₁₂x′₂, p₂₁x′₁+p₂₂x′₂)

x=(4, 7)

x equals the vector (((2 times 1) plus (1 times 2)), ((1 times 1) plus (3 times 2))), equals the vector ((2 plus 2), (1 plus 6)), equals the vector (4, 7)

Working3 steps

Practice questions

You are given

  • x′₁=3
  • p₁₁=1
  • p₂₁=2
  • x′₂=-1
  • p₁₂=2
  • p₂₂=1
Your answer: The vector in the old basis x

The formula

Let the new basis be b₁, b₂, written in the old basis, and let P be the matrix with b₁ and b₂ as its columns. A vector with coordinates x′ = (x′₁, x′₂) in the new basis has the coordinates x in the old one, where

The other way round,

The card above computes x from x′ and P, which is the product written out as the combination of the columns. Going back needs the inverse of P; for a 2×2 matrix see the page on the inverse of a 2×2 matrix, and the coordinates relative to a basis come out of the determinants as on the page on basis and dimension.

Holds when the columns of P are linearly independent, so that P is a matrix with an inverse and the new vectors are a basis.

Worked example

The new basis is b₁ = (2, 1) and b₂ = (1, 3), so P has the rows (2, 1) and (1, 3). A vector with new coordinates x′ = (1, 2) has the old coordinates

Back again: det P = 2·3 − 1·1 = 5, so P⁻¹ has the rows (3/5, −1/5) and (−1/5, 2/5). Then x′ = P⁻¹(4, 7) = ((12 − 7)/5, (−4 + 14)/5) = (1, 2).

A second example: the matrix of a map in a new basis

If A is the matrix of a linear map in the old basis, its matrix in the new basis is

Take A with the rows (4, 1) and (2, 3), the matrix on the page on eigenvalues of a 2×2 matrix. It has the eigenvalues 5 and 2, with the eigenvectors (1, 1) and (1, −2): A(1, 1) = (5, 5) and A(1, −2) = (2, −4). Use them as the new basis, so P has the rows (1, 1) and (1, −2) and det P = −3. Then AP has the rows (5, 2) and (5, −4), and

In the basis of eigenvectors the map is diagonal, with the eigenvalues on the diagonal. The matrix in the matrix calculator finds the eigenvalues and the eigenvectors.

The direction

P converts new coordinates to old. Applying it to old coordinates gives two numbers that are the coordinates in neither basis.

For the vector in the example Result
Right: P x′ with x′ = (1, 2) (4, 7)
Right: P⁻¹ x with x = (4, 7) (1, 2)
Wrong: P x with x = (4, 7) (15, 25)

Common mistakes

Frequently asked questions

Does P go from the old basis to the new, or the other way? Its columns are the new basis vectors in old coordinates, so it takes new coordinates to old ones. Books differ: some call P⁻¹ the change-of-basis matrix, because it takes old coordinates to new. Check which direction a book means before comparing answers.

Does the change of basis change the vector? No. The vector is the same arrow; only its list of coordinates changes with the basis.

Why do similar matrices have the same eigenvalues? A and P⁻¹AP represent the same linear map in two bases, and eigenvalues belong to the map. They also have the same determinant and trace.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
x₁p₁₁x′₁+p₁₂x′₂2·1+1·24
x₂p₂₁x′₁+p₂₂x′₂1·1+3·27

Last reviewed November 7, 2026 ·How pages are reviewed

Calculate it in practice

Linear algebraAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.