Positive Definiteness: Difference between revisions
From biophysics wiki
Created page with "In this article we deal with Matrices $\mathbf{A}$ that are '''symmetric''' and have '''positive eigenvalues''' $\lambda_i>0$. This matrices are called positive definite and s..." |
No edit summary |
||
| Line 1: | Line 1: | ||
In this article we deal with Matrices $\mathbf{A}$ that are '''symmetric''' and have '''positive eigenvalues''' $\lambda_i>0$. This matrices are called positive definite and satisfy the equation | In this article we deal with Matrices $\mathbf{A}$ that are '''symmetric''' and have '''positive eigenvalues''' $\lambda_i>0$. This matrices are called positive definite and satisfy the equation | ||
\begin{equation} | \begin{equation} | ||
\mathbf{x}^T\mathbf{A}\mathbf{x} | \mathbf{x}^T\mathbf{A}\mathbf{x} > 0 | ||
\end{equation} | \end{equation} | ||
which is the case if $\lambda_i>0 \text{ for all } i$, beacause if we mulitply the eigenvalue equation with $\mathbf{x}^T$ we get | |||
\begin{equation} | |||
\mathbf{A}\mathbf{x} = \lambda_i \mathbf{x}\\ | |||
\mathbf{x}^T\mathbf{A}\mathbf{x} = \lambda_i \mathbf{x}^T\mathbf{x} = \lambda_i \left\Vert \mathbf{x} \right\Vert^2 > 0 \Leftrightarrow \lambda_i>0 \hspace{1cm} \text{ for all } i | |||
\end{equation} | |||
<div style="background:#FEF5CA;border:1px solid #797979;border-radius:10px;padding:5px 15px 5px 15px;"> | |||
A Matrix $\mathbf{A}$ is positive definite if | |||
*$\mathbf{A}$ is symmetric | |||
*all eigenvalues of $\mathbf{A}$ are positive | |||
</div> | |||
== Applications == | |||
In single variable calculus the minimum of the single variable function $f(x)$ at $f'(x)=0$ satisfys | In single variable calculus the minimum of the single variable function $f(x)$ at $f'(x)=0$ satisfys | ||
| Line 12: | Line 25: | ||
ax^2+2bxy+y^2 | ax^2+2bxy+y^2 | ||
\end{equation} | \end{equation} | ||
Is this equation positive for all $x$ and $y$? | Is this equation positive for all $x$ and $y$, or in other words is $(x,y)=(0,0) a minimum? To answer this question we can use the concept of positive definiteness, since the equation above can be brought in the form | ||
\begin{equation} | |||
\begin{bmatrix} x\\ y \end{bmatrix} \begin{bmatrix} a &b\\ b &c \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} | |||
\end{equation} | |||
'''Example''' | |||
We check if the function | |||
\begin{equation} | |||
h(x,y)=\begin{bmatrix} x\\ y \end{bmatrix} \begin{bmatrix} 2 &6\\ 6 &20 \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} | |||
\end{equation} | |||
or equivalently | |||
\begin{equation} | |||
h(x,y)=2x^2+12xy+20y^2 | |||
\end{equation} | |||
is positive for all $x$ and $y$ | |||
If we move along the $x$ direction leaving $y=0$, $f(x,0)=2x^2$ goes up and stays positive vor all values of $x$. If we keep $x=0$ and move in the $y$ direction we geht $f(0,y)=20y^2$, again $f$ increases for all $y$. What about the term $12xy$? It could become negative for certain values of $x$ and $y$. | |||
We can solve this problem by completing the square | |||
\begin{equation} | |||
h(x,y)=2x^2+12xy+20y^2=2(x+3y)^2+2y^2 > 0 | |||
\end{equation} | |||
Since there only occur square terms after the right most equal sign the function $f(x,y)$ must be positive for all $x$ and $y$. Such a function is called '''elliptic''', since the intersection of $h(x,y)$ with a horizontal plane describes an ellipse given by the equation | |||
\begin{equation} | |||
h(x,y)=2x^2+12xy+20y^2 =1 | |||
\end{equation} | |||
[[File:elliptic.png|thumb|center|400px]] | |||
This is another method to prove that an equation (or the associated matix) is positive definite that also gives a geometric interpretation of the function. | |||
In the marginal case, where completion of the square gives | |||
\begin{equation} | |||
p(x,y)=2x^2+12xy+18y^2=2(x+3y)^2 > 0 | |||
\end{equation} | |||
without additional pure quadradic terms, a horizontal section of $p(x,y)$ results in a parabola | |||
\begin{equation} | |||
p(x,y)=2x^2+12xy+18y^2=2(x+3y)^2 =1 | |||
\end{equation} | |||
Revision as of 17:26, 23 February 2013
In this article we deal with Matrices $\mathbf{A}$ that are symmetric and have positive eigenvalues $\lambda_i>0$. This matrices are called positive definite and satisfy the equation \begin{equation} \mathbf{x}^T\mathbf{A}\mathbf{x} > 0 \end{equation} which is the case if $\lambda_i>0 \text{ for all } i$, beacause if we mulitply the eigenvalue equation with $\mathbf{x}^T$ we get \begin{equation} \mathbf{A}\mathbf{x} = \lambda_i \mathbf{x}\\ \mathbf{x}^T\mathbf{A}\mathbf{x} = \lambda_i \mathbf{x}^T\mathbf{x} = \lambda_i \left\Vert \mathbf{x} \right\Vert^2 > 0 \Leftrightarrow \lambda_i>0 \hspace{1cm} \text{ for all } i \end{equation}
A Matrix $\mathbf{A}$ is positive definite if
- $\mathbf{A}$ is symmetric
- all eigenvalues of $\mathbf{A}$ are positive
Applications
In single variable calculus the minimum of the single variable function $f(x)$ at $f'(x)=0$ satisfys \begin{equation} \frac{d^2 f}{dx^2}<0 \end{equation} What if we have more than one variable? Let's consider the equation \begin{equation} ax^2+2bxy+y^2 \end{equation} Is this equation positive for all $x$ and $y$, or in other words is $(x,y)=(0,0) a minimum? To answer this question we can use the concept of positive definiteness, since the equation above can be brought in the form \begin{equation} \begin{bmatrix} x\\ y \end{bmatrix} \begin{bmatrix} a &b\\ b &c \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} \end{equation}
Example We check if the function \begin{equation} h(x,y)=\begin{bmatrix} x\\ y \end{bmatrix} \begin{bmatrix} 2 &6\\ 6 &20 \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} \end{equation} or equivalently \begin{equation} h(x,y)=2x^2+12xy+20y^2 \end{equation} is positive for all $x$ and $y$
If we move along the $x$ direction leaving $y=0$, $f(x,0)=2x^2$ goes up and stays positive vor all values of $x$. If we keep $x=0$ and move in the $y$ direction we geht $f(0,y)=20y^2$, again $f$ increases for all $y$. What about the term $12xy$? It could become negative for certain values of $x$ and $y$.
We can solve this problem by completing the square \begin{equation} h(x,y)=2x^2+12xy+20y^2=2(x+3y)^2+2y^2 > 0 \end{equation} Since there only occur square terms after the right most equal sign the function $f(x,y)$ must be positive for all $x$ and $y$. Such a function is called elliptic, since the intersection of $h(x,y)$ with a horizontal plane describes an ellipse given by the equation \begin{equation} h(x,y)=2x^2+12xy+20y^2 =1 \end{equation}

This is another method to prove that an equation (or the associated matix) is positive definite that also gives a geometric interpretation of the function.
In the marginal case, where completion of the square gives \begin{equation} p(x,y)=2x^2+12xy+18y^2=2(x+3y)^2 > 0 \end{equation} without additional pure quadradic terms, a horizontal section of $p(x,y)$ results in a parabola \begin{equation} p(x,y)=2x^2+12xy+18y^2=2(x+3y)^2 =1 \end{equation}