✓ Official Syllabus VerifiedStandards & Rigor ↗
7

Linear Transformations, Matrix Representations & Change of Basis

📌 Linear Algebra · Linear Transformations, Matrix Representations & Change of Basis Core Mastery · 7  ·  Linear Transformations

A function between vector spaces that respects addition and scalar multiplication is called a linear transformation. While Chapter 3 introduced matrix–vector multiplication as an algebraic operation, this chapter reveals the deeper geometric reality: every linear operator on finite-dimensional spaces is intrinsically represented by a matrix once bases are chosen. Linear transformations form the conceptual bridge connecting abstract vector spaces, geometry, and linear operator theory across quantum mechanics, computer graphics, and continuous dynamical systems.

● Level 1 Foundation — Definition 7.1: Linear Transformation

Let V and \( W \) be vector spaces over \( \mathbb{R} \). A mapping \( T: V \to W \) is a linear transformation (or linear operator when \( V = W \)) if and only if for all vectors \( \mathbf{u}, \mathbf{v} \in V \) and every scalar \( c \in \mathbb{R} \):

  1. Additivity: \( T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v}) \)
  2. Scalar Homogeneity: \( T(c\mathbf{u}) = c\,T(\mathbf{u}) \)

These two conditions are equivalent to the single superposition condition: \[ T(c_1\mathbf{u} + c_2\mathbf{v}) = c_1 T(\mathbf{u}) + c_2 T(\mathbf{v}) \] for all scalars \( c_1, c_2 \). By induction, a linear map preserves arbitrary linear combinations: \[ T\left(\sum_{i=1}^k c_i \mathbf{v}_i\right) = \sum_{i=1}^k c_i T(\mathbf{v}_i). \]

Zero Vector Property: Taking \( c = 0 \) yields \( T(\mathbf{0}_V) = T(0 \cdot \mathbf{0}_V) = 0 \cdot T(\mathbf{0}_V) = \mathbf{0}_W \). Every linear map strictly maps the origin of the domain to the origin of the codomain. Any mapping with \( T(\mathbf{0}) \neq \mathbf{0} \) (such as the affine shift \( f(\mathbf{x}) = A\mathbf{x} + \mathbf{b} \) with \( \mathbf{b} \neq \mathbf{0} \)) is not linear.

Reflection operator \([T] = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\) swaps coordinates across \(y = x\), reversing orientation \(\det([T]) = -1\).
⊙ Explorer · Linear Transformation Grid \(T(x)\) = Ax, Basis Columns & Determinant
interactive
Transformed Basis \(T(e_{1})\), \(T(e_{2})\)\(\langle 1.5, 0.5\rangle\) & \(\langle 1.0, 1.5\rangle\)
Area Scale Factor \(\det (A)\)\(\det (A) = 1.75\)
Image of \(v = \langle 1, 1\rangle\)\(T(1,1) = \langle 2.5, 2.0\rangle\)

See how the linear map \(T(x)\) = Ax deforms the entire 2D coordinate grid so standard basis vectors \(e_{1}\), \(e_{2}\) land on the matrix columns \(a_{1}\), \(a_{2}\).

▲ Level 1 Foundation — Theorem 7.1: The Standard Matrix Representation

Let \( T: \mathbb{R}^n \to \mathbb{R}^m \) be a linear transformation. Then there exists a unique \( m \times n \) matrix \( [T] \) (or \( A \)), called the standard matrix of \( T \), such that: \[ T(\mathbf{x}) = [T]\mathbf{x} \quad \text{for all } \mathbf{x} \in \mathbb{R}^n. \] Furthermore, the columns of \( [T] \) are precisely the images of the standard basis vectors \( \mathbf{e}_1, \mathbf{e}_2, \ldots, \mathbf{e}_n \) of \( \mathbb{R}^n \): \[ [T] = \begin{pmatrix} | & | & & | \\ T(\mathbf{e}_1) & T(\mathbf{e}_2) & \cdot s & T(\mathbf{e}_n) \\ | & | & & | \end{pmatrix}. \]

Proof of Theorem 7.1

Any vector \( \mathbf{x} = (x_1, x_2, \ldots, x_n)^T \in \mathbb{R}^n \) can be uniquely expressed as a linear combination of standard basis vectors: \[ \mathbf{x} = x_1\mathbf{e}_1 + x_2\mathbf{e}_2 + \cdot s + x_n\mathbf{e}_n = \sum_{j=1}^n x_j \mathbf{e}_j. \] Applying the linear transformation \( T \) and utilizing linearity across the summation and scalar coefficients: \[ T(\mathbf{x}) = T\left( \sum_{j=1}^n x_j \mathbf{e}_j \right) = \sum_{j=1}^n x_j T(\mathbf{e}_j). \] By the fundamental definition of matrix–vector multiplication (a linear combination of the matrix columns weighted by the vector components): \[ \sum_{j=1}^n x_j T(\mathbf{e}_j) = \begin{pmatrix} | & | & & | \\ T(\mathbf{e}_1) & T(\mathbf{e}_2) & \cdot s & T(\mathbf{e}_n) \\ | & | & & | \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{pmatrix} = [T]\mathbf{x}. \] Uniqueness follows from evaluating \( T(\mathbf{e}_j) \): if \( A\mathbf{x} = B\mathbf{x} \) for all \( \mathbf{x} \), setting \( \mathbf{x} = \mathbf{e}_j \) yields \( A\mathbf{e}_j = B\mathbf{e}_j \), forcing the \( j \)-th columns of \( A \) and \( B \) to be identical for all \( j \). Hence \( [T] \) is unique. \( \blacksquare \)

