The idea of a transformation can seem more complicated than it really is at first, so before diving into how 2×2 matrices transform two-dimensional space, or how 3×3 matrices transform three-dimensional space, let's go over how plain old numbers—a.k.a. 1×1 matrices—can be considered transformations of one-dimensional space.
One-dimensional space is simply the number line.
What happens when you multiply every number on the line by a particular value, like two? One way to visualize this is as follows:
We keep a copy of the original line for reference, then slide each number on the line to two times that number.
Similarly, multiplication by 21 could be visualized like this:
And, so the negative numbers don't feel neglected, here is multiplication by negative three:
For those of you fond of fancy terminology, these animated actions could be described as "linear transformations of one-dimensional space". The word transformation means the same thing as the word function: something which takes in a number and outputs a number, like f(x)=2x. However, while we typically visualize functions with graphs, people tend to use the word transformation to indicate that you should instead visualize some object moving, stretching, squishing, etc. So, the function f(x)=2x visualized as a transformation gives us the multiplication-by-two video above. It moves the point one on the number line to where two starts off, moves two to where four starts off, etc.
The technical definition of a linear transform is a function f(x) that satisfies two properties:
In one dimension, x and y are numbers, as opposed to, say, vectors. In this special case of one dimension, the only functions satisfying these properties look like multiplication by a constant—i.e., f(x)=kx for some constant k.
Why? Plug in x=1 to the second property, and we see f(c)=cf(1). If we interpret c as a variable and f(1) as some constant, the entire function is just multiplication by f(1). For instance, if f(1)=8, then f(x)=8x. In fact, we don't even need the first property since once we know f looks like f(x)=kx, the fact that f(x+y)=f(x)+f(y) follows from the distributive law: k(x+y)=kx+ky.
This might seem like an awfully complicated way to describe multiplication, especially given that the first property above is pointless. However, the importance of linearity comes when f is a function of vectors. The fact that in one-dimension f is completely determined by where it takes the number one has a much more interesting analog in higher dimensions.
Before we move on to two-dimensional space, there's one simple but important fact we should keep in the back of our minds. Suppose you watch one of these transformations, knowing that it uses multiplication by some number but without knowing what that number is:
You can easily figure out which number is being multiplied into the line by following one. In this case, one lands where negative three started off, so you can tell that the animation represents multiplication by negative three.
Thinking of numbers as transformations gives an alternate interpretation of multiplication.
If we apply two transformation in a row, for instance multiplication by two, then by three,
the total action is the same as some other single transformation, in this case multiplication by six:
This gives a convoluted understanding of multiplication, which will be surprisingly useful as an analogy for matrix multiplication.
Person A: What is four times five?
Person B: Well, consider the unique linear transformation which takes one to four, as well as the unique linear transformation which takes one to five, then apply each of these transformations, one after the other, and four times five will be whatever number one lands on.
Person A: ... that's the stupidest thing I've ever heard.
What do linear transformations in two dimensions look like?
A two-dimensional linear transformation is a special kind of function which takes in a two-dimensional vector [xy] and outputs another two-dimensional vector. As before, our use of the word transformation indicates we should think about smooshing something around, which in this case is two-dimensional space.
Here are some examples:
For our purposes, what makes a transformation linear is the following geometric rule: The origin must remain fixed, and all lines must remain lines. So, all the transformations in the above animation are examples of linear transformations, but the following are not:
As in one dimension, what makes a two-dimensional transformation linear is that it satisfies two properties:
Only now, v and w are vectors instead of numbers. While in one-dimension, the first property was useless, it now plays a more important role because, in some sense, it determines how the two different dimensions play together during a transformation.
Following specific vectors during a transformation
Imagine you are watching one particular transformation, like this one:
How could you describe this transformation to a friend who is not watching the same animation? You can no longer describe it using a single number, the way we could just follow the number one in the one-dimensional case. To help keep track of everything, let's put a green arrow over the vector
a red arrow over the vector
and fix a copy of the grid in the background.
Now it's a lot easier to see where things land. Watch the animation again, and focus on the vector . We can more easily follow it to see that it lands on the vector [4−2].
We can represent this fact with the following notation:
Practice Problem: Where does the point at [−10] end up after the plane has undergone the transformation in the above video?
Practice Problem Even though it has gone off screen, can you predict where the point  has landed?
Notice, a vector like , which starts off as 2 times the green arrow, continues to be 2 times the green arrow after the transformation. Since the green arrow lands on [1−2], we can deduce that
And in general
Similarly, the destination of the entire y-axis is determined by where the red arrow
lands, which for this transformation is .
Practice Problem: After the plane has undergone the transformation illustrated above, where does the general point [0y] on the y-axis land?
In fact, once we know where
land, we can deduce where every point on the plane must go. For example, let's follow the point
in our animation:
It starts at negative one times the green arrow plus two times the red arrow, but it also ends at negative one times the green arrow plus two times the red arrow, which after the transformation means
This ability to break up a vector in terms of it components both before and after the transformation is what's so special about linear transformations.
Practice Problem: Use this same tactic to compute where the vector [1−1] lands.
Representing two dimensional linear transforms with matrices
In general, each vector
can be broken down as follows:
So, if the green arrow
lands on some vector
and the red arrow
lands on some vector
then the vector
must land on
A really nice way to describe all this is to represent a given linear transform with the matrix below:
In this matrix, the first column tells us where
lands, and the second column tells us where
lands. Now we can describe where any vector
lands very compactly as the matrix-vector product
In fact, this is where the definition of a matrix-vector product comes from.
So in the same way that one-dimensional linear transformations can be described as multiplication by some number, namely whichever number one lands on top of, two-dimensional linear transformations can always be described by a 2×2matrix, namely the one whose first column indicates where  lands and whose second column indicates where  lands.