Let $$A=\begin{bmatrix}1 & 1 & 0 & 0\\ -1 & 1 & 2 & 1\\ 0 & 0 & 3 & 1\\ 0 & 0 & -1 & 1 \end{bmatrix}\in M_4(\mathbb C)$$ I need to find all the $A$-invariant subspaces of $\mathbb{C}^{4}$.
I proved a theorem that says: every subspace which is $J_{k}\left(\lambda\right) $ invariant when $\lambda$ is eigenvalue of A is of the form $Span\left(e_{i},\ldots,e_{k}\right)$, and I know how to find the Canonical Jordan form of A, but I don't understand how to use the theorem or if there is another way to find all the invariant subspaces of A.
Too long for a comment:
We know that: a subspace $U$ is invariant under the matrix $A\in M_{n}(F)$ if, and only if, $$\forall u\in U:\quad Au\in U$$ However, as far as I have learned, finding them all is not always an easy task, but if the matrix $A$ is diagonalizable, everything is usually easier.
Notice that, the characteristic polynomial for $A$ is given by $$p_{A}(\lambda)=\lambda^{4}-6\lambda^{3}+14\lambda^{2}-16\lambda+8$$ The polynomial can be factorable over $\mathbb{C}$ but by hypothesis $A\in M_{4}(\mathbb{C})$ so no problem.
$$p_{A}(\lambda)=(\lambda-2)^{2}(\lambda-2\lambda+2)$$ Then the characteristic equation is given by $$p_{A}(\lambda)=0\implies \lambda_{1}=2,\quad \lambda_{2}=1+i,\quad \lambda_{3}=1-i$$ With algebraic multiplicity $2,1,1$ to $2,1+i, 1-i$ respectively. We know $A$ is diagonalizable if, and only if, the algebraic multiplicity of the eigenvalue $\lambda_{i}$ is the same which the geometric multiplicity of the eigenvalue $\lambda_{i}$ for each $i$.
However solving $(A-\lambda_{i}I)=\vec{0}$ for each eigenvalues we get
$$\lambda_{1}=2\longrightarrow v_{1}=\begin{pmatrix}-1/2\\-1/2\\-1\\1\end{pmatrix}\implies 2\not=1$$ $$\lambda_{2}=1+i\longrightarrow v_{2}=\begin{pmatrix} -i\\1\\0\\0\end{pmatrix}\implies 1=1$$ $$\lambda_{3}=1-i\longrightarrow v_{3}=\begin{pmatrix}i\\1\\0\\0\end{pmatrix}\implies 1=1$$ So $A$ is not diagonalizable since the algebraic multiplicity of $\lambda_{1}=2$ is not the same of geometric multiplicity.
Hence in this problem you have to work step-by-step using the definition given above and your theorem also should be useful because give a characterisation for the invariant subspace with the canonical Jordan form $J=\begin{pmatrix} 1-i&0&0&0\\0&1+i&0&0\\0&0&2&1\\0&0&0&2\end{pmatrix}$ where $A=PJP^{-1}$ with $P$ be a invertible matrix.
By other hand,notice for example the subspaces $\{\vec{0}\}$ and $\mathbb{C}^{4}$ they're invariant subspaces. Indeed, $A\vec{0}=\vec{0}\in\{\vec{0}\}$ and $Au=u\in \mathbb{C}^{4}$ for all $u\in\mathbb{C}^{4}$. Now see in the columns span, rows span, etc.
If $M_{4}(\mathbb{C})$ is working over the field $\mathbb{C}$ so $\dim_{\mathbb{C}}\left(M_{4}(\mathbb{C})\right)=4^{2}$ and it should be useful.