Worked Example 7.A (Level 1) — Canonical Geometric Operators in ℝ²
Problem. Construct the standard transformation matrices for three foundational geometric operators on \( \mathbb{R}^2 \):
▸ Show step-by-step solution
  1. Counterclockwise Rotation by Angle \( \theta \) (\( R_\theta \)):
    Under rotation by \( \theta \), \( \mathbf{e}_1 = (1, 0)^T \mapsto (\cos\theta, \sin\theta)^T \) and \( \mathbf{e}_2 = (0, 1)^T \mapsto (-\sin\theta, \cos\theta)^T \).
    Therefore: \[ [R_\theta] = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}. \]
  2. Reflection Across a Line Through the Origin at Angle \( \alpha \) (\( M_\alpha \)):
    Unit vector along the line is \( \mathbf{u} = (\cos\alpha, \sin\alpha)^T \). Reflection maps \( \mathbf{x} \mapsto 2(\mathbf{x} \cdot \mathbf{u})\mathbf{u} - \mathbf{x} \). Evaluating on standard basis vectors: \[ [M_\alpha] = \begin{pmatrix} \cos(2\alpha) & \sin(2\alpha) \\ \sin(2\alpha) & -\cos(2\alpha) \end{pmatrix}. \]
  3. Horizontal Shear by Factor \( k \) (\( S_k \)):
    \( S_k(x, y) = (x + ky, y) \). Here \( S_k(\mathbf{e}_1) = (1, 0)^T \) and \( S_k(\mathbf{e}_2) = (k, 1)^T \), giving: \[ [S_k] = \begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}. \]
● Level 2 Analytical Application — Definition 7.2: Kernel, Image & Morphisms

For any linear transformation \( T: V \to W \):

  • Kernel (Null Space): The set of all input vectors mapped to the zero vector in \( W \): \[ \ker(T) = \operatorname{null}(T) = \{ \mathbf{v} \in V : T(\mathbf{v}) = \mathbf{0}_W \}. \] \( \ker(T) \) is a vector subspace of the domain \( V \). Its dimension is the nullity of \( T \): \( \operatorname{nullity}(T) = \dim(\ker T) \).
  • Image (Range): The set of all output vectors achievable in \( W \): \[ \operatorname{im}(T) = \operatorname{range}(T) = \{ \mathbf{w} \in W : \exists \mathbf{v} \in V \text{ such that } T(\mathbf{v}) = \mathbf{w} \}. \] \( \operatorname{im}(T) \) is a vector subspace of the codomain \( W \), equivalent to the column space \( \operatorname{Col}([T]) \). Its dimension is the rank of \( T \): \( \operatorname{rank}(T) = \dim(\operatorname{im} T) \).
  • Injectivity (One-to-One): \( T \) is injective if \( T(\mathbf{u}) = T(\mathbf{v}) \implies \mathbf{u} = \mathbf{v} \).
  • Surjectivity (Onto): \( T \) is surjective if \( \operatorname{im}(T) = W \) (i.e., \( \operatorname{rank}(T) = \dim(W) \)).
  • Isomorphism (Bijective): \( T \) is an isomorphism if it is both injective and surjective. In this case, \( V \) and \( W \) are isomorphic (\( V \cong W \)), which requires \( \dim(V) = \dim(W) \).
▲ Level 2 Analytical Application — Theorem 7.2: Injectivity and the Trivial Kernel

Let \( T: V \to W \) be a linear transformation. Then \( T \) is injective (one-to-one) if and only if \( \ker(T) = \{ \mathbf{0}_V \} \) (i.e., \( \operatorname{nullity}(T) = 0 \)).

Proof of Theorem 7.2

Forward Direction (\( \implies \)): Assume \( T \) is injective. We already know \( T(\mathbf{0}_V) = \mathbf{0}_W \), so \( \mathbf{0}_V \in \ker(T) \). Now let \( \mathbf{v} \in \ker(T) \). Then \( T(\mathbf{v}) = \mathbf{0}_W \). Thus \( T(\mathbf{v}) = T(\mathbf{0}_V) \). Because \( T \) is injective, this directly implies \( \mathbf{v} = \mathbf{0}_V \). Hence, \( \ker(T) = \{ \mathbf{0}_V \} \).

Reverse Direction (\( \impliedby \)): Assume \( \ker(T) = \{ \mathbf{0}_V \} \). Suppose \( T(\mathbf{u}) = T(\mathbf{v}) \) for some \( \mathbf{u}, \mathbf{v} \in V \). Subtracting \( T(\mathbf{v}) \) from both sides and applying linearity gives: \[ T(\mathbf{u}) - T(\mathbf{v}) = T(\mathbf{u} - \mathbf{v}) = \mathbf{0}_W. \] By definition of the kernel, \( \mathbf{u} - \mathbf{v} \in \ker(T) \). Since \( \ker(T) = \{ \mathbf{0}_V \} \), we must have \( \mathbf{u} - \mathbf{v} = \mathbf{0}_V \), which means \( \mathbf{u} = \mathbf{v} \). Therefore, \( T \) is one-to-one. \( \blacksquare \)

▲ Level 2 Analytical Application — Theorem 7.3: The Dimension Theorem for Linear Maps

If \( V \) is a finite-dimensional vector space and \( T: V \to W \) is a linear transformation, then: \[ \dim(\ker T) + \dim(\operatorname{im} T) = \dim(V), \] or equivalently: \[ \operatorname{nullity}(T) + \operatorname{rank}(T) = \dim(V). \]

Proof of the Dimension Theorem (Rank-Nullity)

Let \( n = \dim(V) \) and let \( k = \dim(\ker T) \). If \( k = 0 \), the kernel is \( \{ \mathbf{0} \} \) with basis \( \emptyset \). Otherwise, choose a basis \( \mathcal{B}_K = \{ \mathbf{u}_1, \mathbf{u}_2, \ldots, \mathbf{u}_k \} \) for \( \ker(T) \).

