Hopf-Lax Formula for the Quadratic Hamilton-Jacobi Equation