4.5.20 · D3Linear Algebra (Full)

Worked examples — Change of basis matrix

2,750 words13 min readBack to topic

If any symbol here feels unfamiliar, it was built in Change of basis matrix — this page assumes only that page.


The scenario matrix

Every change-of-basis problem is one of these shapes. We enumerate them so nothing surprises you.

Cell What makes it that case Which direction Example
A Old = standard, new = non-standard (needs inverse) Ex 1
B Old = non-standard, new = standard (easy, no inverse) Ex 2
C Both non-standard (full ) Ex 3
D New basis is old scaled Ex 4
E New basis is old rotated, (geometry) Ex 5
F Reverse an existing translator use Ex 6
G Same basis in and out (identity) Ex 7
H Bigger space, in Ex 8
I Near-degenerate basis (limiting/breaking) why blows up Ex 9
J Real-world word problem modelling Ex 10
K Reflected basis, (orientation flip) Ex 11

The number line of "signs and quadrants" for this topic is really the sign of the determinant and whether exists at all. Cell E has (orientation preserved), cell K has (orientation flipped, a mirror), and cell I is the degenerate boundary where ceases to exist.


Example 1 — Cell A: standard → non-standard (needs inverse)

Forecast: Guess before computing — will the first -coordinate be more or less than ? (The first -vector is twice as long as , so you should need fewer of it.)

  1. Build the matrix of . Why this step? Columns of are the new basis vectors written in standard coordinates — that's the standard-basis shortcut from the parent note.

  2. We need . Why this step? We are going into -land from standard-land. Read the subscript: eats -coords, gives -coords. The parent formula gives (since ).

  3. Invert . For the inverse is . Here : Why this step? Dividing by and swapping/negating entries is the inversion rule — this is the translator that reads standard coords and reports them in .

  4. Apply to . Why this step? Multiplying the translator by the input column is the translation — output is .

Verify: Reconstruct the arrow: . ✓ Forecast confirmed: first coordinate is , much less than , exactly because is a long ruler.


Example 2 — Cell B: non-standard → standard (the easy direction)

Forecast: Do we need an inverse here? (No — decoding into standard is always the multiply-by- direction.)

  1. Write . . Why this step? Its columns are already in standard coordinates, so directly — no inverse.

  2. Multiply. Why this step? means ; matrix–column multiply is literally that linear combination.

Verify: . ✓


Example 3 — Cell C: both bases non-standard (full )

Forecast: The mnemonic is "C-inverse Bites B." Which matrix gets inverted — the input basis or the output basis? (The output, .)

  1. Assemble both matrices. Why this step? Columns are the respective basis vectors in standard coordinates — the raw material for the formula.

  2. Invert . , so Why this step? Translating -coords first to standard () then standard into (). The composite is .

  3. Multiply . Why this step? This product is the single translator card that eats -coords and gives -coords in one shot.

  4. Apply to . Why this step? Feeding the input column through the translator produces .

Verify (Forecast-then-Verify): The actual arrow is . In : . ✓


Example 4 — Cell D: new basis is old, just scaled ()

Forecast: Stretching the ruler makes each measured number shrink. Predict the two coordinates before computing.

  1. Matrix of is diagonal. . Why this step? Diagonal because the two rulers don't interfere — pure scaling.

  2. Inverse of a diagonal matrix = reciprocals on the diagonal. Why this step? A diagonal matrix scales each axis independently, so undoing it just inverts each scale — no cross terms. Since , .

  3. Apply. Why this step? Running the standard-coord input through reports it in the stretched rulers.

Verify: . ✓ The numbers shrank (, ) exactly as forecast — a longer ruler yields a smaller reading.


Example 5 — Cell E: new basis is old, rotated, (geometry)

Figure — Change of basis matrix
Figure 1 — The faint white arrows are the old standard axes. The blue arrow is the new first basis vector ; the red arrow is . Notice they are both length and meet at a right angle (an orientation-preserving rotation, ). The yellow arrow is the fixed vector — observe it lies flat along , which is exactly why its second -coordinate will come out zero. The arrow itself never moved; only the grid we measure it with turned.

Forecast: The arrow points exactly along the new direction. So one -coordinate should be zero. Which one?

  1. Build from its columns. Why this step? Columns are the rotated basis vectors in standard coords.

  2. For a rotation, the inverse is the transpose. Why this step? Rotation matrices are orthogonal — their columns are unit-length and perpendicular (see the blue and red arrows in Figure 1) — so , meaning . No fraction-heavy inversion needed.

  3. Apply to . Why this step? Passing standard coords through reports the same arrow in the rotated grid.

Verify: . ✓ Second coordinate is , as forecast — the arrow lies along (the yellow arrow on the blue arrow in Figure 1).


Example 6 — Cell F: reverse an existing translator ()

Forecast: You have -coords but want -coords. Which matrix moves you backwards? ( — flip the translator card over.)

  1. Invert the given matrix. : Why this step? Reversing the direction of a change of basis is exactly taking the inverse — the parent note's inverse relation.

  2. Apply to . Why this step? Running the -coord input through the reversed translator delivers the -coords.

