I'm practicing for a qualifying exam in algebra (the freebie attempt we get the week before my first semester of grad school). I don't have a lengthy or deep background with math so I'm especially interested in learning to write cleaner and more clever proofs or proofs that use different methods. Does anyone have feed back on my proof of the titular question or perhaps an alternative proof?
use the fact that $G$ and $H$ don’t have any subgroups of the same order besides the subgroup which is just the identity
then use that the kernel of a homomorphism is a normal subgroup and the kernel defines the homormorphism
But $G/\ker(f)$ is isomorphic to H. Since the order of $G/\ker(f)$ is a number composed of the product of primes that divide the order of G
because the order of $G$ is coprime to the order of $H$ we know $|G/\ker(f)| = 1$ and that therefore $f$ maps all of $G$ into the identity of $H$ hence $f$ is a trivial homomorphism
Say $|G|=n$ and $|K|=m$, with $\gcd(m,n)=1$. Find $r,s\in\mathbb{Z}$ such that $rm+sn=1$. Note that if $g\in G$ and $k\in K$, then $g^n=e$, $k^m=e$.
Let $f\colon G\to K$ be a morphism, and let $g\in G$. Then $g=g^{rm+sn} = g^{rm}(g^n)^s=g^{rm}$. So $$f(g) = f(g^{rm}) = f(g)^{rm} = (f(g)^m)^r = e^r = e.$$ Thus, $f$ is the trivial map.
Feedback: your assertion in (3) that $G/\mathrm{ker}(f)$ is $H$ is incorrect. You can say that $G/\mathrm{ker}(f)$ is isomorphic to its image in $H$, but since you are not assuming $f$ is onto, you can’t assert it is isomorphic to $H$, just to a subgroup of $H$.
The rest of the argument is too convoluted: note that $|G/\mathrm{ker}(f)|$ divides both $|G|$ (since it is equal to $|G|/|\mathrm{ker}(f)|$, and $|H|$ (because it is isomorphic to a subgroup of $H$), hence divides their gcd, which is $1$.