Find a linear Lie algebra isomorphic to the nonabelian two dimensional algebra with basis $x,y$ such that $[x,y]=x$. (Hint: Look at the adjoint representation.)
$\DeclareMathOperator{\ad}{ad}$The adjoint representation takes $a\in L$ to $\ad a$, which is the map from $L$ to itself taking $b\mapsto [a,b]$. So I'm looking at $\ad x$, which is represented by the matrix $$\phi(x)=\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}$$ (since $[x,x]=0, [x,y]=x$). On the other hand, $\ad y$ is represented by $$\phi(y)=\begin{pmatrix} -1 & 0 \\ 0 & 0 \end{pmatrix}$$ (since $[y,x]=-x, [y,y]=0$). So the element in the isomorphic linear Lie algebra corresponding to $z=cx+dy$ is $$\phi(z)=\begin{pmatrix} -d & c \\ 0 & 0 \end{pmatrix}.$$
I can verify by hand that $\phi([z_1,z_2])=[\phi(z_1),\phi(z_2)]$ by using $z_1=ax+by, z_2=cx+dy$ and expanding. (Is there an easier way to see?) Do I need to check that the linear algebra satisfies the Lie algebra axioms?