I have the following two sets
$\mathcal{S}= \left\lbrace (x,y,z,w) \in \mathbb{R}^4 \mid x^2+y^2- z^2-w^2 = 1 \right\rbrace$
and $\mathcal{S}' = \left\lbrace (x,y,z,w) \in \mathbb{R}^4 \mid x^2+y^2- z^2-w^2 = r \right\rbrace$
for some non-zero real number $r$.
I need to show that these two sets are diffeomorphic.
I considered taking two cases for $r$ ($r>0$ and $r<0$);
then considering the map $f :\mathcal{S} \rightarrow \mathcal{S}' $ where $f( x,y,z,w) = \sqrt{|r|} ( x,y,z,w) $ when $r>0$.
Is this correct?
Thank you.