I'm having a trouble with this proof (see bottom). At the last fourth line it says
$$tr(xy)=0 \implies \sum_{i=1}^na_if(a_i)=0$$
but $$tr(xy)=tr(sy)+tr(ny)=\sum_{i=1}^na_if(a_i)+tr(ny)$$
how do we know $tr(ny)=0$? The endomorphism $n$ is nilpotent and $y$ is diagonalizable but this only is not sufficient to infer $tr(ny)=0$. Maybe $n$ commutes with $y$?
