I want to find the presentation of group $D_4= \{1, f, r,r^2,r^3, rf, r^2f, r^3f \} $. $r$ is the rotation of a square counterclockwise by 90 degree and $f$ is the action that flips the square. Here $f$ has order $2$ and $r$ has order $4$.
I have found that the relations $$f^2 =1 \\ r^4 =1 \\ fr=r^3f$$ can deduce all the operation results of elements in $D_4$. However, I am not sure $D_4 =\langle f,r | f^2 =1 ,r^4 =1 , fr=r^3f \rangle $ is the presentation of $D_4$. In other words, is $D_4$ the biggest group having these relations?
I feel that equality is key to this question. One must show there are no other equalities of two elements except those deduced from the abovementioned generating relations.