What does the formula $$ {\bf F} ~=~ \frac{\mathrm{d}W}{\mathrm{d}{\bf x}}$$ actually mean? Here $\mathrm{d}W$ is the work done in a small period, ${\bf F}$ is the force and $\mathrm{d}{\bf x}$ is a symbol for arbitrary displacement.
How and where do we use this formula? Suppose a body moves in the path of a rectangle and starts from the bottom left corner say a then moves right up left and down coming to the same position. So logically one can see that the work is zero but can we incorporate this formula? If so, how? Do we resolve the force?
Basically, can we use this formula to calculate if the energy is conserved or there is no work? If yes, then how?