Let $f:V\to V$ be a $F$-linear map, $V$ an $n$-dimensional vector space over $F$, $\operatorname{rank} E=r$, $W=\operatorname{Im} f$, $\tilde f:=f|_W:W\to W$.
Let $\mu$ be the minimal polynomial of $f$ and $\tilde\mu$ the minimal polynomial of $\tilde f$.
I'm trying to prove that $\mu=\tilde\mu$ or $\mu=X\cdot\tilde\mu$.
I've already proven every non-zero eigenvalue of $f$ to be an eigenvalue of $\tilde f$, thus there must be a $Q\in F[X]$ with $\mu=Q\cdot\tilde\mu$ but I can't seem to understand why $Q$ must either be $1$ or $X$.
Hint: Your argument is sufficient to prove that $Q$ must be $x^k$ for some $k$.
Let $v_1,\dots,v_r$ be a basis for the image, and exend this to a basis $v_{1},\dots,v_n$ for $V$. If we write $f$ with respect to this basis, we have $$ T_f = \pmatrix{T_{\tilde f}&M\\0&0} $$ What does this tell you about the minimal polynomial (or the Jordan Canonical form, if you prefer) of $f$?