Let $\operatorname{ad}_x:L\rightarrow GL(L)$ be the adjoint representation. In Humphreys "Introduction the Lie-Algebras and representation theory" one can find this example where $x,y$ and $h$ are defined here. (The first picture can be find on page 6 and the second one on page 22).
I would like to understand how one can compute $\operatorname{ad}_x$. Hopefully someone can help me :)
For a Lie algebra $\mathfrak{g}$ The function $ad_x: \mathfrak{g} \to \mathfrak{g}$ is given by $ad_x(y) = [x,y]$. Often, with matrices, $[x,y] = xy - yx$. So if $\mathfrak{g} = \mathfrak{sl}_2$ and $$ x = \pmatrix{0 & 1 \\ 0 & 0} $$ and $$ y = \pmatrix{a & b \\ c & -a} \in \mathfrak{g} $$ you will have $$ ad_x(y) = \pmatrix{0 & 1 \\ 0 & 0}\pmatrix{a & b \\ c & -a} - \pmatrix{a & b \\ c & -a}\pmatrix{0 & 1 \\ 0 & 0} = \dots $$