4D World (X): Rotational Dynamics

/// Note: Although this article extensively discusses fictional physical laws in a fictional four-dimensional world, it also discusses the uniform random distribution laws of unit four-dimensional bivectors from a purely mathematical perspective.
Content Overview
- 4D Dzhanibekov effect
- Multi-body rotating systems with energy exchange
- Random distribution laws of angular momentum
- Principal axis theorem for four-dimensional rigid bodies
The Dzhanibekov Effect
A Soviet cosmonaut was playing with a T-shaped part in space when he accidentally discovered that when the part was made to float and spin rapidly, its rotation direction would suddenly flip from time to time. This phenomenon was later named the Dzhanibekov Effect after him (Джанибеков).
There are many ways to explain this phenomenon, with its root cause stemming from angular momentum conservation and the anisotropy of the handle’s moment of inertia. Let’s start with Newton’s first law, which states that an object not subjected to external forces will maintain uniform linear motion or remain stationary. However, this doesn’t consider the object’s rotation. Should an object not subjected to external forces maintain uniform angular velocity rotation? Not necessarily. Actually, when an object is not subjected to external forces, it’s not the velocity and angular velocity that remain constant, but the momentum and angular momentum. Since momentum equals mass times velocity, and an object’s mass generally doesn’t change, we can deduce that the object’s velocity also happens to remain constant. However, the relationship between an object’s angular momentum and angular velocity is more complex. Take a tennis racket for example - due to its different dimensions in various directions, the difficulty of rotation around different axes varies, meaning each direction has a different moment of inertia. Angular momentum equals moment of inertia times angular velocity. When the object rotates, these axes also rotate with it, and the moment of inertia in each direction changes. To maintain constant total angular momentum output, the angular velocity must change with the rotation axis to offset the changes in moment of inertia. This is why a part rotates and flips by itself when not subjected to external forces. If the rotating object has uniform symmetry, like a cube or sphere, with the same moment of inertia in all directions, it will only rotate uniformly without the Dzhanibekov effect.
Actually, the conditions for this effect are quite stringent. It also requires that the object’s initial rotation axis be the intermediate axis between the long and short axes. What does this mean? From three-dimensional rigid body mechanics analysis, we know that any rigid body’s moment of inertia is equivalent to that of a triaxial ellipsoid or cuboid - describing the moments of inertia of the three principal axes is sufficient to determine the entire object’s rotational behavior. Therefore, we can treat the tennis racket as equivalent to a rectangular plate. The figure above shows the tennis racket’s rotation around the long axis $a$, short axis $c$, and intermediate axis $b$. Only rotation around the intermediate axis (marked in red in the figure) is unstable and produces the Dzhanibekov effect. This theorem about rotational stability is also known as the tennis racket theorem. There are mechanics-based explanations, energy-based explanations, and explanations based on stability analysis of Euler’s rotation differential equations for why only the intermediate axis rotation is unstable, but this isn’t the focus of this article, so I won’t elaborate further.
Four-Dimensional Case
Although we cannot actually conduct experiments in an imagined four-dimensional space to witness four-dimensional effects, we can simulate them through the physics engine in Tesserxel. The specific physics formulas used in the engine are provided in the appendix. First, to achieve rotational instability, we must find an object with four unequal “axes” - the simplest being a hyperrectangular box. Unlike in three dimensions, rotation in four-dimensional space occurs in planes, and pairwise combinations of principal axes yield six directions, with six possible initial rotation positions.
Let the hyperrectangular box have 4 unequal edges $a$, $b$, $c$, $d$, where $a < b < c < d$. Through numerical simulation, I discovered the following patterns:
- Initial rotation planes chosen as $ab$, $bc$, or $cd$ are all stable. $ab$ is similar to the three-dimensional longest axis with the smallest moment of inertia; $cd$ is similar to the three-dimensional shortest axis with the largest moment of inertia; although the rotation plane $bc$ is a type of “intermediate axis,” it is stable. Click here to simulate $bc$ plane rotation online in Tesserxel.
- When the initial rotation plane is chosen as $ac$ or $bd$, intermediate axis instability similar to the three-dimensional case occurs, producing a Dzhanibekov effect almost identical to the three-dimensional situation. Click here to simulate $ac$ plane rotation online in Tesserxel.

