
Then we can transform the square by combining the vertices into a matrix (denoted by ), and multiply it by the transformation matrix . In other words,

And is the transformed square.
Of course, this idea can also apply to other shapes other than squares.