Matrices As Linear Trasformations
Matrices As Linear Trasformations
Matrices, or arrays, as they are commonly called, have a very long history, dating back to almost
1000 BCE, with their first ever appearance in the Chinese text "The Nine Chapters on the
Mathematical Art". Arranging numbers and names in organized arrays has been an undeniably
important part of human civilization. Even today, matrices are used extensively in data science
and graphic design. One very interesting property of matrices is to view them as transformations
of a plane.
When referring to a region in space, the word ‘transformation’ is just a very fancy term for some
sort of stretching, squishing, or rotation of the plane. The word ‘linear transformation’ simply
refers to all transformations that keep the origin fixed, and do not curve any straight vectors in
the field.
Matrices as we know them have the wonderful ability to encode any linear transformation.
Consider the identity matrix
[ 10 01]
Each column can be interpreted as separate vectors with coordinates [ xy ].This implies that the
first column is the position of the (0,1) vector i.e. î unit vector. Similarly, the second column is
the position of the ȷ̂ unit vector
Now, if we were to talk about the linear transformation matrix
[ 30 01]
The first column of the vector tells us where [ 01] i.e., î goes; in this case it is [ 30], while the second
column tells us where ȷ̂ goes: in this case, it stays in the same place. You can visualize this
transformation as stretching the plane so the î vector moves to (3,0), while leaving everything
else in its original place.
Visually this has the effect of stretching the plane in the horizontal direction:
1
Another simple transformation is the so called ‘shear transform’
For example,
[ 10 1.51 ]
produces a transformation of the plane visually similar to:
2
For example,
[ 20 11] ×[ 12]=[ 42 ]
The vector (1,2) is basically 1 ⋅ [ ] + 2⋅ [ ]. If you replace [ ]with [ ]and [ ]with [ ]You have
1 0 1 2 0 1
0 1 0 0 1 1
Does that operation look familiar? What we just did was matrix multiplication!
It also makes perfect sense that matrix multiplication is not commutative i.e., AB≠ BA , when you
keep in mind the fact that multiplying two transformation matrices gives the same result of
applying each transform, one after the other. Think about it - stretching a shape and then rotating
it clearly does not give the same outcome as rotating the shape before stretching.
Very often, when doing math, we tend to get lost in the calculations and lose sight of what the
numbers really mean. Most linear algebra students completely skip linear transformations and
move directly onto matrix operations. They ‘learn’ the properties of matrices by memorizing
paragraphs of formulas. However, allowing yourself to visualize this kind of ‘stretching and
squishing’ motion early on while studying matrices makes many other advanced linear algebra
topics ‘click’ much easier.