KCET 2014 Mathematics Paper

Mathematics Class XII Relations and Functions Invertible Function
Question 4

Suppose $f(x) = (x+1)^2$ for $x \ge -1$. If $g(x)$ is a function whose graph is a reflection of $f(x)$ in the line $y = x$, then $g(x)$ =