Found this on Wolfram MathWorld:
Covariance provides a measure of the strength of the correlation between two or more sets of random variates. The covariance for two random variates $X$ and $Y$, each with sample size $N$, is defined by the expectation value \begin{align}\operatorname{Cov}(X,Y) =&\; \mathbb E[(X-\mu_X)(Y-\mu_Y)] \tag1\\[2ex] =&\; \mathbb E[XY]-\mu_X\mu_Y .\tag2\end{align}
A link is probably better. http://mathworld.wolfram.com/Covariance.html. I'm looking for a proof of equation $(2)$ on that page.
Call $\mu_X = \mathbb{E}[X]$ and $\mu_Y = \mathbb{E}[Y]$
\begin{eqnarray} {\rm Cov}(X, Y) &=& \mathbb{E}[(X - \mu_X)(Y - \mu_Y)] \\ &=& \mathbb{E}[X Y - \mu_Y X - \mu_X Y + \mu_X \mu_Y] \\ &=& \mathbb{E}[X Y] - \mathbb{E}[\mu_Y X] - \mathbb{E}[\mu_X Y] + \mathbb{E}[\mu_X \mu_Y] \\ &=& \mathbb{E}[X Y] -\mu_Y \mathbb{E}[X] - \mu_X\mathbb{E}[Y] + \mu_X \mu_Y \\ &=& \mathbb{E}[X Y] -\mu_Y \mu_X - \mu_X\mu_Y + \mu_X\mu_Y \\ &=& \mathbb{E}[X Y] -\mu_X \mu_Y \end{eqnarray}