Same reflection law, different dynamics
Each straight flight ends where the path first meets a valid wall, found analytically. Flipping the normal does not change the reflection. Corner hits and grazing hits are singular.
M087 · Geometry / collision maps
Can geometry alone create chaos? Yes. Every table uses the same rule at the wall: angle in equals angle out, with no energy lost. In a circle or an ellipse the bounces stay orderly. In a stadium shape, or with a round obstacle in the middle, two almost identical shots soon head in completely different directions. Only the shape of the boundary changed.
Launch two nearby rays into a circle, an ellipse, a stadium or a square with a central disk; every table reflects them by the same elastic law. Compare exact collisions, the caustics of the integrable tables, boundary sections and the growth of a tiny separation to tell regular bouncing from motion that is sensitive to its starting point.
Physics tutorial
BackgroundIn a mathematical billiard, a ball flies straight and bounces elastically off the walls. Recording only where it hits the wall and its velocity along the wall turns the motion into a map from one bounce to the next.
Why it mattersChanging the shape of the table can change whether trajectories are stable, even though the reflection law stays the same.
Start with the essentials
Each straight flight ends where the path first meets a valid wall, found analytically. Flipping the normal does not change the reflection. Corner hits and grazing hits are singular.
The boundary runs with the inside of the table on its left: counterclockwise along the outer wall and clockwise around the obstacle. Arclength runs along the joined walls and is divided by the total perimeter. For the ellipse, arclength comes from high-order numerical integration; the polar angle is not used as a canonical coordinate.
In the unit circle, angular momentum stays constant, so every chord touches the same smaller concentric circle, the caustic. A triangular orbit repeats. When the rotation per bounce is an irrational fraction of a turn, the points fill a line in the section. Dense chords and a busy picture do not mean chaos.
The minor semiaxis is one. The value of the invariant tells whether the caustic is an ellipse or a hyperbola; the separatrix through the foci is the borderline case between them. The caustic is predicted analytically, and the fourth plot checks that the invariant stays fixed along the computed collisions.
The tangent vector starts along the boundary-position direction and is rescaled to unit length after every bounce. The nearby ray is a separate trajectory a finite distance away; it is never reset, so its separation can saturate. Growth is counted per collision, not per unit of physical time. Distance combines the shortest gap in boundary position with the difference in tangential velocity.
The determinant shown uses central differences in coordinates unwrapped near the point. How much the result changes when the step is halved is numerical evidence, not a rigorous error bound. Derivatives are not taken across a switch to a different wall or across a seam where the curvature jumps. A positive growth rate over a finite run does not prove the whole table is ergodic.
Typical misconceptionA path that fills the circle densely must be chaotic.
Better mental modelIts caustic stays fixed and its section points lie on a line, so the motion is regular.
Typical misconceptionAny evenly spaced angle around the boundary preserves area in the section.
Better mental modelUse true arclength and the velocity component along the wall at unit speed. On an ellipse, the polar angle does not measure arclength.
Typical misconceptionThe two paths are compared at the same moment in time.
Better mental modelThey are paired by collision number, and each path has its own flight times.
Typical misconceptionAt a corner, the simulation should just pick some bounce.
Better mental modelAt a corner the wall normal is ambiguous, so the run stops; change the starting state instead. The tangent check can stop earlier than the main trajectory.
Choose Periodic triangle and press Review full record.
What to observe: The same three impact points repeat; the circular caustic stays fixed.Compare the Elliptic caustic and Hyperbolic caustic presets.
What to observe: Both kinds of caustic belong to integrable motion, and the invariant drifts only slightly.Compare Stadium sensitivity with Parallel-wall bouncing.
What to observe: The same stadium has a few exceptional regular orbits, while typical orbits are sensitive to where they start.Try Sinai scatterer, change the perturbation, press Double record length, then choose Undefined corner launch.
What to observe: The separation of the nearby ray saturates, the tangent vector can keep growing, and the corner launch stays stopped because its collision is undefined.