Principles of Mathematical Analysis, Exercise 1.16 (here is a semi-duplicate, same question, but different emphasis):
Suppose $k \ge 3, x,y \in \mathbb{R}^k, | x-y |=d>0,$ and $r>0.$ Prove that if $ 2r>d,$ there are infinitely many $ z \in \mathbb{R}^k$ such that $$| z- x| =| z - y| = r. $$
On the one hand, the proof seems quite intuitive: If $2r > d$, then $x, y$, and $z$, seen as points, form a triangle in $\mathbb{R}^k$. The orbits of $z$ form a circle in the $\mathbb{R}^k$, and obviously the number of $z$ is infinite.
However when one simply takes the equation $| z- x | =| z - y| (= r)$ and computes, it turns out different:
Since $|z- x| =| z - y| $ and for any vector $w\in \mathbb{R}^k(k \geq 3)$ , $| w|^2=w^2$, we have: $$(z-x)^2=(z-y)^2,$$ hence $$z^2-2zx+x^2=z^2-2zy+y^2,$$ $$x^2-y^2=2z(x-y),$$ $$(x+y)(x-y)=2z(x-y),$$ since $x-y \neq 0$ (for $|x-y|>0$), we have $z=(x+y)/2$, which means $z$ is unique rather than infinitely many.
Any idea as to what went wrong above would be appreciated.