I'm having a problem figuring out the correct, or best way to format some equations. I'll give a simple example: Suppose I want to show the identity function $i$ is injective. I need to show the following.
$$i(x_1)=i(x_2) \implies x_1 = x_2 $$
While logically this is clear, I'm not sure how to write it algebraically step by step. Here are some ideas:
$$ \begin{align} i(x_1)=i(x_2) \\ i(x_1)=x_2 \\ x_1 =x_2 \end{align} $$
If this is not ok (and something feels odd about it) then it seems like I'd need multiple equations like:
$$ \begin{align} i(x_1)=i(x_2) \\ =x_2 \end{align} $$ $$ \begin{align} i(x_2)=i(x_1)\\=x_1 \end{align} $$ $$ \therefore i(x_1)=i(x_2) \implies x_2 =x_1 $$
any thoughts?