Prove $\det(A)$ is $(a+(n-1)b)(a-b)^{n-1}$ where $A$ is $n \times n$ matrix with $a$'s on diagonal and all other elements $b$, off diagonal.
3 Answers
Note that for $\lambda=a-b$ we have $$ A-\lambda I = \begin{bmatrix} b & \cdots & b \\ \vdots & \ddots & \vdots \\ b & \cdots & b \end{bmatrix}\tag{1} $$ The matrix in $(1)$ has rank $1$ so its nullspace has dimension $n-1$. Hence $\lambda_1=a-b$ is an eigenvalue of $A$ whose geometric multiplicity is $n-1$.
Now, note that for $\lambda=a+(n-1)b$ we have $$ A-\lambda I= \begin{bmatrix} (1-n)b & \cdots & b \\ \vdots & \ddots & \vdots \\ b & \cdots & (1-n)b \end{bmatrix}\tag{2} $$ The columns of the matrix in $(2)$ sum to $0$ so it has a nontrivial nullspace. That is, $\lambda_2=a-(n-1)b$ is an eigenvalue for $A$. Because $\lambda_1$ has geometric multiplicity $n-1$, the geometric multiplicity of $\lambda_2$ must be $1$. Hence the characteristic polynomial of $A$ is $$ \det(A-\lambda I)=(\lambda_1-\lambda)^{n-1}(\lambda_2-\lambda)\tag{3} $$ Finally, plugging in $\lambda=0$ into $(3)$ gives the result.

- 26,559
-
Thank you, this explanation cleared it up quite a bit. I'm sorry if this was a duplicate. – Aric Apr 17 '14 at 19:14
-
@Klick Welcome to MSE. I marked this as a duplicate because it's a convention on this site to identify duplicated questions. That doesn't mean the new answers here are inferior. I am glad that you can learn something from the answers here. – user1551 Apr 18 '14 at 07:58
For any square matrix with one value on the diagonal and another value everywhere else, a consistent pattern of (orthogonal but not orthonormal) eigenvectors for the $n$ by $n$ case can be read from the columns of $$ \left( \begin{array}{rrrrrrrrrr} 1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\ 1 & 1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\ 1 & 0 & 2 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\ 1 & 0 & 0 & 3 & -1 & -1 & -1 & -1 & -1 & -1 \\ 1 & 0 & 0 & 0 & 4 & -1 & -1 & -1 & -1 & -1 \\ 1 & 0 & 0 & 0 & 0 & 5 & -1 & -1 & -1 & -1 \\ 1 & 0 & 0 & 0 & 0 & 0 & 6 & -1 & -1 & -1 \\ 1 & 0 & 0 & 0 & 0 & 0 & 0 & 7 & -1 & -1 \\ 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 8 & -1 \\ 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 9 \end{array} \right). $$ Note: I made this up. My own self.

- 139,541
-
This is actually very helpful, and reads into next weeks discussion about orthogonality and orthogonormality very well. Creative, thanks – Aric Apr 17 '14 at 19:16
-
1@Klick, the point is that the columns are eigenvectors for the matrix with all entries equal to $1,$ with evident list of eigenvalues. Call that matrix $H.$ For real numbers $r,s$ we can simply read off the list of eigenvalues of the new matrix $r H + s I,$ as the eigenvectors are the same. As $rH + s I$ is symmetric, it makes sense to ask about orthogonal basis of eigenvectors; finally, dividing the columns by $\sqrt n, \sqrt 2, \sqrt 6, \sqrt 12,\ldots$ gives an orthonormal basis after all, as the only problem is that these column vectors are too long. – Will Jagy Apr 17 '14 at 19:23
-
@Klick Will Jagy has show this matrix in other threads before, but each time I see it, I still feel very impressive. – user1551 Apr 18 '14 at 07:54
Let $A=\begin{bmatrix} a & b & b & b & \ldots & b \\ b & a & b & b & \ldots & b \\ b & b & a & b & \ldots & b \\ b & b & b & a & \ldots & b \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ b & b & b & b & \ldots & a \end{bmatrix}$ a $n\times n$ matrix, cause adding/substracting a scalar multiple of a row to another row doesn't change the value of the determinant of a matrix we can add rows 2nd, 3rd, 4th, $\dots$ and $n$th to the first row, so $$\det (A) = \det \begin{bmatrix} a+(n-1)b & a+(n-1)b & a+(n-1)b & a+(n-1)b & \ldots & a+(n-1)b \\ b & a & b & b & \ldots & b \\ b & b & a & b & \ldots & b \\ b & b & b & a & \ldots & b \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ b & b & b & b & \ldots & a \end{bmatrix}$$ Now, we can factor out $a+(n-1)b$ from the first row $$\det (A) = \left[a+(n-1)b\right]\det \begin{bmatrix} 1 & 1 & 1 & 1 & \ldots & 1 \\ b & a & b & b & \ldots & b \\ b & b & a & b & \ldots & b \\ b & b & b & a & \ldots & b \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ b & b & b & b & \ldots & a \end{bmatrix}$$ Also, if we substract $b$ times row 1 to rows 2nd, 3rd, 4th, $\ldots$ and $n$th we get $$\det (A) = \left[a+(n-1)b\right]\det \begin{bmatrix} 1 & 1 & 1 & 1 & \ldots & 1 \\ 0 & a-b & 0 & 0 & \ldots & 0 \\ 0 & 0 & a-b & 0 & \ldots & 0 \\ 0 & 0 & 0 & a-b & \ldots & 0 \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & 0 & \ldots & a-b \end{bmatrix}$$ The last matrix is a lower triangular matrix and its determinant is the product of elements in the main diagonal. Therefore $$\det (A) = \left[a+(n-1)b\right](a-b)^{n-1}$$

- 19,882