By the Basis Extension Theorem, extend \( \mathcal{B}_K \) to a complete basis for \( V \): \[ \mathcal{B} = \{ \mathbf{u}_1, \ldots, \mathbf{u}_k, \mathbf{w}_1, \ldots, \mathbf{w}_{n-k} \}. \] We claim that the set \( \mathcal{S} = \{ T(\mathbf{w}_1), T(\mathbf{w}_2), \ldots, T(\mathbf{w}_{n-k}) \} \) is a basis for \( \operatorname{im}(T) \).

1. \( \mathcal{S} \) spans \( \operatorname{im}(T) \): Let \( \mathbf{y} \in \operatorname{im}(T) \). Then \( \mathbf{y} = T(\mathbf{v}) \) for some \( \mathbf{v} \in V \). Express \( \mathbf{v} \) in terms of \( \mathcal{B} \): \[ \mathbf{v} = \sum_{i=1}^k c_i \mathbf{u}_i + \sum_{j=1}^{n-k} d_j \mathbf{w}_j. \] Applying \( T \) and noting \( T(\mathbf{u}_i) = \mathbf{0} \) for all \( i \): \[ \mathbf{y} = T(\mathbf{v}) = \sum_{i=1}^k c_i T(\mathbf{u}_i) + \sum_{j=1}^{n-k} d_j T(\mathbf{w}_j) = \sum_{j=1}^{n-k} d_j T(\mathbf{w}_j). \] Thus \( \operatorname{span}(\mathcal{S}) = \operatorname{im}(T) \).

2. \( \mathcal{S} \) is linearly independent: Suppose \[ \sum_{j=1}^{n-k} d_j T(\mathbf{w}_j) = \mathbf{0}_W. \] By linearity, \( T\left( \sum_{j=1}^{n-k} d_j \mathbf{w}_j \right) = \mathbf{0}_W \), which proves that the vector \( \mathbf{w} = \sum_{j=1}^{n-k} d_j \mathbf{w}_j \) lies in \( \ker(T) \). Since \( \mathcal{B}_K \) is a basis for \( \ker(T) \), \( \mathbf{w} \) can be written as: \[ \sum_{j=1}^{n-k} d_j \mathbf{w}_j = \sum_{i=1}^k c_i \mathbf{u}_i \iff \sum_{i=1}^k (-c_i)\mathbf{u}_i + \sum_{j=1}^{n-k} d_j \mathbf{w}_j = \mathbf{0}_V. \] Because the combined set \( \mathcal{B} \) is linearly independent in \( V \), all coefficients must vanish: \( c_1 = \cdot s = c_k = d_1 = \cdot s = d_{n-k} = 0 \). In particular, \( d_1 = d_2 = \cdot s = d_{n-k} = 0 \), establishing that \( \mathcal{S} \) is linearly independent.

Since \( \mathcal{S} \) spans \( \operatorname{im}(T) \) and is linearly independent, it is a basis for \( \operatorname{im}(T) \). Hence \( \dim(\operatorname{im} T) = n - k = \dim(V) - \dim(\ker T) \), completing the proof. \( \blacksquare \)

Worked Example 7.B (Level 2) — Dimension Theorem & Kernel Computation
Problem. Consider the linear transformation \( T: \mathbb{R}^4 \to \mathbb{R}^3 \) defined by \( T(\mathbf{x}) = A\mathbf{x} \) where: \[ A = \begin{pmatrix} 1 & -1 & 2 & 3 \\ 2 & 2 & 0 & 2 \\ 4 & 0 & 4 & 8 \end{pmatrix}. \] Determine a basis for \( \ker(T) \), a basis for \( \operatorname{im}(T) \), and verify the Dimension Theorem.
▸ Show step-by-step solution

Step 1: Row reduce \( A \) to RREF: \[ \begin{pmatrix} 1 & -1 & 2 & 3 \\ 2 & 2 & 0 & 2 \\ 4 & 0 & 4 & 8 \end{pmatrix} \xrightarrow{R_2 - 2R_1,\, R_3 - 4R_1} \begin{pmatrix} 1 & -1 & 2 & 3 \\ 0 & 4 & -4 & -4 \\ 0 & 4 & -4 & -4 \end{pmatrix} \xrightarrow{R_3 - R_2,\, R_2 / 4} \begin{pmatrix} 1 & -1 & 2 & 3 \\ 0 & 1 & -1 & -1 \\ 0 & 0 & 0 & 0 \end{pmatrix} \xrightarrow{R_1 + R_2} \begin{pmatrix} 1 & 0 & 1 & 2 \\ 0 & 1 & -1 & -1 \\ 0 & 0 & 0 & 0 \end{pmatrix}. \]

Step 2: Basis for \( \ker(T) \): Pivot variables are \( x_1, x_2 \); free variables are \( x_3 = s, x_4 = t \). Expressing pivot variables: \( x_1 = -s - 2t \) and \( x_2 = s + t \). In parametric vector form: \[ \mathbf{x} = s \begin{pmatrix} -1 \\ 1 \\ 1 \\ 0 \end{pmatrix} + t \begin{pmatrix} -2 \\ 1 \\ 0 \\ 1 \end{pmatrix}. \] Thus a basis for \( \ker(T) \) is \( \left\{ \begin{pmatrix} -1 \\ 1 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} -2 \\ 1 \\ 0 \\ 1 \end{pmatrix} \right\} \), and \( \operatorname{nullity}(T) = 2 \).

