Question: Let $G$ be a group and $H<G$ a subgroup with $|G:H|=2$
Show that the right cosets of $H$ in $G$ are $H$ and $G\backslash H$
Answer given: There are two right cosets, they are disjoint and their union is $G$. One coset is $H$ and so the other is $G\backslash H$
My interpretation: I understand that the two right cosets comes from $|G:H|=2$.
Why are they disjoint?
The definition I'm working with for right cosets is: Let $H\leq G$ and let $x\in G$. Then the subset $Hx=\{hx\mid h\in H\}\subseteq G$ is called a right coset of $H$ in $G$.
From this I can see that $H$ is a right coset of $G$ from letting $x=e$
How is $G\backslash H$ the other right coset?
I can see that $G\backslash H\leq G$ and is disjoint to $H$ by definition, but how did we arrive at this result? Is this just a standard result?
Any two distinct right cosets of any subgroup $H$ of any group $G$ are disjoint. This is why: Assume the two cosets $Hx$ and $Hy$ have one element $g$ in common (i.e. they are not disjoint). Since $g \in Hx$, there is a $h_1\in H$ such that $g = h_1x$ (that's what $g\in Hx$ means). At the same time there is an $h_2 \in H$ such that $g = h_2y$. We therefore have $h_1x = h_2y$, or said differently, $x = h_1^{-1}h_2y$.
Now any element $h'x \in Hx$ can be written as $h'h^{-1}_1h_2y \in Hy$, so we have $Hx\subseteq Hy$. Since also $y = h_2^{-1}h_1x$, we get $Hy \subseteq Hx$, so the two cosets are in fact equal.
Of course, the moment you know that there are two cosets of $H$, they are disjoint, and that every element of $G$ is in some coset of $H$, it's not very difficult to conclude that with $H$ being one coset, $G\setminus H$ must be the other.
Side note: If $|G:H| = 2$, then the right and left cosets coincide. This is not necessarily the case otherwise, unless $G$ is abelian.