58. Matrix Representation

Every linear transformation 𝑇:𝑛𝑚 can be uniquely represented by an 𝑚×𝑛 matrix 𝐴 such that:

𝑇(𝑥)=𝐴𝑥

Conversely, every 𝑚×𝑛 matrix gives a linear transformation. So linear transformations 𝑛𝑚 are the same as 𝑚×𝑛 matrices.

58.1. How to find the matrix

Apply 𝑇 to each standard basis vector 𝑒1,,𝑒𝑛. The results become the columns of 𝐴:

𝐴=[𝑇(𝑒1)𝑇(𝑒2)𝑇(𝑒𝑛)]

58.2. Why this works (sketch)

Any input 𝑥𝑛 is a linear combination of standard basis vectors:

𝑥=𝑥1𝑒1+𝑥2𝑒2++𝑥𝑛𝑒𝑛

Applying 𝑇 and using linearity:

𝑇(𝑥)=𝑇(𝑥1𝑒1++𝑥𝑛𝑒𝑛)=𝑥1𝑇(𝑒1)++𝑥𝑛𝑇(𝑒𝑛)=[𝑇(𝑒1)𝑇(𝑒𝑛)]𝑥=𝐴𝑥

The columns of 𝐴 are exactly the images of the standard basis under 𝑇.

Example

𝑇:22 rotates by 90° counterclockwise.

𝑇(𝑒1)=𝑇([10])=[01], 𝑇(𝑒2)=𝑇([01])=[10].

𝐴=[0110]

Verify: 𝐴[23]=[32] — rotating (2,3) by 90°.

58.3. Identity transformation

The identity 𝐼:𝑛𝑛, 𝐼(𝑥)=𝑥, has matrix 𝐼𝑛 (the identity matrix), since 𝐼(𝑒𝑖)=𝑒𝑖 for each standard basis vector.

58.4. See also