Be $G$ a group with subgroups $U$ and $V$ and be $UV := \left\{uv \mid u \in U, v \in V \right\}$
I want to prove the following:
$UV$ is in general no subgroup of $G$.
Proof. Be $U \nsubseteq V$ and $V \nsubseteq U$. Be $x \in U \setminus V$ and $y \in V \setminus U$.
Hence $xy \in UV$ but $xy \notin U \cup V$. This implies $\left(xy \right)\left(xy\right) \notin UV$ per definition of $UV$, hence $UV$ is no subgroup of $G \quad \square$
I've heard that 'This implies $\left(xy \right)\left(xy\right) \notin UV$ per definition of $UV$' is not valid. I don't understand why this should be the case.
Would be $\left(xy \right)\left(xy\right) \in UV$, $xy$ had to be an element of $U$ or of $V$ per definition of $UV$. But it is $xy \notin U \cup V$.
What am I missing?
Given two subgroups $U$ and $V$, the set $UV$ may in fact be a group given certain conditions.
Some necessary and sufficient conditions: $UV$ is a subgroup of $G$ if and only if $UV = VU$.
Some sufficent conditions: If $U$ is contained in the normalizer of $V$, then $UV$ is a subgroup of $G$.
It would be a good exercise to show these two results. The second follows as a corollary of the first.
So in summary, $UV$ can be a group, but sometimes it's just a set. That is why a proof like the one you tried to write will not work: it is not sufficient to assume neither is contained in the other to show $UV$ is not a group.