Back to browse
Two-Dimensional Phase Portrait Plotter

Two-Dimensional Phase Portrait Plotter

by hrldrvry·Feb 14, 2026·1 point·0 comments

AI Analysis

●●SolidNiche GemWizardry
The Take

Paste your dx/dt and dy/dt, tweak parameters, and the page will draw vector fields, nullclines, trajectories (Euler or RK4), and even compute eigenvalues and a Poincaré index at clicked points — all in the browser. Not groundbreaking compared to MATLAB/pplane or Python notebooks, but packing Jacobian eigenanalysis, nullcline overlays and clickable stability diagnostics into a lightweight client-side tool is genuinely handy for teaching and quick exploration.

Category
Target Audience

Students and educators in dynamical systems, applied mathematicians, physicists, control engineers, and hobbyists wanting quick visual exploration

Post Description

Hi! I made a two-dimensional phase portrait plotter website page.

Purpose: If you don't have any study guide for exercises related to dynamic systems or too lazy to run python and set up sliders to visually see potential bifurcations, you can play around with said dynamic system (numerically) to visually get a feel of the system.

It includes numerical approximations for:

- Euler/4th Order Runge-Kutta solver for the system --> You can also pick initial point + backwards integration.

- Poincaré Index (index theory)

- Nullclines

- Eigenvalues of the Jacobian matrix (sometimes called "stability matrix" in the literature)

It's based on old python code that I made for a dynamic system course that I converted to JavaScript using Grok, Sonnet 4.5 and Gemini Pro.

Does not include:

- Bifurcation diagrams - can't make it without a computer algebra system (CAS), way above my skill level...

- Anything that isn't two-dimensional (for one dimension you can just use a regular calculator) - 3D got highly computational heavy fast (for a website so to speak). I'm keeping it simple since it is a practice tool to draw your own phase portraits yourself by hand (like most exams requires you to do).

For real applications, you need to either solve stuff analytically or use more advance tools. This is just for educational purposes and enjoyment.

Similar Projects

Developer Tools●●Solid

I built an interactive LSM Tree simulator

This actually simulates the full write path — WAL to memtable to immutable flush — and animates cascading leveled compactions so you can watch key movement and file counts in real time. The live bloom-filter checks and amplification metrics are the parts that will teach you something immediately; it's clearly built as a learning/debugging sandbox rather than a production profiler.

Niche GemWizardry
saiprakashreddy
103mo ago