Tagged: common eigenvalues

Problem 587

Let $A$ and $B$ be square matrices such that they commute each other: $AB=BA$.
Assume that $A-B$ is a nilpotent matrix.

Then prove that the eigenvalues of $A$ and $B$ are the same.