The motion is derived from the system's Lagrangian ($L=T-V$), which describes its kinetic ($T$) and potential ($V$) energies.