Live: hossbh.github.io/Mathematical-Spaces-Explorer
Runs in your browser. Nothing to install or download.
Click the picture or the button to open the live Explorer.
An interactive explorer of mathematical spaces, built for learning. Walk the ladder of structure, from a bare set with a topology to metric, vector, normed, Banach and Hilbert spaces, and on to Sobolev spaces, tensor products, measure and Wasserstein spaces, simplicial complexes, fibre bundles, curved manifolds, black-hole spacetime, the Riemann sphere, phase spaces and statistical manifolds. Every space has a picture you can drag, rotate and animate, its axioms checked on your own numbers, step-by-step derivations that update as you move things, and its history and applications.
It is the companion to the Optimization Explorer, the Agent-Based Modeling Explorer and the Cellular Automata Explorer, and uses the same layout.
| Family | Spaces | What you see |
|---|---|---|
| Topological | finite topologies, interior/closure/boundary in ℝ², surfaces glued from a square, simplicial complexes and persistent homology | the lattice of open sets (click to toggle), separation axioms, ε-balls in three metrics; a square folding into a cylinder, Möbius strip, torus, Klein bottle, sphere or ℝP² while a walker’s flag flips on non-orientable surfaces; a point cloud growing its Rips or Čech complex with live Betti numbers, barcode and persistence diagram |
| Metric | metrics on the plane, the Hamming cube, edit distance, completeness of ℚ, p-adic integers, the Hausdorff metric | distance fields and balls for ℓᵖ, railway, river, discrete and hyperbolic metrics; a hypercube rotating in 4-D to 6-D; the dynamic-programming table; fractions converging to √2, φ, e, π on zooming number lines; ℤₚ as nested disks; any shape converging to a fractal by Banach’s fixed-point theorem |
| Vector | bases and coordinates, linear maps, the dual space, polynomial spaces, vector spaces over 𝔽ₚ | grids morphing between bases, eigenvectors and singular values, covectors as stacks of lines, one polynomial in five bases (Bézier control points), lines of 𝔽ₚ² wrapping around a torus |
| Normed · Banach | ℓᵖ unit balls, norms from convex bodies, C[0, 1] and Lᵖ, operator norms, Sobolev spaces H¹ and W¹·ᵖ | the 3-D unit ball morphing from octahedron to cube with its dual, Minkowski gauges and polar bodies, sequences converging in one norm but not another, the incompleteness of (C[0, 1], ‖·‖₁); weak derivatives, which functions belong to W¹·ᵖ, L² versus H¹ convergence, and finite elements converging at rates h and h² |
| Hilbert | inner products on ℝ², Gram–Schmidt, least squares, orthonormal bases of L², the qubit, quantum states, RKHS, tensor products ℂ² ⊗ ℂ² | ellipses as unit circles, Gram–Schmidt and QR in 3-D, regression as a projection drawn exactly in ℝⁿ, Fourier / Legendre / Haar / Chebyshev / Hermite expansions with Parseval and Gibbs, the Bloch sphere, a wave packet as a complex curve, kernel interpolation with its Gram matrix; two coupled qubits whose Bloch arrows shrink as they entangle, Schmidt coefficients and the CHSH Bell value |
| Measure | Riemann versus Lebesgue, Cantor sets, Monte Carlo, Brownian motion, Wasserstein space | vertical strips against horizontal layers, the devil’s staircase and box-counting dimension, π and the Mandelbrot area from random points, Wiener paths with quadratic variation; optimal transport plans and the displacement interpolation between two point clouds, compared with the mixture |
| Manifolds | Gaussian curvature, geodesics, parallel transport, the hyperbolic plane, Minkowski spacetime, fibre bundles, Schwarzschild spacetime | eleven surfaces coloured by curvature with Gauss–Bonnet, geodesic fans focusing and spreading, holonomy and Foucault’s pendulum, animated {p, q} tilings in the disk, half-plane and hyperboloid models, boosts and the twin paradox; sections of the Möbius band and vector fields on the sphere and torus with Poincaré–Hopf; precessing orbits, light bending and the photon sphere around a black hole on Flamm’s paraboloid |
| Complex · projective | domain colouring, conformal maps, the Riemann sphere, the projective plane | any f(z) you type, its zeros, poles and argument principle, a 3-D modulus landscape; grids under z², eᶻ, Joukowski; Möbius maps as motions of a sphere; parallel lines meeting at infinity and one conic in three charts |
| Phase spaces | phase portraits, Hamiltonian (symplectic) phase space, strange attractors, the double pendulum, Mandelbrot and Julia sets | flowing particles, fixed points classified by the Jacobian, Liouville’s theorem; Hamilton’s equations on an energy surface with explicit Euler, symplectic Euler, leapfrog and RK4 compared; Lorenz, Rössler, Thomas, Aizawa and Halvorsen in 3-D with Lyapunov divergence; a double pendulum traced on its configuration torus; parameter space driving the Julia set |
| Groups · information | SO(3), the probability simplex, the space of Gaussians | rotations as a ball with glued antipodes and quaternions (720° versus 360°), KL divergence against the Fisher–Rao sphere, normal distributions as a hyperbolic half-plane |
The case library has 130 ready-made cases; 58 of them are guided experiments in the Learn section.
- Explore: drag points, vectors, polygons and probes; rotate the 3-D views; zoom any picture with Ctrl (⌘) + scroll and undo it with Reset view; type your own functions (real or complex) where a space allows it. Every plot names its axes, and every 3-D view has a labelled axis marker.
- Animate: play, step or run to the end: Fourier terms added one by one, Gram–Schmidt stage by stage, surfaces folding, geodesics and parallel transport, boosts, flows and attractors.
- Check the axioms: Fig. 3 tests every axiom of the space with the numbers on screen (symmetry, triangle inequality, Cauchy–Schwarz, parallelogram law, completeness, Gauss–Bonnet, …) and marks what holds and what fails. Non-examples are built in: p < 1, indefinite Gram matrices, unequal edit costs, dented unit balls, ℤ₆.
- Read the derivations: each space derives its key results with your current values: Cauchy–Schwarz from a parabola, the normal equations, Parseval proving Σ 1/n² = π²/6, the argument principle, Clairaut’s relation, the hyperbolic area formula, Liouville’s theorem, Rodrigues’ formula and more.
- See the big picture: Fig. 4 is a family tree of spaces (set → topological → metric → normed → Banach → Hilbert, and the manifold and measure branches) with the current space and all its ancestors highlighted, plus a table of properties.
- History and applications: Fig. 5 tells the story of each space: a dated timeline of who created it and why, the problems it was invented to solve, what it lets you solve today, and where it is used in science and engineering.
- Share: Copy link stores the space, its settings and dragged points in the URL. Cases also open directly, e.g.
…/Mathematical-Spaces-Explorer/#case=hyp-73or#case=sz-light.
Keyboard: Space play or pause · → one step · R restart · E run to the end.
The Explorer is a single HTML file with no build step. Download index.html and open it in any modern browser with an internet connection (three.js and the fonts load from CDNs).
- Every space is a scene object: its parameters, its state, how to draw it in 2-D (canvas) and 3-D (three.js), its measurements, and a
theoryfunction that evaluates the axioms and derivations with the current numbers. One controller drives all 52. - Formulas you type are parsed into syntax trees and compiled, for real variables to plain JavaScript and for complex variables to complex arithmetic, so domain colouring recomputes every pixel of the picture in a fraction of a second.
- Curvature is computed from the first and second fundamental forms by finite differences; geodesics are integrated in ℝ³ on implicit surfaces with RK4 and projected back to the surface each step, so they never meet a coordinate singularity.
- Hyperbolic tilings are generated by reflecting a regular polygon across its edges (inversion in circles orthogonal to the rim) and moved with Möbius isometries.
- The Hausdorff distance between point clouds uses an exact Euclidean distance transform (Felzenszwalb–Huttenlocher); exact rational arithmetic with BigInt keeps the Cauchy sequences honest to 50 digits.
- Persistent homology reduces the boundary matrix of the Rips or Čech filtration over ℤ/2; optimal transport plans are exact (Hungarian algorithm); Schwarzschild geodesics integrate the orbit equation u″ + u = M/L² + 3Mu² with RK4.
- Random numbers are seeded, so the same settings always give the same picture. Light and dark themes follow the system setting or the toggle in the top bar.
- J. R. Munkres, Topology, 2nd ed. Prentice Hall, 2000.
- E. Kreyszig, Introductory Functional Analysis with Applications. Wiley, 1978.
- S. Axler, Linear Algebra Done Right, 4th ed. Springer, 2024.
- W. Rudin, Real and Complex Analysis, 3rd ed. McGraw-Hill, 1987.
- G. B. Folland, Real Analysis, 2nd ed. Wiley, 1999.
- M. P. do Carmo, Differential Geometry of Curves and Surfaces, 2nd ed. Dover, 2016.
- J. M. Lee, Introduction to Riemannian Manifolds, 2nd ed. Springer, 2018.
- T. Needham, Visual Complex Analysis. Oxford University Press, 1997.
- M. F. Barnsley, Fractals Everywhere, 2nd ed. Academic Press, 1993.
- F. Q. Gouvêa, p-adic Numbers, 3rd ed. Springer, 2020.
- S. H. Strogatz, Nonlinear Dynamics and Chaos, 2nd ed. Westview, 2015.
- V. I. Arnold, Mathematical Methods of Classical Mechanics, 2nd ed. Springer, 1989.
- E. Hairer, C. Lubich and G. Wanner, Geometric Numerical Integration, 2nd ed. Springer, 2006.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information. Cambridge University Press, 2010.
- S. Amari, Information Geometry and Its Applications. Springer, 2016.
- L. C. Evans, Partial Differential Equations, 2nd ed. AMS, 2010.
- H. Edelsbrunner and J. Harer, Computational Topology: An Introduction. AMS, 2010.
- C. Villani, Optimal Transport: Old and New. Springer, 2009.
- J. B. Hartle, Gravity: An Introduction to Einstein’s General Relativity. Addison-Wesley, 2003.
The full list of 38 references is in the Learn section of the Explorer.
3-D rendering by three.js (MIT licence). Fonts: Archivo and STIX Two Text from Google Fonts. All constructions are independent implementations of the standard mathematics cited above.
© 2026 Hossein Basereh. All rights reserved.