Say that we have $X_i \sim \mathcal{N}(\mu_i, \sigma_i^2)$. Is there some formula to calculate analytically the expected value of the sum $S = \sum_i^n X_i^2$?. This is equivalent to computing $\mathbb{E}\left(||X||^2 \right)$ where $X \sim \mathcal{N}(\mu, \Lambda)$ and $\Lambda$ is a diagonal matrix with positive entries $\Lambda_{ii} = \sigma_i^2$.
From the above, we know that each $\frac{X_i^2}{\sigma_i^2} \sim \chi^2_1\left( \frac{\mu^2}{\sigma_i^2} \right)$, where $\chi^2_1(\lambda)$ is the non-central chi-squared distribution with 1 degree of freedom and non-centrality parameter $\lambda$.
I am interested in this problem following several answers to related problems (e.g. 1, 2), showing that the probability distribution of this sum, $S = \sum_i^n X_i^2$, or equivalently, of $||X||^2$ is very complicated, being related to the generalized chi squared distribution. But I'm wondering whether, as opposed to the distribution, the expected value (and hopefully some other moments too) have simpler expressions.