Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Definite matrix
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Property of a mathematical matrix}} {{hatnote|Not to be confused with [[Positive matrix]] and [[Totally positive matrix]].}} {{use dmy dates|date=June 2024}} In [[mathematics]], a symmetric matrix <math>M</math> with [[real number|real]] entries is '''positive-definite''' if the real number <math>\mathbf{x}^\mathsf{T} M \mathbf{x}</math> is positive for every nonzero real [[column vector]] <math>\mathbf{x},</math> where <math>\mathbf{x}^\mathsf{T}</math> is the [[row vector]] [[transpose]] of <math>\mathbf{x}.</math><ref> {{cite book |first = Adriaan |last = van den Bos |date = March 2007 |section = Appendix C: Positive semidefinite and positive definite matrices |title = Parameter Estimation for Scientists and Engineers |edition=online |publisher = John Wiley & Sons |isbn = 978-047-017386-2 |pages = 259–263 |doi = 10.1002/9780470173862 |doi-access= |section-url = https://www.doi.org/10.1002/9780470173862.app3 |type = .pdf }} Print ed. {{ISBN|9780470147818}} </ref> More generally, a [[Hermitian matrix]] (that is, a [[complex matrix]] equal to its [[conjugate transpose]]) is '''positive-definite''' if the real number <math>\mathbf{z}^* M \mathbf{z}</math> is positive for every nonzero complex column vector <math>\mathbf{z},</math> where <math>\mathbf{z}^*</math> denotes the conjugate transpose of <math>\mathbf{z}.</math> '''Positive semi-definite''' matrices are defined similarly, except that the scalars <math>\mathbf{x}^\mathsf{T} M \mathbf{x}</math> and <math>\mathbf{z}^* M \mathbf{z}</math> are required to be positive ''or zero'' (that is, nonnegative). '''Negative-definite''' and '''negative semi-definite''' matrices are defined analogously. A matrix that is not positive semi-definite and not negative semi-definite is sometimes called ''indefinite''. Some authors use more general definitions of definiteness, permitting the matrices to be non-symmetric or non-Hermitian. The properties of these generalized definite matrices are explored in {{alink|Extension for non-Hermitian square matrices}}, below, but are not the main focus of this article. == Ramifications == It follows from the above definitions that a matrix is positive-definite [[if and only if]] it is the matrix of a [[positive-definite quadratic form]] or [[Hermitian form]]. In other words, a matrix is positive-definite if and only if it defines an [[inner product]]. Positive-definite and positive-semidefinite matrices can be characterized in many ways, which may explain the importance of the concept in various parts of mathematics. A matrix {{mvar|M}} is positive-definite if and only if it satisfies any of the following equivalent conditions. * <math>M</math> is [[congruent matrices|congruent]] with a [[diagonal matrix]] with positive real entries. * <math>M</math> is symmetric or Hermitian, and all its [[eigenvalue]]s are real and positive. * <math>M</math> is symmetric or Hermitian, and all its leading [[principal minor]]s are positive. * There exists an [[invertible matrix]] <math>B</math> with conjugate transpose <math>B^*</math> such that <math>M = B^* B.</math> A matrix is positive semi-definite if it satisfies similar equivalent conditions where "positive" is replaced by "nonnegative", "invertible matrix" is replaced by "matrix", and the word "leading" is removed. Positive-definite and positive-semidefinite real matrices are at the basis of [[convex optimization]], since, given a [[function of several real variables]] that is twice [[differentiable function|differentiable]], then if its [[Hessian matrix]] (matrix of its second partial derivatives) is positive-definite at a point <math>p,</math> then the function is [[convex function|convex]] near {{mvar|p}}, and, conversely, if the function is convex near <math>p,</math> then the Hessian matrix is positive-semidefinite at <math>p.</math> The set of positive definite matrices is an [[Open set|open]] [[convex cone]], while the set of positive semi-definite matrices is a [[closed set|closed]] convex cone.<ref> {{cite book |last1=Boyd |first1=Stephen |last2=Vandenberghe |first2=Lieven |date=2004-03-08 |title=Convex Optimization |publisher=Cambridge University Press |isbn=978-0-521-83378-3 |doi=10.1017/cbo9780511804441 }} </ref> == Definitions == In the following definitions, <math>\mathbf{x}^\mathsf{T}</math> is the transpose of <math>\mathbf{x},</math> <math>\mathbf{z}^*</math> is the [[conjugate transpose]] of <math>\mathbf{z},</math> and <math>\mathbf{0}</math> denotes the {{nobr|{{mvar|n}} dimensional}} zero-vector. === Definitions for real matrices === An <math>n \times n</math> symmetric real matrix <math>M</math> is said to be '''positive-definite''' if <math>\mathbf{x}^\mathsf{T} M\mathbf{x} > 0</math> for all non-zero <math>\mathbf{x}</math> in <math>\mathbb{R}^n.</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ positive-definite} \quad \iff \quad \mathbf{x}^\mathsf{T} M\mathbf{x} > 0 \text{ for all } \mathbf{x} \in \R^n \setminus \{\mathbf{0}\}</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> symmetric real matrix <math>M</math> is said to be '''positive-semidefinite''' or '''non-negative-definite''' if <math>\mathbf{x}^\mathsf{T} M\mathbf{x} \geq 0</math> for all <math>\mathbf{x}</math> in <math>\mathbb{R}^n .</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ positive semi-definite} \quad \iff \quad \mathbf{x}^\mathsf{T} M\mathbf{x} \geq 0 \text{ for all } \mathbf{x} \in \mathbb{R}^n</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> symmetric real matrix <math>M</math> is said to be '''negative-definite''' if <math>\mathbf{x}^\mathsf{T} M\mathbf{x} < 0</math> for all non-zero <math>\mathbf{x}</math> in <math>\R^n.</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ negative-definite} \quad \iff \quad \mathbf{x}^\mathsf{T} M\mathbf{x} < 0 \text{ for all } \mathbf{x} \in \mathbb{R}^n \setminus \{\mathbf{0}\}</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> symmetric real matrix <math>M</math> is said to be '''negative-semidefinite''' or '''non-positive-definite''' if <math>\mathbf{x}^\mathsf{T} M\mathbf{x} \leq 0</math> for all <math>\mathbf{x}</math> in <math>\mathbb{R}^n .</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ negative semi-definite} \quad \iff \quad \mathbf{x}^\mathsf{T} M\mathbf{x} \leq 0 \text{ for all } \mathbf{x} \in \R^n</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> symmetric real matrix which is neither positive semidefinite nor negative semidefinite is called '''indefinite'''. === Definitions for complex matrices === The following definitions all involve the term <math>\mathbf{z}^* M\mathbf{z}.</math> Notice that this is always a real number for any Hermitian square matrix <math>M.</math> An <math>n \times n</math> Hermitian complex matrix <math>M</math> is said to be '''positive-definite''' if <math>\mathbf{z}^* M\mathbf{z} > 0</math> for all non-zero <math>\mathbf{z}</math> in <math>\mathbb{C}^n .</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ positive-definite} \quad \iff \quad \mathbf{z}^* M\mathbf{z} > 0 \text{ for all } \mathbf{z} \in \mathbb{C}^n \setminus \{ \mathbf{0} \}</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> Hermitian complex matrix <math>M</math> is said to be '''positive semi-definite''' or '''non-negative-definite''' if <math>\mathbf{z}^* M\mathbf{z} \geq 0</math> for all <math>\mathbf{z}</math> in <math>\mathbb{C}^n .</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ positive semi-definite} \quad \iff \quad \mathbf{z}^* M\mathbf{z} \geq 0 \text{ for all } \mathbf{z} \in \mathbb{C}^n</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> Hermitian complex matrix <math>M</math> is said to be '''negative-definite''' if <math>\mathbf{z}^* M\mathbf{z} < 0</math> for all non-zero <math>\mathbf{z}</math> in <math>\mathbb{C}^n .</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ negative-definite} \quad \iff \quad \mathbf{z}^* M\mathbf{z} < 0 \text{ for all } \mathbf{z} \in \mathbb{C}^n \setminus \{\mathbf{0}\}</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> Hermitian complex matrix <math>M</math> is said to be '''negative semi-definite''' or '''non-positive-definite''' if <math>\mathbf{z}^* M\mathbf{z} \leq 0</math> for all <math>\mathbf{z}</math> in <math>\mathbb{C}^n .</math> Formally, {{Equation box 1 |indent = |title= |equation = <math>M \text{ negative semi-definite} \quad \iff \quad \mathbf{z}^* M\mathbf{z} \leq 0 \text{ for all } \mathbf{z} \in \mathbb{C}^n</math> |cellpadding= 6 |border |border colour = #0073CF |background colour=var(--background-color-success-subtle,#d5fdf4)}} An <math>n \times n</math> Hermitian complex matrix which is neither positive semidefinite nor negative semidefinite is called '''indefinite'''. === Consistency between real and complex definitions === Since every real matrix is also a complex matrix, the definitions of "definiteness" for the two classes must agree. For complex matrices, the most common definition says that <math>M</math> is positive-definite if and only if <math>\mathbf{z}^* M\mathbf{z}</math> is real and positive for every non-zero complex column vectors <math>\mathbf{z} .</math> This condition implies that <math>M</math> is Hermitian (i.e. its transpose is equal to its conjugate), since <math>\mathbf{z}^* M\mathbf{z}</math> being real, it equals its conjugate transpose <math>\mathbf{z}^*M^*\mathbf{z}</math> for every <math>\mathbf{z},</math> which implies <math>M = M^* .</math> By this definition, a positive-definite ''real'' matrix <math>M</math> is Hermitian, hence symmetric; and <math>\mathbf{z}^\mathsf{T} M\mathbf{z}</math> is positive for all non-zero ''real'' column vectors <math>\mathbf{z} .</math> However the last condition alone is not sufficient for <math>M</math> to be positive-definite. For example, if <math display="block">M = \begin{bmatrix} 1 & 1 \\-1 & 1 \end{bmatrix},</math> then for any real vector <math>\mathbf{z}</math> with entries <math>a</math> and <math>b</math> we have <math>\mathbf{z}^\mathsf{T} M\mathbf{z} = \left(a + b\right)a + \left(-a + b\right) b = a^2 + b^2,</math> which is always positive if <math>\mathbf{z}</math> is not zero. However, if <math>\mathbf{z}</math> is the complex vector with entries {{math|1}} and {{tmath| i }}, one gets <math display="block">\mathbf{z}^* M\mathbf{z} = \begin{bmatrix} 1 & -i \end{bmatrix}M\begin{bmatrix} 1 \\i \end{bmatrix} = \begin{bmatrix} 1 + i & 1 - i \end{bmatrix}\begin{bmatrix} 1 \\i \end{bmatrix} = 2 + 2i .</math> which is not real. Therefore, <math>M</math> is not positive-definite. On the other hand, for a ''symmetric'' real matrix <math>M,</math> the condition "<math>\mathbf{z}^\mathsf{T} M\mathbf{z} > 0</math> for all nonzero real vectors <math>\mathbf{z}</math>" ''does'' imply that <math>M</math> is positive-definite in the complex sense. === Notation === If a Hermitian matrix <math>M</math> is positive semi-definite, one sometimes writes <math>M \succeq 0</math> and if <math>M</math> is positive-definite one writes <math>M \succ 0.</math> To denote that <math>M</math> is negative semi-definite one writes <math>M \preceq 0</math> and to denote that <math>M</math> is negative-definite one writes <math>M \prec 0.</math> The notion comes from [[functional analysis]] where positive semidefinite matrices define [[positive operator]]s. If two matrices <math>A</math> and <math>B</math> satisfy <math>B - A \succeq 0,</math> we can define a [[Partially ordered set#Non-strict partial order|non-strict partial order]] <math>B \succeq A</math> that is [[Reflexive relation|reflexive]], [[Antisymmetric relation|antisymmetric]], and [[Transitive relation|transitive]]; It is not a [[total order]], however, as <math>B - A,</math> in general, may be indefinite. A common alternative notation is <math>M \geq 0,</math> <math>M > 0,</math> <math>M \leq 0,</math> and <math>M < 0</math> for positive semi-definite and positive-definite, negative semi-definite and negative-definite matrices, respectively. This may be confusing, as sometimes [[nonnegative matrix|nonnegative matrices]] (respectively, nonpositive matrices) are also denoted in this way. == Examples == {{unordered list | The [[identity matrix]] <math>I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}</math> is positive-definite (and as such also positive semi-definite). It is a real symmetric matrix, and, for any non-zero column vector '''z''' with real entries ''a'' and ''b'', one has <math display="block"> \mathbf{z}^\mathsf{T} I\mathbf{z} = \begin{bmatrix} a & b \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} a \\ b \end{bmatrix} = a^2 + b^2.</math> Seen as a complex matrix, for any non-zero column vector ''z'' with complex entries ''a'' and ''b'' one has <math display="block">\mathbf{z}^*I\mathbf{z} = \begin{bmatrix} \overline{a} & \overline{b} \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} a \\ b\end{bmatrix} = \overline{a}a + \overline{b}b = |a|^2 + |b|^2.</math> Either way, the result is positive since <math>\mathbf z</math> is not the zero vector (that is, at least one of <math>a</math> and <math>b</math> is not zero). | The real symmetric matrix <math display="block">M = \begin{bmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{bmatrix}</math> is positive-definite since for any non-zero column vector '''z''' with entries ''a'', ''b'' and ''c'', we have <math display="block">\begin{align} \mathbf{z}^\mathsf{T} M \mathbf{z} = \left( \mathbf{z}^\mathsf{T} M \right) \mathbf{z} &= \begin{bmatrix} (2a - b) & (-a + 2b - c) & (-b + 2c) \end{bmatrix} \begin{bmatrix} a \\ b \\ c \end{bmatrix} \\ &= (2a - b)a + (-a + 2b - c)b + (-b + 2c)c \\ &= 2a^2 - ba - ab + 2b^2 - cb - bc + 2c^2 \\ &= 2a^2 - 2ab + 2b^2 - 2bc + 2c^2 \\ &= a^2 + a^2 - 2ab + b^2 + b^2- 2bc + c^2 + c^2 \\ &= a^2 + (a - b)^2 + (b - c)^2 + c^2 \end{align}</math> This result is a sum of squares, and therefore non-negative; and is zero only if <math>a = b = c = 0,</math> that is, when <math>\mathbf{z}</math> is the zero vector. | For any real [[invertible matrix]] <math>A,</math> the product <math>A^\mathsf{T} A</math> is a positive definite matrix (if the means of the columns of A are 0, then this is also called the [[covariance matrix]]). A simple proof is that for any non-zero vector <math>\mathbf{z},</math> the condition <math>\mathbf{z}^\mathsf{T} A^\mathsf{T} A\mathbf{z} = (A\mathbf{z})^\mathsf{T} (A\mathbf{z}) = \|A\mathbf{z}\|^2 > 0,</math> since the invertibility of matrix <math>A</math> means that <math>A\mathbf{z} \neq 0.</math> | The example <math>M</math> above shows that a matrix in which some elements are negative may still be positive definite. Conversely, a matrix whose entries are all positive is not necessarily positive definite, as for example <math display="block">N = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix},</math> for which <math>\begin{bmatrix} -1 & 1 \end{bmatrix}N\begin{bmatrix} -1 & 1 \end{bmatrix}^\mathsf{T} = -2 < 0.</math> }} == Eigenvalues == Let <math>M</math> be an <math>n \times n</math> [[Hermitian matrix]] (this includes real [[symmetric matrices]]). All eigenvalues of <math>M</math> are real, and their sign characterize its definiteness: * <math>M</math> is positive definite if and only if all of its eigenvalues are positive. * <math>M</math> is positive semi-definite if and only if all of its eigenvalues are non-negative. * <math>M</math> is negative definite if and only if all of its eigenvalues are negative. * <math>M</math> is negative semi-definite if and only if all of its eigenvalues are non-positive. * <math>M</math> is indefinite if and only if it has both positive and negative eigenvalues. Let <math>P D P^{-1}</math> be an [[eigendecomposition of a matrix|eigendecomposition]] of <math>M,</math> where <math>P</math> is a [[unitary matrix|unitary complex matrix]] whose columns comprise an [[orthonormal basis]] of [[eigenvector]]s of <math>M,</math> and <math>D</math> is a ''real'' [[diagonal matrix]] whose [[main diagonal]] contains the corresponding [[eigenvalue]]s. The matrix <math>M</math> may be regarded as a diagonal matrix <math>D</math> that has been re-expressed in coordinates of the (eigenvectors) basis <math>P.</math> Put differently, applying <math>M</math> to some vector <math>\mathbf{z},</math> giving <math>M \mathbf{z},</math> is the same as [[Change of basis|changing the basis]] to the eigenvector coordinate system using <math>P^{-1},</math> giving <math>P^{-1} \mathbf{z},</math> applying the [[Transformation matrix|stretching transformation]] <math>D</math> to the result, giving <math>D P^{-1} \mathbf{z},</math> and then changing the basis back using <math>P,</math> giving <math>P D P^{-1} \mathbf{z}.</math> With this in mind, the one-to-one change of variable <math>\mathbf{y} = P\mathbf{z}</math> shows that <math>\mathbf{z}^* M\mathbf{z}</math> is real and positive for any complex vector <math>\mathbf{z}</math> if and only if <math>\mathbf{y}^* D \mathbf{y}</math> is real and positive for any <math>y;</math> in other words, if <math>D</math> is positive definite. For a diagonal matrix, this is true only if each element of the main diagonal – that is, every eigenvalue of <math>M</math> – is positive. Since the [[spectral theorem]] guarantees all eigenvalues of a Hermitian matrix to be real, the positivity of eigenvalues can be checked using [[Descartes' rule of signs|Descartes' rule of alternating signs]] when the [[characteristic polynomial]] of a real, symmetric matrix <math>M</math> is available. == Decomposition == {{See also|Gram matrix}} Let <math>M</math> be an <math>n \times n</math> [[Hermitian matrix]]. <math>M</math> is positive semidefinite if and only if it can be decomposed as a product <math display="block">M = B^* B</math> of a matrix <math>B</math> with its [[conjugate transpose]]. When <math>M</math> is real, <math>B</math> can be real as well and the decomposition can be written as <math display="block">M = B^\mathsf{T} B.</math> <math>M</math> is positive definite if and only if such a decomposition exists with <math>B</math> [[Invertible matrix|invertible]]. More generally, <math>M</math> is positive semidefinite with rank <math>k</math> if and only if a decomposition exists with a <math>k \times n</math> matrix <math>B</math> of full row rank (i.e. of rank <math>k</math>). Moreover, for any decomposition <math>M = B^* B,</math> <math>\operatorname{rank}(M) = \operatorname{rank}(B).</math><ref>{{harvtxt|Horn|Johnson|2013}}, p. 440, Theorem 7.2.7</ref> {{math proof | proof = If <math>M = B^* B,</math> then <math>x^* M x = (x^* B^*) (B x) = \|B x \|^2 \geq 0,</math> so <math>M</math> is positive semidefinite. If moreover <math>B</math> is invertible then the inequality is strict for <math>x \neq 0,</math> so <math>M</math> is positive definite. If <math>B</math> is <math>k \times n</math> of rank <math>k,</math> then <math>\operatorname{rank}(M) = \operatorname{rank}(B^*) = k.</math> In the other direction, suppose <math>M</math> is positive semidefinite. Since <math>M</math> is Hermitian, it has an [[Eigendecomposition of a matrix#Decomposition for special matrices|eigendecomposition]] <math>M = Q^{-1} D Q</math> where <math>Q</math> is [[unitary matrix|unitary]] and <math>D</math> is a diagonal matrix whose entries are the eigenvalues of <math>M</math> Since <math>M</math> is positive semidefinite, the eigenvalues are non-negative real numbers, so one can define <math>D^{\frac{1}{2}}</math> as the diagonal matrix whose entries are non-negative square roots of eigenvalues. Then <math>M = Q^{-1} D Q = Q^* D Q = Q^* D^{\frac{1}{2}} D^{\frac{1}{2}} Q = Q^* D^{\frac{1}{2}*} D^{\frac{1}{2}} Q = B^* B</math> for <math>B = D^{\frac{1}{2}} Q.</math> If moreover <math>M</math> is positive definite, then the eigenvalues are (strictly) positive, so <math>D^{\frac{1}{2}}</math> is invertible, and hence <math>B = D^{\frac{1}{2}} Q</math> is invertible as well. If <math>M</math> has rank <math>k,</math> then it has exactly <math>k</math> positive eigenvalues and the others are zero, hence in <math>B = D^{\frac{1}{2}} Q</math> all but <math>k</math> rows are all zeroed. Cutting the zero rows gives a <math>k \times n</math> matrix <math>B'</math> such that <math>B'^* B' = B^* B = M.</math> }} The columns <math>b_1, \dots, b_n</math> of <math>B</math> can be seen as vectors in the [[complex vector space|complex]] or [[real vector space]] <math>\mathbb{R}^k,</math> respectively. Then the entries of <math>M</math> are [[inner product]]s (that is [[dot product]]s, in the real case) of these vectors <math display="block">M_{ij} = \langle b_i, b_j\rangle.</math> In other words, a Hermitian matrix <math>M</math> is positive semidefinite if and only if it is the [[Gram matrix]] of some vectors <math>b_1, \dots, b_n.</math> It is positive definite if and only if it is the Gram matrix of some [[linearly independent]] vectors. In general, the rank of the Gram matrix of vectors <math>b_1, \dots, b_n</math> equals the dimension of the space [[Linear span|spanned]] by these vectors.<ref>{{harvtxt|Horn|Johnson|2013}}, p. 441, Theorem 7.2.10</ref> === Uniqueness up to unitary transformations === The decomposition is not unique: if <math>M = B^* B</math> for some <math>k \times n</math> matrix <math>B</math> and if <math>Q</math> is any [[unitary matrix|unitary]] <math>k \times k</math> matrix (meaning <math>Q^* Q = Q Q^* = I</math>), then <math>M = B^* B = B^* Q^* Q B = A^* A</math> for <math>A = Q B.</math> However, this is the only way in which two decompositions can differ: The decomposition is unique up to [[unitary transformation]]s. More formally, if <math>A</math> is a <math>k \times n</math> matrix and <math>B</math> is a <math>\ell \times n</math> matrix such that <math>A^* A = B^* B,</math> then there is a <math>\ell \times k</math> matrix <math>Q</math> with orthonormal columns (meaning <math>Q^* Q = I_{k \times k}</math>) such that <math>B = Q A.</math><ref>{{harvtxt|Horn|Johnson|2013}}, p. 452, Theorem 7.3.11</ref> When <math>\ell = k</math> this means <math>Q</math> is [[unitary matrix|unitary]]. This statement has an intuitive geometric interpretation in the real case: let the columns of <math>A</math> and <math>B</math> be the vectors <math>a_1,\dots,a_n</math> and <math>b_1, \dots, b_n</math> in <math>\mathbb{R}^k.</math> A real unitary matrix is an [[orthogonal matrix]], which describes a [[rigid transformation]] (an isometry of Euclidean space <math>\mathbb{R}^k</math>) preserving the 0 point (i.e. [[Rotation matrix|rotations]] and [[Reflection matrix|reflections]], without translations). Therefore, the dot products <math>a_i \cdot a_j</math> and <math>b_i \cdot b_j</math> are equal if and only if some rigid transformation of <math>\mathbb{R}^k</math> transforms the vectors <math>a_1,\dots,a_n</math> to <math>b_1,\dots,b_n</math> (and 0 to 0). === Square root === {{main|Square root of a matrix}} A Hermitian matrix <math>M</math> is positive semidefinite if and only if there is a positive semidefinite matrix <math>B</math> (in particular <math>B</math> is Hermitian, so <math>B^* = B</math>) satisfying <math>M = B B.</math> This matrix <math>B</math> is unique,<ref>{{harvtxt|Horn|Johnson|2013}}, p. 439, Theorem 7.2.6 with <math>k = 2</math></ref> is called the ''non-negative [[square root of a matrix|square root]]'' of <math>M,</math> and is denoted with <math>B = M^\frac{1}{2}.</math> When <math>M</math> is positive definite, so is <math>M^\frac{1}{2},</math> hence it is also called the ''positive square root'' of <math>M .</math> The non-negative square root should not be confused with other decompositions <math>M = B^* B.</math> Some authors use the name ''square root'' and <math>M^\frac{1}{2}</math> for any such decomposition, or specifically for the [[Cholesky decomposition]], or any decomposition of the form <math>M = B B;</math> others only use it for the non-negative square root. If <math>M \succ N \succ 0</math> then <math>M^\frac{1}{2} \succ N^\frac{1}{2} \succ 0.</math> === Cholesky decomposition === A Hermitian positive semidefinite matrix <math>M</math> can be written as <math>M = L L^*,</math> where <math>L</math> is lower triangular with non-negative diagonal (equivalently <math>M = B^*B</math> where <math>B = L^*</math> is upper triangular); this is the [[Cholesky decomposition]]. If <math>M</math> is positive definite, then the diagonal of <math>L</math> is positive and the Cholesky decomposition is unique. Conversely if <math>L</math> is lower triangular with nonnegative diagonal then <math>L L^*</math> is positive semidefinite. The Cholesky decomposition is especially useful for efficient numerical calculations. A closely related decomposition is the [[Cholesky decomposition#LDL decomposition|LDL decomposition]], <math>M = L D L^*,</math> where <math>D</math> is diagonal and <math>L</math> is [[Triangular matrix#Unitriangular matrix|lower unitriangular]]. === Williamson theorem === Any <math>2n\times 2n </math> positive definite Hermitian real matrix <math>M </math> can be diagonalized via symplectic (real) matrices. More precisely, [[Williamson theorem|Williamson's theorem]] ensures the existence of symplectic <math>S\in\mathbf{Sp}(2n,\mathbb{R}) </math> and diagonal real positive <math>D\in\mathbb{R}^{n\times n} </math> such that <math>SMS^T=D\oplus D </math>. == Other characterizations == Let <math>M</math> be an <math>n \times n</math> [[Hermitian matrix|real symmetric matrix]], and let <math>B_1(M) \equiv \{ \mathbf{x} \in \mathbb{R}^n : \mathbf{x}^\mathsf{T} M\mathbf{x} \leq 1\}</math> be the "unit ball" defined by <math>M.</math> Then we have the following * <math>B_1( \mathbf{v}\mathbf{v}^\mathsf{T} )</math> is a solid slab sandwiched between <math>\pm \{ \mathbf{w}: \langle \mathbf{w}, \mathbf{v}\rangle = 1 \}.</math> * <math>M \succeq 0</math> if and only if <math>B_1(M)</math> is an ellipsoid, or an ellipsoidal cylinder. * <math>M \succ 0</math> if and only if <math>B_1(M)</math> is bounded, that is, it is an ellipsoid. * If <math>N \succ 0,</math> then <math>M \succeq N</math> if and only if <math>B_1(M) \subseteq B_1(N);</math> <math>M \succ N</math> if and only if <math>B_1(M) \subseteq \operatorname{int}\bigl(B_1(N)\bigr).</math> * If <math>N \succ 0,</math> then <math>M \succeq \frac{ \mathbf{v}\mathbf{v}^\mathsf{T} }{\mathbf{v}^\mathsf{T} N\mathbf{v}}</math> for all <math>v \neq 0</math> if and only if <math display="inline">B_1(M) \subset \bigcap_{ \mathbf{v}^\mathsf{T} N\mathbf{v} = 1 } B_1(\mathbf{v} \mathbf{v}^\mathsf{T}).</math> So, since the polar dual of an ellipsoid is also an ellipsoid with the same principal axes, with inverse lengths, we have <math display="block">B_1(N^{-1}) = \bigcap_{\mathbf{v}^\mathsf{T} N\mathbf{v} = 1} B_1(\mathbf{v}\mathbf{v}^\mathsf{T}) = \bigcap_{ \mathbf{v}^\mathsf{T} N\mathbf{v} = 1 } \{ \mathbf{w}: |\langle \mathbf{w}, \mathbf{v}\rangle| \leq 1 \}.</math> That is, if <math>N</math> is positive-definite, then <math>M \succeq \frac{ \mathbf{v} \mathbf{v}^\mathsf{T} }{\mathbf{v}^\mathsf{T} N\mathbf{v}}</math> for all <math>\mathbf{v} \neq \mathbf{0}</math> if and only if <math>M \succeq N^{-1} .</math> Let <math>M</math> be an <math>n \times n</math> [[Hermitian matrix]]. The following properties are equivalent to <math>M</math> being positive definite: ; The associated sesquilinear form is an inner product : The [[sesquilinear form]] defined by <math>M</math> is the function <math>\langle \cdot, \cdot \rangle</math> from <math>\mathbb{C}^n \times \mathbb{C}^n</math> to <math>\mathbb{C}^n</math> such that <math>\langle \mathbf{x}, \mathbf{y} \rangle \equiv \mathbf{y}^* M\mathbf{x}</math> for all <math>\mathbf{x}</math> and <math>\mathbf{y}</math> in <math>\mathbb{C}^n,</math> where <math>\mathbf{y}^*</math> is the conjugate transpose of <math>\mathbf{y}.</math> For any complex matrix <math>M,</math> this form is linear in <math>x</math> and semilinear in <math>\mathbf{y}.</math> Therefore, the form is an [[inner product]] on <math>\mathbb{C}^n</math> if and only if <math>\langle \mathbf{z}, \mathbf{z} \rangle</math> is real and positive for all nonzero <math>\mathbf{z};</math> that is if and only if <math>M</math> is positive definite. (In fact, every inner product on <math>\mathbb{C}^n</math> arises in this fashion from a Hermitian positive definite matrix.) ; Its leading principal minors are all positive : The {{mvar|k}}th [[minor (linear algebra)|leading principal minor]] of a matrix <math>M</math> is the [[determinant]] of its upper-left <math>k \times k</math> sub-matrix. It turns out that a matrix is positive definite if and only if all these determinants are positive. This condition is known as [[Sylvester's criterion]], and provides an efficient test of positive definiteness of a symmetric real matrix. Namely, the matrix is reduced to an [[upper triangular matrix]] by using [[elementary row operations]], as in the first part of the [[Gaussian elimination]] method, taking care to preserve the sign of its determinant during [[pivot element|pivoting]] process. Since the {{mvar|k}}th leading principal minor of a triangular matrix is the product of its diagonal elements up to row <math>k,</math> Sylvester's criterion is equivalent to checking whether its diagonal elements are all positive. This condition can be checked each time a new row <math>k</math> of the triangular matrix is obtained. A positive semidefinite matrix is positive definite if and only if it is [[invertible matrix|invertible]].<ref>{{harvtxt|Horn|Johnson|2013}}, p. 431, Corollary 7.1.7</ref> A matrix <math>M</math> is negative (semi)definite if and only if <math>-M</math> is positive (semi)definite. == Quadratic forms == {{Main|Definite quadratic form}} The (purely) [[quadratic form]] associated with a real <math>n \times n</math> matrix <math>M</math> is the function <math>Q : \mathbb{R}^n \to \mathbb{R}</math> such that <math>Q(\mathbf{x}) = \mathbf{x}^\mathsf{T} M \mathbf{x}</math> for all <math>\mathbf{x}.</math> <math>M</math> can be assumed symmetric by replacing it with <math>\tfrac{1}{2} \left(M + M^\mathsf{T} \right),</math> since any asymmetric part will be zeroed-out in the double-sided product. A symmetric matrix <math>M</math> is positive definite if and only if its quadratic form is a [[strictly convex function]]. More generally, any [[quadratic function]] from <math>\mathbb{R}^n</math> to <math>\mathbb{R}</math> can be written as <math>\mathbf{x}^\mathsf{T} M \mathbf{x} + \mathbf{b}^\mathsf{T} \mathbf{x} + c</math> where <math>M</math> is a symmetric <math>n \times n</math> matrix, <math>\mathbf{b}</math> is a real {{mvar|n}} vector, and <math>c</math> a real constant. In the <math>n = 1</math> case, this is a parabola, and just like in the <math>n = 1</math> case, we have '''Theorem:''' This quadratic function is strictly convex, and hence has a unique finite global minimum, if and only if <math>M</math> is positive definite. '''Proof:''' If <math>M</math> is positive definite, then the function is strictly convex. Its gradient is zero at the unique point of <math>M^{-1} \mathbf{b},</math> which must be the global minimum since the function is strictly convex. If <math>M</math> is not positive definite, then there exists some vector <math>\mathbf{v}</math> such that <math>\mathbf{v}^\mathsf{T} M \mathbf{v} \leq 0,</math> so the function <math>f(t) \equiv ( t \mathbf{v} )^\mathsf{T} M ( t\mathbf{v} ) + b^\mathsf{T} (t \mathbf{v}) + c</math> is a line or a downward parabola, thus not strictly convex and not having a global minimum. For this reason, positive definite matrices play an important role in [[optimization (mathematics)|optimization]] problems. == Simultaneous diagonalization == One symmetric matrix and another matrix that is both symmetric and positive definite can be [[diagonalizable matrix#Simultaneous diagonalization|simultaneously diagonalized]]. This is so although simultaneous diagonalization is not necessarily performed with a [[Matrix similarity|similarity transformation]]. This result does not extend to the case of three or more matrices. In this section we write for the real case. Extension to the complex case is immediate. Let <math>M</math> be a symmetric and <math>N</math> a symmetric and positive definite matrix. Write the generalized eigenvalue equation as <math>\left(M - \lambda N\right)\mathbf{x} = 0</math> where we impose that <math>\mathbf{x}</math> be normalized, i.e. <math>\mathbf{x}^\mathsf{T} N \mathbf{x} = 1.</math> Now we use [[Cholesky decomposition]] to write the inverse of <math>N</math> as <math>Q^\mathsf{T} Q.</math> Multiplying by <math>Q</math> and letting <math>\mathbf{x} = Q^\mathsf{T} \mathbf{y},</math> we get <math>Q \left(M - \lambda N\right) Q^\mathsf{T} \mathbf{y} = 0,</math> which can be rewritten as <math>\left(Q M Q^\mathsf{T} \right)\mathbf{y} = \lambda \mathbf{y}</math> where <math>\mathbf{y}^\mathsf{T} \mathbf{y} = 1.</math> Manipulation now yields <math>MX = NX\Lambda</math> where <math>X</math> is a matrix having as columns the generalized eigenvectors and <math>\Lambda</math> is a diagonal matrix of the generalized eigenvalues. Now premultiplication with <math>X^\mathsf{T}</math> gives the final result: <math>X^\mathsf{T} MX = \Lambda</math> and <math>X^\mathsf{T} N X = I,</math> but note that this is no longer an orthogonal diagonalization with respect to the inner product where <math>\mathbf{y}^\mathsf{T} \mathbf{y} = 1.</math> In fact, we diagonalized <math>M</math> with respect to the inner product induced by <math>N.</math><ref>{{harvtxt|Horn|Johnson|2013}}, p. 485, Theorem 7.6.1</ref> Note that this result does not contradict what is said on simultaneous diagonalization in the article [[diagonalizable matrix#Simultaneous diagonalization|Diagonalizable matrix]], which refers to simultaneous diagonalization by a similarity transformation. Our result here is more akin to a simultaneous diagonalization of two quadratic forms, and is useful for optimization of one form under conditions on the other. == Properties == === Induced partial ordering === For arbitrary square matrices <math>M,</math> <math>N</math> we write <math>M \ge N</math> if <math>M - N \ge 0</math> i.e., <math>M - N</math> is positive semi-definite. This defines a [[partially ordered set|partial ordering]] on the set of all square matrices. One can similarly define a strict partial ordering <math>M > N.</math> The ordering is called the [[Loewner order]]. === Inverse of positive definite matrix === Every positive definite matrix is [[invertible matrix|invertible]] and its inverse is also positive definite.<ref>{{harvtxt|Horn|Johnson|2013}}, p. 438, Theorem 7.2.1</ref> If <math>M \geq N > 0</math> then <math>N^{-1} \geq M^{-1} > 0.</math><ref>{{harvtxt|Horn|Johnson|2013}}, p. 495, Corollary 7.7.4(a)</ref> Moreover, by the [[min-max theorem]], the {{mvar|k}}th largest eigenvalue of <math>M</math> is greater than or equal to the {{mvar|k}}th largest eigenvalue of <math>N.</math> === Scaling === If <math>M</math> is positive definite and <math>r > 0</math> is a real number, then <math>r M</math> is positive definite.<ref name="HJobs713">{{harvtxt|Horn|Johnson|2013}}, p. 430, Observation 7.1.3</ref> === Addition === * If <math>M</math> and <math>N</math> are positive-definite, then the sum <math>M + N</math> is also positive-definite.<ref name="HJobs713"/> * If <math>M</math> and <math>N</math> are positive-semidefinite, then the sum <math>M + N</math> is also positive-semidefinite. * If <math>M</math> is positive-definite and <math>N</math> is positive-semidefinite, then the sum <math>M + N</math> is also positive-definite. === Multiplication === * If <math>M</math> and <math>N</math> are positive definite, then the products <math>M N M</math> and <math>NMN</math> are also positive definite. If <math>M N = N M,</math> then <math>M N</math> is also positive definite. * If <math>M</math> is positive semidefinite, then <math>A^* M A</math> is positive semidefinite for any (possibly rectangular) matrix <math>A .</math> If <math>M</math> is positive definite and <math>A</math> has full column rank, then <math>A^* M A</math> is positive definite.<ref>{{harvtxt|Horn|Johnson|2013}}, p. 431, Observation 7.1.8</ref> === Trace === The diagonal entries <math>m_{ii}</math> of a positive-semidefinite matrix are real and non-negative. As a consequence the [[trace (linear algebra)|trace]], <math>\operatorname{tr}(M) \ge 0.</math> Furthermore,<ref>{{harvtxt|Horn|Johnson|2013}}, p. 430</ref> since every principal sub-matrix (in particular, 2-by-2) is positive semidefinite, <math display="block">\left|m_{ij}\right| \leq \sqrt{m_{ii}m_{jj}} \quad \forall i, j</math> and thus, when <math>n \ge 1,</math> <math display="block"> \max_{i,j} \left|m_{ij}\right| \leq \max_i m_{ii}</math> An <math>n \times n</math> Hermitian matrix <math>M</math> is positive definite if it satisfies the following trace inequalities:<ref>{{cite journal | title=Bounds for Eigenvalues using Traces | last1=Wolkowicz | first1=Henry | last2 = Styan | first2 = George P.H. | journal=Linear Algebra and Its Applications | issue=29 | publisher=Elsevier | year=1980 | volume=29 | pages=471–506 | doi=10.1016/0024-3795(80)90258-X }}</ref> <math display="block">\operatorname{tr}(M) > 0 \quad \mathrm{and} \quad \frac{(\operatorname{tr}(M))^2}{\operatorname{tr}(M^2)} > n-1 .</math> Another important result is that for any <math>M</math> and <math>N</math> positive-semidefinite matrices, <math>\operatorname{tr}(MN) \ge 0 .</math> This follows by writing <math>\operatorname{tr}(MN) = \operatorname{tr}(M^\frac{1}{2}N M^\frac{1}{2}).</math> The matrix <math>M^\frac{1}{2}N M^\frac{1}{2}</math> is positive-semidefinite and thus has non-negative eigenvalues, whose sum, the trace, is therefore also non-negative. === Hadamard product === If <math>M, N \geq 0,</math> although <math>M N</math> is not necessary positive semidefinite, the [[Hadamard product (matrices)|Hadamard product]] is, <math>M \circ N \geq 0</math> (this result is often called the [[Schur product theorem]]).<ref>{{harvtxt|Horn|Johnson|2013}}, p. 479, Theorem 7.5.3</ref> Regarding the Hadamard product of two positive semidefinite matrices <math>M = (m_{ij}) \geq 0,</math> <math>N \geq 0,</math> there are two notable inequalities: * Oppenheim's inequality: <math>\det(M \circ N) \geq \det (N) \prod\nolimits_i m_{ii}.</math><ref>{{harvtxt|Horn|Johnson|2013}}, p. 509, Theorem 7.8.16</ref> * <math>\det(M \circ N) \geq \det(M) \det(N).</math><ref name=styan1973>{{cite journal |last=Styan |first=G.P. |year=1973 |title=Hadamard products and multivariate statistical analysis |journal=[[Linear Algebra and Its Applications]] |volume=6 |pages=217–240 |doi=10.1016/0024-3795(73)90023-2 }}, Corollary 3.6, p. 227</ref> === Kronecker product === If <math>M, N \geq 0,</math> although <math>M N</math> is not necessary positive semidefinite, the [[Kronecker product]] <math>M \otimes N \geq 0.</math> === Frobenius product === If <math>M, N \geq 0,</math> although <math>M N</math> is not necessary positive semidefinite, the [[Frobenius inner product]] <math>M : N \geq 0</math> (Lancaster–Tismenetsky, ''The Theory of Matrices'', p. 218). === Convexity === The set of positive semidefinite symmetric matrices is [[convex set|convex]]. That is, if <math>M</math> and <math>N</math> are positive semidefinite, then for any <math>\alpha</math> between {{math|0}} and {{math|1}}, <math>\alpha M + \left(1 - \alpha\right) N</math> is also positive semidefinite. For any vector <math>\mathbf{x}</math>: <math display="block">\mathbf{x}^\mathsf{T} \left(\alpha M + \left(1 - \alpha\right)N\right)\mathbf{x} = \alpha \mathbf{x}^\mathsf{T} M\mathbf{x} + (1 - \alpha) \mathbf{x}^\mathsf{T} N\mathbf{x} \geq 0.</math> This property guarantees that [[semidefinite programming]] problems converge to a globally optimal solution. === Relation with cosine === The positive-definiteness of a matrix <math>A</math> expresses that the angle <math>\theta</math> between any vector <math>\mathbf{x}</math> and its image <math>A \mathbf{x}</math> is always <math>-\pi / 2 < \theta < +\pi / 2:</math> <math display="block">\cos\theta = \frac{ \mathbf{x}^\mathsf{T} A\mathbf{x} }{\lVert \mathbf{x} \rVert \lVert A\mathbf{x} \rVert} = \frac{\langle \mathbf{x}, A\mathbf{x} \rangle}{\lVert \mathbf{x} \rVert \lVert A\mathbf{x} \rVert} , \theta = \theta(\mathbf{x}, A \mathbf{x}) \equiv \widehat{\left(\mathbf{x},A\mathbf{x}\right)} \equiv</math> the angle between <math>\mathbf{x}</math> and <math>A\mathbf{x}.</math> === Further properties === # If <math>M</math> is a symmetric [[Toeplitz matrix]], i.e. the entries <math>m_{ij}</math> are given as a function of their absolute index differences: <math>m_{ij} = h(|i-j|),</math> and the ''strict'' inequality <math display="inline">\sum_{j \neq 0} \left|h(j)\right| < h(0)</math> holds, then <math>M</math> is ''strictly'' positive definite. # Let <math>M > 0</math> and <math>N</math> Hermitian. If <math>MN + NM \ge 0</math> (resp., <math>MN + NM > 0</math>) then <math>N \ge 0</math> (resp., <math>N > 0</math>).<ref> {{Cite book | title=Positive Definite Matrices | last=Bhatia | first=Rajendra | publisher=Princeton University Press | year=2007 | isbn=978-0-691-12918-1 | location=Princeton, New Jersey | pages=8 }}</ref> # If <math>M > 0</math> is real, then there is a <math>\delta > 0</math> such that <math>M > \delta I,</math> where <math>I</math> is the [[identity matrix]]. # If <math>M_k</math> denotes the leading <math>k \times k</math> minor, <math>\det\left(M_k\right)/\det\left(M_{k-1}\right)</math> is the {{mvar|k}}th pivot during [[LU decomposition]]. # A matrix is negative definite if its {{mvar|k}}th order leading [[principal minor]] is negative when <math>k</math> is odd, and positive when <math>k</math> is even. # If <math>M</math> is a real positive definite matrix, then there exists a positive real number <math>m</math> such that for every vector <math>\mathbf{v},</math> <math>\mathbf{v}^\mathsf{T} M\mathbf{v} \geq m\|\mathbf{v}\|_2^{2}.</math> # A Hermitian matrix is positive semidefinite if and only if all of its principal minors are nonnegative. It is however not enough to consider the leading principal minors only, as is checked on the diagonal matrix with entries {{math|0}} and {{math|−1 .}} === Block matrices and submatrices === A positive <math>2n \times 2n</math> matrix may also be defined by [[block matrix|blocks]]: <math display="block">M = \begin{bmatrix} A & B \\ C & D \end{bmatrix}</math> where each block is <math>n \times n,</math> By applying the positivity condition, it immediately follows that <math>A</math> and <math>D</math> are hermitian, and <math>C = B^*.</math> We have that <math>\mathbf{z}^* M\mathbf{z} \ge 0</math> for all complex <math>\mathbf{z},</math> and in particular for <math>\mathbf{z} = [\mathbf{v}, 0]^\mathsf{T} .</math> Then <math display="block">\begin{bmatrix} \mathbf{v}^* & 0 \end{bmatrix} \begin{bmatrix} A & B \\ B^* & D \end{bmatrix} \begin{bmatrix} \mathbf{v} \\ 0 \end{bmatrix} = \mathbf{v}^* A\mathbf{v} \ge 0.</math> A similar argument can be applied to <math>D,</math> and thus we conclude that both <math>A</math> and <math>D</math> must be positive definite. The argument can be extended to show that any [[Matrix_(mathematics)#Submatrix|principal submatrix]] of <math>M</math> is itself positive definite. Converse results can be proved with stronger conditions on the blocks, for instance, using the [[Schur complement#Conditions for positive definiteness and semi-definiteness|Schur complement]]. === Local extrema === A general [[quadratic form]] <math>f(\mathbf{x})</math> on <math>n</math> real variables <math>x_1, \ldots, x_n</math> can always be written as <math>\mathbf{x}^\mathsf{T} M \mathbf{x}</math> where <math>\mathbf{x}</math> is the column vector with those variables, and <math>M</math> is a symmetric real matrix. Therefore, the matrix being positive definite means that <math>f</math> has a unique minimum (zero) when <math>\mathbf{x}</math> is zero, and is strictly positive for any other <math>\mathbf{x}.</math> More generally, a twice-differentiable real function <math>f</math> on <math>n</math> real variables has local minimum at arguments <math>x_1, \ldots, x_n</math> if its [[gradient]] is zero and its [[Hessian matrix|Hessian]] (the matrix of all second derivatives) is positive semi-definite at that point. Similar statements can be made for negative definite and semi-definite matrices. === Covariance === In [[statistics]], the [[covariance matrix]] of a [[multivariate probability distribution]] is always positive semi-definite; and it is positive definite unless one variable is an exact linear function of the others. Conversely, every positive semi-definite matrix is the covariance matrix of some multivariate distribution. == Extension for non-Hermitian square matrices == The definition of positive definite can be generalized by designating any complex matrix <math>M</math> (e.g. real non-symmetric) as positive definite if <math>\mathcal{R_e} \left\{\mathbf{z}^* M \mathbf{z}\right\} > 0</math> for all non-zero complex vectors <math>\mathbf{z},</math> where <math>\mathcal{R_e}\{c\}</math> denotes the real part of a [[complex number]] <math>c.</math><ref name="mathw">{{cite web |last = Weisstein |first = Eric W. |url = http://mathworld.wolfram.com/PositiveDefiniteMatrix.html |title = Positive definite matrix |website = MathWorld |publisher = Wolfram Research |access-date= 2012-07-26 }}</ref> Only the Hermitian part <math display="inline">\frac{1}{2}\left(M + M^*\right)</math> determines whether the matrix is positive definite, and is assessed in the narrower sense above. Similarly, if <math>\mathbf{x}</math> and <math>M</math> are real, we have <math>\mathbf{x}^\mathsf{T} M \mathbf{x} > 0</math> for all real nonzero vectors <math>\mathbf{x}</math> if and only if the symmetric part <math display="inline">\frac{1}{2}\left(M + M^\mathsf{T} \right)</math> is positive definite in the narrower sense. It is immediately clear that <math display="inline">\mathbf{x}^\mathsf{T} M \mathbf{x} = \sum_{ij} x_i M_{ij} x_j</math>is insensitive to transposition of <math>M.</math> A non-symmetric real matrix with only positive eigenvalues may have a symmetric part with negative eigenvalues, in which case it will not be positive (semi)definite. For example, the matrix <math display=inline>M = \left[\begin{smallmatrix} 4 & 9 \\ 1 & 4 \end{smallmatrix}\right]</math> has positive eigenvalues 1 and 7, yet <math>\mathbf{x}^\mathsf{T} M \mathbf{x} = -2 </math> with the choice <math>\mathbf{x} = \left[\begin{smallmatrix} -1 \\ 1 \end{smallmatrix}\right]</math>. In summary, the distinguishing feature between the real and complex case is that, a [[Bounded operator|bounded]] positive operator on a complex Hilbert space is necessarily Hermitian, or self adjoint. The general claim can be argued using the [[polarization identity]]. That is no longer true in the real case. == Applications == === Heat conductivity matrix === Fourier's law of heat conduction, giving heat flux <math>\mathbf{q}</math> in terms of the temperature gradient <math>\mathbf{g} = \nabla T</math> is written for anisotropic media as <math>\mathbf{q} = -K \mathbf{g},</math> in which <math>K</math> is the [[thermal conductivity]] matrix. The negative is inserted in Fourier's law to reflect the expectation that heat will always flow from hot to cold. In other words, since the temperature gradient <math>\mathbf{g}</math> always points from cold to hot, the heat flux <math>\mathbf{q}</math> is expected to have a negative inner product with <math>\mathbf{g}</math> so that <math>\mathbf{q}^\mathsf{T} \mathbf{g} < 0.</math> Substituting Fourier's law then gives this expectation as <math>\mathbf{g}^\mathsf{T} K\mathbf{g} > 0,</math> implying that the conductivity matrix should be positive definite. Ordinarily <math>K</math> should be symmetric, however it becomes nonsymmetric in the presence of a magnetic field as in a [[thermal Hall effect]]. More generally in thermodynamics, the flow of heat and particles is a fully coupled system as described by the [[Onsager reciprocal relations]], and the coupling matrix is required to be positive semi-definite (possibly non-symmetric) in order that entropy production be nonnegative. == See also == * [[Covariance matrix]] * [[M-matrix]] * [[Positive-definite function]] * [[Positive-definite kernel]] * [[Schur complement]] * [[Sylvester's criterion]] * [[Numerical range]] * [[Williamson theorem]] == References == {{reflist|25em}} == Sources == {{refbegin|25em|small=yes}} * {{cite book |last1=Horn |first1=Roger A. |last2=Johnson |first2=Charles R. |year=2013 |title=Matrix Analysis |edition=2nd |publisher=[[Cambridge University Press]] |isbn=978-0-521-54823-6 }} * {{cite book |first=Rajendra |last=Bhatia |author-link=Rajendra Bhatia |year=2007 |title=Positive Definite Matrices |series=Princeton Series in Applied Mathematics |isbn=978-0-691-12918-1 }} * {{cite journal |last1=Bernstein |first1=B. |last2=Toupin |first2=R.A. |year=1962 |title=Some properties of the Hessian matrix of a strictly convex function |journal=[[Journal für die reine und angewandte Mathematik]] |volume=210 |pages=67–72 |doi=10.1515/crll.1962.210.65 }} {{refend}} == External links == * {{springer |title=Positive-definite form |id=p/p073880 }} * {{cite web |title = Positive definite matrix |website = Wolfram MathWorld |publisher = Wolfram Research |url=http://mathworld.wolfram.com/PositiveDefiniteMatrix.html }} {{Matrix classes}} {{DEFAULTSORT:Positive-Definite Matrix}} [[Category:Matrices (mathematics)]] [[de:Definitheit#Definitheit von Matrizen]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Alink
(
edit
)
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Equation box 1
(
edit
)
Template:Harvtxt
(
edit
)
Template:Hatnote
(
edit
)
Template:ISBN
(
edit
)
Template:Main
(
edit
)
Template:Math
(
edit
)
Template:Math proof
(
edit
)
Template:Matrix classes
(
edit
)
Template:Mvar
(
edit
)
Template:Nobr
(
edit
)
Template:Refbegin
(
edit
)
Template:Refend
(
edit
)
Template:Reflist
(
edit
)
Template:See also
(
edit
)
Template:Short description
(
edit
)
Template:Springer
(
edit
)
Template:Tmath
(
edit
)
Template:Unordered list
(
edit
)
Template:Use dmy dates
(
edit
)