- When the initial rotation plane is chosen as $ad$, the rotation is also unstable, with two different periods of reverse rotation alternating - a phenomenon unique to the four-dimensional Dzhanibekov effect. Since each period causes the rotation direction to flip, the combined action of two different periods makes the angular momentum change curve in the rigid body’s local coordinate system look like a pulse width modulation (PWM) waveform. Click here to simulate $ad$ plane rotation online in Tesserxel.

In the above online simulations, you can press the L key on the keyboard to switch between the inertial coordinate system and the rigid body’s local coordinate system. The rigid body’s axes from smallest to largest correspond to coordinates $x$, $y$, $z$, $w$ respectively. We can observe:
- In the inertial coordinate system: In any case, all components of the object’s angular momentum (represented by letter J) remain constant as straight lines, representing absolute conservation of angular momentum. In scenarios with the Dzhanibekov effect, we can see that besides the component corresponding to the initial angular velocity barely changing, some smaller components of other angular velocities (represented by letter W) temporarily appear when the rotation direction reverses.
- After switching to the local coordinate system, we can see that the direction of the component corresponding to the initial angular velocity also flips each time the object reverses.
Why do the angular velocity behaviors in these two coordinate systems differ so drastically? It’s said that when cosmonaut Dzhanibekov accidentally discovered this effect in space, he was very worried that Earth’s rotation might suddenly flip over one day. Of course, we later learned that Earth’s rotation axis is in the shortest direction of a triaxial ellipsoid, making the rotation stable, so there’s no need to worry about such things happening. Let’s suppose Earth’s rotation axis is the intermediate axis - originally Earth rotates from west to east, with the sun rising in the east and setting in the west. After Earth’s north and south poles flip, since the total angular momentum direction doesn’t change, from the universe’s inertial frame Earth still rotates from west to east. However, people on Earth would feel differently: the original east-west-south-north directions have become the actual west-east-north-south directions due to Earth’s flip. People on the ground would feel the sun rises in the west and sets in the east, but people in space still think the sun rises in the east and sets in the west. Hopefully readers can now understand why angular velocity in the inertial frame barely changes while it periodically reverses in the local frame.
Summary of Stability Rules
Observing the three cases above, it’s not hard to find the following patterns for stability judgment: If the plane is spanned by adjacent edges arranged in size order, the rotation is stable; if there’s one edge in between, it produces a single-period Dzhanibekov effect; if there are two edges in between, it produces a double-period Dzhanibekov effect. Additionally, I discovered some rules about isoclinic rotation:
- If the initial rotation is an isoclinic double rotation, the rotation is stable, such as rotating the $ac$ and $bd$ planes at the same angular velocity: Click here to simulate online in Tesserxel.
- For non-isoclinic double rotation, whichever of the two absolutely perpendicular rotations has greater angular velocity will have a more pronounced effect, and the closer the initial rotation is to perfect isoclinic double rotation, the longer the flip period. In the following online simulation, the speed ratio of the two absolutely perpendicular rotations in the double rotation is $15/16$, already quite close to isoclinic, so the direction flip period is particularly long - you need to wait over half a minute to see the angular momentum flip: Click here to simulate online in Tesserxel.

