4.13 - Matrices as Functions

Zachary Newcomer

Introduction

If a matrix is a machine that moves space, then matrix multiplication is the set of instructions for that machine. In 4.13, we will look at matrices as actual functions, similar to how is a function, but for vectors instead of single numbers.

Building a Matrix from a Rule

Suppose a linear transformation is given by the rule: 

.

Remember that multiplying a matrix by a vector works like this:

.

Notice that the first row produces the first output coordinate, while the second row produces the second output coordinate.

Now, let’s compare this with our transformation rule:

.

The first output is 

,

so the first row of the matrix must be

.

The second output is

,

so the second row must be

.

Therefore, the transformation is represented by 

,

since

.

The Unit Vector Trick

A great way to find a matrix is to see what it does to the unit vectors and .

The first column of the matrix is where lands, and the second column of the matrix is where lands.

Special Transformations

Rotations

To rotate space counterclockwise by an angle , we use the Rotation Matrix:

If you want to rotate ( radians), you plug in the values to get , which was briefly introduced in 4.12.

Dilation and the Determinant

In 4.12, we learned that the determinant is the area of a parallelogram. In terms of functions, the absolute value of the determinant tells you the magnitude of dilation.

If , any shape you transform will become 5 times as large in area.

If , the area stays the same (like in a rotation).

Composition of Matrices

All the way back in Unit 2.7, we introduced Composition of Functions, which is when one entire function is the input to another. In algebra, this looks like or . When working with matrices, we can do or . This is called a composition of matrices.

Doing two transformations in a row is the same as multiplying their matrices together:

Matrix of

Note that the composition of linear transformations is itself a linear transformation.

Be careful!

Remember that order matters. is usually different from .

Inverse Transformations

An inverse transformation is the “Undo” button. If rotates space clockwise, rotates it counterclockwise.

Two transformations are inverses if their composition maps every vector back to itself:

If , then .

If the determinant is , you can’t “undo” the transformation because space has been “collapsed” into a line or a point.

Practice Problems