I have question regarding the following problem: Let $H$ be a Hilbert space and $T$ a bounded linear operator from $H$ to $H$. If we assume that $T$ is selfadjoint with spectrum in $[0,\infty)$ can we conclude that $T=S^2$ for some selfadjoint bounded operator $S$ (I know that this implies that $T$ is positive but I want to show the implication directly)?
I started to define $X = T-aI$ where $a \in (-\infty,0)$. Then $X$ is selfadjoint and invertible but I don't know how to proceed.
The answer is yes. The Theorem on page 265 in Frigyes Riesz and Béla Sz.-Nagy's Functional Analysis (Dover paperback 1990) states:
What I like about their proof is that it is constructive, there is no compactness assumption, it works in real or complex Hilbert space and does not use the spectral theorem.