For 1D motion the force F(x) and the potential energy U(x) are related as:
The potential energy is equal to negative work done in shifting an object from some reference point to a given position for conservative forces.
In mathematical form, it is given as:
Where F is the force in newton and dU/dx is change in potential energy.
Study 40% syllabus and score up to 100% marks in JEE