Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Math 208 Interactive Notebooks © 2024 by Soham Bhosale, Sara Billey, Herman Chau, Zihan Chen, Isaac Hartin Pasco, Jennifer Huang, Snigdha Mahankali, Clare Minerath, and Anna Willis is licensed under CC BY-ND 4.0
License: OTHER
Image: ubuntu2204
© 2024 By Soham Bhosale, Sara Billey, Herman Chau, Zihan Chen, Isaac Hartin Pasco, Jennifer Huang, Snigdha Mahankali, Clare Minerath, and Anna Willis is licensed under CC BY-ND 4.0
Welcome to Chapter 3: The Paradise of Matrices
Originally created by |
Preface:
This Sage Worksheet is a part of a tutorial created by Prof. 's 2024 WXML group. Referred to , , this Worksheet is intended to help future students with some tools and software to present more visual linear algebra content. This Worksheet will revolve around of 's Book.
Get Strart:
I am delighted to share with you the basic knowledge of matrices, an important part of . But allow me to start with . You might wonder what the connection between and is, but I believe after this section, you will have a better understanding of . Let's begin with : !
You might be familiar with what a transformation is, which is the operation of changing the position or appearance of a figure. But what exactly is ''? Why use '' to describe a ?
In textbooks, we have a clear definition of linear transformation.
A function is a linear transformation if for all vectors and in and all scalars , we have:
Let's consider a simple example:
Let . We will try to determine whether is a linear transformation using .
This does not seem to be a linear transformation because we checked whether and whether . Both of these conditions are false in our example, so we can conclude that this is not a linear transformation.
Similarly, I encourage you to modify this expression and think about when it would be a linear transformation. (: What should be the highest power of the unknowns in a linear transformation?)
Let's consider and try to determine whether it is a linear transformation by observing the equation.
Let . We will try to determine whether is a linear transformation using .
I assume you've already understood how to simply observe an expression to conclude whether it's a linear transformation. Now, I want to present another example to help you understand better.
Suppose we have a transformation . I'd like you to determine whether this is a linear transformation, but this time, I have a request:
- I hope you can represent this linear transformation in the form: .
- Insert any coordinates you like for and .
- Determine whether this is a linear transformation based on the .
Of course, I will also provide my answer, let's try it together!
- Represent this linear transformation: , where In response, we defined matrix in sage:
2. Insert my favorite coordinates: .
3. Check whether it is a linear transformation.
If your attempt concluded that this is a linear transformation, congratulations, you are correct. But is this a coincidence or a necessity? Let's see what the textbook says.
Let be an matrix, and define . Then is a linear transformation.
So, we now know that any matrix can represent a linear transformation. In other words, if a transformation is linear, we can always write it in the form of a matrix. This is indeed a remarkable conclusion! I encourage you to explore more possibilities!
Also, I would like to introduce a more abstract concept for you to understand, which is also an effective way to judge linear transformations. This theorem is also in the book.
Let be an matrix, and let with be a linear transformation. Then
- The vector is in the range of if and only if is a consistent linear system.
- () = {}.
The proofs are all in the textbook, but I want to give a simple example to illustrate this theorem.
Suppose we have a simple transformation, . Is a linear transformation?
Hint: Can you determine the domain and codomain through this linear transformation?
Let's look at a standard example of a linear transformation, but this time, we'll use a graphical representation.
This is what I consider to be the quintessential example of a linear transformation. What did you observe from it? First and foremost, the two shapes appear identical. By calculating the area, we can determine that they are exactly the same. If we take the blue square as the initial state, can you describe the process of transformation from blue to red?
What do you notice when you focus your attention on the basis vectors and represented?
As can be seen in the above figure, the vector is transformed to , and is transformed to ! We have found the trick: by observing the transformation of the basis vectors we can determine the nature of this linear transformation. I am eager to share more interesting examples of linear transformations with you.
Observe this; it's an interesting shear transformation. Can you tell where each of the basis vectors has been transformed to?
I find the method of observing linear transformations through particularly useful, especially when dealing with abstract three-dimensional linear transformations. For instance, consider an abstract matrix where its column vectors are given by , , and . It might be challenging to visualize this linear transformation at first. So, how can we understand this linear transformation? I suggest we deduce the transformation process by observing the changes in the . Let's focus on the three , labeled in , , and , respectively. Based on the diagram below, can you identify the characteristics of this linear transformation?
Now let's look at one-to-one and onto linear transformations. As usual, let's start with the textbook definitions.
First, let's consider :
- is one-to-one if and only if the columns of are linearly independent.
- If and is in echelon form, then is one-to-one if and only if has a pivot position in every column.
- If , then is not one-to-one.
Next, the definition of :
- is onto if and only if the columns of span the codomain .
- If and is in echelon form, then is onto if and only if has a pivot position in every row.
- If , then is not onto.
Can you find commonalities between these two definitions and summarize them? I think a good way to check is to see if there is a pivot in every row and column after reducing to echelon form. In other words, we can check if a linear transformation is one-to-one by checking for pivots in every column, and check if it's onto by checking for pivots in every row, which will be more helpful for our judgment! Let's start with an example.
Let's examine this example! We observe that there is a pivot in each column, so it is one-to-one, but not in every row, which leads us to conclude that this linear transformation is not onto. Think about why it is not onto. Can we see this conclusion at a glance? Let's go back to the definition: the primary definition of onto is that the columns of matrix span the entire . Is this true in our case? The answer is no, because we know that any two column vectors cannot span . In other words, we need at least three column vectors for the transformation to be onto. Therefore, we conclude that a linear transformation from to is never onto when . Now, let's look at another example.
Suppose we have a new matrix . Determine whether it is one-to-one and onto.
I'm sure you've noticed that this is both a one-to-one and onto linear transformation! Take note that this is a matrix. I encourage you to try out several matrices and see if there is a certain correlation between being one-to-one and onto for matrices.
© 2024 By Soham Bhosale, Sara Billey, Herman Chau, Zihan Chen, Isaac Hartin Pasco, Jennifer Huang, Snigdha Mahankali, Clare Minerath, and Anna Willis is licensed under CC BY-ND 4.0