Maths. If the function of inverse f(x)= +- the squareroot of X is not a function.how will i restrict it to be a function?

There are two branches: +√x and -√x

Just pick one branch of the graph.