Solve Quickly: -1 1 1 1 1 Matrix Problem

  • Thread starter Thread starter Derill03
  • Start date Start date
  • Tags Tags
    Matrices
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Derill03
Messages
62
Reaction score
0
This matrix is said to be quickly solvable but I am not sure of the trick:

-1 1 1 1 1
1 -1 1 1 1
1 1 -1 1 1
1 1 1 -1 1
1 1 1 1 -1

the matrix is all 1's with -1's on the main diagonal, I am not sure if i should row reduce until i have an upper triangular matrix and use product of diagonal entries or if there is a simple trick I am missing
 
Physics news on Phys.org
One way is to realize that it is a rank-1 update of a matrix you know how to invert
[tex]\left(\begin{matrix}-1 & 1 & 1 \\ 1 & -1 & 1 \\ 1 & 1 & -1\end{matrix}\right) = \left(\begin{matrix}1 \\ 1 \\ 1\end{matrix}\right)\left(\begin{matrix}1 & 1 & 1\end{matrix}\right) - 2 \left(\begin{matrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{matrix}\right)[/tex]

Apply the Sherman-Morrison formula:
http://en.wikipedia.org/wiki/Sherman–Morrison_formula

There may be other ways.