What are the (most important) rules of double sums? Below are some rules I encountered - are they all correct and complete? Offerings of clear intuition or proofs (or other additions) are most welcome to remove confusion.
- General case: $$\sum_{i=1}^m[x_i] \cdot \sum_{j=1}^n[y_j] = \sum_{i=1}^m\sum_{j=1}^n[x_iy_j]$$
- Less general case ($m=n$): $$\sum_{i=1}^n[x_i] \cdot \sum_{j=1}^n[y_j] = \sum_{i=1}^n\sum_{j=1}^n[x_iy_j] = \sum_{i=1}^n[x_iy_i] + \sum_{i=1}^n\sum_{j=1 \\ j \neq i}^n[x_iy_j]$$
- Special case ($m=n,x_i=y_i$): $$\left(\sum_{i=1}^n[x_i]\right)^2 = \sum_{i=1}^n[x_i] \cdot \sum_{j=1}^n[x_j] = \sum_{i=1}^n\sum_{j=1}^n[x_ix_j] = \sum_{i=1}^n[x_i^2] + \sum_{i=1}^n\sum_{j=1 \\ j \neq i}^n[x_ix_j]$$
Question related to (3): why suddenly an index $j$ appears (initially, we had only $i$)?
Furthermore, in relation to (3) there is a theorem given in my textbook without intuition/proof:
When we work with double sums, the following theorem is of special interest; it is an immediate consequence of the multinominal expansion of $(x_1 + x_2 + \ldots + x_n)^2$:
Theorem: $$\sum_{i<j}\sum[x_ix_j] = \frac{1}{2}\left[\left(\sum_{i=1}^n[x_i]\right)^2 - \sum_{i=1}^n[x_i^2]\right], \text{ where } \sum_{i<j}\sum[x_ix_j] = \sum_{i=1}^{n-1}\sum_{j=i+1}^n[x_ix_j].$$
What is the special interest/purpose of this theorem (when is it useful?) and what is the relation with (3) above?