The Matrix of A Linear Transformation - Linear Algebra Study Guide

The Matrix of A Linear Transformation

  • Theorem 10: Existence and Uniqueness of the Standard Matrix

    • Let T:RnRmT: \mathbb{R}^n \rightarrow \mathbb{R}^m be a linear transformation.
    • There exists a unique matrix AA such that T(x)=AxT(\mathbf{x}) = A\mathbf{x} for all x\mathbf{x} in Rn\mathbb{R}^n.
    • The matrix AA is an m×nm \times n matrix whose jjth column is the vector T(ej)T(\mathbf{e}_j), where ej\mathbf{e}_j is the jjth column of the identity matrix in Rn\mathbb{R}^n.
    • The formula for AA is given by:         A=(T(e1)T(e2)T(en))A = \begin{pmatrix} T(\mathbf{e}_1) & T(\mathbf{e}_2) & \dots & T(\mathbf{e}_n) \end{pmatrix}
  • Proof of Theorem 10

    • Write x=Inx=[e1e2en]x=x1e1+x2e2++xnen\mathbf{x} = I_n\mathbf{x} = \left[ \mathbf{e}_1 \quad \mathbf{e}_2 \quad \dots \quad \mathbf{e}_n \right] \mathbf{x} = x_1\mathbf{e}_1 + x_2\mathbf{e}_2 + \dots + x_n\mathbf{e}_n.
    • Use the linearity of TT to compute:         T(x)=T(x1e1++xnen)=x1T(e1)++xnT(en)T(\mathbf{x}) = T(x_1\mathbf{e}_1 + \dots + x_n\mathbf{e}_n) = x_1T(\mathbf{e}_1) + \dots + x_nT(\mathbf{e}_n)
    • By the definition of matrix-vector multiplication:         T(x)=(T(e1)T(e2)T(en))(x1xn)=AxT(\mathbf{x}) = \begin{pmatrix} T(\mathbf{e}_1) & T(\mathbf{e}_2) & \dots & T(\mathbf{e}_n) \end{pmatrix} \begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} = A\mathbf{x}
  • The Standard Matrix

    • The matrix AA derived in Theorem 10 is called the standard matrix for the linear transformation T.
    • Every linear transformation from Rn\mathbb{R}^n to Rm\mathbb{R}^m can be viewed as a matrix transformation, and vice versa.
    • The term "linear transformation" focuses on the algebraic property of the mapping, whereas "matrix transformation" describes how the mapping is computationally implemented.

Example 2: Dilation Transformation

  • Problem: Find the standard matrix AA for the dilation transformation T(x)=3xT(\mathbf{x}) = 3\mathbf{x} for x\mathbf{x} in R2\mathbb{R}^2.
  • Solution:
    • Identify the standard basis vectors for R2\mathbb{R}^2:         e1=(10)\mathbf{e}_1 = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, e2=(01)\mathbf{e}_2 = \begin{pmatrix} 0 \\ 1 \end{pmatrix}
    • Apply the transformation to these vectors:         T(e1)=3e1=3(10)=(30)T(\mathbf{e}_1) = 3\mathbf{e}_1 = 3\begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} 3 \\ 0 \end{pmatrix}T(e2)=3e2=3(01)=(03)T(\mathbf{e}_2) = 3\mathbf{e}_2 = 3\begin{pmatrix} 0 \\ 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 3 \end{pmatrix}
    • Form the standard matrix AA:         A=(T(e1)T(e2))=(3003)A = \begin{pmatrix} T(\mathbf{e}_1) & T(\mathbf{e}_2) \end{pmatrix} = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix}

Geometric Linear Transformations of R Squared

  • Table 1: Reflections

    • Reflection through the x1x_1-axis:
      • Image of Unit Square: The image (depicted as a goldfish) is inverted across the horizontal axis. The point (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} stays, while (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} maps to (01)\begin{pmatrix} 0 \\ -1 \end{pmatrix}.
      • Standard Matrix: (1001)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}
    • Reflection through the x2x_2-axis:
      • Image of Unit Square: The goldfish is mirror-imaged across the vertical axis. The point (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} maps to (10)\begin{pmatrix} -1 \\ 0 \end{pmatrix}, while (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} stays.
      • Standard Matrix: (1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}
    • Reflection through the line x2=x1x_2 = x_1:
      • Image of Unit Square: The goldfish is diagonally inverted. The point (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} maps to (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix}, and (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} maps to (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix}.
      • Standard Matrix: (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}
    • Reflection through the line x2=x1x_2 = -x_1:
      • Image of Unit Square: The goldfish is diagonally inverted across the line x2=x1x_2 = -x_1. The point (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} maps to (01)\begin{pmatrix} 0 \\ -1 \end{pmatrix}, and (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} maps to (10)\begin{pmatrix} -1 \\ 0 \end{pmatrix}.
      • Standard Matrix: (0110)\begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}
    • Reflection through the origin:
      • Image of Unit Square: The goldfish is diagonally inverted with diagonal sides mirrored. The point (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} maps to (10)\begin{pmatrix} -1 \\ 0 \end{pmatrix}, and the point (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} maps to (01)\begin{pmatrix} 0 \\ -1 \end{pmatrix}.
      • Standard Matrix: (1001)\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}
  • Table 2: Contractions and Expansions

    • Horizontal Contraction and Expansion:
      • Transformation: The x1x_1-coordinate is scaled by a factor kk.
      • Conditions: Shrunk vertically if 0<k<10 < k < 1; expanded vertically if k>1k > 1.
      • Standard Matrix: (k001)\begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix}
    • Vertical Contraction and Expansion:
      • Transformation: The x2x_2-coordinate is scaled by a factor kk.
      • Standard Matrix: (100k)\begin{pmatrix} 1 & 0 \\ 0 & k \end{pmatrix}
  • Table 3: Shears

    • Horizontal Shear:
      • Transformation: The image (bird) is skewed leftward if k<0k < 0 and rightward if k>0k > 0.
      • Standard Matrix: (1k01)\begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}
    • Vertical Shear:
      • Transformation: The image (bird) is skewed downward if k<0k < 0 and upward if k>0k > 0.
      • Standard Matrix: (10k1)\begin{pmatrix} 1 & 0 \\ k & 1 \end{pmatrix}
  • Table 4: Projections

    • Projection onto the x1x_1-axis:
      • Transformation: The image is flattened horizontally onto the x1x_1-axis.
      • Standard Matrix: (1000)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}
    • Projection onto the x2x_2-axis:
      • Transformation: The image is flattened vertically onto the x2x_2-axis.
      • Standard Matrix: (0001)\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}

