# Eigenvalues of product/sum of two matrices

Find an example of matrices, $A$ and $B$, with $AB=BA$ and for which $\lambda$ is an eigenvalue of $A$, $\mu$ an eigenvalue of $B$, but $\lambda+\mu$ is not an eigenvalue of $A+B$, and $\lambda \mu$ not an eigenvalue of $AB$. Can anyone please provide an example of two such matrices?matrices should not be triangular and diagonal

-
Pick for A and B two matrices that are really easy to calculate with that satisfy the conditions. Which ones did you pick? Do they work? If not, why not? –  I like Serena Mar 22 at 13:53
"low"?? Not even a single accepted Question/Answer.. I am not sure if any body would wish to help you if you do not react properly for users who spared their time to help you... –  Praphulla Koushik Mar 22 at 14:23

Ok trying again. Take $$A = \begin{bmatrix} 0 & 0 & 1\\ 0 & 0 & 0\\ 1 & 0 & 0\end{bmatrix}, \qquad B = \begin{bmatrix} 1 & 0 & 1\\ 0 & 2 & 0\\ 1 & 0 & 1\end{bmatrix}\,.$$

These matrices commute, neither is diagonal, and neither is triangular.

Eigenvalues of $A$: $-1, 1, 0$.

Eigenvalues of $B$: $2, 2, 0$.

Eigenvalues of $A+B$: $3,2,-1$.

Eigenvalues of $AB$: $2,0,0$.

So take $\lambda = -1$ and $\mu = 2$.

-
$A=\begin{pmatrix}0&1\\1&0\end{pmatrix}$ has eigenvalue 1, $B=\begin{pmatrix}0&2\\2&0\end{pmatrix}$ has eigenvalue -2
$A+B=\begin{pmatrix}0&3\\3&0\end{pmatrix}$ does not have eigenvalue $1-2=-1$
$AB=\begin{pmatrix}2&0\\0&2\end{pmatrix}$ does not have eigenvalue $1\cdot-2=-2$
Nice one.${{}}$ –  Git Gud Mar 22 at 15:53