Energy Conservation

Interactive simulation — adjust parameters and watch the visualization update in real time.

Live graphs

How it works

On a frictionless track, gravity does work that converts potential energy mgh into kinetic energy ½mv². With no non-conservative forces, the total E = KE + PE is constant in time. Small numerical drift can appear from discrete time steps.

Key equations

E = ½mv² + mgh(x)
Along the curve: aₜ = −g sin φ,   φ = slope angle