Matrices and linear functions
Let be some matrix, say
What do you get if you multiply by the vector ? Remembering our matrix multiplication, we see that
If we define a function , we have created a function of three variables whose output is a two-dimensional vector . Using our function notation, we can write . We have created a vector-valued function of three variables. So, for example, .
Given any matrix , we can define a function (note the order of and switched) by , where is an -dimensional vector. As another example, if
then the function , where , is .
In this way, we can associate with every matrix a function. What about going the other way around? Given some function, say , can we associate with some matrix? We can only if is a special kind of function called a linear function. The function is linear if each term in is a number times one of the variables. So, for example, the functions and are linear, but none of the following functions are linear: , , or . Note that both functions we obtained from matrices above were linear.
Let’s take the function , which is a linear function from to . The matrix associated with will be a matrix, which we’ll write as
We need to satisfy , where .
The easiest way to find is the following. If we let , then is the first column of . (Can you see that?) So we know the first column of is simply
Similarly, if , then is the second column of , which is
Putting these together, we see that the linear function is associated with the matrix
The important conclusion is that every linear function is associated with a matrix and vice versa. We will sometimes use this correspondence in this course because, as you soon will learn, the multivariable version of a derivative will be a matrix. We can also view the derivative as the linear function associated with that matrix.