If the force F is derivable from a potential (conservative), then applying the gradient theorem (and remembering that force is the negative of the gradient of the potential energy) yields: W C = U ( A ) − − U ( B ) , where A and B are the beginning and end of the path along which the work was done.