I find the proof of diffoemorphism in Guillemin & Pallock's Differential Topology 1.3.3 is more or less independent of the fact that the manifold happen to be $\mathbb{R}$, and therefore are the same.
Then I am asking if my two proofs (primarily the latter one) are correct.
GP 1.3.3: Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a local diffeomorphism. Prove that the image of $f$ is an open interval and that, in fact $f$ maps $\mathbb{R}$ diffeomorphically onto this interval.
Proof: Since local diffeomorphism implies $f$ and $f^{-1}$ are globally smooth, it suffices to show that the local diffeomorphism $f: \mathbb{R} \to$ image$f$ is a bijection. We know it's surjective since we restricted to its image. But if it is not surjective, by mean value theorem, there is some point $x \in \mathbb{R}$ such that $f'(x) = 0$. However, the pushforward $df_{U_x}$ at $x$ must be a linear isomorphism. This is a contradiction.
And right after:
GP 1.3.5: Prove that a local diffeomorphism $f: X \rightarrow Y$ is actually a diffeomorphism of $X$ onto an open subset of $Y$, provided that $f$ is one-to-one.
Proof: Since local diffeomorphism implies $f$ are globally smooth and $f^{-1}$ are globally smooth within the image of $f$, it suffices to show that the local diffeomorphism $f: X \to$ image$f \subseteq Y$ is a bijection. We know it's surjective since we restricted to its image. Given $f$ is one-to-one, it is bijective. Hence a diffeomorphism onto an open subset of $Y$.