For example, from wiki, we know that
$$ \langle i, j \mid i^4 =1, i^2 = j^2, j^{-1}ij = i^{-1} \rangle = Q $$
where $Q$ denotes Quaternion group.
And by my own inspection, I speculated that
$$ \langle i,j \mid i^4 = j^4 = 1, ij = j^3i \rangle =Q $$
though I'm not really sure if it is correct.
I've checked every relation that hold in $Q$ can be derived from the relations in the presentations. But finding the order of the groups generated by the above presentations, I couldn't do it rigorously nor systematically. (I've considered every element that can be formed by the generators in the form $i^a j^b$ with $0 \leq a, b \leq 3$ and relations in the second presentation and for everything I've checked which is equal to which. And for all the elements in that form, to prove which is not equal to which, I've supposed which is equal to which and derived a contradiction. But personally I think my method is just a mess.)
Is there any effective, systematic way for proving this without checking everything?
And please correct me if there is anything wrong.
