The total energy is the sum of kinetic energy and potential energy. If this energy is conserved, motion will occur in a way that keeps the sum constant. However, this alone is insufficient to determine how this conversion takes place.

Hence, the action is computed, defined as the sum of differences between kinetic and potential energy along a path. The conversion of kinetic to potential energy and vice versa happens in a manner that minimizes the action.