solve( (x-a)^2=sqrt(x-a), a)
I don't know what the ",a" means in the question so I ignored it......
I have also assumed that x and a are real numbers.
\( (x-a)^2=\sqrt{x-a}\\ (x-a)^2=(x-a)^{0.5}\\ \mbox{Divide both sides by } (x-a)^{0.5}\\ (x-a)^{3/2}=1\\ (x-a)^3=1\\ \mbox{The only real solution is }x-a=1\\ \mbox{or }\quad a=x-1 \)