Endomorphism/Invariant linear subspace/Matrix/Exercise

Let be a linear mapping on a finite-dimensional -vector space . Let . Show that there exists an invariant linear subspace of dimension , if and only if there exists a basis of such that the describing matrix of , with respect to this basis, has the form