Let $X$ be a Banach space and let $T:X \rightarrow X$ be a linear map such that $T^2=T$ and both $\text{Im}(T)$ and $\text{Ker}(T)$ are closed. Then $T$ is bounded?
I got stuck in this problem while I was studying functional analysis. Can anyone help me?