Change of Basis Matrix Calculator

Enter the two bases, each vector a row, to find the change-of-basis matrix.

Basis B (vectors as rows)
Rows
2
Columns
2

The old basis: each vector a row, like 1, 0; 0, 1.

Basis C (vectors as rows)
Rows
2
Columns
2

The new basis: each vector a row, like 1, 1; 1, -1.

Try

Result

You enteredPC←BP_{C \leftarrow B}

PC←B=(121212−12)\displaystyle P_{C \leftarrow B} = \begin{pmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} \end{pmatrix}

The other way, P(B ← C)

PB←C=(111−1)\displaystyle P_{B \leftarrow C} = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}
Show the work
  1. Change-of-basis matrix

    The transition matrix turns coordinates in the basis B into coordinates in the basis C. Its columns are the B vectors written in C coordinates.

    Using [x]C=PC←B[x]B[\mathbf{x}]_C = P_{C \leftarrow B}[\mathbf{x}]_B

    [B]=(1001),[C]=(111−1) (the vectors as columns)[B] = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix},\quad [C] = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\ \text{(the vectors as columns)}
  2. Solve for the C coordinates

    Each B vector b is [C] times its C coordinates, so the coordinates are [C]⁻¹ b — all at once, [C]⁻¹[B].

    Using PC←B=[C]−1[B]P_{C \leftarrow B} = [C]^{-1}[B]

    [C]−1=(121212−12)[C]^{-1} = \begin{pmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} \end{pmatrix}
  3. Check

    Multiplying the C basis by each column of P rebuilds the B vectors.

    [C] P=(1001)=[B][C]\,P = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = [B]
  4. Result

    The transition matrix from B to C.

    PC←B=(121212−12)P_{C \leftarrow B} = \begin{pmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} \end{pmatrix}

Worked examples