For $k$ and $l$ $\in n$ how can I prove the following :
$$(\sum_{k=1}^{k=n}\pi_{k}Y_{k}-\sum_{k=1}^{k=n}Y_{k})^2=\sum_{k=1}^{k=n}\sum_{l=1}^{l=n}Y_{k}Y_{l}(\pi_{k}-1)(\pi_{l}-1)$$ .
I have really tried to prove it but I could not .In fact all what I know about sums rules is that
$$ (\sum_{k=1}^{k=n}a_{k})^2=\sum_{k=1}^{k=n}a_{k}a_{k}+\sum\sum_{k\neq l}a_{k}a_{l}$$
I have tried to use this rule to prove it , but can't solve it by myself, can somebody help me please .
Thanks in advance