How do I show that $$\text{Var}\bigg(\sum_{i=1}^m X_i\bigg) = \sum_{i=1}^m \text{Var}(X_i) + 2\sum_{i\lt j} \text{Cov}(X_i,X_j)$$
when I know that $$ \left(\sum_{i=1}^{n}a_i\right)^2= \sum_{i=1}^{n}\sum_{j=1}^{n}a_ia_j $$ and so $$ {\rm var} \left( \sum_{i=1}^{n} X_i \right) = \sum_{i=1}^{n} \sum_{j=1}^{n} \big( E(X_i X_j)-E(X_i) E(X_j) \big) = \sum_{i=1}^{n} \sum_{j=1}^{n} {\rm cov}(X_i, X_j)$$ where do I go from here to get the result?
Please think about the RHS term $\displaystyle \sum_{i=1}^{n} \sum_{j=1}^{n} Cov(X_i, X_j)$
What happens when $i = j$?
$Cov(X_i, X_j)$ becomes $Var(X_i)$
When $i \neq j$, there are two terms viz., $Cov(X_i, X_j)$ and $Cov(X_j, X_i)$ in the summation. They are equal. Hence it is enough to replace the sum of these two terms by $2 Cov(X_i, X_j)$ when $i < j$. That is why you have a factor of $2$ before the single summation.
Hence
$\displaystyle \sum_{i=1}^{n} \sum_{j=1}^{n} Cov(X_i, X_j)$
$ = \displaystyle \sum_{i=1}^{n} Var (X_i) + 2 \displaystyle \sum_{i < j} Cov(X_i, X_j)$