I would like to solve for the determinant of a $n\times n$ matrix $V$ defined as:
$$ V_{i,j}= \begin{cases} v_{i}+v_{j} & \text{if} & i \neq j \\[2mm] (2-\beta_{i}) v_{i} & \text{if} & i = j \\ \end{cases} $$
Here, $v_i, v_j \in(0,1)$, and $\beta_i>0$. Any suggestions or thoughts are highly appreciated.
By investigating the structure of the result I come to the nice general formula
$$ \left|V\right| = (-1)^n \left(1-\sum _{i=1}^n \left(\frac{2}{\beta _i}+\sum _{j=1}^{i-1} \frac{\left(v_i-v_j\right){}^2}{v_i v_j \beta _i \beta _j}\right)\right) \prod _{k=1}^n v_k \beta _k $$
If you have Mathematica you can use the following code to check the result
I believe that there is a proof for this formula but I don't find it yet.