Let $E$ and $F$ be two real finite-dimensional vector spaces. Let $f \, : \, E \, \rightarrow \, F$ be a linear transformation from $E$ to $F$ and $H$ a vector subspace of $F$ such that $F = H + \mathrm{Im}(f)$. I would like to prove that $f^{-1}(H)$ and $H$ have the same codimension.
By definition, $\mathrm{codim}(H) = \dim(F) - \dim(H)$. Showing that $f^{-1}(H)$ has the same codimension as $H$ is equivalent to finding/constructing a subspace $G$ of $E$ such that $E = G \oplus f^{-1}(H)$ and $\dim(G) = \dim(F)-\dim(H)$. How can I construct such a subspace $G$ ?
Another idea: the Grassman formula gives : $$ \dim(F) = \dim(H) + \mathrm{rg}(f) - \dim \big( H \cap \mathrm{Im}(f) \big). $$ So, the codimension of $H$ is also equal to $\mathrm{rg}(f) - \dim\big( H \cap \mathrm{Im}(f) \big)$. So $\dim(G)$ should satisfy to: $\dim(G) + \dim\big( H \cap \mathrm{Im}(f) \big) = \mathrm{rg}(f)$.