Linear Transformations
A linear transformation also often called linear map is a function between two vector spaces which we will come to later. For now you can think of a linear transformation as a function that takes in a vector and outputs a vector. The vectors can have the same dimension or different dimensions.
Where is the transformation, is the input vector space so vectors of dimension and is the output vector space so vectors of dimension .
Importantly a linear transformation is operation preserving, meaning that it preserves the operations of addition and scalar multiplication. More formally the following two conditions must be satisfied for a function to be a linear transformation:
- Additivity:
- Homogeneity:
linearTransformationAddition.png linearTransformationScaling.png
Let's first look at an examples of a valid linear transformations where the vectors have the same dimension.
To show that this is a linear transformation we need to show that it satisfies the two conditions. Firstly we can show that it satisfies additivity:
So we can see that so the transformation satisfies additivity. Now we can check that it satisfies homogeneity:
Because the transformation satisfies homogeneity. Therefore the transformation is a linear transformation.
A linear transformation can also be between vectors of different dimensions. For example:
This transformation is still linear because it satisfies the two conditions. The additional dimension in the output vector is just simply set to 0 so it doesn't affect the linearity of the transformation.
We can also do the same for a linear transformation where the input vector has more dimensions than the output vector.
This transformation is still linear because it satisfies the two conditions. The additional dimensions in the input vector are simply ignored and don't affect the linearity of the transformation.
However, not all transformations are linear. Lets look at an example of a transformation that is not linear:
This transformation is not linear because it doesn't satisfy the additivity condition:
It also doesn't satisfy the homogeneity condition:
Matrices as Transformations
Also relates back to inverse matrices, as the inverse of a matrix is the matrix that undoes the transformation of the original matrix.
so linear maps are bijective, and thus invertible.
linearTransformationVisual.png
Kernel and Image
The image of a transformation is defiend just as with functions, it is the set of all possible outputs of the transformation. the null vector is always in the image of a transformation.
The kernel of a transformation is the set of all inputs that map to the zero vector. This has a special name, the null space.
dimension of the domain = dimension of the kernel + dimension of the image
Bijective Linear Transformations
are invertible, and thus have a unique inverse.