Home › Linear Functions › Lesson 4

Matrices, Change of Basis and Similarity

Lesson 4 of 12

Key idea of this section

[T]C←B has j-th column = C-coordinates of T(bⱼ)
[S∘T] = [S][T]          (composition is matrix multiplication)
Change of basis:  [T]B′ = P⁻¹ [T]B P,  P = matrix whose columns are the B′ vectors in B-coordinates

Coordinates and matrices

Fix an ordered basis B = (b₁, …, bₙ) of V. The coordinate map v ↦ [v]B ∈ Fⁿ is a linear isomorphism, so every n-dimensional space over F "is" Fⁿ once a basis is chosen. But the isomorphism depends on the choice, and much of linear algebra consists in choosing well. If C = (c₁, …, cₘ) is a basis of W and T : V → W is linear, the matrix of T is the m × n matrix [T]C←B whose j-th column is [T(bⱼ)]C. By construction [T(v)]C = [T]C←B[v]B.

Theorem 4.1 (Composition)

If T : U → V and S : V → W are linear and A, B, C are bases of U, V, W, then [S∘T]C←A = [S]C←B[T]B←A.

Proof. For any u ∈ U, [S(T(u))]C = [S]C←B[T(u)]B = [S]C←B[T]B←A[u]A. Applying this to the basis vectors of A identifies the columns of both sides. ∎

This theorem is the reason matrix multiplication is defined the way it is: the row-by-column rule is forced by the requirement that composition of maps correspond to the product of matrices. In particular matrix multiplication is associative because composition of functions is, and it is noncommutative because composition generally is.

Change of basis

Let B and B′ be two bases of V and let P = [id]B←B′ be the matrix whose j-th column is the B-coordinate vector of the j-th vector of B′. Then [v]B = P[v]B′, P is invertible, and for an operator T : V → V Theorem 4.1 gives

[T]B′ = [id]B′←B [T]B [id]B←B′ = P⁻¹ [T]B P.

Two square matrices A and A′ are similar if A′ = P⁻¹AP for some invertible P; similar matrices represent the same operator in different bases. Any quantity defined in terms of the operator alone, rather than its matrix, is therefore a similarity invariant: the rank, the determinant, the trace, the characteristic polynomial det(λI − A), the eigenvalues with their algebraic and geometric multiplicities, and the minimal polynomial. The complete classification of matrices up to similarity is given by the Jordan normal form over an algebraically closed field, or the rational canonical form over any field.

Worked example (diagonalisation). Let T : ℝ² → ℝ² have the standard matrix shown below.

A = [ 3  1 ]
    [ 0  2 ]

Its eigenvalues are 3 and 2 (it is triangular). Eigenvectors: A(1, 0) = (3, 0) and A(1, −1) = (3 − 1, −2) = (2, −2) = 2(1, −1). With B′ = ((1, 0), (1, −1)) we have

P = [ 1   1 ]     P⁻¹ = P  (since P² = I)     P⁻¹AP = [ 3  0 ]
    [ 0  −1 ]                                          [ 0  2 ]

Indeed AP has columns (3, 0) and (2, −2), and multiplying by P⁻¹ = P gives columns (3, 0) and (0, 2). In the eigenbasis the operator simply stretches the two axes by 3 and by 2. Trace 5 and determinant 6 are visible in both matrices.

Worked example (an operator on polynomials). On P₂ with basis (1, x, x²), differentiation D sends 1 ↦ 0, x ↦ 1, x² ↦ 2x. Reading off coordinate columns,

[D] = [ 0  1  0 ]
      [ 0  0  2 ]
      [ 0  0  0 ]

The matrix is nilpotent ([D]³ = 0, matching the fact that three derivatives kill any quadratic), its trace is 0 and its rank is 2.

Why the trace is special

The trace satisfies tr(AB) = tr(BA), which immediately implies tr(P⁻¹AP) = tr(APP⁻¹) = tr A. Conversely, any linear functional φ on n × n matrices with φ(AB) = φ(BA) for all A, B is a scalar multiple of the trace (Problem 26). A famous consequence: there are no n × n matrices with AB − BA = I, because the left side has trace 0 and the right side has trace n (Problem 48). In quantum mechanics the canonical commutation relation [x, p] = iħ therefore forces infinite-dimensional state spaces.

Exercise

  • (a)
    Find the matrix of T(p) = p′ + p on P₂ with respect to (1, x, x²), and its determinant.
  • (b)
    A 2 × 2 matrix B is similar to a matrix A with trace 7 and determinant 10. Find the eigenvalues of B.
  • (c)
    Let A have rows (4, −2) and (1, 1). Find an invertible P with P⁻¹AP diagonal.
Show solution

Answers: (a) T(1) = 1, T(x) = 1 + x, T(x²) = 2x + x², so the matrix has rows (1, 1, 0), (0, 1, 2), (0, 0, 1); it is upper triangular with determinant 1. (b) B has characteristic polynomial λ² − 7λ + 10 = (λ − 2)(λ − 5), so eigenvalues 2 and 5. (c) The characteristic polynomial is λ² − 5λ + 6, with roots 2 and 3; eigenvectors are (1, 1) for 2 and (2, 1) for 3, so P with columns (1, 1) and (2, 1) gives P⁻¹AP = diag(2, 3).

V.3.1