Step 3: Basis for \( \operatorname{im}(T) \): Pivot columns are columns 1 and 2 of the original matrix \( A \): \[ \text{Basis for } \operatorname{im}(T) = \left\{ \begin{pmatrix} 1 \\ 2 \\ 4 \end{pmatrix}, \begin{pmatrix} -1 \\ 2 \\ 0 \end{pmatrix} \right\}, \quad \operatorname{rank}(T) = 2. \]

Verification: \( \operatorname{nullity}(T) + \operatorname{rank}(T) = 2 + 2 = 4 = \dim(\text{domain } \mathbb{R}^4) \). ✓

● Level 3 University Rigor — Definition 7.3: Matrix Relative to Arbitrary Bases

Let \( V \) and \( W \) be vector spaces with ordered bases \( \mathcal{B} = \{ \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_n \} \) and \( \mathcal{C} = \{ \mathbf{w}_1, \mathbf{w}_2, \ldots, \mathbf{w}_m \} \), respectively. Let \( [\mathbf{v}]_\mathcal{B} \) denote the coordinate vector of \( \mathbf{v} \) relative to \( \mathcal{B} \).

The matrix representation of \( T: V \to W \) relative to bases \( \mathcal{B} \) and \( \mathcal{C} \), denoted \( [T]_\mathcal{B}^\mathcal{C} \) (or simply \( [T]_\mathcal{B} \) when \( V = W \) and \( \mathcal{B} = \mathcal{C} \)), is the \( m \times n \) matrix whose \( j \)-th column is the coordinate vector of \( T(\mathbf{v}_j) \) with respect to \( \mathcal{C} \): \[ [T]_\mathcal{B}^\mathcal{C} = \begin{pmatrix} | & | & & | \\ [T(\mathbf{v}_1)]_\mathcal{C} & [T(\mathbf{v}_2)]_\mathcal{C} & \cdot s & [T(\mathbf{v}_n)]_\mathcal{C} \\ | & | & & | \end{pmatrix}. \] This matrix satisfies the commutative diagram property: \[ [T(\mathbf{x})]_\mathcal{C} = [T]_\mathcal{B}^\mathcal{C} [\mathbf{x}]_\mathcal{B} \quad \text{for all } \mathbf{x} \in V. \]

▲ Level 3 University Rigor — Theorem 7.4: Change of Basis & Similarity Transformations

Let \( T: V \to V \) be a linear operator on an \( n \)-dimensional space \( V \), and let \( \mathcal{B} \) and \( \mathcal{C} \) be two ordered bases of \( V \). Let \( P = P_{\mathcal{B} \leftarrow \mathcal{C}} \) be the change-of-basis transition matrix from \( \mathcal{C} \) to \( \mathcal{B} \), whose columns are \( [\mathbf{w}_j]_\mathcal{B} \) for \( \mathbf{w}_j \in \mathcal{C} \).

