Here, $T$ and $U$ are self-adjoint operators on an $n$-dimensional inner product space.
I have wasted 2 hours on this stupid question but didn't get any headstart.
The main goal is to show that $T=U$. So I thought all I need to show is $T-U=0$. But I really don't know how to use the hypothesis to reach the conclusion. One answer to this problem that I came across claims that we need to find an orthonormal basis for $V$ consisting of eigenvectors of $T^2=U^2$ and since $T$ and $U$ are positive semidefinite, so are their squares. I can prove this but then it claims that the same basis would contain the eigenvectors of $T$ and $U$ as well with eigenvalues that are square root of eigenvalues of $T^2=U^2$, and since it's the same basis, $T$ and $U$ would be equal on that basis and hence they are equal.
I find that latter claim to be absurd and non-sensical, because if we assume an orthonormal basis $\gamma$ consisting of eigenvectors of $T$ and hence $U$, then if $\lambda$ is an eigenvalue of the corresponding eigenvector $v \in \gamma$ of $T^2$, then I can only show that $ \|\sqrt{\lambda} v\| = \| T(v) \|$. It's impossible for me to show that the two vectors are also equal, besides it's norm being equal.
I really need a help in this problem, because I banged my head on the wall, yet I couldn't find the correct method to solve this. If anyone has a better answer to this problem, please suggest.