Tennis Racket
Explain

This is a live 3D render of the racket's actual orientation — not a canned animation. Its shape comes directly from the geometry sliders. The rotation each frame comes from numerically solving the real rigid-body equations of motion (Euler's equations) for the spin it started with. If Control is off, you're watching the raw spin of the racket. If Control is on, an attitude controller is actively steering it toward the chosen target axis.

Hamiltonian Energy (H)
Explain
3D

The Hamiltonian represents the total energy of the system, in this case, the racket's rotational kinetic energy. The dashed lines show the energy the racket would have if spinning purely about each of its three axes. The racket's actual energy (solid line) stays trapped between the smallest and largest of these forever. With Control on, the dashed line becomes the chosen target energy instead, and the solid line is no longer flat — it climbs or falls as the controller does real work to get there.

Angular Velocity
Explain

This display shows the spin rate (radians/second) about each of the racket's principal axes, over time — long, intermediate, and short. Near the intermediate axis, all three swing through large, coupled oscillations instead of settling down, which is the visible signature of the instability. Near a stable axis (long or short), one component dominates while the other two stay as small, bounded wobbles.

Long Axis Intermediate Axis Short Axis
Casimir Sphere
Explain

A Casimir is a conserved quantity, built into the physics itself rather than something we choose — here, it's the racket's total angular momentum. Since it never changes during a free spin, every trajectory stays confined to this sphere's surface. The light-blue and coral dots are the six equilibrium spins (stable and unstable); starting exactly on one, undisturbed, leaves the state frozen forever, since every derivative vanishes there. The orange separatrices pass exactly through the unstable points, marking the boundary between the nearby blue wobbling loops and a full flip. The yellow dot is the racket's actual state right now — under Control or Wind it can leave this sphere entirely, since angular momentum is only conserved for a truly free spin.

Current State Stable Fixed Point Unstable Fixed Point Trajectory Separatrix
Free Swing
Explain

A live 3D render of the pendulum's orientation, driven by Euler's equations for a rigid body, with gravity, friction, and the control torque. Since this rod and bob pivot about a fixed point, gravity is constantly pulling the pendulum toward hanging straight down. If Control is off, you're watching it swing freely. If Control is on, an attitude controller actively cancels gravity and steers it to the chosen target.

Energy (H)
Explain

The Hamiltonian represents the total energy of the system — for this pendulum, that's kinetic energy plus gravitational potential energy. With no friction and no control, this value stays constant, since gravity alone conserves it. Friction removes energy from the system slowly, causing the line to drift downward over time. With Control on, the dashed line is the target energy, and the solid line (energy of the system) climbs or falls as the controller does real work to get there.

Angular Velocity
Explain

This plot displays the spin rate (radians/second) about each of the pendulum's three principal axes, all measured through the pivot. The axial axis runs along the rod itself — spin about it is like twirling the rod between your fingers, not swinging it anywhere. It's nearly free, since only the bob's own small radius resists it. Transverse 1 and Transverse 2 are perpendicular to the rod and to each other, spanning the plane the bob can actually move in. By the bob's spherical symmetry they're identical to each other, and together they carry almost all of the pendulum's real swinging motion.

Axial Transverse 1 Transverse 2
Control Torque & Work
Explain

IDA-PBC (Interconnection and Damping Assignment Passivity-Based Control) is the technique steering the pendulum when Control is on. It reshapes the pendulum's energy landscape so the target orientation becomes the new low point. It cancels gravity's pull at the current orientation, then adds a spring-like pull toward the target (plus damping that removes leftover spin) so the pendulum settles instead of oscillating forever. The torque line shows the magnitude of that push; the work total is the real energy spent to get there.

Torque Magnitude

Pendulum Geometry

0.52.0
0.050.3
0.33.0
0.50.95
Moments of Inertia: ...

Motion

-8080
00.1
Control
-180180
Wind
00.3