I have a question on how the simplification process goes for squaring square-roots and how absolute values interact with one another. Question is from IMO Math-Olympiad 1959 #2
$A = \sqrt{x + \sqrt{2x - 1}} + \sqrt{x - \sqrt{2x - 1}}$
$A^2 = \big(\sqrt{x + \sqrt{2x - 1}}\big)^2 + 2 \big(\sqrt{x + \sqrt{2x - 1}}\big)\big(\sqrt{x - \sqrt{2x - 1}}\big) + \big(\sqrt{x - \sqrt{2x - 1}}\big)^2$
???
$A^2 = 2(x + |x-1|)$