yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Using matrices to transform the plane: Composing matrices | Matrices | Precalculus | Khan Academy


4m read
·Nov 10, 2024

So what I have here is two different transformation matrices. What we're going to think about in this video is: can we construct a new matrix that's based on the composition of these transformations?

Or, a simpler way of saying that is a new transformation that's based on applying one of these transformations first and then the other one right after that.

So first, let's just review what's going on. If we have some random vector here, (a, b), we know that we could view this as (a) times the ((1, 0)) vector, the unit vector in the x direction, plus (b) times the ((0, 1)) vector, which is the unit vector that goes in the vertical direction.

Now, if you were to apply this transformation, capital (A), here, it tells you instead of using ((1, 0)) and ((0, 1)), use these two columns instead. So if you were to apply the transformation here, I guess we could call it (A) for (b'), that is going to be, if you apply the capital (A) transformation matrix, it's going to be (a) times not ((1, 0))—you use ((0, 5)) instead. And then plus (b) times not ((0, 1))—you use ((2, -1)) instead.

So that's just a little bit of review, but what we're going to think about in this video is: what would be the transformation matrix for the composition? And I could write that as (B(A)) right over here, and you might recognize this from function notation where essentially it's saying you would apply the function (A) first and then whatever the output of that is, you would then input that into (B) and you would get the output of that.

And that makes sense because you can view transformation matrices really as functions—functions that map points on the coordinate plane. So in this situation, what would be the transformation matrix that is a composition of these two?

Pause this video and think about that.

All right, well, what would happen is we would first transform any point using these two vectors: the ((0, 5)) and the ((2, -1)) because that's the first transformation we do. And then we would apply this transformation to whatever the resulting vector is. Now, that seems pretty involved, and we don't want to write it in terms of (a) or (b)’s; we just want to write it in terms of a transformation matrix.

So one way to think about it is we can transform each of these vectors that you have in matrix (A), because remember that says what do you turn the vectors ((1, 0)) and ((0, 1)) into. So if we transform ((0, 5)) using the matrix (B) and if we transform ((2, -1)) using the matrix (B) and we put them in their respective columns, we should have the composition of this.

So let me write it this way and create a little bit of space.

So let's say that the composition (B(A)) is equal to, all right, a big two by two matrix right over here. The first thing we can do is apply transformation matrix (B) to the purple column right over here. And what is that going to tell us? Well, that's going to be (0) times ((-3, 1)). So let me write it that way; it's going to be (0) times ((-3, 1)) plus (5) times ((0, 4)).

And this is going to give us a two by one vector right over here, so you can view it as filling up the first column of this transformation, this composition, I guess you could say. And then let's think about this second vector right over here, ((2, -1)). If you transform that using (B), what are you going to get? You're going to get (2) times ((-3, 1)).

So, I'll write it here: (2) times ((-3, 1)) plus (-1) times ((0, 4)). And this doesn't look like a matrix just yet, but if you work through it, it will become a matrix. For example, if I multiply, well, (0) times all of this is going to be (0) and then (5) times (0) is going to be, let me just write it this way: this would turn into (5) times (0) is (0) and (5) times (4) is (20).

And then this matrix right over here, (2) times ((-3, 1)) is going to be ((-6, 2)), and then we have minus ((0, 4)). And now, if we wanted to write this clearly as a two by two matrix, this would be equal to—and we get a little bit of a drum roll here—the first column is ((0, 20)) and then the second column is going to be, let's see, ((-6 - 0)) is still (-6), and ((2 - 4)) is (-2).

And we're done! We have just created a new transformation matrix that's based on the composition (B(A)). So if you apply transformation (A) first to any vector and then apply transformation (B) to whatever you get there, that is equivalent to just applying this one two by two transformation matrix (B(A)).

More Articles

View All
How Would You Envision a Space Colony? | Short Film Showcase
What if you lived in the 1500s and you knew there was a guy named Sir Jeffrey Bezos and Sir Elon Musk, and you knew they were building what they were going to call Mayfl flowers? These May flowers were going to be able to take people to new worlds. How wo…
The discovery of the double helix structure of DNA
In 1865, Mendel, often considered the father of modern genetics, comes up with a structured way of thinking about these inheritable factors, which we now call genes. Then, as we go into the early 1900s, his work was rediscovered, and people started to say…
9 tactics to build a stronger mind | Lisa Genova
People are worried about their memory. If you’re forgetting to show up for your four o’clock meeting, or you forgot the actor who played Tony Soprano in the HBO series ‘The Sopranos.’ “Can’t remember that guy’s name, what is it?” A lot of us tend to blame…
Thinking About Lockdowns
[voice from the audience] Hey! Hey. Where’s the Q&A? [Grey] Oh… right. I lost track of time. [confusedly] What… year is it? [retro video game sounds] How are you and Lady Grey doing during lockdown? We’re fine. Though we have become real little home…
Uranium: Twisting the Dragon's Tail
Did you know that after the 1986 Chernobyl nuclear disaster at reactor number four, the other reactors on that site were not shut down permanently? In fact, they were kept running, producing electricity by workers who were brought in by train every day to…
From 300lbs to a Navy SEAL: Gain control of your mind and life | Big Think Top 10 | David Goggins
[Music] All about acknowledging your shortcomings in life. A lot of people talk about triple down on your strengths, triple down on your strengths, and don’t worry about your shortcomings. That’s a whole new thing I’m hearing right now; maybe it’s not new…