4

How to get the inverse of this matrix

$$\begin{pmatrix} 2&-1\\-1&2&-1\\&-1&2&-1\\&&&\ddots\\&&&&\ddots\\&&&&-1&2&-1\\&&&&&-1&2 \end{pmatrix}$$

where the blank entries are all zero?

  • 3
    http://en.wikipedia.org/wiki/Tridiagonal_matrix#Inversion – Amzoti May 07 '13 at 04:35
  • Oh my God, thank you very much! – user76300 May 07 '13 at 04:38
  • @Amzoti: a smaller question: when $i=j$, what does $b_i\cdots b_{j-1}$ mean? – user76300 May 07 '13 at 04:58
  • I mean, how to calculate $b_i\cdots b_{j-1}$? For example, if $i=j=1$, what does $b_0$ mean? – user76300 May 07 '13 at 05:11
  • But if we try to find the inverse of $\left(\begin{array}{cc} 2&3\3&2 \end{array}\right)$, and consider $i=j=1$, $b_1b_{-1}$ would be $3\times3$ which is 9, but the correct value suggests that the product should take the value 1. What's the matter? – user76300 May 07 '13 at 05:23
  • My apologies, the result would just be b1 for $T_{11}$. For $T_{22}$, it would be $b_2 \ldots b_1$. – Amzoti May 07 '13 at 05:40
  • I think this example does not clarify the issue. we can try examples in which $b_i$ and $c_i$ have absolute values other than 1 and we can find out that when $i=j$, $b_i\cdots b_{j-1}$ means 1, or that we do not take the product. – user76300 May 07 '13 at 05:44
  • So finally in my original question, the element at $(i,j)$ position should be $\frac{i(n-j+1)}{n+1}$ for $j\ge i$ and the matrix is symmetric. Here n is the dimension of the matrix. – user76300 May 07 '13 at 05:49

3 Answers3

5

Lets do an example using your matrix with dimension $4x4$, symmetric, tridiagonal.

We have the matrix:

$$\displaystyle A = \begin{bmatrix}2&-1&0&0\\-1&2&-1&0\\0&-1&2&-1\\0&0&-1&2\end{bmatrix}.$$

The inverse of this matrix:

$$\displaystyle A^{-1} = \frac{1}{5}\begin{bmatrix}4 & 3 & 2 & 1\\3 & 6 & 4 & 2\\2 & 4 & 6 & 3\\1 & 2 & 3 &4\\\end{bmatrix}.$$

Look at the structure of the "first and fourth" and "second and third" rows.

If you are looking for the eigenvalues and eigenvectors, we have:

$$\displaystyle \lambda_1 = \frac{1}{2} (5+\sqrt{5}), ~v_1 = (-1, \frac{1}{2} (1+\sqrt{5}), \frac{1}{2} (-1-\sqrt{5}), 1)$$

$$\displaystyle \lambda_2 = \frac{1}{2} (3+\sqrt{5}), ~v_2 = (1, \frac{1}{2} (1-\sqrt{5}), \frac{1}{2} (1-\sqrt{5}), 1)$$

$$\displaystyle \lambda_3 = \frac{1}{2} (5-\sqrt{5}), ~v_3 = (-1, \frac{1}{2} (1-\sqrt{5}), \frac{1}{2} (-1+\sqrt{5}), 1)$$

$$\displaystyle \lambda_4 = \frac{1}{2} (3-\sqrt{5}), ~v_4 = (1, \frac{1}{2} (1+\sqrt{5}) \frac{1}{2} (1+\sqrt{5}), 1)$$

That should help you follow the Wiki algorithm and @joriki provided the algorithm for using the normalized eigenvector and eigenvalue as another approach.

Amzoti
  • 56,093
  • Too much effort (and quality) to go un-noticed! +++ – amWhy May 08 '13 at 00:36
  • You're getting me interested in numerical analysis/methods and I had hitherto excluded those topics from consideration (even "ignoring" some relevant tags)...that's is now changing; indeed my interest in and knack for comp sci (discovered late in the whole context of things) has contributed to that as well! – amWhy May 08 '13 at 00:43
1

Let $n$ be the dimension of the matrix. It has normalized eigenvectors $v_j$ with

$$v_{jk}=\sqrt\frac2{n+1}\sin\frac{jk\pi}{n+1}$$

corresponding to eigenvalues

$$ \lambda_j=4\sin^2\frac{j\pi}{2(n+1)}, $$

so it can be represented as $V\Lambda V$, and its inverse as $V\Lambda^{-1}V$.

joriki
  • 238,052
0

this matrix inverse is $A=A_{ij}$ and $$A_{ij}=\min{\{i,j\}}$$

math110
  • 93,304