Let $G=P\rtimes Q$ with $P=\mathbb{Z}_7=\langle b\rangle$ and $Q=\mathbb{Z}_3=\langle a\rangle.$ Take $\theta: Q\rightarrow {\rm Aut}P$ to be $\theta(a)(b)=b^4$. Classify up to isomorphism $ G/G'$.
I was able to solve this using basic techniques: $G$ is not abelian, because conjugation is not trivial. Therefore $G'\not=\{1_G\}$. Fair enough. Let us calculate a comutator:
$$[(p,q),(\tilde{p},\tilde{q})]=(\text{something},(3-q)+(3-\tilde{q})+q+\tilde{q})=(\text{something},0)$$
But this means that $G'\leq (\mathbb{Z}_7,0)$. By Lagrange's Theorem $|G'|=1$ (absurd!) or $|G'|=7$. This means $|G'|=7$ and therefore $|G/G'|=3$ and $G/G'\approx \mathbb{Z}_3$.
Fair enough. The trouble is that I have looked at the solution and I am not able to understand anything there:
$$G/G'=\langle a,b\mid a^3=1=b^7,b=baba^{-1}=b^4\rangle=$$ $$\langle a,b\mid a^3=1=b^7,b=baba^{-1}, 1=b^3\rangle=$$ $$\langle a,b\mid a^3=1=b^7,b=baba^{-1},b=1\rangle=\langle a\mid a^3=1\rangle=\mathbb{Z}_3$$
Shouldn't we consider elements of the form $gG'$? We didn't compute $G'$. What does this equality $G/G'=\langle a,b\mid a^3=1=b^7,b=baba^{-1}=b^4\rangle$ mean?