My non-linear analysis book says that if I have a linear operator $T:X\to Y$ with close range $R$ and $\operatorname{codim}(R)=1$ (and also $\dim(\ker(T))=1$) then there exists $\phi\in Y^{*}$ such that $R=\{ y\in Y:\phi(y)=0\}$.
I suspect Hahn-Banach involved but I don't know why it is true. Could someone help me out?
Thank you.