A Brief Aside
The first time I heard about the Dzhanibekov effect was actually when Marc ten Bosch mentioned the four-dimensional Dzhanibekov effect in his paper “𝑁-Dimensional Rigid Body Dynamics”. Then I searched for the three-dimensional case and learned about the Soviet cosmonaut’s story. I then discovered that my four-dimensional engine hadn’t considered the rigid body precession terms caused by non-uniform moments of inertia - I hastily patched this major bug in the engine.
The conclusions in Marc ten Bosch’s paper differ from those in this article. His simulation results indicate that hyperrectangular boxes with four unequal axes will eventually tend toward double rotation as a stable state. However, I believe this result is incorrect: Imagine a hyperrectangular box that’s fairly close to a hypercube - its moments of inertia in various directions differ but not significantly. If the initial rotation is a simple rotation with corresponding angular velocity as a simple bivector, although the total angular momentum might not be a simple bivector, it shouldn’t deviate too much. If it evolves to isoclinic double rotation, the angular velocity would be a self-dual or anti-self-dual bivector, too different from a simple bivector to satisfy conservation of total angular momentum. Marc himself noted that numerical errors accumulated in his implicit solver causing angular velocity to decrease noticeably (Tesserxel uses the highly accurate fourth-order Runge-Kutta method). Since I don’t know how he calculated it, I can only guess that the same reason likely caused the erroneous convergence to isoclinic rotation results. My solutions in both Mathematica and my own TypeScript-written Tesserxel physics engine indicate that four-dimensional freely rotating rigid bodies do not spontaneously tend toward stable isoclinic double rotation states.
Multi-Body Rotating Systems with Energy Exchange
What we just saw was the free rotation of an isolated rigid body. If there are losses inside the rigid body, such as a cup filled with liquid, Wikipedia says it will gradually tend toward the lowest energy stable state while maintaining constant total angular momentum. This raises an interesting question: What is the most likely rotation pattern for a general four-dimensional planet? Is simple rotation more likely, or is isoclinic double rotation or general double rotation more likely? Someone on the Higher Space forum believes that planets with isoclinic double rotation have the same velocity magnitude at all points, representing an energy-equipartitioned stable state. In simple rotation, the equator has the highest velocity while the poles have zero velocity, which is not an equilibrium state, so eventually all planets will evolve to isoclinic double rotation. However, like Marc ten Bosch’s oversight, an isolated planet cannot directly evolve from simple rotation to isoclinic rotation under the constraint of total angular momentum. The only opportunity is during the early evolution of the planetary system in which the planet forms. Since four-dimensional celestial mechanics has many fundamental bugs - orbital systems are unstable in gravitational fields with inverse cube decay - we won’t discuss here how specific planets acquire initial angular momentum. Instead, let’s look at a thermodynamic “toy model”: Imagine an absolutely smooth hyperspherical cavity filled with a bunch of small balls (actually hyperspheres) with randomly distributed initial velocities. They freely collide inside like air molecules doing Brownian motion. The ball surfaces have friction allowing them to exchange momentum and angular momentum, but they can’t obtain additional angular momentum from the hypersphere walls, thus maintaining conservation of total angular momentum. After reaching equilibrium after some time, what is the distribution pattern of these small balls’ angular velocities? I placed 40 small balls in Tesserxel and marked each ball’s degree of isoclinicity in angular velocity - self-dual as 1, simple as 0, anti-self-dual as -1. The specific calculation formula is here. Click here to simulate online in Tesserxel
Since they collide within the hyperspherical shell and the shell cannot provide angular momentum, the total angular momentum remains conserved. However, unlike a single isolated rigid body, the system’s angular momentum consists of two parts: orbital angular momentum and spin angular momentum. These two parts are individually non-conserved; only their sum is conserved. Here’s a simple example to deepen understanding: Imagine two astronauts of nearly equal mass in vacuum, very close to each other, maintaining relative rest. They extend their hands and high-five in the manner shown by the green arrows in the figure below. The interaction force causes them to start rotating and move apart. It’s easy to see that they both rotate in the same direction, seemingly violating conservation of total angular momentum. Actually, besides spin having angular momentum, their center of mass motion also has orbital angular momentum, and its direction is clockwise, opposite to the counterclockwise spin direction, so total angular momentum is still conserved.
Through Tesserxel simulation, I found that these small balls do sometimes collectively tend toward isoclinic double rotation. If the initial spin angular momentum has a larger self-dual component, they’ll eventually all tend toward self-dual angular momentum. If the initial rotation has a larger anti-self-dual component, they’ll eventually all tend toward anti-self-dual angular momentum.

