Differentiable physics · inverse problems
Differentiable Pendulum: Parameter Inference

The notebook · live in your browser, code and all
open full screen ↗A double pendulum is chaotic, but its masses and arm lengths still leave a fingerprint in the motion. I treat the RK4 simulator as a differentiable forward model and run gradient descent on a loss that compares simulated and observed trajectories, recovering the physical parameters from noisy data to within a few percent. It is the mirror image of the chaos work: instead of predicting motion from parameters, I infer parameters from motion.