Suppose we have n jointly distributed random variables $x_i,i=1,...,n,$ with mean and variance $E(x_i)=\mu_i$, $Var(x_i)=\sigma^2_i$ and covariance $Cov(x_i,x_j)=\sigma_{ij}.$ Then the weighted sum of the n random variable has mean
$E\bigg(\displaystyle\sum_{i=1}^n\omega_ix_i\bigg)=\displaystyle\sum_{i=1}^n \omega_i\mu_i$
and variance
$Var\bigg(\displaystyle\sum_{i=1}^n\omega_ix_i\bigg)=\displaystyle\sum_{i=1}^n\displaystyle\sum_{i=1}^n\omega_i\omega_j\sigma_{ij}$
How to prove both these formulas? Any member may show its correct proof along with examples.