If the initial angular momentum is simple, the final steady state could be either self-dual or anti-self-dual, sometimes showing completely uniform random distribution with no visible convergence trend - simulation time might be too short and subsequent convergence to dual states can’t be ruled out. I also accidentally discovered one case of simultaneous convergence toward both ends, but this situation was hardly reproduced afterward.
Although I can’t guarantee these patterns aren’t artifacts caused by computational errors, these phenomena are at least consistent with conservation of total angular momentum, because the extra isoclinic components in spin can be offset by opposite extra components in orbital angular momentum. In this sense, it makes sense for planetary evolution to tend toward isoclinic double rotation. However, the stability of four-dimensional celestial orbits doesn’t allow us enough time for planets to fully collide and exchange angular momentum, so it’s hard to say actual planets are all in isoclinic double rotation. Since we can’t imagine a reasonable planetary system evolution process to derive planetary angular momentum, if we directly assume planets have randomly directed angular momentum, how should simple and compound bivectors be distributed to be truly random? Below we assume angular momentum has magnitude 1 and explore how to uniformly generate randomly directed angular velocity bivectors.
Random Distribution Laws of Angular Momentum
How do we randomly generate an arbitrary unit bivector? Here are several methods I’ve thought of:
- Here I’ve already introduced an algorithm for generating random simple unit bivectors based on left-right isoclinic decomposition, but it can’t generate compound bivectors. There’s reason to believe that superimposing enough of these random bivectors can approximate arbitrary uniformly distributed random bivectors. This is actually equivalent to a random walk model in three-dimensional space: Each time we add a random simple bivector, it’s equivalent to taking equal-distance random walks in both the three-dimensional self-dual and anti-self-dual spaces. The duality of the compound bivector depends on the ratio of random walk distances in the two spaces.
- Here I’ve already introduced an algorithm based on dual decomposition that can generate random rotations in four-dimensional space. Taking the logarithm of random rotations gives the generator bivector similar to angular momentum, which can be normalized to get randomly distributed bivectors.
- There’s also a direct brute force approach: Bivectors are just vectors with six degrees of freedom. Generating unit bivectors is actually generating uniformly distributed points on a five-dimensional hypersphere in six-dimensional space.
Do these three methods generate bivectors with the same distribution patterns? Obviously these methods are all isotropic in four-dimensional space, so differences are reflected in the distribution of bivector duality - the distribution ratio of self-dual and anti-self-dual components. I specifically defined a duality measure to quantitatively describe it: self-dual has duality 1, anti-self-dual has -1, simple has 0.
Here are my simulation results: Three generation algorithms each generated 200 million bivectors, and I plotted histograms of the duality distribution of bivectors obtained by the three algorithms. Red corresponds to the “random walk” algorithm superimposing 100 simple bivectors, green corresponds to the algorithm taking logarithms of random rotations, and blue corresponds to the algorithm taking random points on a five-dimensional hypersphere. We can see that the distribution generated by taking logarithms of random rotations is more concentrated toward the middle representing simple bivectors, while the distributions obtained by the other two algorithms are almost identical. We can confirm that the “random walk” algorithm and five-dimensional hypersphere algorithm produce the true uniform distribution.

Why do logarithms of random rotations result in more bias toward simple bivectors? This is because simple bivectors can only generate simple rotations, while compound bivectors can sometimes also generate simple rotations. Consider the rotation generated by the bivector ${11\pi/ 6}e_{xy}+2\pi e_{zw}$: Since $2\pi e_{zw}$ rotates a full circle, equivalent to no rotation, the entire rotation is equivalent to a simple rotation of -30° in the $xy$ direction. Yet this bivector is actually very close to self-dual. When taking logarithms, it only gives the simplest direct generator with rotation angle less than 180 degrees and won’t recover the original compound rotation, thus amplifying the proportion of simple bivectors.
Principal Axis Theorem for Four-Dimensional Rigid Bodies
You might wonder: since four-dimensional rotation has 6 degrees of freedom, this means the moment of inertia has six parameters to describe it (the moment of inertia is a symmetric matrix that can always be diagonalized, thus requiring 6 parameters). But the hyperrectangular box we just discussed has only four dimensions, missing two degrees of freedom. Might we have missed some rotational stability analysis cases? For instance, might there exist shapes even less symmetric than hyperrectangular boxes with more complex rotation patterns? The answer is no. The six parameters of moment of inertia are not independent - the independent degrees of freedom are just 4, and they can all be made equivalent to the moment of inertia of a hyperrectangular box. If readers aren’t interested in specific details, this article ends here. Below I attach the derivation of the four-dimensional rigid body moment of inertia tensor and proof of the principal axis theorem.
