I just want to make sure I'm alright on this proof and whether the contradiction is necessary. In some of the proofs I've checked here they simply show that $x^n = 1$ to conclude that $|x| = n$, but shouldn't we also need to show that it's the minimal such integer as I've tried to do below?
Prop: Let $x \in G$, show that $|x| = |x^{-1}|$.
Proof: Assume that $|x| = n < \infty$, then we have that $(x^{-1})^n = (x)^{-n} = (x^n)^{-1} = 1$. Therefore it remains to show that $n$ is the minimal such integer. Assume for contradiction that $\exists \; r \in \mathbb{Z}^+$ such that $(x^{-1})^r = 1$ with $r < n$. Then by the similar logic to before $$ \begin{align} (x^{-1})^r &= 1 \\ x^r\cdot(x^r)^{-1} &= x^r \cdot1 \\ 1 &= x^r. \end{align} $$ But this contradicts the minimality of $n$ as $|x| = n$. If $|x| = \infty$, then assume for contradiction that $|x|^{-1} = k < \infty$. Identically to the above we can arrive at $$ \begin{align} (x^{-1})^k &= 1 \\ x^k\cdot(x^k)^{-1} &= x^k \cdot1 \\ 1 &= x^k. \end{align} $$ which contradicts that $x$ is of infinite order.
Is it unnecessary to use the contradictions, if so what's a hint at the direct proof?