TITLE: Every self-adjoint trace class operator on $L^2$ has integral kernel
QUESTION [7 upvotes]: I have asked this question on MSE but did not receive an answer. I thought I could try it here.
Let $T$ be a self-adjoint trace-class operator on $L^2(\mathbb{R})$. Is is true that it can be represented as an integral operator. 
I thought the kernel would be $$k_T(x,y) =\sum_{i=1}^\infty \lambda_i \phi_i(x) \bar\phi_i(y).$$
Here $\{\phi_i\}$ is an eigenbasis of $T$, i.e. $T=\sum_i \lambda_i |\phi_i\rangle\langle\phi_i|$. Then, we have $$\int k_T(\cdot,y) f(y) = \int\sum_i \lambda_i \phi_i(\cdot) \bar\phi_i(y) f(y) dy = \sum_i \lambda_i \phi_i \langle \phi_i, f\rangle=\sum_i \lambda_i |\phi_i\rangle\langle\phi_i|f\rangle = Tf.$$
Is this correct?

REPLY [5 votes]: Yes, this is correct. Actually, "self-adjoint trace-class" is more than you need; any Hilbert-Schmidt operator can be represented as an integral operator. The Hilbert-Schmidt operators from $L^2(X)$ to $L^2(Y)$ are precisely the integral operators with kernel in $L^2(X\times Y)$ (at least for $\sigma$-finite $X$ and $Y$). This should be in a standard reference, probably Dunford-Schwartz, for example.