02. Matrices: examples

02. Examples

Vectors in the plane

In the last video, we saw that a 2-by-2 matrix of numbers (abcd) defines a geometric transformation of the plane 𝐑2 : (xy)(ax+bycx+dy).

Remark:

Recall that 𝐑 denotes the real number line. 𝐑2 denotes the 2-dimensional plane of all column vectors of height 2 (i.e. (xy) ); 𝐑3 denotes the 3-dimensional space of all column vectors of height 3 (i.e. (xyz) ; and more generally, 𝐑n denotes the n -dimensional space of all column vectors of height n (i.e. (x1x2xn) ).

Just as the coordinates (xy) encode points in the plane, we should think of the matrix (abcd) as encoding a transformation of the plane. In this lecture, we will take a range of examples and see what the corresponding transformation looks like.

Example 1

Let M=(1000) . If I apply M to v=(xy) then I get Mv=(1000)(xy)=(x0).

This takes v to the point on the x -axis with the same x -coordinate, so M represents a vertical projection map to the x -axis.

Vertical projection to the x-axis

Example 2

Consider the action of (1001) . This sends (xy) to (xy) ; this transformation leaves everything as it was: it is called the identity transformation. We call this matrix the identity matrix, and we often write this matrix as I ; it plays the role of the number 1 in the algebra of matrices.

Useful lemma

Lemma:

Let M=(abcd) , let e1=(10) and e2=(01) . Then

  • Me1 is the first column of M , i.e. (ac) .

  • Me2 is the second column of M , i.e. (bd) .

Basis vectors (1,0) and (0,1)

We'll call e1,e2 basis vectors, which basically means that any other vector can be written as a combination of e1 and e2 in a unique way. More on this in MATH220.

We'll just check it for Me1 : Me1=(abcd)(10)=(a+0c+0)=(ac).

The calculation for Me2 is similar.

Example 3

Take M=(0110) .

  • Where does e1 go? It goes to the first column of M , which is e2 .

  • Where does e2 go? It goes to the second column of M , which is e1 .

So e1 and e2 get switched. This corresponds to a reflection in the line y=x :

Reflection in the line y=x

Let's check that the line y=x is indeed fixed by the action of M . The vectors (xx) (and only these ones) lie on this line, so let's compute: M(xx)=(xx),

which indeed tells us that the points on the line y=x are fixed.

Example 4

Take M=(0-110) .

  • Where does e1 go? It goes to the first column of M , which is e2 .

  • Where does e2 go? It goes to the second column of M , which is -e1 .

Rotation by 90 degrees

We see that this looks like a 90 degree (π/2 radian) rotation. This makes sense, because the matrix (cosθ-sinθsinθcosθ) for a rotation by an angle θ specialises to M when θ=π/2 , because cos(π/2)=0 and sin(π/2)=1 .

Example 5

Take M=(1101) . We have

  • e1e1 ,

  • e2(11) .

So e1 is fixed, but e2 is slanted over in the x -direction. In fact, the whole y -axis gets slanted in the x -direction, for example if we compute M(02) we get (22)

Horizontal shear

Example 6

As one final example, we'll take M=(-316-15) . What on earth does this correspond to? I claim that it corresponds to a shear in a different direction. How can we find the fixed direction?

If v=(xy) points in the direction fixed by M then v=Mv (that's what it means to be fixed). Therefore (xy)=(-316-15)(xy).

In other words, the first entries of v and Mv must coincide, and so must the second entries. This gives us a pair of linear simultaneous equations: x=-3x+16y,y=-x+5y.

These are both equivalent to y=x/4 , so the line y=x/4 is fixed.

Remark:

Not all matrices have fixed directions, but if they do then this method will find it.

Outlook

In the next video, we will take a look at bigger matrices and higher-dimensional spaces.