Let $G$ be a finite group and let $x$ and $y$ be distinct elements of order 2 in $G$ that generate $G$. Prove that $G \cong D_{2n}$, where $n = |xy|.$
My attempt : This question already asked here.But i have different approach
Im thinking about different answer
My answer : Since every element of $G$ can be written as $x^a (xy)^b$ for $ 0 \le a\le 2$ and $0 \le b \le n$
let define a function $f : D_{2n} \to G $ by $$f(s^ar^b)=x^a(xy)^b$$
Now we have to prove that $f$ is homomorphism
proof : Take $ s^ar^b$ and $s^c r^d \in D_{2n}$
$f(s^ar^b.s^cr^d)= f(s^{a+c}r^{b+d})= x^{a+c}(xy)^{b+d}$
After that im not able to proceed further
if $c=1$ , then $f(s^{a+1}r^{d-b})=x^{a+1}(xy)^{d-b}= x^{a}(xy)^bx^1(xy)^d=f(s^ar^b)f(s^1r^d)$
– jasmine Feb 26 '21 at 17:20