There are two Lie algebra (up to isomorphism) of dimension two. One is abelian and other is as follows: $$ L=\text{span}\{x,y\}, [x,y]\neq 0, \ \text{say, } z .$$ Now $[x,y]=\alpha x+\beta y$ where $\alpha$ and $\beta $ are not simultaneously zero. Let $\beta\neq 0.$ Then \begin{align*} [x,z] &= [x,\alpha x+\beta y]=\frac{1}{\beta}[x,y]=\frac{1}{\beta}z. \end{align*} So this Lie algebra is isomorphic to the algebra with basis $\{h,e\}$ and whose bracket is characterized by $[h,e]=e$. I was reading an article Lie algebra of dimension 1,2 and 3, in which I found that the isomorphism is given as $$ x\mapsto \beta h,\ \text{and}\ y\mapsto -\alpha h+\frac{1}{\beta}e. $$ Now I am unable to get that how this isomorphism is coming, is it just by inspection or is there any way to get it.
Thanks.