Verify: This should undo Ex 3, where gave . Feeding back returns . ✓


Example 7 — Cell G: same basis in and out (the identity)

Forecast: Translating a language into itself changes nothing — so what matrix must this be?

  1. Use the formula with . Why this step? with collapses to the identity — the degenerate but essential "no change" case.

  2. Apply. . Unchanged, as it must be. Why this step? The identity leaves any input column untouched — confirming "same basis in and out" does nothing.

Verify: Column of should be — and indeed , , which stacks to . ✓


Example 8 — Cell H: bigger space, ()

Forecast: is "each vector adds one more ." Its inverse should be a simple difference pattern. Guess the top coordinate.

  1. Matrix of . Why this step? Columns = new basis vectors in standard coords.

  2. We need . This upper-triangular "all ones above and on the diagonal" matrix inverts to the finite-difference matrix: Why this step? Since , ; and undoing "add the next component" is subtracting it, giving this difference pattern. You can check directly.

  3. Apply to . Why this step? Passing the standard-coord input through reports it in the -basis.

Verify: . ✓


Example 9 — Cell I: near-degenerate basis (why it breaks)

Figure — Change of basis matrix
Figure 2 — The blue arrow and the red arrow almost coincide: the two rulers point nearly the same way. The yellow arrow is the vector we want to measure. Because the rulers barely differ, reaching needs a huge push forward and a huge cancelling pull, so the coordinates are enormous compared to the tiny arrow — the visual signature of a near-degenerate basis.

Forecast: As the two basis vectors become nearly parallel (Figure 2: red and blue almost overlap), does measuring a vector get easier or dangerously sensitive?

  1. Determinant. . Why this step? The inverse divides by the determinant. As , we divide by nearly zero — coordinates explode. This is the limiting/degenerate boundary of the whole topic.

  2. The inverse. Why this step? Applying the rule shows the entries — the translator's numbers blow up as the basis degenerates.

  3. Apply with to . Why this step? Feeding the input through the exploded translator produces the enormous coordinates seen in Figure 2.

Verify: . ✓


Example 10 — Cell J: real-world word problem

Forecast: The speed magnitude is m/s. Whatever coordinates we get, they must also have length (rotating axes can't change how fast the drone is). Keep that as your sanity anchor.

  1. The pilot's basis . Why this step? Columns are the runway axes in standard (East, North) coordinates.

  2. This is a rotation ⇒ (orthogonal, like Ex 5). Why this step? are perpendicular unit vectors, so no messy inverse — the transpose suffices, and .

  3. Apply. Why this step? Running the ground-frame velocity through reports the same velocity in runway coordinates. So the screen shows m/s forward and m/s left (i.e. m/s to the right).

Verify (units + magnitude): m/s. ✓ Speed preserved exactly as forecast — the drone doesn't fly faster just because the pilot uses runway axes.


Example 11 — Cell K: reflected basis, (orientation flip)

Forecast: A rotation (Ex 5) keeps . Flipping one ruler reverses orientation, so predict: is positive or negative? And what should happen to the second coordinate of ?

  1. Matrix of . . Why this step? Columns are the mirror basis vectors in standard coords; the encodes the downward -ruler.

  2. Determinant — check orientation. . Why this step? A negative determinant is the algebraic fingerprint of an orientation-reversing (mirror) basis — the case cell K exists to cover. It is still non-zero, so exists.

  3. Inverse. This reflection is its own inverse: . Why this step? Mirroring twice returns you to the start, so and . Since , .

  4. Apply to . Why this step? Running the standard coords through reports them in the flipped grid — the second coordinate changes sign, exactly as forecast.

Verify: . ✓ The arrow is unchanged; only its description flipped its second component because the ruler points the other way.


Recall

Recall In which direction do you NOT need an inverse?

Non-standard standard (): just multiply by , since its columns are already in standard coordinates.

Recall Why is

for a rotated basis? A rotation's columns are perpendicular unit vectors (orthogonal matrix), so , hence — no fractions needed.

Recall What does the sign of

tell you? : new axes are a rotation (orientation preserved). : a reflection (orientation flipped, a mirror). : the basis degenerates and blows up / ceases to exist.

Recall What goes wrong as the basis becomes degenerate?

, so (which divides by ) blows up: coordinates explode and errors amplify by .

Recall Same basis in and out — what is

? The identity : translating a language into itself changes nothing.

Connections

  • Change of basis matrix — the parent machine these examples exercise.
  • Invertible Matrices — Ex 9's degenerate limit is exactly non-invertibility; Ex 11's is still invertible.
  • Coordinate Vectors — every input/output column here is one.
  • Linear Transformations — Ex 5, 10 & 11 are the passive view (axes move, arrow fixed).
  • Basis and Dimension — why an independent spanning set is required at all.
  • Similar Matrices · Eigenvectors and Diagonalization — where these translators get reused on whole maps.