The best algebras are spinny
Comments
Transcript
You're looking at the four-dimensional sine function.
And now you're looking at... the four-dimensional sine function.
I claim they're the same, but side-by-side they're clearly different.
They're calculated within different algebras.
This graph uses quaternions,
while the other uses their evil twin.
Each system is an algebra, a set of rules for how to add and multiply.
But these algebras multiply differently.
Let's start with 1-dimension. Addition translates the number line.
Multiplication, on the other hand, scales it.
This is a 1-dimensional algebra.
In 2-dimensions, we can add by translating each dimension independently.
For multiplication, we could scale independently, squishing the space.
Alternatively, we can scale uniformly and spin.
Here, a point is some amount of x plus some amount of y.
When we multiply two points, 3 types of things can come out: x squared, xy, and y squared.
The answer to the multiplication depends on what these things equal.
For example, we can define x squared to equal this point
xy to equal this point and y squared to equal this point This is the spinny algebra.
We can move the definitions to make new algebras.
Here's the squishy one.
And here's a flippy one.
Multiplication behaves differently across different algebras.
And this differing behavior extends to functions, like the square function.
I've colored points red if they land on the x axis when you square them.
Green points land on the y axis.
We can cube each point,
take the fourth power,
plot more complicated polynomials,
And even use a Taylor polynomial to graph the sine function in all sorts of algebras.
We can also graph cosine!
Though... not always. The polynomial has a 1 term, ... ...but what is 1?
This algebra has no neutral multiplication. We can't get x and y to their original positions.
This algebra doesn't have a 1. yuck.
Let's define x to act as 1.
That means x squared is 1,
and xy is simply y.
Now y squared is the only free definition.
When y squares to 1, we get the flippy algebra.
These transformations look nice, but don't let them fool you.
Flipping is bad. If we only flip halfway, the plane collapses into a line.
1 and y are not the same point, But a half flip collapses them together.
1 times a half flip is y times a half flip.
So we can't divide by the half flip. If we did, we'd get 1 equals y.
And that's not true! Flipping is bad, because it breaks division.
We only get division in the spinny algebra.
Any spin preserves the structure of the grid. Unless you multiply by zero... but oh well, we'll have to make some sacrifices.
This algebra is the complex numbers. y squares to negative 1. It's the imaginary unit i.
Functions in this algebra can feature linear symmetry, rotational symmetry,
and plenty of asymmetry too!
This multiplication table describes the algebra.
Although, we don't need this i times 1, since it's the same as 1 times i.
These 3 cells are our 3 definitions from before.
So we've found this nice 2D algebra. Let's try extending it to 3D.
With a new unit j we have 3 new products to define.
1j should just be j.
But the others have some wiggle room, so let's wiggle them!
Here, the grid is being multiplied by ij
Strangely, we get a different result if we multiply by i and then j.
This algebra is not associative, and moving the definitions around doesn't fix it.
Unless... we move that pesky ij into a 4th dimension.
A fourth-dimensional algebra lets us restore associativity.
Now, the two sides always match.
Let's check out the 4-dimensional cosine.
Red denotes the i axis, green is the j, and blue is ij.
We can explore this graph by moving the camera around,
Or we could change the definition of j^2, to move through algebra space.
Here, j squares to negative 1, just like the imaginary i.
The grids can spin in the i dimension,
and in the j dimension. This is the double spinny algebra! But it doesn't just spin. It flips too! And flipping is bad. Here's the multiplication table. The space of just 1 and ij forms the flippy algebra,
because ij squares to 1.
We can prove it, with some algebra.
So to prevent flipping, we must prevent this algebra.
How about this step, where i and j swap sides?
We can stop the swap by saying that ij is not ji.
This seems weird, but it's how 3D rotations behave.
Up then left... is not the same as left then up.
The double spinny algebra can spin the cube along 2 dimensions,
But the third makes weird flips.
It would be nice if ij squares to negative 1, making its own spinny subalgebra.
We can rearrange to find that ij is negative ji.
This rule helps us fill in the rest of the table, to get the triple spinny algebra.
It can spin the cube along all 3 dimensions.
This algebra models 3D rotation! Who cares? We can already do that with matrices.
Yes, matrices spin nicely about the three axes, but tilted axes can get overcomplicated.
Our algebra can do it more naturally.
Any tilted slice makes its own spinny subalgebra.
So this algebra isn't just triple spinny...
it's infinny spinny!
To construct it, we began with 1, which makes these neutral multiplications.
Then we found that i should square to -1.
A different choice would make this subalgebra flippy. And that's bad! Similarly, j should square to -1 in its subalgebra.
We tried combining i and j to make a 3D algebra, but it was not associative.
i times j must be in a 4th dimension.
And here's where the algebra splits. We can fill the rest of the table with some straightforward calculations,
but that makes it flippy. Alternatively, we can force the fourth dimension to be spinny, if we accept the tricky rule that completes the table.
This quaternion algebra makes circular graphs.
It's a symmetrically spinny system. Its evil twin looks like a grid. Its _two_ spinny subspaces don't interact.
Familiar ideas may produce comfortable results,
but only by keeping an open mind do we unlock beautiful new possibilities.
Keeping an open mind matters outside of math, too. Especially when it comes to deciding how to spend your future.
You have 80,000 Hours in your career. That's 40 hours a week, 50 weeks a year, for 40 years.
That's a lot of time to spend on the wrong career. Technology is reshaping the job
market fast, and over half of new grads are second-guessing their career choices.
Today's sponsor is 80,000 Hours, a nonprofit that's spent over ten years
researching how to find a career that's fulfilling AND does real good.
And they've found some surprising stuff. Their research suggests some career
paths can have hundreds of times more impact than others. Can you guess which?
Now, I think this sponsor is actually very special for one simple reason: they aren't asking you to buy anything.
Their website has research on the world's most pressing problems,
reviews of career paths, a job board, and even one-on-one career advice. Go check it out- there is no catch: all of it is free.
Visit 80000hours.org/2swap to get a free copy of their in-depth and up-to-date career guide,
and start planning a career that helps make the world a better place.
This has been 2swap, and TheGrayCuber! with music by 6884.





