Quaternions EXPLAINED Briefly

  Рет қаралды 309,390

Mathoma

Mathoma

Күн бұрын

Пікірлер: 430
@Math_oma
@Math_oma 5 жыл бұрын
I just started a Patreon if you appreciate the work done on this channel: www.patreon.com/Mathoma Thanks for viewing the channel!
@ffggddss
@ffggddss 5 жыл бұрын
"Now oftentimes in math, we have many different ways of viewing the same thing." Bingo!! One of the ways I like to define the quaternions, is as complex numbers over the complex numbers, where the 2 imaginary units are distinct, and anticommute. If we define q = A + Bj where A = a + bi, B = c + di you then have q = a + bi + cj + dij So then you just call this new, "product" of imaginary units, a new, third imaginary unit, k, q = a + bi + cj + dk And now, all the multiplication rules for imaginary units can be worked out. From our premises that i² = j² = -1, and ij = -ji = k, we have ij = -ji = k jk = jij = -ij² = i ki = iji = -i²j = j ik = iij = -j kj = ijj = -i k² = ijij = -iijj = -1 Fred
@segurall1
@segurall1 4 жыл бұрын
@Mathoma when multiplying both side by a variable is it a rule that, that variable comes first. Eg.. j*j*k=j*i vs j*k*j=i*j or is this only the case because were talking about higher dimensions here? It is it dependent on the side of the variable which is being multiplied?
@michaelcharette5124
@michaelcharette5124 3 жыл бұрын
%
@k6l2t
@k6l2t 7 жыл бұрын
I haven't finished watching the video yet, but I came down to thank you for using black background and white text. EVERYONE SHOULD DO LECTURES THIS WAY!!! My eyes are not burning for once holy shit dude.. THANK YOU
@mydogbrian4814
@mydogbrian4814 2 жыл бұрын
Me thinks NOT!
@jbexta
@jbexta 2 жыл бұрын
Spoken like someone watching at 3am. Also me
@wisdomokafor9631
@wisdomokafor9631 9 ай бұрын
Thanks so much you really saved me. I could not find anyone who could explain this topic better than this
@peternolan814
@peternolan814 8 жыл бұрын
Hello, Many thanks indeed for uploading this set of five videos about quaternions. Most interesting. I'm 63 and now at last I know about quaternions that were discovered by Hamilton an Irish mathematician as you know. I live not too far away from the place a canal where the plaque with his formulation of quaternions is written at the spot where it all became clear to Hamilton while he was walking on his way to his university Trinity College Dublin from where he lived that was what is Dunsink Observatory today and then. All the best, Peter Nolan.(Ph.D., experimental physics). Dublin. Ireland.
@Math_oma
@Math_oma 8 жыл бұрын
+Peter Nolan Even though people don't often learn of quaternions anymore, the concepts live on whenever you write a dot product or cross product. You might be interested in geometric algebra, too (or Clifford algebra more generally). I'm putting together videos on that topic but when I eventually start talking about the geometric algebra of 3D, the quaternions will pop up yet again, this time with a different interpretation than "arrow" or "vector".
@peternolan814
@peternolan814 8 жыл бұрын
Hello, I am just about to watch all of your videos a second time starting with the first one above. The astronomer I was telling you about above was telling me that quaternions are used to steer satellites and as you undoubtedly know there are many other applications for them as well. The i, j and k in quaternions are not the same as the i, j and k that we used when we were being taught about vectors starting in secondary school and I found that a bit confusing to start with. All the best and many thanks, Peter Nolan.(Ph.D., experimental physics). Dublin. Ireland.
@Math_oma
@Math_oma 8 жыл бұрын
+Peter Nolan Yeah, they mean different things but those i,j,k are nice historical artifacts from the quaternion days of physics. Of course, nowadays they are just placeholders for x,y,z with no algebraic significance.
@peternolan814
@peternolan814 8 жыл бұрын
Many thanks for that clarification. I had not heard the word "placeholder" before. As they say in America every day is a day at school. I'm 63. All the best, Peter Nolan.(Ph.D., experimental physics). Dublin. Ireland.
@Math_oma
@Math_oma 8 жыл бұрын
+Peter Nolan Perhaps "placeholder" wasn't a good way to describe the current function of i,j,k now that I think of it. They certainly represent the basis vector in the x,y,z directions so they do indicate something.
@nodoesart
@nodoesart Жыл бұрын
I have a presentation to do in my first year of university (i'm doing a double degree in maths and physics) and we chose quaternions with my two friends. I'm the only one who speaks English so I'll be able to brag and make them think I'm a quaternion expert because I watched your video. It was really well-explained and easy to understand, thank you !
@SuperAcousticDude
@SuperAcousticDude Жыл бұрын
This was wonderfully explained. I cant tell you how many channels ive been thru trying to find something like this. Many try to flex their knowledge of the topic without realising that some of their viewers are there to learn the topic from the ground up. Amazing work!
@benjaminv3748
@benjaminv3748 8 жыл бұрын
I still learn very (relatively speaking) math, in fact I have only briefly touched complex numbers and i, yet this video was very intresting and taught me some basic quaterion rules. Now I probably won't use this knowledge for another few semesters but videos like these always keep me motivated to learn more and get there!
@pootisspangle6636
@pootisspangle6636 3 жыл бұрын
What college you at? I like Harvard because math 55 teaches me about topology, where there are subsets, elements, n and k cells, intersection area of, total area of, neighborhoods, hausdorff neighorhoods, euclidean space, hausdorff space, converting topology into metric, paths, quantifications, including uniqueness quantification, existential quantification, and universal quantification, closures, interiors, boundaries, CW Complex, isotopy, homotopy, homomorphism, morphing into other shapes, paths, congruent, changed to, if and only if, functors, open balls, closed balls, fibers, and more.
@antoinedevldn
@antoinedevldn 5 жыл бұрын
This is how beautiful a concept can be explained! Flawless, thanks a lot :)
@DWORLD-xl4pb
@DWORLD-xl4pb 6 жыл бұрын
I was with you Doc all the way until you got here: 11:00 When you multiplied by ijk = -1 => iijk = -I... All these calculations take graduating layers of abstract thought and my thoughts failed after the third level of complexity. I love math but I could never get beyond algebra 1 to precalculus because so many assumptions of the abstract seem incorrect. I don’t know if that makes sense, but hopefully we can help a whole new generation break the fear of beyond. Live long and prosper sir! 🖤💪🏽👌
@davidmurphy563
@davidmurphy563 3 жыл бұрын
Ok, I'm replying to a two year old comment but I paused at the very same point. This is me gathering my thoughts - it helps me to write it down - so just ignore me. The issue is that normally -1 * -1 = 1. So vec3(-1, -1, -1) * vec3(-1, -1, -1) = vec3(1, 1, 1). Which is the same as vec3(1, 1, 1) * vec3(1, 1, 1) when obviously it's not the same. I mean, -1 * -1 = 1 is just a definition but it's a crappy one in this context because it's asymmetric. Assumptions of the abstract as you say. Just because a vector is pointing in the negative direction doesn't mean we want it to behave differently when we multiply it. Obviously we don't. So let's just change that rule. So now, when it's negative, let's multiply its positive and then add the negative sign back after the multiplication is done and return that result. Do this and -1 * -1 now outputs -1. I think proper maths takes the sqrt(-1) but the result is the same so who cares? I'm not sure, but I suspect all this mathematical hocus-pocus is just to make negative numbers behave like positive numbers and not magically flip on you. In computer terms you'd call this patching a bug. Clearly, -1 * -1 shouldn't =1, at least in this context.
@PARISAROMAN
@PARISAROMAN 5 жыл бұрын
No angry comments, the opposite, I am happy to see and listen your awesome exposition. Thank you very much Mathoma.
@tombruckner2556
@tombruckner2556 4 жыл бұрын
That's the first time I actually understood what Quaternions are all about. Kudos to you!
@efraingbj
@efraingbj 8 жыл бұрын
Thanks for the video, I'm currently working on a robotics project and it's the first time I heard about quaternions, your explanation was pretty spot-on as an introduction to the topic! Also your channel seems really interesting, great job! Greetings from the other side of the wall!
@VladTepesh409
@VladTepesh409 5 жыл бұрын
I find the quaternion multiplication table very informative, as well as a refresher from the other parts of your video. Thanks!
@xfry
@xfry 4 жыл бұрын
OMG OMG OMG!! I was stuck reading this topic in a book and you finally has given to me the final understanding about this topic! You are amazing dude
@rlenclub
@rlenclub 4 жыл бұрын
I thought that *brief* was the wrong word to use here until I remembered you're explaining quaternions.
@TheSam1902
@TheSam1902 8 жыл бұрын
Thank you for this video ! I'm currently in high school and I'm developing some video games. Since I didn't know how quaternions worked I was using Euler's angles which are (magically) translated to rotation by some modern game engine (i.e. Unity3D). Now I'll be able to work directly with quaternions so thanks for quenching my thirst of curiosity !
@Math_oma
@Math_oma 8 жыл бұрын
+Black Rainbow You're welcome; quaternions are one of my favorite topics in math so I always enjoy talking about them. This particular video probably won't tell you much on why they work in rotations, but hopefully that will make sense when you see my other quaternion videos. The more I study this topic, the more I'm convinced Euler angles and other contortionist routines using matrices are the wrong way to think of 3D rotations. Quaternions and more generally the geometric algebra of R^3 are too natural and the formulas are too concise for them to not be the best way to understand rotation.
@DavidFosterZen
@DavidFosterZen 8 жыл бұрын
I do all my calculations with Octonians. Excellent Video. Keep up the hard work.
@Math_oma
@Math_oma 8 жыл бұрын
That's interesting. What sorts of calculations are they? It's funny you mentioned the octonions because I was going to make a video on the octonions and the Cayley-Dickson construction (unless you beat me to it).
@DavidFosterZen
@DavidFosterZen 8 жыл бұрын
It was purely in jest. I have a hard enough time time finding a practical uses for quaternions. But if I had a use for them, I would definitely use them, even if my heart is really with Clifford Algebras.
@Math_oma
@Math_oma 8 жыл бұрын
Oh damn, I was actually looking for a nice application of the octonions, other than bizarre string theory stuff.
@DavidFosterZen
@DavidFosterZen 8 жыл бұрын
Clifford Algebras... that is what you really want. Are you familiar with those? And if not, would a video on those be helpful? Much more intuitive and versatile.
@Math_oma
@Math_oma 8 жыл бұрын
I'm not too familiar with Clifford algebras even though I have heard the name in association with hypercomplex numbers. The topic is on my long to-do list of math topics to read about. Unfortunately, the Clifford algebra videos on KZbin seem to be too high-level, but it would certainly be interesting if you (or someone else reading this) made a video on the topic.
@oscarruiz8834
@oscarruiz8834 6 жыл бұрын
I liked the video. It leaves many things un-answered, but it it useful. It is just natural that one should read and search more on the topic before one understands what is going on.
@lukastheinfinite7311
@lukastheinfinite7311 7 жыл бұрын
You think and explain in the way I do it. Kudos sir! And thank you for your effort!
@DevShah-z2d
@DevShah-z2d 9 ай бұрын
at 1:31 when you explain so simply the R^2, you have my like on the video
@elimenendez237
@elimenendez237 7 жыл бұрын
Thank You! That's the only explanation of Quaternions that I could understand properly, very well explained
@youssefgaaloul
@youssefgaaloul 2 жыл бұрын
I dont get why ijk=-1. Is it something I just have to accept? Assuming so then I understood the general way of multiplication of quaternions as you explained it.
@leochinchillaa
@leochinchillaa 2 жыл бұрын
same i thought ijk would have to be i^3 = -i =-j =-k
@rohan.fernando
@rohan.fernando Жыл бұрын
A brilliant explanation of quaternion algebra. William Rowan Hamilton would surely be impressed. Well done.
@arongil
@arongil 8 жыл бұрын
Khan Academy 2.0! This is great!
@Math_oma
@Math_oma 8 жыл бұрын
+Arongil Productions Yeah, his videos are some of my main inspirations, except I work at a slightly higher level.
@mrigank8822
@mrigank8822 8 жыл бұрын
Mathoma khan academy is a little bit too basic even for beginners
@GiraffotTV
@GiraffotTV 5 жыл бұрын
This is great. Thanks. One remark: It's quite confusing when you point things out on your sketch and say "here, and here..." but I can't see where you are pointing:-))
@nexusclarum8000
@nexusclarum8000 7 жыл бұрын
I like how you write the letter 'q'. Also good explanation.
@TheRealAfroRick
@TheRealAfroRick 2 ай бұрын
This is the first video that broke this down in a way that actually made some sense because it didn't try to dumb it down and hide the maths :)
@gurunath72
@gurunath72 7 жыл бұрын
Very nice explanation, especially liked the bit about how an abstract mathematical idea became an useful one.
@redrevelations
@redrevelations 6 жыл бұрын
Thank you very much for explaining quaternions in a very simple way. It helped me a lot.
@FrankClautier
@FrankClautier 8 жыл бұрын
Hello,Thank you for this interesting series of videos! I just have a question: around the 11:00 mark, when multiplying both sides of the equation ijk = -1 by i , do we assume associativity applies? Just wondering this, since i(ijk) is assumed to be equal to (i^2)jk . Thanks : )
@Math_oma
@Math_oma 8 жыл бұрын
+Frank Clautier Right, we're assuming the associative property when we do this. In a different formalism, it's provably true that quaternion multiplication is associative but I prefer setting up the quaternions in this way.
@FrankClautier
@FrankClautier 8 жыл бұрын
Ah ok, thank you for the clarification :)
@craigruchman7007
@craigruchman7007 6 жыл бұрын
My math only goes up to abstract algebra, so this was a nice intro for me, thanks
@ignitiondj4025
@ignitiondj4025 7 жыл бұрын
I AM ANGRY THAT THIS VIDEO EXPLAINED QUATERNIONS SO WELL there you go you're welcome
@skub22do
@skub22do 5 жыл бұрын
At 12:28, why is the 'j' placed to the left of 'i', rather than the right?
@mohameds3354
@mohameds3354 7 жыл бұрын
How is it used in the computer graphics? It always is good to listen to somebody who knows what he is talking about.
@alyssasynakowski5748
@alyssasynakowski5748 7 жыл бұрын
I'm curious how you might go about calculating the difference between two 9 axis IMU sensors using their corresponding quaternion coordinates? I'm working on a project where I have a sensor attached to the side of the chest and another attached to the arm. My objective is to calculate the position of the arm relative to the body using the quaternion coordinates. Unfortunately, I"m afraid I don't understand them enough in order to come up with an equation on my own. Any help would be very much appreciated. Thanks!
@PrashantAthavale
@PrashantAthavale 3 жыл бұрын
Thank you for your nice explanation. Which book(s) did you use in this series on quaternions? Or which book(s) would you recommend?
@pootisspangle6636
@pootisspangle6636 3 жыл бұрын
This is the most simple genious idea ever. 👌
@OomptzMusic
@OomptzMusic 5 жыл бұрын
Love the "blackboard" presentation. Great video 👍
@addisonballif2988
@addisonballif2988 4 жыл бұрын
if the three imaginary numbers are not commutative, then how do you make sure that you get the right order when your are distributing? How does distributing work with non-commutative numbers?
@MuffinsAPlenty
@MuffinsAPlenty 4 жыл бұрын
You keep things on the left if they started on the left and on the right if they started on the right. So a(b+c) = ab+ac and (b+c)a = ba+ca.
@dralbertomarquez
@dralbertomarquez 8 жыл бұрын
Fantastic explanation. I'd like to see one with functions. Are there applications you know using vector functions and not just vectors
@Math_oma
@Math_oma 8 жыл бұрын
+Alberto Marquez Oh sure, a lot of what we call vector calculus was originally done using quaternions. I'm pretty sure you can get the standard divergence and curl operators out of multiplying by a quaternion with the del operator in the vector part.
@clementesantiago1763
@clementesantiago1763 4 жыл бұрын
ijk=-1 disturb too much. What happens if I square both sides of the ecuation?
@MuffinsAPlenty
@MuffinsAPlenty 4 жыл бұрын
One thing to keep in mind here is that quaternion multiplication is _not_ commutative. For example, ij is _not_ equal to ji. One of the rules you're used to about exponentiation distributing over multiplication, i.e., (ab)^2 = a^2*b^2, actually _relies_ on commutativity of multiplication. Why? Technically, (ab)^2 = (ab)(ab) = abab. If multiplication is commutative, then abab = aabb = a^2*b^2. But if multiplication isn't commutative, it's not necessarily true that abab = aabb. So, let's look at what happens when you square ijk. You don't get i^2*j^2*k^2, rather, you get ijkijk. This ends up being 1, by definition.
@rohanbandaru
@rohanbandaru 4 жыл бұрын
How is the equation at 9:10 even possible? Shouldn't i*j*k = -1^1.5? How do i = j = k = -1^0.5 multiply together to get -1?
@MuffinsAPlenty
@MuffinsAPlenty 4 жыл бұрын
i, j, and k are all different square roots of -1. Different square roots don't have to multiply together to give the number you're interested in. For example, 2 and -2 are both different square roots of 4. 2(-2) = -4, not 4. Even with the real numbers, you can't just write all of the square roots of 4 as 4^0.5. You need some way to distinguish the two square roots, and we use direction (one being positive and one being negative). For the quaternions, you get _lots_ of square roots of -1, 6 of them, actually! This requires that we need more "directions" for square roots. You can think of i, j, and k as directions that these square roots live in. One of the other important things to keep in mind is that quaternion multiplication is not commutative, so ij is not equal to ji. This often messed people up when they try to do computations with quaternions for the first time.
@rohanbandaru
@rohanbandaru 4 жыл бұрын
@@MuffinsAPlenty Ohh thanks this really helped me understand.
@darovan4398
@darovan4398 7 жыл бұрын
You are a legend ! Thanks for a wonderful lecture
@HD-yq9jx
@HD-yq9jx 8 жыл бұрын
Thanks for your effort, it is a good work, but you didn't give any introduction about quaternions , definitions and use only the algebra. I hope you can add an introduction in future so it will be a complete session about quaternions. In general your are a good communicator.
@Math_oma
@Math_oma 8 жыл бұрын
+Hazem Demrdash I'm not quite sure where I could have started other than just saying that quaternions are 4-vectors with a special multiplication rule. I could have gone into the history, where Hamilton was looking for a conservative extension to the complex numbers which would model 3D space, but that would have lengthened the video. Is there any specific introductory concepts about the quaternions that you think were not included in this video?
@maxwellsequation4887
@maxwellsequation4887 3 жыл бұрын
I LOVE THIS CHANNEL!!!! This was soooooooooo awesome!
@eliasbrassitos1
@eliasbrassitos1 5 жыл бұрын
What a nice and clear explanation, thank you!
@Tr0lliPop
@Tr0lliPop 4 жыл бұрын
I am confused. why is ijk not equal to -i, and instead equal to -1? if two numbers are both the square roots of one, would'nt that make them all the same number? that would mean that ijk = -1 x (i or j or k). but it seems to not be the case. edit: wait. j times k is i? but they are all roots of one? why is that one of them multiplied with themselves equal to -1, but 2 of them multiplied with each other equal to the 3rd one? edit 2: wait why is ab = -ba? edit 3: ok so apparently I am trying to learn undergrad math in 9th grade just because I was curious what quaternion means
@amisus1
@amisus1 6 жыл бұрын
I'd like to see more applications of quaternions; in gyroscopes for example. Nice and clear lecture, thanks!
@silverlining6824
@silverlining6824 4 жыл бұрын
All lectures on quarternions are given by mathematicians, via complex numbers. Maybe the following practical application will motivate the need. Rotations in 3D can be expressed in terms of two angles, theta and phi. One of them lies in the plane formed by two of the orthogonal axes, say X and Y; and the other in the plane involving the third axis, say X and Z. Any 3D rotation can be expressed as sine and cosine of theta and phi. So, what is the problem? Why are the quarternions useful? Trigonometric functions such as sine are computed as infinite series. (Look up Taylor Expansion for the Sine and Cosine functions). Exact solution involves infinitely many terms. Bit real time gaming demands fast computation. Yet, truncation of a series as approximation necessarily involves errors. So what is one to do? This is where quarternions come in; they involve only dot and cross products of real numbers - very fast and at the same time exact and precise. Now, are you motivated to follow this or any other presentation on quarternions?
@tjzx3432
@tjzx3432 6 жыл бұрын
I find a good way of thinking about quaternions is to imagine to objects approaching to impact in order to cause the sum vector. This is of course a non elastic reaction, however the complex solution would be elastic and would have a loss of energy equal to the elastic energy expended. Following this train of thought this would mean that 5th dimensional dynamics would include internal variables that affect the overall motion, this would be analogous to planets colliding, or in qed with atomic emissions and interactions. But this concept seems very useful, so long as you are able to intuitively integrate the imformation.
@ntt3597
@ntt3597 4 жыл бұрын
Sir your content is amazing. Thank you so much.
@elvisnobregadealcantara642
@elvisnobregadealcantara642 7 жыл бұрын
Thank you so much for the video, it is very informative. If I may have the chance to try to improve your work, I would say to you use different colors in the writings, that add information to the image
@17dikeman
@17dikeman 8 жыл бұрын
01/22/'17 Very good tutorial. Some suggestions: 1) Graphics: hard to follow your faint cursor on a black background. 2) Can you include a commentary on: since i^2 = j^2 = k^2 = -1, why doesn't i = j = k? Is it 'cause they "point" into different orthogonal directions? 3) When written in the form (scalar, vector), why not as a 4-vector where you have and r hat preceding the i, j & k hat symbols. P{lease advise. Thank you, LC
@Math_oma
@Math_oma 8 жыл бұрын
+Lon Caracappa 2) Could you explain to me why you think i^2 = j^2 = k^2 = -1 implies that i=j=k? I've been asked this question before but I'm wondering why you think so before I answer. 3)I'm not sure exactly which notation you're getting at. Could you write out an example?
@17dikeman
@17dikeman 8 жыл бұрын
Hi, Thanks for getting back to me. So, in 2), I ask how is it explained that since i^2 = j^2 = k^2, why does that not imply that i = j = k from the laws of exponents and simple algebra? I know these quantities are orthogonal, but how is that handled when asked by those whose experience is limited to algebra? ...or even less? and, 3) It is stipulated that the quaternion is formed as a four dimensional number, namely (a, b, c, d) which is then further expanded to a + bi + cj = dk. "a" is termed the scalar. If it is 4-imensional, why can't/doesn't the "a" term have its own unit vector, such as r-hat, where r^2 also = -1? Is "a" the magnitude of the quaternion and the vector of bi + bj = dk form it's direction cosines then? Please advise. Thanks for your time here. Best regards, LC
@Math_oma
@Math_oma 8 жыл бұрын
+Lon Caracappa Okay, for your question in 2), that taking the square root of both sides of i^2=j^2 and saying i=j or perhaps i=-j isn't a valid move. The square root is a bit tricky in quaternions. In the case where we ask how many quaternions square to -1, the answer is infinitely many as opposed to none in the reals and two in the complex numbers. For 3) you can think of that initial scalar part as being a multiple of a unit scalar (1) if you wanted to, but it doesn't change anything algebraically since 1 squares to 1. So, you could write a quaternion like 6+i-2j+3k as 6*1+1*i-2*j+3*k to make the basis vectors {1,i,j,k} clear. Just like in complex numbers, you _could_ do this but algebraically it's immaterial. It's difficult to give a general interpretation to what the scalar part of the quaternion means, but it's not the magnitude. The magnitude of the quaternion a+bi+cj+dk is sqrt(a^2+b^2+c^2+d^2) as you might expect.
@marcofe82
@marcofe82 6 жыл бұрын
Your explanation is really simple and perfect! Another question, which kind of graphics tablet You used? May I have the model? Thank you so much!
@lyrimetacurl0
@lyrimetacurl0 7 жыл бұрын
Here's an angry comment: "you didn't cover how it actually applies to 3d rotations / transformations." I am still left imagining what exactly i, j and k actually represent. I will find out from a different video, I guess. Currently my understanding of 3D is "six degrees of freedom" (covering position / sliding and rotation) but I have the feeling quaternions also cover skewing / stretching (which are generally not required in 3D games). Also not heard if Octonions are required for 4D, etc (and if so, why would the number of dimensions for transformations in d spacial dimensions be 2^(d-1)?). But that would be for a different topic.
@DanielArnett
@DanielArnett 5 жыл бұрын
Check out this webapp, and specifically hit the switch at the middle top so it shows the sines and cosines. The video is great too, but in the sine/cosine form it clearly shows how the quaternion is defining an axis and then rotating by an angle around that axis. eater.net/quaternions/video/intro
@unternerdsbyalexandraelisa7550
@unternerdsbyalexandraelisa7550 6 жыл бұрын
Thanks for this introduction to quaternions!
@jedmaegraith417
@jedmaegraith417 4 жыл бұрын
Please correct me if I am wrong, but wouldn't the answer to the (14:32) substituted chjk x-i (4 across, 3 down)be *Minus* chi when multiplied? Thanks,
@cupajoesir
@cupajoesir 6 жыл бұрын
very well explained. you have just gained a subscriber.
@Kurdoman
@Kurdoman 4 жыл бұрын
You are excellent in explaining it. Thanks for the effort
@garrytalaroc
@garrytalaroc 4 жыл бұрын
What's the difference between 4d vector and Quaternion?
@Kteezer
@Kteezer 8 жыл бұрын
If you imagine a 3D plane where the x axis is i, the y axis is j, and the z axis is k, then you can use the right-hand rule to cross two of the axis in order to easily recreate the multiplication table you made :)
@Math_oma
@Math_oma 8 жыл бұрын
+Kteezer Right. This multiplication is the historical precursor of the cross product.
@LanceGomez
@LanceGomez 5 жыл бұрын
Hamilton is the bo rai cho of mathematics. It's crazy but it works! I juggled around proving those and damned but it worked.
@DavidFosterZen
@DavidFosterZen 8 жыл бұрын
As I think about it, I recall using imaginary numbers with Mobius transforms (conformal transformations) and of course, fractals like the Mandelbrot set. Now, I have to wonder, if we can put Quaternions in place of the complex numbers in these things, do we get anything interesting?
@Math_oma
@Math_oma 8 жыл бұрын
I think I've seen some quaternionic Mandelbrot sets either on KZbin or elsewhere online. Here's one link I found: kzbin.info/www/bejne/d6qvp6yoip6Gg7c I couldn't tell you anything about the Mobius transform; I haven't worked with it.
@monatsend
@monatsend 7 жыл бұрын
at 12:27 you multiply both sides by j. why do you get jjk=ji and not jjk=ij? How do i know where I should write that j down? Is there a specific rule?
@Math_oma
@Math_oma 7 жыл бұрын
+monatsend Just keep left-multiplication distinct from right-multiplication.
@bin9294
@bin9294 7 жыл бұрын
why?
@myetis1990
@myetis1990 6 жыл бұрын
I want to offer an alternative method instead of look up table of multiplication, suppose that positive signed direction is i -> j -> k and negative signed direction is k -> j -> i if you multiply consecutive two items then result is the successor(or third) item and place the sign with respect to the direction for example, ij is positive direction so result is +k ji is negative direction so result is -k ki is positive direction so result is +j ik is negative direction so result is -j and so on
@marksebastian6689
@marksebastian6689 3 жыл бұрын
Now, can we reduce this to a "simple" script to actually do such multiplications in a timely manner?
@lvlotives
@lvlotives 3 ай бұрын
Many thanks for sharing your knowledge 😊
@clydewebster9295
@clydewebster9295 7 жыл бұрын
I was under the impression that vectors can only be represented as summations of ai + bj + ck where i, j and k were unit vectors in their dimensions. It seems almost random that we apply i, j and k to the the last 3 columns of the quaternion. in the quaternion (a, b, c, d), when expressed in the summation form, why is 'a' not coupled with the unit vector in its dimension?
@Math_oma
@Math_oma 7 жыл бұрын
+Clyde Webster You could think of the scalar term being coupled to a unit vector in its own direction, perhaps writing a*1+b*i+c*j+d*k, but there's little algebraic need to write 1 - the interesting algebra occurs with i,j, and k. There's actually some confusing terminology when dealing with quaternions due to the use of the word _vector_. I introduce quaternions here as living in the vector space R^4, so each quaternion can be thought of as a 4D abstract vector in that sense, recalling the broad sense of the vector concept. The way quaternions get used in practice lends to a different interpretation of the four components, where one part is the scalar part and the remaining three, each coupled to i,j, and k are the vector part, but vector understood in a more concrete sense. This confusion happens because quaternion algebra developed before vector calculus. Eventually, the scalar part of the quaternion was removed leaving the vector part but the quaternion multiplication rules became embodied in the dot and cross products, which are usually presented as operations on vectors, removed from quaternions.
@clydewebster9295
@clydewebster9295 7 жыл бұрын
Thank you for taking the time to respond. I guess if we're talking in the general sense it makes sense to have a 4D vector that describes something in R4. But than attaching the unit vectors in orthogonal R3 to 3 of four of these dimensions is what gets me... perhaps this is what I'm doing wrong. Are i, j, and k unit vectors in R3 or something else?
@Math_oma
@Math_oma 7 жыл бұрын
+Clyde Webster We have four basis vectors {1,i,j,k} and then all linear combinations of these basis vectors are quaternions in this formalism. The i,j,k have special algebraic significance because remember we're multiplying vectors here so it's useful to keep the i,j,k so that the multiplication is apparent. You could then say that what we call the vector part of the quaternion is that subspace of R^4 where we let the scalar part go to zero, which is isomorphic to R^3. I actually don't like this way of treating quaternions because their geometric action is not four dimensional, it's three dimensional. This leads to confusion where people try to visualize quaternions as arrows in R^4 - this is fine, but tells you nothing. To understand their geometric action requires geometric algebra, where the quaternions arise naturally as a subspace of the geometric algebra of R^3 and the rotational nature is exemplified by visualizing what we call the vector part as an oriented patch of area called a bivector, which tells you in which plane the rotation occurs and the size of the area tells you how much to rotate some geometric object. This way of presenting quaternions in this video is easy but superficial and not the proper way to think of quaternions, in my opinion, but people are more used to this classical way of thinking of quaternions as things living in R^4 as opposed to being a subspace of the geometric algebra of R^3. The superior view will be a topic for my geometric algebra series.
@clydewebster9295
@clydewebster9295 7 жыл бұрын
Thanks, I had not come across the concepts of isomorphism between vector spaces and vector spaces being subsets of other vector spaces with more dimensions, but I do see the logic in it. Would it be correct to say that in the true definition of quaternions the R3 subspace does not necessarily have to be the orthogonal vector space we know and visualise? Or is the orthogonality of the vector component of the quaternion a function of how quaternions are multiplied, i.e. spitting out dot, and cross products? I think I might have to catch your geometric algebra series.
@Math_oma
@Math_oma 7 жыл бұрын
+Clyde Webster Here we could say that two vectors, x and y, are orthogonal when written in as quaternions, their quaternion product anticommutes, xy=-yx. I have some later videos in the quaternions playlist which make the calculations more explicit. In fact, for vectors, the dot product between x and y is -1/2(xy+yx) and the cross product is 1/2(xy-yx) where the product between x and y is the quaternion product. Notice now that the quaternion product between x and y can be written as the negative dot product plus the cross product, giving scalar and vector parts, respectively. This is actually quite similar in form to the geometric product in geometric algebra. But if I had introduced the dot product, which is the normal way in which we talk about orthogonality, we would say that two vectors are orthogonal precisely when they dot to zero.
@pavelp80
@pavelp80 7 жыл бұрын
I have one question about complex numbers. Solution of quadratic equation has: - two or one real solutions representing intersection of parabola with X axis - two complex solutions Is there any special meaning of those two complex numbers?
@carultch
@carultch 2 жыл бұрын
Yes. Take the original parabola in the real numbers, let's call it z=x^2 (you'll see why I'm not using y, soon enough). Call the original parabola P1. Put the real number inputs on the x-axis, and the imaginary number inputs on the y-axis. Make an identical copy of P1, and call it P2. Rotate P2 by 90 degrees around the z-direction vertical axis through the vertex. Now mirror P2 about the horizontal plane through the vertex. You now have the extension of the original parabola to the domain of real and imaginary numbers. The roots of the quadratic equation that are complex, will correspond to where parabola P2 intersects the x-y plane. The x-coordinate of these intercepts is the real part of the complex root, and the y-coordinate is the imaginary part. If we had a 4th dimension to work with, we could form the full continuous parabola of all the complex inputs in all its glory, and include the complex outputs. But, because our range is restricted to real numbers in the z-direction, it gets difficult to visualize. The parabolas P1 and P2 as I defined, are the intercept where the complex part of the solution to z=x^2 equals zero, and z is exclusively real. Many times, color shading is used for depicting the imaginary part of z, so that it ends up looking like a heat map on a 3-D surface. You may also see color shading to indicate the angle of the imaginary number, and Z-position to indicate the magnitude, where the x-y values correspond to the input to the function.
@DrDanielHoward
@DrDanielHoward 4 жыл бұрын
Thank you for the explanation and understanding of the Hamilton graffiti.
@jennifersiagian
@jennifersiagian 8 жыл бұрын
I guess I am a thorn in your side.. but really Thank You for freely sharing what you know with us.. I re share everywhere.
@Math_oma
@Math_oma 8 жыл бұрын
+jennifer siagian Not at all; I enjoy reading comments and talking to my subscribers.
@jennifersiagian
@jennifersiagian 8 жыл бұрын
Mathoma really I am on a Math a thon with you.... your so beautiful Thank the Father He blessed your mind
@jennifersiagian
@jennifersiagian 8 жыл бұрын
Mathoma ps I re share all your Math google + g night (but I am still here dong the playlist)
@Math_oma
@Math_oma 8 жыл бұрын
+jennifer siagian I appreciate it! Glad to see you're enjoying and learning from the videos.
@jennifersiagian
@jennifersiagian 8 жыл бұрын
Mathoma where's life there's hope hah ok can you do some teaching on Fibonacci sequence? I love patterns.. ok g night
@libertyhopeful18
@libertyhopeful18 8 жыл бұрын
do you mind if i ask what your particular field of study is? is it more mathematics or physics. i was reading a book on quantum physics, and found that when the pauli matrices are considered along with the 2x2 identity matrix, it forms a quaternion. now i have only really heard about quaternions from this video. but I'm curious if you have any knowledge of this as it applies to quantum mechanics. book is called quantum mechanics written by leonard susskind
@Math_oma
@Math_oma 8 жыл бұрын
+libertyhopeful18 It's actually neither - I'm a medical student with a research focus in neuroscience. I'm merely a wannabe mathematician. I'm extremely rusty on quantum mechanical stuff but I do know the Pauli matrices are basically a rediscovery of quaternions and (when multiplied by i) are isomorphic to the quaternions.
@xorxpert
@xorxpert 6 жыл бұрын
OMG. Your handwriting is 😍
@gewoonjulian5917
@gewoonjulian5917 4 жыл бұрын
You're great, thanks for this great explanation
@SandburgNounouRs
@SandburgNounouRs 7 жыл бұрын
Hello, When you say "multiply 2 quaternions together", could you also say it is a cross product of 2 vectors of dimension 4 ?
@Math_oma
@Math_oma 7 жыл бұрын
+SandburgNounouRs The cross product is really a three-dimensional concept (and 7 if you're masochistic) so I wouldn't want to explicitly say that this operation is a crossing of vectors. Remember that the cross product in three dimensions takes in two vectors and outputs a vector orthogonal to both inputs, has a length equal to the area of the parallelogram swept out by the input vectors, and is oriented by the right-hand rule. Such a thing only exists in three dimensions because as soon as you go into four-dimensions, there is no vector that has these properties. Simply put, in 3D if you take a plane, the set of all vectors orthogonal to the plane is a 1D subspace (a line) whereas when you move to 4D the set of all vectors orthogonal to a 2D subspace (plane) is a 2D subspace. Notice how the dimensions of the subspaces always add up to the dimension of the underlying space, e.g. 2+1=3 and 2+2=4. However, the whole concept of the cross product actually arises from quaternion multiplication, not the other way around. If you look further in this playlist, you'll see that the cross product (and dot product) is a part of quaternion multiplication.
@joer7151
@joer7151 7 жыл бұрын
Do you have a follow-up quaternion video? I'm, for one, interested
@Math_oma
@Math_oma 7 жыл бұрын
+joe ren Yes, check out my quaternions playlist.
@harshitagupta4430
@harshitagupta4430 4 жыл бұрын
Explained so well💖
@ViliamF.
@ViliamF. 5 жыл бұрын
0:38 Well, that's a very unusual way of drawing N
@BrettEskrigge
@BrettEskrigge 8 жыл бұрын
Nice video as always. I've known of quaternions since Numberphile first covered them, and I have been curious since then as to how i^2=j^2=k^2=ijk=-1 was originally come up with. That is, what is the justifiable reason that this equation true? I understand that mathematics is about pushing our understanding, and I can understand the idea about having 3 different complex numbers in quaternions. But I don't understand the ijk=-1 part Is there any other reason as to why this is true other than, 'let this be true'?
@Math_oma
@Math_oma 8 жыл бұрын
The equation ijk=-1 seems to me to be more of an insight as to how to set up the definition of quaternion multiplication than a true statement. Once you experiment around with that equation i^2=j^2=k^2=ijk=-1 and arrive at the definition, you could just throw away the ladder and just say that quaternion multiplication is more fundamental and then calculate: (0,1,0,0)*(0,0,1,0)*(0,0,0,1)=(-1,0,0,0), which is another way of writing ijk=-1. This is roughly analogous to how one might treat complex numbers; instead of philosophizing over what i^2=-1 means, what we do is just follow the definition and calculate (0,1)*(0,1)=(-1,0). There may be a more satisfying answer regarding ijk=-1 from the point of view of "geometric algebra", in which some mathematical statements are grounded in the geometry of 3-dimensional space. But that requires talking about things like the inner product and wedge product and I've only just started reading about that area of math. I might make a little video series on it in the future, seeing as how it doesn't seem very difficult to do.
@BrettEskrigge
@BrettEskrigge 8 жыл бұрын
+mdphdguy1 Alright, I can understand that. I have a brief understanding of inner products, so I'll just treat ijk=-1as being an inner product of quaternions. Thank you
@Math_oma
@Math_oma 8 жыл бұрын
If I remember correctly, in geometric algebra, there are things called bivectors which are similar to the quaternions and multiply in a way to generate ijk=-1. In 3 dimensions, there are three bivectors called, e_12, e_23, and e_13, which all square to -1 and its also true that e_12*e_23*e_13=-1, where * is something called the geometric product. As I said, I've only just started reading about it so I would look up some other reference to read about it.
@BrettEskrigge
@BrettEskrigge 8 жыл бұрын
Yeah alright, will do. Thank you very much
@josephcote6120
@josephcote6120 6 жыл бұрын
OK, this is how I understand it. You know that multiplying by i is the same as rotating by 90 degrees in the complex plane? To describe a three dimensional point you need three planes; j and k are the 90 degree rotations in those perpendicular planes. And it is just defined so that if you make all three rotations you end up pointing the opposite direction. For a concrete example, say the starting point is the north pole of the earth. i represents rotation in the plane that cuts through 0 degrees longitude. Moving that point by i beings it down to the equator, doing it again (i^2) beings it to the south pole. Call j the 90 degree rotation through the plane of the equator, j moves 90 around and j^2 moves 180. Make k a 90 degree rotation in the plane of 90 longitude, same thing. Here comes the prize. Start at the north pole, multiply by i, point's on the equator, now multiply by j, point has swing 90 east making an L shape, last multiply by k from that point and it takes you to the south pole (same as multiplying by -1 to begin with.) so i^2 = j^2 = k^2 = ijk = -1
@baqtronic7704
@baqtronic7704 6 жыл бұрын
Great explanation, congrats!
@ΝικόλαοςΜελάς-π2γ
@ΝικόλαοςΜελάς-π2γ 8 жыл бұрын
what is mathoma stands for? there is also a greek word very close (mathima) which means lesson.
@Math_oma
@Math_oma 8 жыл бұрын
+Νικόλαος Μελάς In real life, I'm a medical student and we have this pathology review book called _Pathoma_, that nearly every medical student would know about so my channel name is just an homage to that book. You could probably tell me more about the Greek, but the suffix -oma means _mass_ or _tumor_ so my channel is a giant math tumor, basically.
@ΝικόλαοςΜελάς-π2γ
@ΝικόλαοςΜελάς-π2γ 8 жыл бұрын
the term mathematics internationally comes from the Greek language. Μore specific from the ancient greek word μαθηματικός or μάθημα or μανθάνω or μαθαίνω( which means get (through study) skills, knowledge, education, experience). In Greece, the word "μαθηματικά"(or mathimatics) came to be narrower and more technical meaning , meaning the "study of mathematics" (in the current sense of the word), and even from the Classical Age. It meant learning of mathematical art. In real life i am an engineer student and at the moment as part of a project i am trying to express the change in rotation of an object in three-dimensional space. Thanks to you i am one step closer to my goal!
@ΝικόλαοςΜελάς-π2γ
@ΝικόλαοςΜελάς-π2γ 8 жыл бұрын
The suffix -oma cames for the greek suffix-ωμα. for example carcinoma , in greek καρκίνωμα.
@carultch
@carultch 2 жыл бұрын
@@ΝικόλαοςΜελάς-π2γ The TH pretty much gives it away, that a word likely has a Greek origin. Since you have theta and delta that make its two sounds. Latin has no such phoneme.
@SamuelHabekotte
@SamuelHabekotte 4 жыл бұрын
"These Quaternions very famously find application in those who create video games" *busted* Thank you for this very informative video
@cortsmith1981
@cortsmith1981 7 жыл бұрын
What program did you use to draw with? I have seen this program used here and there lately with game development videos and such.
@Math_oma
@Math_oma 7 жыл бұрын
+Cort Smith I use SmoothDraw4 with a Wacom tablet.
@seanocansey2956
@seanocansey2956 5 жыл бұрын
Thanks man, these are really helpful!
@aikensource
@aikensource 8 жыл бұрын
I'm here because I'm trying to use Quaternions for rotation in 2D Unity game dev. It's hurting my brain, but I did learn that the w component (x,y,z,w) of a unity quaternion may be a scalar. lol.
@Math_oma
@Math_oma 8 жыл бұрын
+Sparkplug1034 Yeah, it's possible that the "w" is the scalar there and they write the scalar as the fourth component (whereas I write it first). Let me know if you have any questions (comment or email me). I also have further videos on this rotation topic.
@aikensource
@aikensource 8 жыл бұрын
I'm trying to do a Quaternion Slerp in Unity so an enemy game object gradually rotates to turn towards the player before firing a weapon. I spent 2 days working on the trig before finding out that unity quaternions have looking at something built in :(
@aikensource
@aikensource 8 жыл бұрын
DUtOO Thank you. I did start using Quaternion.Euler(Vector3) , but because of what I need my objects to do, I am using other methods. Thank you though!
@420praiseit2
@420praiseit2 8 жыл бұрын
Are you rotating the y-axis (euler) of the enemy or z-axis (euler) of the enemy weapon? In either case, you're overcomplicating it.
@aikensource
@aikensource 8 жыл бұрын
crestfallenllama I'm not over complicating it in the slightest, thank you though. I'm rotating the Z axis. And it does rotate correctly. It's not supposed to just rotate though. I'm coding it's AI, using some quaternions and it's just new to me.
@jadensmiley6297
@jadensmiley6297 3 жыл бұрын
Thank you! I finally understand!
@diamondman4252
@diamondman4252 8 жыл бұрын
Excellent video, but I really wish the 2nd half of the chart was not left as an exercise. Very frustrating.
@georgekyriazopoulos6985
@georgekyriazopoulos6985 2 жыл бұрын
Excellent presentation
@dmitrykolesnikovich
@dmitrykolesnikovich 3 жыл бұрын
but why ijk equals to -1 please?
@APaleDot
@APaleDot 2 жыл бұрын
Because ij = k, so ijk = kk = k^2 = -1
@jonvance69
@jonvance69 6 жыл бұрын
Great video! Big shout to the Irish mathematician ☘️.
@EngineerNick
@EngineerNick 7 жыл бұрын
Really nice explanation great job :)
@Aidiakapi
@Aidiakapi 8 жыл бұрын
i was trying to make a jk, but it turned out it was already equal Also, I'm angry!
@Math_oma
@Math_oma 8 жыл бұрын
+Aiddiakapi I guess I'm not sure what you mean in your first sentence. Good, get angry!
@Aidiakapi
@Aidiakapi 8 жыл бұрын
+mdphdguy1 jk = joke, i = jk
@Math_oma
@Math_oma 8 жыл бұрын
+Aidiakapi Oh, I see. I didn't know "jk" was an abbreviation for "joke". Doesn't seem like it's a word that needs to be abbreviated.
@Aidiakapi
@Aidiakapi 8 жыл бұрын
mdphdguy1 It is definitely not needed, only for bad puns occasionally :).
@alexanderradoslavov1459
@alexanderradoslavov1459 8 жыл бұрын
its abbreviation of "just kidding" too
@brendawilliams8062
@brendawilliams8062 4 жыл бұрын
Thankyou for the generosity in sharing. Thankyou.
@rachel_rexxx
@rachel_rexxx 3 ай бұрын
Why is the first term of the quaternion sans unit vector?
@rachel_rexxx
@rachel_rexxx 3 ай бұрын
Nevermind, the first term is a scalar
@Delrida
@Delrida 7 жыл бұрын
Doesn't it disobey the fundamental theorem of algebra that a polynomial of degree two has 3 roots. Namely x^2= -1 X = i , j , k .....
@Math_oma
@Math_oma 7 жыл бұрын
+Maohammed Merhi A good question but remember that the fundamental theorem of algebra is a statement about complex numbers, not quaternions.
@Delrida
@Delrida 7 жыл бұрын
Mathoma oh that makes more sense then. Thanks :)
@omegaPSI2006
@omegaPSI2006 6 жыл бұрын
Where were you all this time? I'm so angry I just found this video out instead of years ago!
@26mridul
@26mridul 4 жыл бұрын
in complex number we know i is square root of -1. How are j and k defined?
@carultch
@carultch 2 жыл бұрын
They are defined as other numbers that you can square, to get -1. The reason we have the imaginary, joke, and kooky numbers, that are all defined as square roots of -1, is so we can use them to keep track of directions in 3-D space.
@sebastiandocktor8190
@sebastiandocktor8190 7 жыл бұрын
thank you for the video. - good explained
@matisowagm
@matisowagm 7 жыл бұрын
if i squared is equal to k squared and j squared then i is equal to j and k. i, j and k are all equal to the root of minus one. how is then the cube of i (jkl) equal minus one if its just root of minus one cubed? thats minus one times root of minus one. i dont get it.
@Math_oma
@Math_oma 7 жыл бұрын
+Sova A couple things. Remember that the commutative law is false in the quaternions and a subtler point is that there is no unique number called sqrt(-1) in the quaternions. In the quaternions, the equation x^2=-1 has infinitely many solutions, so writing sqrt(-1) in the quaternions does nothing but add confusion.
@fedorsykora272
@fedorsykora272 7 жыл бұрын
What are i , j and k?
@Math_oma
@Math_oma 7 жыл бұрын
+FEDOR SYKORA The three complex units making up the vector part of the quaternion.
@fedorsykora272
@fedorsykora272 7 жыл бұрын
got it thanks
Quaternions as 4x4 Matrices - Connections to Linear Algebra
14:50
3D Rotations and Quaternion Exponentials: Special Case
24:01
Mathoma
Рет қаралды 100 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
17. Введение в кватернионы
19:58
ЦИТМ Экспонента
Рет қаралды 34 М.
Visualizing quaternions (4d numbers) with stereographic projection
31:51
Something Strange Happens When You Keep Squaring
33:06
Veritasium
Рет қаралды 8 МЛН
What is mathematical thinking actually like?
9:44
Benjamin Keep, PhD, JD
Рет қаралды 98 М.
a quaternion version of Euler's formula
20:33
Michael Penn
Рет қаралды 79 М.
What does it feel like to invent math?
15:08
3Blue1Brown
Рет қаралды 4,2 МЛН
10 mins GameDev tips - Quaternions
10:12
sociamix
Рет қаралды 116 М.
How quaternions produce 3D rotation
11:35
PenguinMaths
Рет қаралды 102 М.
How to Take the Factorial of Any Number
26:31
Lines That Connect
Рет қаралды 1,3 МЛН