Let $f$ be the function defined by $$f(x)=x^2-4x$$ for $x\ge 2$. Find the inverse function indicating its domain and the range.
When I try to make $x$ the subject I get $+$and $-$ two answers for the inverse function. Is it the proper answer? The answer I got is $$ x=2 \pm \sqrt{y+4}.$$ Is it correct and how do I determine the domain and range of the function? Thanks

If You understand $f$ to be a function on $\mathbb{R}$ it is not invertible but the restrictions $f|_{\mathbb{R}^{\leq 2}}$ and $f|_{\mathbb{R}^{\geq 2}}$ are invertible with inverses $g_1:\mathbb{R}^{\geq-4}\rightarrow \mathbb{R}^{\leq 2},x\mapsto 2-\sqrt{x+4}$ and $g_2:\mathbb{R}^{\geq-4}\rightarrow \mathbb{R}^{\geq 2},x\mapsto 2+\sqrt{x+4} $ respectively.