My teacher in general mathematics added another problem in the problem set I need to answer. I need to prove that the only solution of $|x| + \left(y-1\right)^2 = 0$ is $x=0$ and $y=1$.
I am told, and know for a fact, that the only possible solutions for both $|x|$ and $\left(y-1\right)^2$ are non-negative numbers. That is,
$$\forall x,y \in \Bbb R , |x| \geq 0 \; and \; \left(y-1\right)^2 \geq 0$$
And that the sum of two non-negative terms will only be $0$, if and only if they are both $0's$.
That's all off my progress and I don't know how to write it as a proper mathematical proof. Thanks in advance for anyone who will gladly help.
P.S. Please do correct me if I have stated something wrong.
Let $a$ and $b$ be two non negative real numbers such that $a+b=0$. Assume that $a>0$. Then $a+b>b\geq 0$, which is absurd.
So in your case here, you may immediately infer that $|x|=(y-1)^2=0$ and hence, that $x=0$ and $y=1$.