Maybe my questions are stupit, but I'm so unsure about some properties of the heat equation.
Suppose we have a compact and smooth manifold M (possibly with boundary), then in a lot of books they write the heat kernel as $K(x,y,t)=\sum\limits_{i=0}^{\infty}e^{-\lambda_i t}u_{i}(x)u_i(y)$, where $\lambda_1 < \lambda_2\leq\lambda_3...$ are the eigenvalues of the Laplace operator acting on functions and the $u_i(x)$ are the corresponding normalized eigenfunctions.
1) What is the exact meaning of the equation $K(x,y,t)=\sum\limits_{i=0}^{\infty}e^{-\lambda_i t}u_{i}(x)u_i(y)$? Why does the sum on the right hand side converge for all $x,y \in M$ and $t\in (0,\infty)?$
2) Sometimes in books they interchanging the sum with differentiation and integration respectively, i.e. they write something like: $$\int_M K(x,y,t) dy=\int_M \sum\limits_{i=0}^{\infty}e^{-\lambda_i t}u_{i}(x)u_i(y)dy = \sum\limits_{i=0}^{\infty}\int_M e^{-\lambda_i t}u_{i}(x)u_i(y)dy.$$
or $$ \frac{\partial }{\partial x} K(x,y,t) = \frac{\partial }{\partial x}\sum\limits_{i=0}^{\infty}e^{-\lambda_i t}u_{i}(x)u_i(y) = \sum\limits_{i=0}^{\infty}\frac{\partial }{\partial x} e^{-\lambda_i t}u_{i}(x)u_i(y)$$
What are the exact reasons which justify those interchanges? I wold be very glad if you can help me.
Best regards