I have to prove that if a^2=b^2 then a=b or a=-b, and I came up with the following and I am wondering if it is valid use of absolute values?: a^2=b^2 |square root of both sides
|a|=|b| |particularly interested in whether or not this next step is valid:
a=b or a=-b
Thank you in advance.
Edit: I do understand that perhaps easier way to prove is the following: a^2=b^2
a^2-b^2=0
(a+b)=0 or (a-b)=0
a=-b or a=b
But I am interested in whether or not my prior proof was valid.
That is correct, from the logical point of view. But it is incomplete. You proved correctly that, if $a^2=b^2$, then $|a|=|b|$. But now you still have to prove that if $|a|=|b|$, then $a=b$ or $a=-b$.