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

Using matrices to transform a 4D vector | Matrices | Precalculus | Khan Academy


4m read
·Nov 10, 2024

We've already thought a lot about two by two transformation matrices as being able to map any point in the coordinate plane to any other point or any two-dimensional vector to any other two-dimensional vector. What we're going to do in this video is generalize a bit and realize that the same principles can be used for n dimensional spaces.

Now, I know that sounds a little bit fancy, and it really is on some level, but it's really the same ideas. So, for example, let's extend what we know about two dimensions; let's extend it to say four dimensions. So let's write a four-dimensional vector here, and it is hard to visualize in four dimensions. So don't be hard on yourself if you have trouble. Two dimensions — not too hard; three dimensions — not too hard; four dimensions — a little bit hard for us, maybe we have to think about time as the fourth dimension.

But in matrix world or in vector world, it's pretty easy to represent them. As hard as it is to visualize, a four-dimensional vector will just have four numbers: negative one, let's see, negative three, I'm just making these up randomly, negative five, and one. This is a four-dimensional vector, and we could view it as being a weighted sum of the unit vectors in the different dimensions of four-dimensional space.

I guess you could say that this is the same thing as... actually, let me color code a little bit. This would be equal to negative 1 times the 1, 0, 0, 0 vector plus negative 3 times the 0, 1, 0, 0 vector plus negative 5 times the 0, 0, 1, 0 vector. I think you see where this is going.

And then last but not least, plus 1 times the 0, 0, 0, 1 vector. Now, when I write it this way, you might immediately start realizing, "Oh, I think I know how to do transformations here." For example, if I were to give you the transformation matrix, and this would be a transformation matrix for four dimensions. So it's going to be a four by four matrix.

So I'm going to write some random numbers here: 1, 0, negative 3, negative 1; 2, 0, negative 3, 1; 3, 2, 0, 2; 3, negative 1, 0, and 3. So my question to you is, what would be the mapping of this four-dimensional vector if we were to apply this transformation to four-dimensional space? What would be the result?

Pause this video and think about it. Well, it's completely analogous to what we did in the two by two world. In two-dimensional space, we thought about, "All right, instead of the 1, 0, 0, 0 vector, we're now going to use this vector. Instead of the 0, 1, 0, 0 vector, we're now going to use this vector." Instead of this one in that blue-green color, we're now going to use this one. And last but not least, instead of that, I guess we could say, salmon-colored vector, we're now going to be using this one.

So another way to think about it is this: the mapping of this vector. Let me write it this way; let me make a little line here so we can separate things a little bit. But we could write — I'll write it a little bit smaller; hopefully, you can see this. So this is our original vector: negative 5, 1. But we want to do the prime; what does it get mapped to under this transformation?

Well, this is going to be negative 1 instead of this unit vector right over here; it's going to be negative 1 of this one right over here. So it's negative 1 times all of this business: 1, 2, 3, and 3. And then, instead of plus negative 3, I could just write minus 3 times all of this business: 0, 0, to negative 1.

And then we have minus 5 times all of this business: negative 3, negative 3. And then we get 0, 0, and then — and that definitely gets a little bit more work involved the more dimensions we have — plus 1 times this business. So plus 1 times negative 1, 1, 2, 3.

And so what's this going to be equal to? So — and actually, this could be a good time to pause the video too and have a go at it. All right, so this is going to be this first one. I just make all of these negatives: negative 1, negative 2, negative 3, negative 3. And to that, I'm going to add — let's see, if I multiply all of those times negative 3, I'm going to get 0, 0, negative 6, and positive 3.

And then if I multiply all of these times negative 5, I am going to get 15, 15, 0, and 0. And then if I multiply all of these times 1, well, I just get those things again. So that's going to be negative 1, 1, 2, and 3. And we are in the home stretch! So now we can just add everything together, the corresponding terms.

And so this is going to be negative 1 plus 0 plus 15 plus negative 1. So that's going to be the same thing as 15 minus 2, which is going to be 13. The negative 2 plus 0 plus 15 plus 1, so that's going to be 16 minus 2.

Which is then we have negative 3 plus negative 6, which is negative 9. And then we add 2 to that, so that is negative 7. And then negative 3 plus 3 is 0, plus 0 is 0, plus 3 is 3. And we are done! We have found the mapping of this four-dimensional vector based on a four by four transformation matrix. Very cool!

More Articles

View All
Has political correctness gone too far? | Jim Gaffigan, Slavoj Zizek & more | Big Think
SLAVOJ ŽIŽEK: I know that there is a lot of sexual harassment, racism, and so on in our lives. And I don’t doubt that the majority of people who promote political correctness mean it sincerely. I am not saying that. I am not saying in the way of right-win…
How does this all-female species reproduce? - Susana Freitas and Darren Parker
In 2021, workers at a Sardinian aquarium were stunned by the birth of a smoothhound shark, who they called Ispera. What shocked them was that, for the last decade, Ispera’s mother had been living only with other females. But it’s actually entirely possibl…
How the Suez Canal changed the world - Lucia Carminati
In March 2021, fierce winds blew a container ship off course. In most places, this would have caused a minor incident. But in the Suez Canal, it was a global crisis. This vessel wasn’t just blocking other ships—it was obstructing the flow of international…
Peter Lynch: How to Achieve a 29% Annual Return in the Stock Market
Peter Lynch is definitely someone you should be studying if you want to learn about investing. During his time running the Fidelity Magellan Fund, Lynch averaged a 29.2% annual return, consistently more than double the S&P 500 stock market index, maki…
Cast Volunteer Day | Saints & Strangers
We’re here with the cast and producers of Saints and Strangers, donating a couple of hours of work to the Los Angeles Regional Food Bank. Here at the LA Food Bank, we distribute a million pounds of food every single week, 20% of which is fresh fruits and…
15 Reasons Why Growing Up Rich is a Liability
If you grew up poor like we did, you certainly experienced firsthand what it’s like to never ask for anything, to be self-sufficient. But every single one of us, deep down, wished our family was rich. But you know how when you were little, you didn’t know…