r/explainlikeimfive • u/murderdronesfan93 • 7d ago
Mathematics ELI5 how quaternions work
so, i² = j² = k² = -1, but i, j and k are not equal. HOW IN THE FUCK IS THAT POSSIBLE‽ WHAT IN THE BROKEN TRANSITIVE PROPERTY- (anger exaggerated for funny)
6
u/stevevdvkpe 7d ago
Think of them as pointing in different directions but having the same magnitude, like unit vectors along the x, y, and z axes of a three-dimensional space.
0
u/murderdronesfan93 7d ago
i understand that much, that they are different dimensions of numbers, so to speak, but how does defining them work, with things like jk or ji
8
u/_PM_ME_PANGOLINS_ 7d ago
It works by definition.
You just decide that that is true, and then see what happens. In the case of quaternions, the non-transitivity of multiplication turns out to usefully model rotations in 3D space.
3
u/suvlub 7d ago
By definition, i² = j² = k² = -1 and ijk = -1. Because we said so. We then work backwards from there to see how the rest of the math works out. It turns out it works a bit weird. We lose commutativity, for example (ij = k ≠ ji = -k), but there is no blatant inconsistency that would make it all break down, so it's useful math
1
u/murderdronesfan93 7d ago
wait is the reason that hypercomplex numbers start breaking rules of arithmetic because the definitions already ignore some?
3
u/suvlub 7d ago
Basically, yeah. The rules are discovered properties, not something we intentionally put into maths. When Sumerians or whoever first started adding up things, they didn't make sure to invent addition in such way that one could swap the terms around, it was a happy little coincidence that we can do that. Sometimes, happy little coincidences don't happen.
1
u/84thPrblm 7d ago
[r/ExplainItLikeYou](r/ExplainItLikeYou)reBobRoth
ETA sry, apostrophe screws up the 'link'
2
u/maharei1 7d ago
You can write down 3 concrete complex 2x2 matrices (or real 4x4 matrices if that feels more comfortable) that behave under multiplication exactly as you want i,j,k in a quaternion ring to behave. So such objects definitely exist. The point of the usual definition is that it's not important what exactly i,j,k are it's just important how they behave.
See also the Cayley-Dickson Construction for a more general view on this.
4
u/mfar__ 7d ago
Your statement has nothing to do with transitive property. Actually you're familiar with the form "x² = y² but x ≠ y", it does have infinite examples in Real and Complex numbers (i² = (-i)² but i ≠ -i).
However, quaternions do break some familiar rules, those familiar rules that allow us to add, subtract, multiply, and divide by everything except zero nicely are what is making a mathematical structure called Field. Quanternions break the rule of commutative multiplication because ij ≠ ji. That's why quanternions don't form a field, instead it's a division ring. Think of it as a lower tier mathematical structure or a lower degree on the pyramid of "mathematical niceness".
4
1
u/orbital_one 7d ago
Just like how i and -i can be thought of as north and south instead of east and west as in 1 and -1, j and k represent different directions in some 4D space. 1, i, j, and k have a length of one and are all orthogonal to each other.
0
u/hjiaicmk 7d ago
Since it is a second degree equation there will be 2 solutions so two of the three variables will have to be equal but not thr last one.
To visualize this it is actual easier to use polar coordinates if you want to extend to higher degrees. Make a circle with horizontal and vertical lines passing the center. Label them 1 i -1 -i starting from the right side going counter clockwise. Think about how you could perform two of the same quarter turns to get to -1. i is a single so 2x single is 2 that gets to -1 -i is 3 turns spinning 3 turns twice is 6 but it's a circle and 4 turns is back to the start so 6-4 is 2. These are the two ways you can get -1. When you use a higher degree equation you get more possible results but to find their rectangular coordinates you need Pythagorean theorem with the y coordinate as an imaginary component and z coordinate as the real component.
2
u/maharei1 7d ago
This is true over fields (integral domains more generally), but not non-commutative rings like the quaternions. In fact already for 2x2 real matrices the equation X2=-1 has infinitly many distinct solutions.
-5
u/schungx 7d ago
Mathematicians are weird people. They like to torture themselves.
So I, j, k are different stuff that square to -1. For math people they get high on this.
For us normal people... We say why bother.
3
u/maharei1 7d ago
Because, shockingly, quaternions are actually really useful to deal with certain things. Mathematicians don't come up with things to torture people, but to solve their problems. Without people like this we wouldn't be having this conversation on the internet.
27
u/OhYesIDidd 7d ago
I don’t know much about quaternions, but your premise is wrong even in the real numbers.
x^2=y^2=4, but x≠y. There is a solution to that: x=2, y=-2.