Linear TransformationsTopic #28 of 30

Matrix Representation

Representing transformations as matrices, standard matrix, and change of basis.

Overview

Every linear transformation between finite-dimensional vector spaces can be represented by a matrix. This correspondence is fundamental to linear algebra and connects abstract transformations to concrete calculations.

The Standard Matrix

For T:RnRmT: \mathbb{R}^n \to \mathbb{R}^m, the standard matrix AA satisfies:

T(x)=Axfor all xRnT(\mathbf{x}) = A\mathbf{x} \quad \text{for all } \mathbf{x} \in \mathbb{R}^n

Finding the Standard Matrix

The columns of AA are the images of the standard basis vectors:

A=[T(e1)T(e2)T(en)]A = \begin{bmatrix} T(\mathbf{e}_1) & T(\mathbf{e}_2) & \cdots & T(\mathbf{e}_n) \end{bmatrix}

where ei=[0,,1,,0]T\mathbf{e}_i = [0, \ldots, 1, \ldots, 0]^T (1 in position ii).

Example: Finding Standard Matrix

T:R2R2T: \mathbb{R}^2 \to \mathbb{R}^2 defined by T(x,y)=(2x+y,x3y)T(x, y) = (2x + y, x - 3y)

T(e1)=T(1,0)=(2,1)T(\mathbf{e}_1) = T(1, 0) = (2, 1) T(e2)=T(0,1)=(1,3)T(\mathbf{e}_2) = T(0, 1) = (1, -3)

A=[2113]A = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}

Verify: T(x,y)=[2113][xy]=(2x+y,x3y)T(x, y) = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}\begin{bmatrix} x \\ y \end{bmatrix} = (2x + y, x - 3y)

Common Transformation Matrices

Rotation (2D) by θ\theta

Rθ=[cosθsinθsinθcosθ]R_\theta = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}

Scaling

S=[sx00sy]S = \begin{bmatrix} s_x & 0 \\ 0 & s_y \end{bmatrix}

Reflection Across x-axis

M=[1001]M = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}

Reflection Across y-axis

M=[1001]M = \begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}

Projection onto x-axis

P=[1000]P = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}

Shear

Horizontal shear:

[1k01]\begin{bmatrix} 1 & k \\ 0 & 1 \end{bmatrix}

Change of Basis

If B={b1,b2,,bn}B = \{\mathbf{b}_1, \mathbf{b}_2, \ldots, \mathbf{b}_n\} is a basis for VV, the matrix representation changes.

Coordinate Vector

For vV\mathbf{v} \in V with v=c1b1+c2b2++cnbn\mathbf{v} = c_1\mathbf{b}_1 + c_2\mathbf{b}_2 + \cdots + c_n\mathbf{b}_n:

[v]B=[c1c2cn][\mathbf{v}]_B = \begin{bmatrix} c_1 \\ c_2 \\ \vdots \\ c_n \end{bmatrix}

Change of Basis Matrix

From basis BB to standard basis:

P=[b1b2bn]P = \begin{bmatrix} \mathbf{b}_1 & \mathbf{b}_2 & \cdots & \mathbf{b}_n \end{bmatrix}

Then:

v=P[v]B\mathbf{v} = P[\mathbf{v}]_B

[v]B=P1v[\mathbf{v}]_B = P^{-1}\mathbf{v}

Transformation in Different Basis

If TT has matrix AA in standard basis and BB is another basis:

[T]B=P1AP[T]_B = P^{-1}AP

Example: Change of Basis

B={[11],[11]}B = \left\{\begin{bmatrix} 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 1 \\ -1 \end{bmatrix}\right\} is a basis for R2\mathbb{R}^2

P=[1111]P = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}

P1=12[1111]P^{-1} = \frac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}

For TT with standard matrix A=[2101]A = \begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}:

[T]B=P1AP=12[1111][2101][1111][T]_B = P^{-1}AP = \frac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}\begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}

Similarity

Matrices AA and BB are similar if:

B=P1APfor some invertible PB = P^{-1}AP \quad \text{for some invertible } P

Similar matrices:

  • Represent the same transformation in different bases
  • Have the same eigenvalues
  • Have the same determinant
  • Have the same trace
  • Have the same rank

Summary

TransformationMatrix
Rotation by θ\theta[cosθsinθsinθcosθ]\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}
Scale by (a,b)(a, b)[a00b]\begin{bmatrix} a & 0 \\ 0 & b \end{bmatrix}
Reflect x-axis[1001]\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}
Reflect y-axis[1001]\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}
Reflect y=xy = x[0110]\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}
Project onto x[1000]\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}