Why the group $\langle x,y\mid x^2=y^2\rangle $ is not free?

The abelianization of a free group is a free abelian group: in particular, it is torsion-free. For your presentation, the relation $$2(x-y)=0$$ holds in the abelianization. Therefore, $G$ is free iff it is infinite cyclic. However, there clearly exists a morphism from $G$ onto $\mathbb{Z}_2 \times \mathbb{Z}_2$, so $G$ cannot be cyclic.

Added: In fact, your group $G$ is the fundamental group of the connected sum of two projective planes, that is of the Klein bottle $K$.

enter image description here

But we know that there exists a two-sheeted covering $\mathbb{T}^2 \to K$ from the torus $\mathbb{T}^2$. Therefore, $G$ has a subgroup of finite index two isomorphic to $\mathbb{Z}^2$. In particular, $G$ cannot be free.

Algebraically, it can be verified that $\langle x^2,xy^{-1} \rangle$ is a subgroup isomorphic to $\mathbb{Z}^2$ of index two in $\langle x,y \mid x^2=y^2 \rangle$.


Here's a direct proof using a little linear algebra. Suppose $G$ is freely generated by a set $S$. Then there is a surjective homomorphism $f$ from $G$ to the module $\Bbb Z^S$ (where finitely many coordinates are nonzero), and $f(x),f(y)$ are vectors in this space. But then $2f(x)=f(x^2)=f(y^2)=2f(y)$, so $f(x)=f(y)$ and since $x,y$ also generate $G$ the image of $f$ is $\Bbb Zf(x)=\Bbb Z^S$, so $f(x)=\pm1$ and $S$ is a singleton (since the module is one-dimensional). Thus $G$ is infinite cyclic, but then if $x=g^m$ and $y=g^n$ we get $2m=2n\to m=n\to x=y$, a contradiction.

Why is $x=y$ a contradiction? The definition of a group presentation like $\langle x,y\mid x^2=y^2\rangle$ is that there are no "extra" equalities that hold other than the ones specified and ones that follow from the specified equalities. In particular, that means that any equality in $G$ must also be an equality in any other group which also is generated by two elements $x,y$ and satisfies $x^2=y^2$. But $C^4=\{1,x,x^2,x^3=y\}$ does not satisfy $x=y$ even though $x,y$ generate it and $x^2=y^2$.


It is clear that $x^2$ is central in your group. As a free group has trivial center if its rank is larger than $1$, we see that it is free then either it is isomorphic to $\mathbb Z$ or trivial.

On the other hand, the abelianization of your group is clearly isomorphic to $\mathbb Z\oplus\mathbb Z/(2,2)$, which is not zero and has torsion. This is impossible.