For conservative forces, there is a fundamental connection between force and potential energy.
For an arbitrary conservative force, we found: Wcons = - (Uf - Ui)
For an infinitesimal displacement: Wcons = F ds
Equating these two expressions gives: F
= - (Uf - Ui)/ds → - dU/ds