\(\displaystyle x = \sqrt{a - \sqrt{a + x}}\)
x = [-1 +- SQRT(4a + 1)] / 2
or
x = [1 +- SQRT(4a - 3)] / 2
There are restrictions on what x and a can equal.
For instance, to keep real values for x here, it is necessary that \(\displaystyle a \ge 0,\) but maybe not sufficient.
Why?
Suppose the radicand (a + x) is nonnegative. Then, it would be \(\displaystyle \sqrt{(neg. \ \#) - (at \ least \ 0)},\)
which is not real.
And because x is equal to the square root of a quantity (the basic idea of the given equation),
then x has to be nonnegative.
Additionally, the solution x = [-1 - SQRT(4a + 1)]/2 would have to be thrown out,
because it is necessarily negative.
Let's see. More restrictions may exist independently for x, for a, and/or for x in terms of a.
Edit:
And the radicand \(\displaystyle a - \sqrt{a + x}\) must be greater than or equal to 0.
Solving that gives \(\displaystyle x \le a^2 - a,\) but because \(\displaystyle x \ge 0 \ \ and \ \ a \ge 0, \)
then \(\displaystyle a = 0 \ \ or \ \ a \ge 1.\)