MYSIMULATOR / 2D Lab

Pendulum Motion: Energy in Every Swing

Set a pendulum in motion and watch gravity trade potential energy for kinetic energy.

LIVE SIMULATION
Interactive experimental environment 2D CANVAS ENGINE
LIVE MODEL ● 0.0 s
Space: toggle · R: reset
✦

Behind the science

The nonlinear pendulum obeys θ̈ = −(g/L)sin(θ) − cθ̇. Longer pendulums swing more slowly; stronger gravity increases frequency; damping converts mechanical energy into heat. The angular equation is integrated using small timesteps, rather than playing a fixed animation.

Made with 🤖 ChatGPT