Hamilton-Jacobi equation