I have encountered a math formula while studying adding or substracting variance of two independent distribution
My question is, why
and
equals
Both number have a + and - sign in front, and how they are manipulated is really tripping me up. Could someone please kindly explain?




$$\pm 2E(XY) \mp 2\mu_x\mu_y = \pm (2E(XY) - \mu_x\mu_y)$$
When the coefficient of $E(XY)$ is $+2$, the corresponding coefficient for $\mu_x\mu_y$ is $-2$.
$$+ 2E(XY) - 2\mu_x\mu_y = +(2E(XY) - \mu_x\mu_y)$$
When the coefficient of $E(XY)$ is $-2$, the corresponding coefficient for $\mu_x\mu_y$ is $+2$.
$$- 2E(XY) + 2\mu_x\mu_y = -(2E(XY) - \mu_x\mu_y)$$