Let $(G,*)$ and $(G',\circ)$ be groups. The order of an element $x$ of a group is denoted by $|x|$. Let $\varphi: G\rightarrow G'$ be a homomorphism. Show that, for each $a \in G$, $$\big| \varphi (a) \big| \le | a |\,.$$
I thought so, if $\varphi$ is a homomorphism then given $a, b \in G$, we have \begin{equation} \varphi (a \ast b) = \varphi (a) \diamond \varphi (b). \end{equation}
I don't know how to use this to show that the order of an element in the image is less than or equal to the order of that element. Can someone help me please?
Hint: We have $a^{|a|} = 1$, hence $1=\varphi(1) = \varphi(a^{|a|}) = \varphi(a)^{|a|}$. What can you conclude about $|\varphi(a)|?$