Prove that a linear combination of zero-sum vectors also sums to zero

654 Views Asked by At

I have a matrix $A$ whose rows sum to zero, such that $\sum_j A_{ij} = 0, \forall i$. If I multiply it by any matrix, $B$, can it be proven that the resulting matrix, $C = BA$, must also have zero sum rows? I find that they are empirically.

Is such a proof available as a reference in any text book?

3

There are 3 best solutions below

2
On BEST ANSWER

Note that, by matrix multiplication rule, the rows of the matrix

$$C = BA$$

are linear combination of the rows of the matrix $A$ and thus also $\sum_j C_{ij} = 0, \forall i$.

As an alternative since the vector $x=(1,1,...,1)\in N(A)$ we have that

$$Cx=BAx=B\cdot 0=0$$

0
On

For any $i = 1, \ldots, n$ we have

$$\sum_{j=1}^n C_{ij} = \sum_{j=1}^n (BA)_{ij} = \sum_{j=1}^n \sum_{k=1}^n B_{ik}A_{kj} = \sum_{k=1}^n\left(B_{ik}\cdot\sum_{j=1}^n A_{kj}\right) = \sum_{k=1}^n B_{ik} \cdot 0 = 0$$

Hence $C$ also has zero mean rows.

0
On

The answer is yes.

Note that the sum of the $i_{th}$ row of $C$ is $$C_{i1} + C_{i2}+...+ C_{in}$$

$$ C_{i1} = B_{i1}A_{11}+B_{i2}A_{21}+...+B_{im}A_{m1}$$ $$ C_{i2} = B_{i1}A_{12}+B_{i2}A_{22}+...+B_{im}A_{m2}$$

$$.\\.\\.\\ C_{in} = B_{i1}A_{1n}+B_{i2}A_{2n}+...+B_{im}A_{mn}$$

Upon adding and factorization we get

$$ C_{i1} + C_{i2}+...+C_{in} = B_{i1} ( A_{11}+A_{12}+...+A_{1n}) + B_{i2} (A_{21}+A_{22}+...+A_{2n}) + ... +B_{im} (A_{m1}+A_{m2}+...+A_{mn}) =0$$