6. Linear Transformation
2026-02-25
Linear Transformations (线性变换)
Transformation transforms an input to an output. In other words, a transformation is a function.
E.g., f(x)=2x is a transformation that transforms input x to output 2x.
A transformation T that satisfies the following linearity property is called a linear transformation:
- T(x+y)=T(x)+T(y)
- T(cx)=cT(x)
Matrix as a Linear Transformation
General Discussion
The equition Ax=b can be viewed as a linear transformation that transforms input x to output b, and the matrix A represents this linear transformation, in other words, A is a function.
A transformation T from Rn to Rm is a function that takes an n-dimensional vector as input and produces an m-dimensional vector as output. Rn is called the domain (定义域) of T, and Rm is called the codomain (值域) of T.
For a given matrix A, we can define a linear transformation T from Rn to Rm as T(x)=Ax.
One-to-one and Onto (单射和满射)
One-to-one (单射)
A linear transformation T from Rn to Rm is called one-to-one if for every b in the codomain Rm, there is at most one x in the domain Rn such that T(x)=b.
A linear transformation T from Rn to Rm is one-to-one if and only if the columns of the corresponding matrix A are linearly independent, which is equivalent to saying that A has a pivot in every column .
Onto (满射)
A linear transformation T from Rn to Rm is called onto if for every b in the codomain Rm, there is at least one x in the domain Rn such that T(x)=b.
A linear transformation T from Rn to Rm is onto if and only if the columns of the corresponding matrix A span Rm, which is equivalent to saying that A has a pivot in every row.
Discussion
If a linear transformation T from Rn to Rm is one-to-one, then n≤m; if it is onto, then n≥m. This is intuitive when thinking about the "number" of elements in the domain and codomain, while it can be proved by the above definitions and the properties of the corresponding matrix A.