What is a Linear Transformation?
It is a function (the word ‘transformation‘ means the same thing as the word ‘function‘) which takes vectors as inputs and produces vectors as outputs. Linear transformation is also called ‘Linear Map‘ or ‘Linear Mapping‘.
A transformation T that takes n-dimensional vectors as inputs and produces m-dimensional vectors as outputs is
denoted as, . This is the mapping notation of a linear transformation.
How is a linear transformation defined mathematically?
A linear transformation is a function that satisfies the following properties for any vectors and any scalars
The above two properties can be combined into a single statement:
How do I understand this mathematical definition of linear transformation?
The matrix-vector product is an implementation of the abstract definition of linear transformation.
Multiplying a matrix Mm x n with a vector vn x 1 outputs a vector wm x 1.
This can be represented as
For example, Let M be a 2×3 matrix defined as,
and v be a 3×1 vector defined as,
Multiplying M with v results in a 2×1 vector
Thus, is a function which takes a 3-dimensional vector as an input and outputs a 2-dimensional vector. This can be denoted by the mapping notation as,
As an example,
But how does the function conform to the mathematical definition of linear transformation?
In order to be a classified as a linear transformation, the function where is 3-dimensional input vector, should satisfy the above two properties of linearity for any 3-dimensional vector.
Lets say and are 3-dimensional vectors such that,
Proof for property 1:
Pass the as an input to the transformation function ,
Also,
Hence, we can see that,
Proof for property 2:
Pass the sum + to the transformation function ,
Also,
Therefore, we can see that,
Is there an easy way to identify that a function is a linear transformation?
Examine term of each component of . If each of these terms is a number times one of the components of x
, then f
is a linear transformation. For example, the function is a linear transformation.
But neither nor are linear transformations. The reason is that the function g
has a component 3z+2
with the term 2 which is a constant and does not contain any components of our input vector (x,y,z)
. And the function h has a nonlinear component 3xz
which is a product of two components x and z.
How can I undo the effects of a linear transformation?
Multiplying the transformed vector with the inverse of the transformation matrix will yield the input vector.
But this ‘undoing‘ the effects of a transformation only works if the transformation matrix is invertible.
As an example, if the transformation matrix is,
and input vector is,
Linear transformation is Mv. Therefore,
To get back the input vector v, multiply by M-1
Why is a Linear transformation called “Linear”?
Linear transformation output has two important properties:
- All lines remain lines and do not turn into a curve after the transformation (probably that’s the
reason it’s called ‘linear’) and, - The origin always stays fixed and does not change after the transformation.
I hope this post clarifies the concepts of Linear Transformations. See you in the next blog!
Superb