The work done by a force is the integral of the force along the path that the force acts. This definition of the work gives rise to a relationship between the potential energy due to the interaction between the objects and the force responsible for that interaction. In these notes, you will read about the relationship between the force and the potential energy and how a graphical representation of the potential energy can also illustrate this force.
As you have read, the work (J) done by a force (N) is related to the integral along the path that the object takes. For forces where you can associate potential energy (J), this integral is also related to the change in potential energy.
$$\Delta U = -W_{int} = -\int_i^f\vec{F}\cdot d\vec{r}$$
The potential energy is the negative line integral of the force. In one-dimension this can be written as follows,
$$\Delta U = -\int_{x_i}^{x_f} F_x dx$$
The above integral considers the change in potential energy over all path that takes the object from $x_i$ to $x_f$. The differential ($dx$) is really small. Consider a really small change in the potential energy ($dU$) that is the result of this really small displacement.
$$dU = -F_x dx$$
Physicists move these differentials around like numbers because they are small, but not infinitesimal like in the Calculus. So,
$$dU = -F_x dx \longrightarrow \dfrac{dU}{dx} = -F_x$$
The force in the x-direction is the negative derivative of the potential energy,
$$F_x = - \dfrac{dU}{dx}$$
To find the force in three-dimensions, this derivative of the potential becomes the gradient of the potential,
$$\vec{F} = - \nabla U = \left\langle -\dfrac{dU}{dx}, -\dfrac{dU}{dy}, -\dfrac{dU}{dz}\right\rangle$$ $$\vec{F} = -\dfrac{dU}{dx}\hat{x} -\dfrac{dU}{dy} \hat{y} -\dfrac{dU}{dz} \hat{z}$$
That the force is the spatial derivative of the potential energy is a helpful way of thinking about equilibria – locations in space where the force acting on the particle is zero. Some equilibria are stable – if the particle is located at that point, it will stay near it even when given a small push. Some are unstable – given a small push, the particle will run away.
Consider the potential energy of a spring-mass system. Here, the potential energy is quadratic (bowl-shaped) function,
$$U=\dfrac{1}{2}kx^2$$
The force associated with that potential is the spring force,
$$F_x=-\dfrac{dU}{dx} = -\dfrac{d}{dx}\left(\dfrac{1}{2}kx^2\right) = -kx$$
The force is zero at $x=0$. At that point, the slope of the potential energy graph is also zero. This point is stable because it is at the bottom of the “bowl-shaped” potential energy. Also, the force to the right side of the equilibrium point is pointing to the left ($F=-kx<0$ because $x>0$) and the force to the left side of the equilibrium point is pointing to the right ($F=-kx>0$ because $x<0$).
In a more general potential energy diagram (to the right), you can determine the equilibrium points by finding where the slope is zero ($F_x=0$). The stability of those points can be classified as stable or unstable.
A way to think about stability is to think of a bead sitting at the equilibiurm location. Is it stable against small pushes? For example, at location B, a small push on the bead would cause the bead to move up a bit, but it would come back – location B is stable. At location A and C, a bead given a small push would run away from those locations – both are unstable.
From these potential energy graphs, you are able to determine the kinetic energy of the system at any location along the graph if you know the total energy of the system. In graph below, the total energy is indicated with a dotted line. The potential energy at any point is measured from the $U=0$ line (e.g., $U_1$ and $U_2$). Because the total energy is the sum of kinetic and potential ($E_{tot} = K + U$), the kinetic energy is measured from the potential energy graph to the dotted line (e.g., $K_1$ and $K_2$).
From this diagram you can conclude that a particle with the given total energy will not make it past the location on the right where the dotted line crosses the solid line. It just doesn't have enough total energy (i.e., the kinetic energy goes to zero)!