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.
Hint One can proceed naively by viewing both Lie algebras as defined on the same underlying vector space, $\Bbb F^2$. Then, we look for a linear transformation $\phi : \Bbb F^2 \to \Bbb F^2$ that is a Lie algebra isomorphism. Fixing bases---the natural ones are $(x, y)$ and $(h, e)$ for the source and target, respectively---determines a matrix representation $$[\phi] = \pmatrix{A&B\\C&D}$$ of $\phi$.
Now, since $\phi$ should be a Lie algebra isomorphism, we must have $$\phi([x, y]) = [\phi(x), \phi(y)]$$ (and on the other hand, this is the only additional requirement that a linear isomorphism $\phi$ must satisfy to be one).