I am studying for my linear algebra final, and a question that has appeared on a few past exams is in the general form:
Create an example of a n by n matrix, with one of its eigenvalues equal to x, that is (not) diagonal, is (not) diagonalizable, and is (not) invertible.
The (not)s meaning a specific question may ask for the quality or state is must not have the quality. I'm unsure exactly how to approach this type of question. A specific example of this question type can be seen below:
e.g. Construct an example of a 2×2 matrix, with one of its eigenvalues equal to −1, that is not diagonal or diagonalizable, but is invertible.
if we take: $$\begin{bmatrix}a & b\\c & d\end{bmatrix}$$ then we can deduce both $$ad-bc \neq 0$$ and $$(a+1)(d+1)-bc = 0$$
On how to make it not diagonalizable I can see how one could make -1 the only eigenvalue and somehow use an equation to ensure that it's multiplicity is 1. I'm not sure how to do this or how to move on from here. Any help would be appreciated on how to solve the general set of these questions or on how to solve this particular problem.
Thank you for the help.
Hint:
If a matrix, $A \in \mathbb{R}^{2 \times 2}$ has $2$ distinct eigenvalues, then it must be diagonalizable. Hence both of the eigenvalues must be $-1$.
Verify that $$\begin{bmatrix} -1 & 1 \\ 0 & -1 \end{bmatrix}$$ satisfy the condition by checking that it is not diagonalizable.
Edit to response to OP's further question:
For $A\in \mathbb{R}^{4 \times 4}$, we can consider the matrix
$$\begin{bmatrix} -1 & 1 & 0 & 0\\ 0 & -1 & 0 & 0 \\ 0 & 0 & -1 & 0\\ 0 & 0 & 0 & -1 \end{bmatrix}$$
If we consider the matrix $A-\lambda I$, we get
$$A-\lambda I =\begin{bmatrix} 0 & 1 & 0 & 0\\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 \end{bmatrix}$$
We can see the $$nullity(A-\lambda I)=n-1 < n,$$ hence the geometric mulitplicity corresponding to $-1$ is less than $n$.