I have seen that when graphing $f\left(x\right)=x^{\frac{1}{2}}$ the graph only outputs positive and zero values (the range is greater or equal to 0), but according to what I know about algebra (correct me if I'm wrong), $x^{\frac{1}{2}}$ is equal to $\pm\sqrt{x}$.
Is it because $x^{\frac{1}{2}}$ actually equals $\sqrt{x}$ or because $f\left(x\right)=x^{\frac{1}{2}}$ can only be a function if we ignore negative outputs?