MHB Is the Matrix Positive Definite?

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Matrix Positive
Click For Summary
The discussion centers on proving the positive definiteness of a specific matrix related to a differential equation. The matrix is expressed as a sum of a diagonal matrix and a tridiagonal matrix, with the latter being shown to be positive definite through its relationship with another matrix. The participants confirm that the diagonal matrix is also positive definite due to the positivity of the function q(x). The conversation emphasizes the importance of terminology, clarifying that the correct term is "positive definite." Ultimately, the participants reach a consensus on the validity of their methods and findings.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

We have that $q(x) \geq q_0>0, x \in [0,1], h>0$.

Suppose that we have this $(N+1) \times (N+1) matrix$:

$\begin{bmatrix}
\frac{1}{h^2}+\frac{1}{h}+\frac{q(x_0)}{2} & -\frac{1}{h^2} & 0 & \cdots & 0 \\
-\frac{1}{h^2} & \frac{2}{h^2}+q(x_1) & -\frac{1}{h^2} & \cdots &0 \\
0 & & & & \\
& & & & \\
0 & & 0 & -\frac{1}{h^2} &\frac{2}{h^2}+q(x_N)
\end{bmatrix}$

I want to show that it is invertible.

I thought to write it as $Q+T$, where $Q=diag (\frac{1}{2}q(x_0),q(x_1), \dots, q(x_N))$ and

$$T=\begin{bmatrix}
\frac{1}{h^2}+\frac{1}{h} & -\frac{1}{h^2} & 0 & & 0\\
-\frac{1}{h^2} & \frac{2}{h^2} & -\frac{1}{h^2}& &0 \\
0 & -\frac{1}{h^2} & \frac{2}{h^2} & & \\
& & & & -\frac{1}{h^2}\\
& & & -\frac{1}{h^2} & \frac{2}{h^2}
\end{bmatrix}$$But how can we show that $T$ is positive defined?

I have found that $x^T T x=\frac{x_0^2}{2}+\frac{1}{h^2} \sum_{i=0}^{N-1} (x_i-x_{i+1})^2+ \frac{x_N^2}{h^2}$. Is it right? (Thinking)
 
Physics news on Phys.org
evinda said:
Hello! (Wave)

We have that $q(x) \geq q_0>0, x \in [0,1], h>0$.

Suppose that we have this $(N+1) \times (N+1)$ matrix:

$\begin{bmatrix}
\frac{1}{h^2}+\frac{1}{h}+\frac{q(x_0)}{2} & -\frac{1}{h^2} & 0 & \cdots & 0 \\
-\frac{1}{h^2} & \frac{2}{h^2}+q(x_1) & -\frac{1}{h^2} & \cdots &0 \\
0 & & & & \\
& & & & \\
0 & & 0 & -\frac{1}{h^2} &\frac{2}{h^2}+q(x_N)
\end{bmatrix}$

I want to show that it is invertible.

I thought to write it as $Q+T$, where $Q=diag (\frac{1}{2}q(x_0),q(x_1), \dots, q(x_N))$ and

$$T=\begin{bmatrix}
\frac{1}{h^2}+\frac{1}{h} & -\frac{1}{h^2} & 0 & & 0\\
-\frac{1}{h^2} & \frac{2}{h^2} & -\frac{1}{h^2}& &0 \\
0 & -\frac{1}{h^2} & \frac{2}{h^2} & & \\
& & & & -\frac{1}{h^2}\\
& & & -\frac{1}{h^2} & \frac{2}{h^2}
\end{bmatrix}$$But how can we show that $T$ is positive defined?

I have found that $x^T T x=\frac{x_0^2}{2}+\frac{1}{h^2} \sum_{i=0}^{N-1} (x_i-x_{i+1})^2+ \frac{x_N^2}{h^2}$. Is it right? (Thinking)
For convenience, I'll write $a = 1/h$. Let $S$ be the $(N+1) \times (N+1)$ matrix with $a$'s all down the main diagonal, $-a$'s all down the first super-diagonal, and zeros everywhere else: $$S = \begin{bmatrix}
a & -a & 0 & & 0\\ 0 & a & -a & &0 \\ 0 & 0 & a & & \\ & & & \ddots & -a\\ & & & 0 & a \end{bmatrix}.$$ You can check that $$S^{\textsf{T}}S = \begin{bmatrix}a^2 & -a^2 & 0 & & & 0\\ -a^2 & 2a^2 & -a^2 & & &0 \\ 0 & -a^2 & 2a^2 & & & \\ &&& \ddots && \\ & & & & 2a^2& -a^2\\ & & & & -a^2 & 2a^2 \end{bmatrix}.$$ That is a positive definite matrix. It is almost the same as your matrix $T$, which you can obtain by adding $a$ to the element in the top left corner of $S^{\textsf{T}}S$. That will preserve the positive-definiteness (alternatively you could add $a$ to the first element of the diagonal matrix $Q$). This shows that $T$ is positive definite.
 
Is the way I did it wrong? (Thinking)
 
evinda said:
Is the way I did it wrong? (Thinking)
Your method is fine. I had not noticed that you already found a solution.
 
Opalg said:
Your method is fine. I had not noticed that you already found a solution.

Great! And $Q$ is positive defined since $x^T Q x=\frac{q(x_0)}{2} x_0^2+q(x_1) x_1^2+ \dots+ q(x_N) x_N^2>0$ for $x \neq \overline{0}$ where $x \in R^{N+1}$, right? (Thinking)
 
evinda said:
Great! And $Q$ is positive defined since $x^T Q x=\frac{q(x_0)}{2} x_0^2+q(x_1) x_1^2+ \dots+ q(x_N) x_N^2>0$ for $x \neq \overline{0}$ where $x \in R^{N+1}$, right? (Thinking)
Yes! (Star)

Linguistic note: the name for such a matrix is "positive definite", not "positive defined".
 
Opalg said:
Yes! (Star)

Great! Thank you! (Smirk)
Opalg said:
Linguistic note: the name for such a matrix is "positive definite", not "positive defined".

A ok... (Nod)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
570
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 26 ·
Replies
26
Views
768
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 21 ·
Replies
21
Views
1K
  • · Replies 0 ·
Replies
0
Views
769
  • · Replies 10 ·
Replies
10
Views
3K