by PurpleBoxDragon · 8y ago · 0 comments
Imaginary numbers are needed to take the square root of a negative number, and complex numbers result from combining the new numbers with the real numbers. Complex numbers also allow solving roots that aren't found in just real numbers.
But I have no similar comparison of what I can do with a quaternion or octonion that I can't do with a complex number. I remember seeing some w based number system derived from the cube root of either 1 or -1 (forget which, but w and -w were the solutions that weren't 1 or -1), but it did all the same things that complex numbers do and was considered mostly uninteresting.
It also seems like there is a pattern to go infinitely beyond octonions, but they all behave identical to octonions, but are the octonions even needed in the same way complex numbers are needed, or do they just make some math problems easier to work with?
So Hamilton was trying really hard to find a way to have 3-dimensional numbers that behaved nicely, and he couldn't do it. But he did find 4-dimensional numbers -- the quaternions. And they were really neat. You can use them quite well for classical mechanics, and electromagnetism, and even special relativity. So, why don't we?
We look at Maxwell's equations of electromagnetism today, and they're really nice, single-line vector formulas. You can also write them as nice, single-line quaternion formulas. Our notion of vector didn't exist at the time the quaternions were first used, and it was a boon to have quaternion notation to simplify some of these physical laws. Vectors and quaternions competed for a bit, and vectors won since they generalize to arbitrary dimensions.
Hidden inside of quaternion multiplication, you can find the three-dimensional versions of the dot product and cross product. And they do have some theoretically interesting properties for number theory and abstract algebra. In the end, however, sometimes items are discarded in favor of better items. I'd rate quaternions as one of the coolest items that ultimately wound up in the discard pile.
I don't know if that's significant but it was how I stumbled on the concept in high school when I was messing with Direct X.
If you just have two you can slerp (or not), but if you have a large number of them (weights from an animation system, for example), a basic weighted sum followed by normalizing is shockingly well behaved and extremely fast.
The subalgebras formed by scalar and bivectors (1, x^y, y^z, z^x)--or the monovectors and the pseudoscalar (x, y, z, x^y^z)--from a three-dimensional geometric algebra have a lot of the same mathematical properties as quaternions.
I don't know whether or not octonions have a similar relationship with a 4-D geometric algebra, where one dimension is a timelike dimension, because that is one gnarly mess of anticommutative, nonassociative math to wade through.
Quaternions tell you what happens if there are three different i's that have this property. And it tells that it leads to nice algebra that expresses 3d rotations very well (and even 4d if you believe the article).
Octonions tell what happens if there are seven such i's. And it leads to cool algebra that helps expressing.... we don't quite know yet.
Also considering other numbers of i's doesn't lead to anything coherent. Also considering different possibilities of what should be the result of multiplying one i by another different i doesn't lead to anything cohesive.
So... i^2=-1 apparently can have either zero, one, three or seven solutions and they have to have very specific relationships between themselves for calculations to make sense
Curious...
In math infinity turns up all the time so having there be exactly a finite number of anything feels weird.
https://en.wikipedia.org/wiki/Cayley–Dickson_construction
They're nuts, though.
No, you can blame Bourbaki for that. People such as V. Arnold decried the way mathematics is now presented[1].
It was from Hamilton's book that I learned what the word vector means and why it's used. It simply means carrier (as in malaria vector that you might heard from biologists) - and carries the space, by a translation!
Such lucidity is absent from all linear algebra books I've seen.
We need to go back to the presentation style of 19th century, where not only the result, but the thought process is presented. Today's papers look like they are written for formal verification systems.
[1]https://www.uni-muenster.de/Physik.TP/~munsteg/arnold.html
I also have an anecdote similar to yours regarding Hamilton and vectors: I think it was in one of the "Analysis Infinitorum" (Euler) that I found the natural logarithm being called the "hyperbolic logarithm" (it was the English translation of course). When I was a kid I was perplexed by how everyone seemed to insist on using e as the base of their logarithms and exponentials -- why the hell? Reading Euler's treatment of the subject would have been very satisfying then.
Sure. Unit quaternions form a double-cover of SO(3).
In other words, you can encode a rotation of a 3-dimensional object with a single unit quaternion.
But wait, there's more! You could do the same with a matrix, or a triple of angles. Why not do that?
Answer: interpolation. The "natural" way you want to go from one rotation to another corresponds to exponentiation of quaternions. If you linearly interpolate matrices, the intermediate steps will do something nasty: they won't even be rotations!
The natural way to implement the Arcball interface for rotations is using quaternions. Here[1], I have implemented it in ProcessingJS and wrote up the math behind it.
Quaternions (like complex numbers) can do other things too, but this alone is a good start. Also gives you intuition why they aren't commutative: because rotations in 3-space aren't.
TL;DR: Unit complex numbers = rotations of plane. Unit quaternions = rotations of 3-space.
PS: you shouldn't think of complex numbers as the solution to the problem of "taking the square root of -1". Think of them as "how can I multiply/divide a 2D vector by another 2D vector?" - there's only one way to do it sanely (multiply/divide lengths, add/subtract angles). This is what the complex numbers are.
Hamilton was trying to solve the same problem in 3D, and couldn't (turns out, it is not possible[2]), but solved it in 4 dimensions, and later found many applications for them.
[1] http://www.math.tamu.edu/~romwell/arcball_js/index.html
[2] https://en.wikipedia.org/wiki/Frobenius_theorem_(real_divisi...
It's also good to think about complex numbers in the way described here because it neatly abstracts the concept of numbers and maps them to a form of dimensionality. Great comment all around.
On an unrelated note, thanks for that Feynman integral trick post.
Using unit quaternions (aka versors) to code the rotation instead, you cannot lose a degree of freedom. 4x4 matrices also solve this problem, but quaternions are more mathematically efficient. They also give very smooth interpolation for computer-assisted animations.
Also related to spinors in quantum physics and exists as a subalgebra of some conformal geometric algebras.
You also have i
j = k, jk = i, ki = jWhat are these thing? I have no idea, nor did I know there are 4 more - and only 4 more.
From that point of view, quaternions and octonions solve problems in the same way more common numbers do, they just have different sets of properties and so help solving a different set of problems. Of course, they can only do this if we study them well enough to have a sufficiently large suite of concepts and relations in our toolbox.
IDK much about octonions, but quaternions have similar algebraic properties to rotation groups and can be used to encode rotations in 3D graphics.
No, they are not. That problem is not well defined. A symbol is not a solution.
Complex numbers are needed to solve the polynoms of a higher degree. Eg. x^4+x^2=-1 can be simplified to y^2+y=-1 with y=x^2 which wouldn't have a solu