Generally, a matrix can be represented as how it transforms the two standard basis vectors,
[10] and [01].
For instance, one may consider the 90 degree clockwise rotation matrix,
[01−10]
which moves the basis vector
[10]
to a new basis ,
[01]
and the basis vector
[01]
to another new basis,
[−10].
Due to how all vectors are formed in R2, they can be represented as a linear combination of those basis vectors [10] and [01]; furthermore, all matrices represent linear transformations, and, as such, take the form
A∈Rm×n,
meaning the matrix A is a linear transformation from
Rn
to
Rm,
(which, I may add, is horrible notation used so that m by n is rows by columns, meaning m is the height and n is the width), is such that
A(ax+by)=aAx+bAy ∀a,b∈R,x,y∈Rn.
This is why the general formula, given to students never to be fundamentally understood, is
[acbd]
[x1x2]=
[ax1+bx2cx1+dx2]∀x,y∈R2.
This is because any vector, in this case
[x1x2],
is simply a linear combination of the standard basis vectors
[10] and [01], being equal to
x1⋅[10]+x2⋅[01].
This also leads to the general formula for multiplying matrices together, where you take those same vectors from the second matrix and you move them to the basis vectors of the first matrix.
For instance,
[1223]⋅[3−423]
takes the first column in the second matrix,
[3−4],
as the first basis vector, and the second column in the second matrix,
[23],
as the second basis vector. This results in
[1⋅3+2⋅−42⋅3+3⋅−4]=[−5−6]
as the new first basis vector and
[1⋅2+2⋅32⋅2+3⋅3]=[813]
as the new second basis vector, forming the matrix
[−5−6813].
More generally, when multiplying 2×2 matrices,
[acbd]⋅[egfh]
moves the basis vector
[eg]
to the new basis
[ae+bgce+dg]
and the basis vector
[fh]
to the new basis
[af+bhcf+dh],
resulting in the new 2×2 matrix
[ae+bgce+dgaf+bhcf+dh].