Then \( P \) is invertible, \( [\mathbf{x}]_\mathcal{B} = P [\mathbf{x}]_\mathcal{C} \), and the matrices representing \( T \) under \( \mathcal{B} \) and \( \mathcal{C} \) are related by a similarity transformation: \[ [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P. \]

Similarity Invariants: Because \( [T]_\mathcal{C} \) and \( [T]_\mathcal{B} \) are similar matrices (\( B = P^{-1}AP \)), they share identical intrinsic geometric properties independent of the chosen coordinate basis:

  1. \( \det([T]_\mathcal{C}) = \det([T]_\mathcal{B}) \)
  2. \( \operatorname{tr}([T]_\mathcal{C}) = \operatorname{tr}([T]_\mathcal{B}) \)
  3. \( p_{[T]_\mathcal{C}}(\lambda) = p_{[T]_\mathcal{B}}(\lambda) \) (identical characteristic polynomial and eigenvalues)
  4. Identical rank and nullity
Proof of Theorem 7.4

Let \( \mathbf{x} \in V \). By definition of the transition matrix, coordinates convert via: \[ [\mathbf{x}]_\mathcal{B} = P [\mathbf{x}]_\mathcal{C} \iff [\mathbf{x}]_\mathcal{C} = P^{-1} [\mathbf{x}]_\mathcal{B}. \] Applying this conversion rule to the transformed vector \( T(\mathbf{x}) \): \[ [T(\mathbf{x})]_\mathcal{C} = P^{-1} [T(\mathbf{x})]_\mathcal{B}. \] Substituting the definition \( [T(\mathbf{x})]_\mathcal{B} = [T]_\mathcal{B} [\mathbf{x}]_\mathcal{B} \): \[ [T(\mathbf{x})]_\mathcal{C} = P^{-1} \left( [T]_\mathcal{B} [\mathbf{x}]_\mathcal{B} \right) = P^{-1} [T]_\mathcal{B} \left( P [\mathbf{x}]_\mathcal{C} \right) = \left( P^{-1} [T]_\mathcal{B} P \right) [\mathbf{x}]_\mathcal{C}. \] Since this equality holds for all coordinate vectors \( [\mathbf{x}]_\mathcal{C} \in \mathbb{R}^n \), uniqueness of the matrix representation establishes: \[ [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P. \quad \blacksquare \]

Worked Example 7.C (Level 3) — Differential Operator Representation in Polynomial Spaces
Problem. Let \( \mathcal{P}_2 \) be the vector space of real polynomials of degree at most 2. Let \( D: \mathcal{P}_2 \to \mathcal{P}_2 \) be the linear differential operator \( D(p(x)) = x p'(x) - 2 p(x) \).
▸ Show step-by-step solution
  1. Find the matrix representation \( [D]_\mathcal{B} \) relative to the standard monomial basis \( \mathcal{B} = \{ 1, x, x^2 \} \).
  2. Find \( \ker(D) \) and \( \operatorname{im}(D) \), and determine whether \( D \) is an isomorphism.

Step 1: Compute images of basis elements:

  • For \( p_1(x) = 1 \): \( D(1) = x(0) - 2(1) = -2 = -2(1) + 0(x) + 0(x^2) \implies [D(1)]_\mathcal{B} = \begin{pmatrix} -2 \\ 0 \\ 0 \end{pmatrix} \).
  • For \( p_2(x) = x \): \( D(x) = x(1) - 2(x) = -x = 0(1) - (x) + 0(x^2) \implies [D(x)]_\mathcal{B} = \begin{pmatrix} 0 \\ -1 \\ 0 \end{pmatrix} \).
  • For \( p_3(x) = x^2 \): \( D(x^2) = x(2x) - 2(x^2) = 0 = 0(1) + 0(x) + 0(x^2) \implies [D(x^2)]_\mathcal{B} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix} \).

Assembling the columns into the matrix representation: \[ [D]_\mathcal{B} = \begin{pmatrix} -2 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 0 \end{pmatrix}. \]

Step 2: Kernel and Image Analysis:
The matrix has a pivot in columns 1 and 2, while column 3 is a free column. The null space of \( [D]_\mathcal{B} \) is spanned by \( (0, 0, 1)^T \), corresponding to the polynomial \( x^2 \).
Therefore: \[ \ker(D) = \operatorname{span}\{ x^2 \}, \quad \dim(\ker D) = 1. \] Since \( \ker(D) \neq \{0\} \), \( D \) is not injective, and by Rank-Nullity \( \operatorname{rank}(D) = 3 - 1 = 2 < 3 \) (not surjective). Hence \( D \) is not an isomorphism.
The image is spanned by \( \{ p_1, p_2 \} \): \( \operatorname{im}(D) = \operatorname{span}\{ 1, x \} \).

⚠️ Common Traps & University Pitfalls — Linear Transformations
  • Affine Shifts are NOT Linear: A common exam trap is mistaking \( T(\mathbf{x}) = A\mathbf{x} + \mathbf{b} \) (for \( \mathbf{b} \neq \mathbf{0} \)) for a linear transformation. Because \( T(\mathbf{0}) = \mathbf{b} \neq \mathbf{0} \), additivity and scalar scaling fail completely. It is an affine map, never a linear transformation.
  • Codomain Dimension vs. Range Dimension: If \( T: \mathbb{R}^5 \to \mathbb{R}^3 \), students frequently confuse the codomain \( \mathbb{R}^3 \) with \( \operatorname{im}(T) \). The dimension of the range is \( \operatorname{rank}(T) \le 3 \); \( T \) is onto only if \( \operatorname{rank}(T) = 3 \).
  • Inverting the Transition Matrix Direction: In changing basis with \( [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P \), the transition matrix \( P = P_{\mathcal{B} \leftarrow \mathcal{C}} \) has columns given by the coordinates of the new basis \( \mathcal{C} \) relative to the old basis \( \mathcal{B} \). Swapping \( P \) and \( P^{-1} \) flips the entire coordinate perspective.
  • Composition Order: The composite transformation \( (S \circ T)(\mathbf{x}) = S(T(\mathbf{x})) \) corresponds to matrix product \( [S][T] \), applied from right to left. Reversing this product to \( [T][S] \) computes \( T \circ S \), which is generally completely distinct or undefined when dimensions differ.
Linearity Axioms
\( T(c_1\mathbf{u} + c_2\mathbf{v}) = c_1T(\mathbf{u}) + c_2T(\mathbf{v}) \)
Standard Matrix
Columns are \( T(\mathbf{e}_1), \ldots, T(\mathbf{e}_n) \)
Dimension Theorem
\( \dim(\ker T) + \dim(\operatorname{im} T) = \dim(V) \)
Change of Basis
\( [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P \)
Geometric effect of the rotation transformation \( T(\mathbf{x}) = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\mathbf{x} \). The standard basis vector \( \mathbf{e}_1 = \langle 1, 0 \rangle \) maps to \( \langle 0, 1 \rangle \), rotating the plane \( 90^\circ \) counterclockwise.
Practice Problem (Level 1) — Composition & Matrix Inverse

\( T: \mathbb{R}^2 \to \mathbb{R}^2 \) projects every vector onto the \( x \)-axis: \( T(x,y)=(x,0) \). (a) Verify \( T \) is linear and find its standard matrix \( [T] \). (b) Find \( \ker(T) \) and \( \operatorname{im}(T) \), and verify the Dimension Theorem. (c) Explain geometrically and algebraically why \( [T] \) cannot be invertible.

Show solution

(a) \( T(c_1(x_1, y_1) + c_2(x_2, y_2)) = T(c_1 x_1 + c_2 x_2, c_1 y_1 + c_2 y_2) = (c_1 x_1 + c_2 x_2, 0) = c_1(x_1, 0) + c_2(x_2, 0) = c_1 T(x_1, y_1) + c_2 T(x_2, y_2) \) — strictly linear. Testing standard basis: \( T(1,0)=(1,0) \) and \( T(0,1)=(0,0) \), hence \( [T] = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} \).

(b) \( T(x,y) = (0,0) \iff x = 0 \). Thus \( \ker(T) = \{ (0, y) : y \in \mathbb{R} \} = \operatorname{span}\big((0,1)^T\big) \), which is the \( y \)-axis (\( \dim = 1 \)). The range is \( \operatorname{im}(T) = \{ (x, 0) : x \in \mathbb{R} \} = \operatorname{span}\big((1,0)^T\big) \), which is the \( x \)-axis (\( \dim = 1 \)).
Check: \( \dim(\ker T) + \dim(\operatorname{im} T) = 1 + 1 = 2 = \dim(\mathbb{R}^2) \). ✓

(c) Algebraically, \( \det([T]) = (1)(0) - (0)(0) = 0 \), so \( [T] \) is singular. Geometrically, projection permanently collapses the entire 2D plane onto a 1D line; all information along the \( y \)-axis is lost (\( \ker T \neq \{0\} \)), so the operation is non-injective and cannot be uniquely reversed.

Worked Example  ·  Matrix Representation Under Non-Standard Basis

Let \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) be reflection across the line \( y = 2x \). Find \( [T]_\mathcal{B} \) relative to the basis \( \mathcal{B} = \{ \mathbf{v}_1, \mathbf{v}_2 \} \) where \( \mathbf{v}_1 = \begin{pmatrix} 1 \\ 2 \end{pmatrix} \) lies on the line and \( \mathbf{v}_2 = \begin{pmatrix} -2 \\ 1 \end{pmatrix} \) is orthogonal to the line.

Solution: Since \( \mathbf{v}_1 \) lies along the reflection line, \( T(\mathbf{v}_1) = \mathbf{v}_1 = 1\mathbf{v}_1 + 0\mathbf{v}_2 \implies [T(\mathbf{v}_1)]_\mathcal{B} = \begin{pmatrix} 1 \\ 0 \end{pmatrix} \).
Since \( \mathbf{v}_2 \) is perpendicular to the line, reflection negates it: \( T(\mathbf{v}_2) = -\mathbf{v}_2 = 0\mathbf{v}_1 - 1\mathbf{v}_2 \implies [T(\mathbf{v}_2)]_\mathcal{B} = \begin{pmatrix} 0 \\ -1 \end{pmatrix} \).
Therefore: \[ [T]_\mathcal{B} = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. \] (Notice how selecting an eigenbasis completely diagonalizes the geometric transformation!)

Worked Example  ·  Injectivity & Codomain Dimensions

Can a linear transformation \( T: \mathbb{R}^5 \to \mathbb{R}^3 \) be injective (one-to-one)? Can it be surjective (onto)?

Solution: By the Dimension Theorem, \( \dim(\ker T) + \dim(\operatorname{im} T) = 5 \). Since \( \operatorname{im}(T) \subseteq \mathbb{R}^3 \), \( \dim(\operatorname{im} T) \le 3 \). Thus: \[ \dim(\ker T) = 5 - \dim(\operatorname{im} T) \ge 5 - 3 = 2. \] Since \( \dim(\ker T) \ge 2 > 0 \), \( \ker(T) \neq \{\mathbf{0}\} \), so \( T \) cannot be one-to-one under any circumstances. However, if \( \operatorname{rank}(T) = 3 = \dim(\mathbb{R}^3) \), \( T \) can be surjective.

Worked Example \(D\) — Linear Transformations, Matrix Representations & Change of Basis (Hard Application)
Problem. Let \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) be a linear transformation represented by the matrix \( A = \begin{pmatrix} 3 & -1 \\ 1 & 2 \end{pmatrix} \) with respect to the standard basis \( \{ \mathbf{e}_1, \mathbf{e}_2 \} \). Consider a new basis \( B = \{ \mathbf{v}_1, \mathbf{v}_2 \} \) where \( \mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} \) and \( \mathbf{v}_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix} \). Let \( P \) be the change-of-basis matrix from basis \( B \) to the standard basis. Find the matrix representation of \( T \) with respect to basis \( B \), denoted by \( [T]_B \). This matrix can be expressed as \( P^{-1}AP \). Find the sum of the diagonal entries of \( [T]_B \).
▸ Show step-by-step solution

