Calculating determinant of matrix $n\times n$

306 Views Asked by At

Given $$M := \mbox{diag} (1, 2, \dots, n) - n \, I_n + n \,1_n 1_n^T$$compute the determinant of $M$.

1

There are 1 best solutions below

3
On

Hint: This is a rank one update of a diagonal matrix. In particular, we have $$ M = \pmatrix{ 1-n\\ &2-n\\ && \ddots\\ &&& 0 } + n \cdot xx^T $$ where $x = (1,\dots,1)^T$. We can find the determinant of this matrix using Sylvester's determinant theorem (more specifically, using the matrix determinant lemma).


Full Solution: Let $M(t) = M + tI$. Let $$ D(t) = \pmatrix{ 1-n+t\\ &2-n+t\\ && \ddots\\ &&& t } $$ We note that for $t \neq 0$ (and such that $D(t)$ is invertible), $$ \det[M(t)] = \det[D(t) + nxx^T] = \det[D(t)]\det[I + n[D(t)]^{-1}xx^T] = \\ \det[D(t)](1 + n\,x^T[D(t)]^{-1}x) = \\ \left( \prod_{k=1}^n (k-n+t)\right) \left(1 + n \sum_{k=1}^n\frac{1}{k - n + t} \right) = \\ \left( \prod_{k=1}^{n-1} (k-n+t)\right) \left(t\left[1 + n \sum_{k=1}^{n-1}\frac{1}{k - n + t} \right] + n\right) $$ We then have $$ \det(M) = \lim_{t \to 0} \det(M(t)) = \left( \prod_{k=1}^{n-1} (k-n)\right)\cdot n = (-1)^{n-1}\,n! $$