I've got to calculate determinant for such matrix:
$$ \begin{bmatrix} a_1+b & a_2 & \cdots & a_n\\ a_1 & a_2+b & \cdots & a_n\\ \vdots & \vdots & \ddots & \vdots\\ a_1 & a_2 & \cdots & a_n+b\\ \end{bmatrix} $$
Please give me some tips how to calculate this.
The structure of this matrix aloud to write this equation which does not generally hold $$det(A+Ib)=b^{n-1}(tr(A)+b)$$
I guess that's related with the fact that $$A^2=tr(A)A$$ but just now I don't see how... If someone can see just edit in the comments please