Existence and Uniqueness Questions

  • Definition of Onto Mapping

    • A mapping T:RnRmT: \mathbb{R}^n \rightarrow \mathbb{R}^m is said to be onto Rm\mathbb{R}^m if each b\mathbf{b} in Rm\mathbb{R}^m is the image of at least one x\mathbf{x} in Rn\mathbb{R}^n.
    • Equivalently, TT is onto when the range of TT is equal to all of the codomain Rm\mathbb{R}^m.
    • For each b\mathbf{b}, there exists at least one solution to T(x)=bT(\mathbf{x}) = \mathbf{b}. This is an existence question.
    • TT is not onto if there is some b\mathbf{b} for which the equation has no solution.
  • Definition of One-to-One Mapping

    • A mapping T:RnRmT: \mathbb{R}^n \rightarrow \mathbb{R}^m is said to be one-to-one if each b\mathbf{b} in Rm\mathbb{R}^m is the image of at most one x\mathbf{x} in Rn\mathbb{R}^n.
    • This is a uniqueness question.
  • Theorem 11: One-to-One and Trivial Solutions

    • Let T:RnRmT: \mathbb{R}^n \rightarrow \mathbb{R}^m be a linear transformation.
    • TT is one-to-one if and only if the equation T(x)=0T(\mathbf{x}) = \mathbf{0} has only the trivial solution.
    • Proof Sketch:
      • If TT is one-to-one, it can have at most one solution for T(x)=0T(\mathbf{x}) = \mathbf{0}. Since T(0)=0T(\mathbf{0}) = \mathbf{0} always holds for linear transformations, that is the only solution.
      • If TT is not one-to-one, there exists some b\mathbf{b} such that T(u)=bT(\mathbf{u}) = \mathbf{b} and T(v)=bT(\mathbf{v}) = \mathbf{b} for uv\mathbf{u} \neq \mathbf{v}. Then T(uv)=T(u)T(v)=bb=0T(\mathbf{u} - \mathbf{v}) = T(\mathbf{u}) - T(\mathbf{v}) = \mathbf{b} - \mathbf{b} = \mathbf{0}. Since uv0\mathbf{u} - \mathbf{v} \neq \mathbf{0}, the equation T(x)=0T(\mathbf{x}) = \mathbf{0} has a non-trivial solution.
  • Theorem 12: Range and Uniqueness in Matrix Terms

    • Let T:RnRmT: \mathbb{R}^n \rightarrow \mathbb{R}^m be a linear transformation with standard matrix AA.
    • a) TT maps Rn\mathbb{R}^n onto Rm\mathbb{R}^m if and only if the columns of AA span Rm\mathbb{R}^m.
    • b) TT is one-to-one if and only if the columns of AA are linearly independent.
  • Example 4: Analyzing Mapping Properties

    • Problem: Let TT be the linear transformation with standard matrix A=(148102130005)A = \begin{pmatrix} 1 & -4 & 8 & 1 \\ 0 & 2 & -1 & 3 \\ 0 & 0 & 0 & 5 \end{pmatrix}. Does TT map R4\mathbb{R}^4 onto R3\mathbb{R}^3? Is TT one-to-one?
    • Analysis of Onto:
      • The matrix AA is in echelon form and has a pivot position in every row (rows 1, 2, and 3).
      • By Theorem 4 (Section 1.4), for each b\mathbf{b} in R3\mathbb{R}^3, the equation Ax=bA\mathbf{x} = \mathbf{b} is consistent.
      • Therefore, TT maps R4\mathbb{R}^4 onto R3\mathbb{R}^3.
    • Analysis of One-to-One:
      • The equation Ax=bA\mathbf{x} = \mathbf{b} has 4 variables but only 3 pivot (basic) variables.
      • There is at least one free variable (the third variable corresponding to the column without a pivot).
      • Because there is a free variable, each b\mathbf{b} in the range is the image of more than one x\mathbf{x}.
      • Therefore, TT is not one-to-one.