I want to show that the function $f:\mathbb R_{>0} \times \mathbb R \to \mathbb R^2, (x,y) \mapsto (xy, x^2 - y^2)$ is injective. I showed this by calculating an inverse $f^{-1}:\mathrm{Im}(f) \to \mathbb R_{>0} \times \mathbb R$.
But this involves a long calculation and nasty substitutions. So I wondered if there is a more elegant way of doing this. I would appreciate some hints :)