Let $E$ an infinite dimensional complex Hilbert space and $\mathcal{L}(E)$ be the algebra of all bounded linear operators on $E$.
Definition: Let $T \in \mathcal{L}(E)$. The Moore-Penrose inverse of $T$, denoted by $T^{+}$, is defined as the unique linear extension of $(\overline{T})^{-1}$ in $$D(T^{+}) = \mathcal{R}(T)+\mathcal{R}(T)^{\perp},$$ with $\mathcal{N}(T^{+}) = \mathcal{R}(T)^{\perp}$ and $\overline{T}$ is the isomorphism $$\overline{T}:=T|_{{\mathcal{N}(T)}^{\perp}}: {\mathcal{N}(T)}^{\perp} \longrightarrow \mathcal{R}(T).$$ Moreover, $T^{+}$ is the unique solution of the four ''Moore-Penrose equations'': $$TXT = T,\quad XTX = X,\quad XT = P_{N{(T)^{\bot}}}\,\,\mbox{and}\,\,\quad TX = P_{\overline{\mathcal{R}(T)}}{{|}_{D(T^{+})}}.$$
Here $\mathcal{R}(T)$ and $\mathcal{N}(T)$ denote respectively the range and the nullspace of $T$. Also $P_{F}$ denote the orthogonal projection onto $F$.
I want to see with an example how we compute $T^{+}$ when $T$ is a non invertible operator acting on an infinite dimensional complex Hilbert space $E$.
If you take $T\in B(\ell^2(\mathbb N))$ given by $Te_n=\tfrac1n e_n$ on the canonical orthonormal basis, that is $$ T(x_1,x_2,\ldots)=(x_1,\tfrac12 x_2,\tfrac13 x_3,\ldots), $$ then $$ T^+(x_1,x_2,\ldots)=(x_1,2 x_2,3 x_3,\ldots). $$ A very natural example is given by the shift: if $S$ is the unilateral shift $$ S(x_1,x_2,\ldots)=(0,x_1, x_2, x_3,\ldots), $$ then one can check directly from the Moore-Penrose equations that $S^+=S^*$, i.e., $$ S^+(x_1,x_2,\ldots)=(x_2,x_3,\ldots). $$