MechanicsKE + PE = E_total

Energy Conservation Simulator

Watch a ball roll along a track with hills. See kinetic and potential energy exchange in real time and verify total mechanical energy conservation.

■ KE (kinetic)■ PE (potential)— Total E
Parameters
Initial Height h₀
m
Ball Mass m
kg

Energy at h₀
Total E = mgh₀29.43 J
Max speed7.67 m/s

KE0.00 J
PE0.00 J
Total E0.00 J
Height0.00 m
Speed0.00 m/s
Time0.0 s

About Energy Conservation

The Law of Conservation of Mechanical Energy states that in the absence of non-conservative forces (such as friction or air resistance), the total mechanical energy of a system remains constant. This total is the sum of kinetic energy (KE) and gravitational potential energy (PE).

KE + PE = E_total = constant (for a frictionless system). When the ball rises, KE converts to PE. When it falls, PE converts back to KE.

Key Variables

SymbolNameUnitDescription
mMasskgMass of the rolling ball
h₀Initial HeightmStarting height of the ball
hCurrent HeightmHeight of the ball at position x on track
gGravitational accelerationm/s²g = 9.81 m/s²
PEPotential EnergyJPE = mgh
KEKinetic EnergyJKE = ½mv²
ETotal Mechanical EnergyJE = KE + PE = mgh₀ (conserved)
vSpeedm/sv = √(2·KE/m) = √(2g(h₀ − h))

Worked Example

A 1 kg ball starts at height h₀ = 3 m with zero velocity on a frictionless track. Find its speed at h = 1 m.

Track Shape

The simulator uses a sinusoidal hill: h(x) = h₀ · sin(πx/L) for x ∈ [0, L]. The ball starts at one end, rolls over the hill, and the energy bars update continuously.

💡Notice that at the peak of the hill, KE is minimum (PE maximum). At the base, KE is maximum (PE = 0). The total energy bar height never changes — that is conservation in action.

Effect of Mass on Energy

  • Larger mass means more total energy (E = mgh₀), but the speed at any height is the same: v = √(2g(h₀ − h)).
  • Mass cancels out in the speed formula — a heavier ball falls at the same rate as a lighter one (Galileo's insight).
  • Mass does affect KE and PE magnitudes: doubling mass doubles both KE and PE at every point.

Energy Conservation Formulas

Gravitational Potential Energy

Kinetic Energy

Conservation of Mechanical Energy

Speed from Height

Track Height Profile

FormulaDescriptionNotes
PE = mghGravitational PEReference: track baseline (h = 0)
KE = ½mv²Kinetic energyTranslational KE only (no rolling inertia)
E = KE + PETotal mechanical energyConserved when friction = 0
v = √(2g(h₀−h))Speed from energyMass cancels — speed independent of mass
E = mgh₀Initial total energyAll PE at start (v₀ = 0)
The speed formula v = √(2g·Δh) shows that the speed gained by falling a height Δh is independent of the object's mass — a cornerstone of Galilean physics.

Frequently Asked Questions

Why does mass affect total energy but not speed?

Total energy E = mgh₀ scales with mass, but when you solve for speed from KE = ½mv² = mgh₀ − mgh, the mass m cancels: v = √(2g(h₀−h)). So a 5 kg ball and a 0.1 kg ball reach the bottom at the same speed on the same frictionless track.

What happens to energy if friction is present?

Friction converts mechanical energy to heat. Total mechanical energy (KE + PE) decreases over time. The ball slows down more than energy conservation predicts. The simulator shows the frictionless ideal case.

Why does the ball slow down near the peak?

At the peak, the ball has maximum PE. Since total energy is fixed, KE is minimum at the top — meaning minimum speed. The ball speeds up again as it descends.

Can the ball make it over the hill if it starts lower?

Only if the initial height is at least as high as the hill peak. If h₀ < h_peak, the ball lacks sufficient energy to reach the top and would stop and reverse in a real system. The simulator's track height equals h₀, so the ball just barely reaches the top.

Is rotational kinetic energy included?

No. The simulator models translational KE only (½mv²). For a rolling ball, you'd also need ½Iω² = ¼mv² for a solid sphere, reducing the translational speed by a factor of √(5/7). This simulator assumes a sliding point mass for clarity.