We are in the context of Hamilton Jacobi equations, in particular I was reading the characteristic method. We want to solve the problem of the special form (Hamiltonian only depending on the "$p$" variables) $$ \begin{cases} u_t(x,t)+H\big(D_xu(x,t)\big)= 0, \\ u(x,0)=g, \end{cases}\quad(x,t) \in \mathbb{R}^n \times \mathbb{R}^+ . $$ In this case it's easy to find that the characteristic line starting from $y$ at time $s$ is $$ X(y,s) = y+sDH\big(Dg(y)\big). $$ Now set $$\overline{T} = \sup \Big\{ t : \, \det\big[I+tD^2H\big(Dg(y)\big)D^2g(y)\big] >0, \, \forall y \in \mathbb{R}^n \Big\}$$
The problem is that the textbook says that if $D^2H$ and $D^2g$ (Hessian matrices) are bounded, then for all $s < \overline{T}$ the function $y \mapsto X(y,s)$ is invertible (with $C^1$ inverse, but that's clear from the local inverse function theorem since the Jacobian is inverbile by hypothesis).
What I can't do is proving surjectivity and injectivity of this map. Of course we have local invertibility in each point, but I don't understand how this could imply the existence of a global inverse!
P.S. The textbook i'm referring to is P.L. Lions, Generalized solutions of Hamilton Jacobi equations, page 14.