$(y-x)(y+x)=0$ is a graph that combines $y-x=0$ and $y+x=0$.
I understood that by multiplication 2 functions (or more) that in the form of $a=0$ and $b=0$, so $a\cdot b=0$ will be the 2 functions. (Please explain it to me more, and why it happens).
So my question is why: $(y-\sqrt{x})(y-\sqrt{-x})=0$ is not a graph that includes $y=\sqrt{x}$ and $y=\sqrt{-x}$ How can I get to a $y$ and $x$ form which will give me a graph that includes $y=\sqrt{x}$ and $y=\sqrt{-x}$ ?
Thanks

Because$\sqrt x$ and $\sqrt{-x}$ are not both real numbers except for $0$. You can use $y=\sqrt{|x|}$