I have a doubt that involves Hilbert spaces and diagonalisation. So if we say that a diagonal operator in a basis can be written as, (with Dirac's notation)
$$A=\sum a_i |i\rangle \langle i|$$
In any space I know that this diagonalisation condition can be more complicated. But in a Hilbert space when a operator is expressable as I written before? Can I always write an operator in this form?
It's known that if the operator is hermitian, is diagonalisable. But as fas as I know this condition is not necessary and sufficient, and I don't know what restrctions can be imposed to matrixes in a Hilbert space.
I have not specified the dimension, so there could be some difference bethen the finite and infinite dimensions.
Let $ \mathcal{H}$ being be a real or complex Hilbert space, with inner product $\langle \cdot,\cdot\rangle$, and $L:\mathcal{H}\to \mathcal{H}$ being a compact linear operator.
Let us suppose that $L$ is a selfadjoint operator, that is $$\langle Lu,v\rangle=\langle u,Lv\rangle,\qquad u,\,v\in \mathcal{H}.$$ Then there exists a discrete orthonormal set $\{\phi_1,\,\phi_2,,\,\ldots\}$, and a set of scalar $\{\lambda_1,\,\lambda_2,\ldots\}$ (both sets can be finite sets, when the dimesion of $\mathcal{H}$ is finite), being such that $$L(u)=\sum_i\lambda_i\langle \phi_i,u\rangle\phi_i.$$
This results also holds if $L$ is a normal operator.