How to prove the equality $|\sqrt{x}-\sqrt{a}| = \frac{|x-a|}{\sqrt{x}+\sqrt{a}}$ How to prove this equality?
$|\sqrt{x}-\sqrt{a}| = \frac{|x-a|}{\sqrt{x}+\sqrt{a}}$
related to this post

Assuming both $a$ and $x$ are positive.  Two cases (1) $x \gt a$ and (2) $x\le a$.
Case(1) becomes $\sqrt{x}-\sqrt{a}=\frac{x-a}{\sqrt{x}+\sqrt{a}}$.  Clear the denominator and get $x-a=x-a$.  Since $x\gt a$, $x-a=|x-a|$
Case(2) becomes $\sqrt{a}-\sqrt{x}=\frac{a-x}{\sqrt{x}+\sqrt{a}}$.  Clear the denominator and get $a-x-a-x$. Since $x\le a$, $a-x=|a-x|=|x-a|$.