The change-of-basis matrix \( P \) from basis \( B \) to the standard basis has the vectors of \( B \) as its columns. Thus, \( P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} \). The inverse of \( P \) is \( P^{-1} = \frac{1}{\det(P)} \begin{pmatrix} -1 & -1 \\ -1 & 1 \end{pmatrix} \). Since \( \det(P) = (1)(-1) - (1)(1) = -2 \), we have \( P^{-1} = \frac{1}{-2} \begin{pmatrix} -1 & -1 \\ -1 & 1 \end{pmatrix} = \begin{pmatrix} 1/2 & 1/2 \\ 1/2 & -1/2 \end{pmatrix} \). The matrix representation of \( T \) with respect to basis \( B \) is given by \( [T]_B = P^{-1}AP \). First, we compute \( AP \): \( AP = \begin{pmatrix} 3 & -1 \\ 1 & 2 \end{pmatrix} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} = \begin{pmatrix} (3)(1)+(-1)(1) & (3)(1)+(-1)(-1) \\ (1)(1)+(2)(1) & (1)(1)+(2)(-1) \end{pmatrix} = \begin{pmatrix} 2 & 4 \\ 3 & -1 \end{pmatrix} \). Now, we compute \( [T]_B = P^{-1}(AP) \): \( [T]_B = \begin{pmatrix} 1/2 & 1/2 \\ 1/2 & -1/2 \end{pmatrix} \begin{pmatrix} 2 & 4 \\ 3 & -1 \end{pmatrix} = \begin{pmatrix} (1/2)(2)+(1/2)(3) & (1/2)(4)+(1/2)(-1) \\ (1/2)(2)+(-1/2)(3) & (1/2)(4)+(-1/2)(-1) \end{pmatrix} = \begin{pmatrix} 1+3/2 & 2-1/2 \\ 1-3/2 & 2+1/2 \end{pmatrix} = \begin{pmatrix} 5/2 & 3/2 \\ -1/2 & 5/2 \end{pmatrix} \). The sum of the diagonal entries of \( [T]_B \) is the trace of the matrix, which is \( \frac{5}{2} + \frac{5}{2} = \frac{10}{2} = 5 \).

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Linear Transformations, Matrix Representations & Change of Basis)
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Computing angle at \(B\) using \(\overrightarrow{AB}\cdot\overrightarrow{BC}\)Vectors are head-to-tail instead of tail-to-tail, giving \(180^\circ - \theta\).Reverse \(\overrightarrow{AB}\) so both emanate from \(B\): use \(\overrightarrow{BA}\cdot\overrightarrow{BC}\).
Using the same parameter \(t\) for two intersecting 3D lines \(\mathbf{r}_1(t) = \mathbf{r}_2(t)\)Tests for a simultaneous collision at time \(t\) rather than geometric intersection of paths.Assign distinct parameters \(\lambda\) and \(\mu\) to the two lines before equating components.
Assuming \((AB)^{-1} = A^{-1}B^{-1}\)Multiplying \((AB)(A^{-1}B^{-1})\) does not cancel inner factors when \(AB \ne BA\).Use the shoe-sock reversal law: \((AB)^{-1} = B^{-1}A^{-1}\).
▲ Exam Pacing & Verification Strategy — Linear Transformations, Matrix Representations & Change of Basis

