In the Hamilton–Jacobi formulation of classical mechanics, velocity is given by v ( x , t ) = ∇ S ( x , t ) m {\displaystyle v(x,t)={\frac {\nabla S(x,t)}{m}}} where S ( x , t ) {\displaystyle S(x,t)} is a solution of the Hamilton-Jacobi equation