If [tex]f^{-1}(x)[/tex] is the inverse of [tex]f(x)[/tex], then
[tex]f\left(f^{-1}(x)\right) = x[/tex]
We're given a domain for [tex]f(x)[/tex] of [tex]x\ge0[/tex], so [tex]f\left(f^{-1}(x)\right) = x[/tex] is valid only for [tex]f^{-1}(x)\ge0[/tex].
Now,
[tex]f\left(f^{-1}(x)\right) = \left(f^{-1}(x) + 1\right)^2 + 2 = x[/tex]
Solve for the inverse :
[tex]\left(f^{-1}(x) + 1\right)^2 = x - 2 \\\\ \sqrt{\left(f^{-1}(x)+1\right)^2} = \sqrt{x-2} \\\\ \left|f^{-1}(x) + 1\right| = \sqrt{x-2}[/tex]
Since [tex]f^{-1}(x)\ge0 \implies f^{-1}(x)+1 \ge0[/tex], by definition of absolute value we have
[tex]\left|f^{-1}(x)+1\right| = f^{-1}(x) + 1[/tex]
Then we end up with
[tex]f^{-1}(x) + 1 = \sqrt{x-2} \\\\ \boxed{f^{-1}(x) = \sqrt{x-2}-1}[/tex]