I wanted a way to explore an equation by moving around its graph, rather than only looking at a static picture. That became Equation Motion, a browser-based 3D grapher for a few math and physics ideas.
What you can explore
The site currently has four guided examples:
- A radial wave,
z = sin(√(x² + y²) − t), whose crests move outward over time. - A circular orbit alongside Newton’s gravity equation.
- The unit sphere,
x² + y² + z² = 1. - A saddle surface,
z = x² − y².
You can rotate the graph, pause or change the animation speed, switch between a standard and an expanding view, and enter a custom surface formula. The custom input is focused on graphable surfaces; it is not a general solver for every equation.
How I built it
The interface uses React and Vite. Three.js and React Three Fiber render the 3D scene, while mathjs handles custom surface expressions. Each example has a dedicated URL. I also generate readable HTML for each page so the equation, symbol definitions, and worked example remain available before the interactive canvas loads.
The biggest design lesson was that a graph alone did not explain enough. Adding a short experiment to each page—such as comparing the sphere at z = 0 and z = 1—makes the visualization more useful to someone learning the concept.
Try the unit sphere or the moving wave. I would love feedback on which equations would be useful to visualize next, and where the controls are still confusing.