Fast Matrix & Vector Verification (University Linear Algebra & Matrix Theory): Check every \(2\times 2\) or \(3\times 3\) eigenvalue computation using the trace and determinant invariants: \(\sum \lambda_i = \operatorname{tr}(A)\) (sum of diagonal entries) and \(\prod \lambda_i = \det(A)\).

A linear transformation \( T: \mathbb{R}^7 \to \mathbb{R}^4 \) has \( \dim(\ker T) = 3 \). What is the dimension of the range of \( T \), and is \( T \) surjective?
💡 Hint 1 of 3
By the Dimension Theorem, \( \operatorname{nullity}(T) + \operatorname{rank}(T) = \dim(\text{domain}) \).
💡 Hint 2 of 3
Here: \(3 + \operatorname{rank}(T) = 7 \implies \operatorname{rank}(T) = \dim(\operatorname{im} T)\).
💡 Hint 3 of 3
Since \(\operatorname{dim}(\operatorname{im} T) = 4 = \dim(\mathbb{R}^4)\), the range spans the entire codomain, so \(T\) is the final result.

By the Dimension Theorem, \( \operatorname{nullity}(T) + \operatorname{rank}(T) = \dim(\text{domain}) \). Here: \[ 3 + \operatorname{rank}(T) = 7 \implies \operatorname{rank}(T) = \dim(\operatorname{im} T) = 4. \] Since \( \operatorname{dim}(\operatorname{im} T) = 4 = \dim(\mathbb{R}^4) \), the range spans the entire codomain, so \( T \) is surjective (onto).

Find the standard matrix \( [T] \) of the linear operator \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) that first rotates vectors by \( 90^\circ \) counterclockwise, and then reflects the result across the line \( y = x \).
💡 Hint 1 of 3
Track images of standard basis vectors: For \( \mathbf{e}_1 = \begin{pmatrix} 1 \\ 0 \end{pmatrix} \): Rotation by \( 90^\circ \) CCW sends \( \mathbf{e}_1 \) to \( \begin{pmatrix} 0 \\ 1 \end{pmatrix} \). Reflection across \( y = x \) swaps coordinates: \( \begin{pmatrix} 0 \\ 1 \end{pmatrix} \longrightarrow \begin{pmatrix} 1 \\ 0 \end{pmatrix} \).
💡 Hint 2 of 3
Assemble standard matrix: The columns of \( [T] \) are \( T(\mathbf{e}_1) \) and \( T(\mathbf{e}_2) \): \([T] = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\).
💡 Hint 3 of 3
This composite operator is geometrically equivalent to reflection across the x-axis!

Step 1: Track images of standard basis vectors:
For \( \mathbf{e}_1 = \begin{pmatrix} 1 \\ 0 \end{pmatrix} \): Rotation by \( 90^\circ \) CCW sends \( \mathbf{e}_1 \) to \( \begin{pmatrix} 0 \\ 1 \end{pmatrix} \). Reflection across \( y = x \) swaps coordinates: \( \begin{pmatrix} 0 \\ 1 \end{pmatrix} \longrightarrow \begin{pmatrix} 1 \\ 0 \end{pmatrix} \).
For \( \mathbf{e}_2 = \begin{pmatrix} 0 \\ 1 \end{pmatrix} \): Rotation by \( 90^\circ \) CCW sends \( \mathbf{e}_2 \) to \( \begin{pmatrix} -1 \\ 0 \end{pmatrix} \). Reflection across \( y = x \) swaps coordinates: \( \begin{pmatrix} -1 \\ 0 \end{pmatrix} \longrightarrow \begin{pmatrix} 0 \\ -1 \end{pmatrix} \).

Step 2: Assemble standard matrix: The columns of \( [T] \) are \( T(\mathbf{e}_1) \) and \( T(\mathbf{e}_2) \): \[ [T] = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. \] Alternatively, via matrix multiplication of standard operators: \[ [T] = [M_{\pi/4}] [R_{\pi/2}] = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. \] This composite operator is geometrically equivalent to reflection across the x-axis!

