1
$\begingroup$

$$\left[\begin{array}{l}1&1&1&1\\1&1&1&1\\1&1&1&1\\1&1&1&1\end{array}\right]$$

I am having difficulties with calculating this. Currently I'm stuck at finding the determinant of the following matrix:

$$\left[\begin{array}{l}\lambda-1&-1&-1&-1\\-1&\lambda-1&-1&-1\\-1&-1&\lambda-1&-1\\-1&-1&-1&\lambda-1\end{array}\right]$$

Is there a "smart" way/trick to get the result or should I just crunch the numbers through Gaussian elimination? Normally it is not that difficult to do this, but if all the elements of the matrix are the same, it somehow got me confused.

$\endgroup$

marked as duplicate by Dietrich Burde, Arnaud D., Han de Bruijn, John Hughes, Siong Thye Goh Jan 17 '18 at 17:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    $\begingroup$ You first matrix is not a square matrix. For the determinant of a matrix with $a$ on the diagonal, and $b$ elsewhere, there is a formula! Have a look at MSE. $\endgroup$ – Dietrich Burde Jan 17 '18 at 16:03
  • 1
    $\begingroup$ Here is the popular post @DietrichBurde is referring to:math.stackexchange.com/questions/86644/…. $\endgroup$ – StubbornAtom Jan 17 '18 at 16:06
  • $\begingroup$ @StubbornAtom Yes, exactly! This post is also recommended at this question. $\endgroup$ – Dietrich Burde Jan 17 '18 at 16:08
2
$\begingroup$

Consider any $n \times n$ rank-$1$ matrix $A$ as follows: one of its eigenvalues is its trace and the remaining eigenvalues are zero. Hence, the characteristic polynomial is $$x^{n-1}(x-\mbox{Tr}(A))$$ and the spectrum is $\{0,4\}$.

$\endgroup$
  • $\begingroup$ How did you find the eigenvalues? $\endgroup$ – Zanzi Jan 17 '18 at 16:23
  • $\begingroup$ @Zanzi Actually we have a result which says about any n x n rank 1 matrix I just applied that. $\endgroup$ – Devendra Singh Rana Jan 17 '18 at 16:26
  • 1
    $\begingroup$ @Zanzi The eigenvalues can be found by inspection. $A$’s column space is obviously one-dimensional, so that immediately gives you three of the eigenvalues, and you can always find the last eigenvalue via the trace. $\endgroup$ – amd Jan 17 '18 at 21:01
0
$\begingroup$

Using Sylvester's determinant identity,

$$\begin{array}{rl} \det (s \mathrm I_n - 1_n 1_n^\top) &= \det \left( s \cdot \left( \mathrm I_n - s^{-1}1_n 1_n^\top \right) \right)\\ &= s^n \cdot \det \left( \mathrm I_n - s^{-1}1_n 1_n^\top \right)\\ &= s^n \cdot \left( 1 - n \, s^{-1} \right)\\ &= s^{n-1} \left( s-n \right)\end{array}$$

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.