TITLE: Do we have $(G/H)\times H \cong G$ for groups in general?
QUESTION [5 upvotes]: After some thought I began to suspect $(G/H)\times H \cong G$, so I tried to construct an isomorphism by hand. I came up with $\varphi: (gH, h) \mapsto gh$ which came out to work provided $G$ is abelian. I can't think of anything if $G$ isn't abelian, but I'm pretty convinced it's true. How else can one prove isomorphism? (perhaps more importantly is this actually true; of course my difficulty would be easiest explained if this is false!)  
Edit: Outline of my 'proof':
$\varphi((gH,h))(fH,k)) = \varphi((gH,h))\varphi((fH,k)) = ghfk$ and $\varphi((gH,h)(fH,k)) = \varphi((gfH,hk)) = gfhk$. Hence $\varphi$ is multiplicative iff $G$ abelian.
Next, $(gH,h)^{-1} = (g^{-1}H, h^{-1})$, so $\varphi((gH,h)^{-1}) = \varphi((g^{-1}H, h^{-1})) = g^{-1}h^{-1} = (hg)^{-1} = (gh)^{-1} = \varphi((gH,h))^{-1}$. This again relied on $G$ being abelian, and shows that $\varphi$ is a homomorphism.
Now $\varphi(gH,h) = 1 \iff g=1$ and $h=1$; so $\ker(\varphi)=(H,1)$ and so $\varphi$ is injective.
Lastly, $\varphi(gH,1)\mapsto g$ is a surjection onto $G-H$ and $\varphi(H,h)\mapsto h$ is a surjection onto $H$. Therefore the image of $\varphi$ is $G-H \cup H = G$
This is why I believe that I have an isomorphism; I would be grateful if you could point out its errors!

REPLY [2 votes]: Here is an example with non-abelian groups. Let $G=S_3$ and let $H=A_3$, the latter being the odd permutations. Then $$G/H \times H \approx \mathbb{Z}/2 \times A_3 \approx \mathbb Z/2 \times \mathbb Z/3$$
But this cannot happen, as $S_3$ is not abelian.