[Practice 3 · Easy] A linear transformation \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) is defined by \( T(\mathbf{x}) = A\mathbf{x} \), where \( A = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix} \). If \( \mathbf{v} = \begin{pmatrix} 1 \\ 2 \end{pmatrix} \), find \( T(\mathbf{v}) \).
💡 Hint 1 of 3
To find \( T(\mathbf{v}) \), we multiply the matrix \( A \) by the vector \( \mathbf{v} \).
💡 Hint 2 of 3
Performing the matrix-vector multiplication: \(T(\mathbf{v}) = \begin{pmatrix} (2 \times 1) + (1 \times 2) \\ (1 \times 1) + (3 \times 2) \end{pmatrix} = \begin{pmatrix} 2 + 2 \\ 1 + 6 \end{pmatrix}\).
💡 Hint 3 of 3
Thus, the correct answer is \(\begin{pmatrix} 4 \\ 7 \end{pmatrix}\).
To find \( T(\mathbf{v}) \), we multiply the matrix \( A \) by the vector \( \mathbf{v} \). \( T(\mathbf{v}) = A\mathbf{v} = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 2 \end{pmatrix} \). Performing the matrix-vector multiplication: \( T(\mathbf{v}) = \begin{pmatrix} (2 \times 1) + (1 \times 2) \\ (1 \times 1) + (3 \times 2) \end{pmatrix} = \begin{pmatrix} 2 + 2 \\ 1 + 6 \end{pmatrix} = \begin{pmatrix} 4 \\ 7 \end{pmatrix} \). Thus, the correct answer is \(\begin{pmatrix} 4 \\ 7 \end{pmatrix}\).
[Practice 4 · Medium] Let \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) be a linear transformation represented by the matrix \( A = \begin{pmatrix} 2 & k \\ 1 & 3 \end{pmatrix} \) with respect to the standard basis. The image of the vector \( \mathbf{v} = \begin{pmatrix} 1 \\ 1 \end{pmatrix} \) under \( T \) is \( T(\mathbf{v}) = \begin{pmatrix} 3 \\ 4 \end{pmatrix} \). Find the value of the parameter \( k \).
💡 Hint 1 of 3
The linear transformation \( T \) is represented by the matrix \( A = \begin{pmatrix} 2 & k \\ 1 & 3 \end{pmatrix} \). The action of \( T \) on a vector \( \mathbf{v} \) is given by \( T(\mathbf{v}) = A\mathbf{v} \). We are given that \( \mathbf{v} = \begin{pmatrix} 1 \\ 1 \end{pmatrix} \) and \( T(\mathbf{v}) = \begin{pmatrix} 3 \\ 4 \end{pmatrix} \). Therefore, we have the matrix equation: \(\begin{pmatrix} 2 & k \\ 1 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 3 \\ 4 \end{pmatrix}\).
💡 Hint 2 of 3
Performing the matrix multiplication on the left side gives: \(\begin{pmatrix} 2(1) + k(1) \\ 1(1) + 3(1) \end{pmatrix} = \begin{pmatrix} 2+k \\ 4 \end{pmatrix}\) Equating this to the given image vector: \(\begin{pmatrix} 2+k \\ 4 \end{pmatrix} = \begin{pmatrix} 3 \\ 4 \end{pmatrix}\).
💡 Hint 3 of 3
Therefore, the value of \(k\) is 1.
The linear transformation \( T \) is represented by the matrix \( A = \begin{pmatrix} 2 & k \\ 1 & 3 \end{pmatrix} \). The action of \( T \) on a vector \( \mathbf{v} \) is given by \( T(\mathbf{v}) = A\mathbf{v} \). We are given that \( \mathbf{v} = \begin{pmatrix} 1 \\ 1 \end{pmatrix} \) and \( T(\mathbf{v}) = \begin{pmatrix} 3 \\ 4 \end{pmatrix} \). Therefore, we have the matrix equation: \[ \begin{pmatrix} 2 & k \\ 1 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 3 \\ 4 \end{pmatrix} \] Performing the matrix multiplication on the left side gives: \[ \begin{pmatrix} 2(1) + k(1) \\ 1(1) + 3(1) \end{pmatrix} = \begin{pmatrix} 2+k \\ 4 \end{pmatrix} \] Equating this to the given image vector: \[ \begin{pmatrix} 2+k \\ 4 \end{pmatrix} = \begin{pmatrix} 3 \\ 4 \end{pmatrix} \] From the first component, we have the equation \( 2+k = 3 \). Solving for \( k \), we get \( k = 3 - 2 = 1 \). The second component, \( 4=4 \), is consistent. Therefore, the value of \( k \) is 1.
A linear transformation \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) is defined by \( T(\mathbf{x}) = A\mathbf{x} \), where \( A = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix} \). If \( \mathbf{v} = \begin{pmatrix} 1 \\ 2 \end{pmatrix} \), find \( T(\mathbf{v}) \).
💡 Hint 1 of 3
To find \( T(\mathbf{v}) \), we multiply the matrix \( A \) by the vector \( \mathbf{v} \).
💡 Hint 2 of 3
Performing the matrix-vector multiplication: \(T(\mathbf{v}) = \begin{pmatrix} (2 \times 1) + (1 \times 2) \\ (1 \times 1) + (3 \times 2) \end{pmatrix} = \begin{pmatrix} 2 + 2 \\ 1 + 6 \end{pmatrix}\).
💡 Hint 3 of 3
Thus, the correct answer is \(\begin{pmatrix} 4 \\ 7 \end{pmatrix}\).
To find \( T(\mathbf{v}) \), we multiply the matrix \( A \) by the vector \( \mathbf{v} \). \( T(\mathbf{v}) = A\mathbf{v} = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 2 \end{pmatrix} \). Performing the matrix-vector multiplication: \( T(\mathbf{v}) = \begin{pmatrix} (2 \times 1) + (1 \times 2) \\ (1 \times 1) + (3 \times 2) \end{pmatrix} = \begin{pmatrix} 2 + 2 \\ 1 + 6 \end{pmatrix} = \begin{pmatrix} 4 \\ 7 \end{pmatrix} \). Thus, the correct answer is \(\begin{pmatrix} 4 \\ 7 \end{pmatrix}\).
📝 Chapter Quiz