can someone exlpain this covariance?-cov.jpg

how did we get from the first line to the second?