manipulating two numbers that both have + and - sign in front

547 Views Asked by At

I have encountered a math formula while studying adding or substracting variance of two independent distribution

enter image description here

My question is, why

enter image description here

and

enter image description here

equals

enter image description here

Both number have a + and - sign in front, and how they are manipulated is really tripping me up. Could someone please kindly explain?

2

There are 2 best solutions below

0
On BEST ANSWER

$$\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)$$

0
On

First case: using the "top" signs. Then we have $\color{blue}{+2E(xy)}$ and $\color{blue}{-2\mu_x\mu_y}$, which add up to: $$+2E(xy)-2\mu_x\mu_y=+2[E(xy)-\mu_x\mu_y].$$ Second case: using the "bottom" signs. Then we have $\color{blue}{-2E(xy)}$ and $\color{blue}{+2\mu_x\mu_y}$, which add up to: $$-2E(xy)+2\mu_x\mu_y=-2[E(xy)-\mu_x\mu_y].$$ Putting the two cases together, we can abbreviate the outcome as $\pm2[E(xy)-\mu_x\mu_y]$, as claimed.