Sobolev regularity for the first order Hamilton–Jacobi equation