How to get inverse of this matrix using least amount of space?

1.7k Views Asked by At

I'm working on a problem from a past exam and I'm stuck, so I'm asking for help. Here it is: $A = \frac12 \left[\begin{array}{rrrr} 1 & 1 & 1 & 1 \\ 1 & 1 & -1 & -1 \\ 1 & -1 & 1 & -1 \\ 1 & -1 & -1 & 1 \end{array}\right]$ find $\mathbf A^{-1}$.

My problem isn't the inverse matrix itself. We just get the determinant, see if it's zero or not, get the adjoint matrix and divide it by determinant.

My problem is space. As you can see, it's a 4x4 matrix meaning that I'd have to do 4x4 3x3 determinants to get the adjoint matrix plus 2 3x3 determinants to get determinant of the matrix. Now we get one A3 piece of paper for 6 problems. The problems are printed on one side and the other side is blank. This and the fact that inverse matrix is $A = \frac12 \left[\begin{array}{rrrr} 1 & 1 & 1 & 1 \\ 1 & 1 & -1 & -1 \\ 1 & -1 & 1 & -1 \\ 1 & -1 & -1 & 1 \end{array}\right]$

led me to believe that there's some catch that I do not see. Any ideas what could it be?

Also if someone could edit these matrices from MATLAB format into something that this site will parse would be great!

EDIT Unfortunately it seem that TeX code for matrices doesn't work here. Here's the matrix in MATLAB form, if anyone wants it A=(1/2)*[1,1,1,1;1,1,-1,-1;1,-1,1,-1;1,-1,-1,1];

EDIT 2 Answer by Jack Schmidt contains code for matrices.

3

There are 3 best solutions below

6
On BEST ANSWER

I guess A is orthogonal and symmetric, so that tells you A−1 = AT = A, but uh, that's not a very common situation to my mind. Maybe someone else has a better "test-taking strategy" explanation, but me personally, I would just row reduce or whatever method you use in general.

An orthogonal matrix is defined to be a matrix whose transpose is its inverse. However, for us the better (almost) definition is a matrix whose rows (or columns) are orthogonal, as in, perpendicular. So (1,1,1,1) is orthogonal to (1,-1,1,-1) since their dot product is (1)(1)+(1)(-1)+(1)(1)+(1)(-1) = 1 - 1 + 1 - 1 is zero. You also should check that the length of the vector in each row is 1, $\sqrt{(1/2)^2 + (1/2)^2 + (1/2)^2 + (1/2)^2} = 1$ so good, but even if not, that part is easily fixed.

Sometimes you can tell just by looking that a matrix is orthogonal.


As far as parsing goes:

Here is the matrix:

$A = \frac12 \begin{pmatrix}
1 &  1 &  1 &  1 \\\\
1 &  1 & -1 & -1 \\\\
1 & -1 &  1 & -1 \\\\
1 & -1 & -1 &  1
\end{pmatrix}$

$A = \frac12 \begin{pmatrix}1&1&1&1\\1&1&-1&-1\\1&-1&1&-1\\1&-1&-1&1\end{pmatrix}$

Here is using the array environment:

$A = \frac12 \left(\begin{array}{rrrr}
1 &  1 &  1 &  1 \\\\
1 &  1 & -1 & -1 \\\\
1 & -1 &  1 & -1 \\\\
1 & -1 & -1 &  1
\end{array}\right)$

$A = \frac12 \left(\begin{array}{rrrr}1&1&1&1\\1&1&-1&-1\\1&-1&1&-1\\1&-1&-1&1\end{array}\right)$

The backslashes get eaten by the markdown software, so you just double them.

6
On

Have you tried reducing the matrix to row echelon form? Maybe my answer to this question could be helpful.

4
On

If you have a $n\times n$ matrix $A$ , the inverse matrix $A^{-1}$ can be computed by using a compact method, that consists of the following steps:

  1. Augment your matrix with the identity matrix $I$: $\left( A|I\right) $

  2. Use Gaussian elimination to get an upper triangular matrix on the left and a matrix $J$ on the right: $\left( U|J\right) $, where $J=\left( J_{1}|J_{2}|\ldots |J_{n}\right) $.

  3. To get the $n$ vector columns of the inverse matrix: $A^{-1}=\left( x_{1}|x_{2}|\ldots |x_{n}\right) $, solve for $x_{k}$, with $k=1,2,\ldots ,n$, $n$ systems of equations $U\cdot x_{k}=J_{k}$.

Note 1: in your problem $n=4$.

Note 2: there is a variant of this method called "Gaussian elimination with partial pivoting" that gives a better accuracy, when the entries are not rational numbers, which is not the present situation.

Until now I have not yet computed matrix $A^{-1}$ in this case. Instead I have used The Scientific Notebook (included in the Scientific Work Place) to find that your matrix satisfies $A=A^{-1}$:

$A=\begin{pmatrix}1/2&1/2&1/2&1/2 \\ 1/2&1/2&-1/2&-1/2\\1/2&-1/2&1/2&-1/2\\1/2&-1/2&-1/2&1/2\end{pmatrix}=A^{-1}$