1

I am trying to study eigenvalues and eigenvectors using Mathematica. I am trying to compute $A-\lambda I$, so I created a matrix A and a matrix with $\lambda$ in the diagonal:

A = {{1, 2, 1}, {6, -1, 0}, {-1, -2, -1}}

L = DiagonalMatrix[{[Lambda], [Lambda], [Lambda]}] // MatrixForm

To compute the subtraction I evaluate A - L // MatrixForm, which yields the following output:

$\hskip2in$enter image description here

I was expecting, e.g., the first element to show as $1-\lambda$, ¿what is wrong? Any hints would be much appreciated!

Zweifler
  • 111
  • 3

0 Answers0