I encountered the following weird matrix property.
Consider any general matrix $M_{n\times n}$ with the property that the sum of each column vanishes, that is
\begin{align} \sum^n_{j} M_{ji} =0 \end{align}
Denoting
- $M_{(1)}$ : the matrix obtained from $M$ by removing the first column and row,
- $M_{(2)}$ : the matrix obtained from $M$ by removing the second column and row,
- $M_{(1,2)}$ : the matrix obtained from $M$ by removing the first and second column and row,
- $u_{(k)}=(1,\dots,1)$ : the $(k)$-row vector with all elements being $1$,
- $C_{(n-1)\times (n-2)}=\begin{pmatrix} 0 \dots 0 \\ 1_{(n-2)\times (n-2)} \end{pmatrix} $, where $ 1_{(n-2)\times (n-2)}$ is the identity matrix
Define $p_1$ and $p_2$ as $$ p_1 = u_{(n-1)} \cdot\big(M_{(1)}\big)^{-1}\cdot\begin{pmatrix} 1 \\ 0 \\ \vdots\\0 \end{pmatrix}_{ (n-1)\times1}, \quad p_2 = u_{(n-1)} \cdot\big(M_{(2)}\big)^{-1}\cdot\begin{pmatrix} 1 \\ 0 \\ \vdots\\0 \end{pmatrix}_{ (n-1)\times1}. $$
Prove that all the elements of the row vector $$ u_{(n-1)} \cdot \left(p_2\big(M_{(1)}\big)^{-1}+p_1\big(M_{(2)}\big)^{-1}\right)\cdot C - (p_1+p_2)u_{(n-2)}\cdot \big(M_{(1,2)}\big)^{-1} $$ are identical.
This property comes from some intuition of the problem that I have been playing with. I have also tested it by evaluating it with a large set of matrix $M$ satisfying the first requirement.
(I thank user1551 for spotting an important typo, corrected now!)
I have tried writing the inverse using minors but does not seem to help as it is not easy to implement the requirement that $\sum_{j} M_{ji}=0$. Any comment/suggestion is greatly appreciated. Answers are of course the best! Thank you so much!