Previous | ToC | Next Labs: Geometry and Motion Control. Part 1. Math Alive

Rotation

There are four simple linear transformations that can easily be described by multiplication of a 2 x 2 matrix. These types of matrices are used for many different applications, including in the computer graphics that you see in special effects at the movies.

The first is rotation.

Suppose that we want to find the 2 x 2 matrix that describes rotation of the diver by 90 degrees in the counterclockwise direction. Consider first the line connecting 0 1 to 0 -1.

rotation

 

After rotating this line by 90 degrees in the counterclockwise direction (about the point 0 0) we should get the new line connecting -1 0 to 1 0.

rotation

 

The 2 x 2 matrix that takes 0 1 to -1 0 and 0 -1 to 1 0 is given by:

 

matrix 0 -1 1 0

since

calculation

and

calculation

See what happens when we apply this transformation to every point on the diver.

rotation

 

More generally rotation of the line connecting 0 1 to 0 -1 by theta degrees in the counterclockwise direction takes us to the new line connecting -sin(theta) cos(theta) to sin(theta) -cos(theta). And rotation of the line connecting -1 0 to 1 0 by theta degrees in the counterclockwise direction takes us to the new line connecting -cos(theta) -sin(theta) to cos(theta) sin(theta).

 

rotation theta
rotation theta

We can find the 2 x 2 matrix a b c d transformation matrix as follows. We need

calculation to be equal to -sin(theta) cos(theta) , i.e. b = -sin theta and d = cos theta and we need

calculationto be equal to cos(theta) sin(theta), i.e. a = cos theta and c = sin theta.

Thus, the rotation by theta degrees in the counterclockwise direction about the point 0 0on the plane is given the transformation matrix:

transformation matrix

Rotations

Try out various choices of q to see the rectangular diver rotate about the origin.

Your browser is not Java capable.

This window shows the side view of a diver. The diver can be rotated about the origin by entering the value of theta in the appropriate textfield and then by pressing "Transform". To return the diver to the original orientation press "Reset". The coordinates of a point on the graph can be obtained by clicking anywhere on the graph. The x and y coordinates will be displayed in the lower left hand side of the applet. To zoom in or zoom out, click the appropriate button.



Previous | ToC | Next Last Modified: August 2008