Student[LinearAlgebra] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Education : Student Package : Linear Algebra : Computation : Queries : Student/LinearAlgebra/IsDefinite

Student[LinearAlgebra]

 IsDefinite
 test for positive or negative definite Matrices

 Calling Sequence IsDefinite(A, q)

Parameters

 A - square Matrix q - (optional) equation of the form query = attribute where attribute is one of 'positive_definite', 'positive_semidefinite', 'negative_definite', or 'negative_semidefinite'

Description

 • The IsDefinite(A, query = 'positive_definite') returns true if $A$ is a real symmetric or a complex Hermitian Matrix and all the eigenvalues are determined to be positive.  This command is equivalent to IsDefinite(A), that is, the default query is for positive definiteness.
 Similarly, for real symmetric or complex Hermitian Matrices, the following calling sequences return the indicated result.
 IsDefinite(A, query = 'positive_semidefinite') returns true if all the eigenvalues are determined to be non-negative.
 IsDefinite(A, query = 'negative_definite') returns true if all the eigenvalues are determined to be negative.
 IsDefinite(A, query = 'negative_semidefinite') returns true if all the eigenvalues are determined to be non-positive.
 If the eigenvalues are determined to be other than described in the cases above, a value of false is returned.
 If any of the conditions on the eigenvalues cannot be resolved, a boolean expression representing the condition which must be satisfied for the query to resolve to "true" is returned.
 • The definition of  positive definite is that, for all column Vectors $x$, ${x}^{*}.A.x>0$, where  ${x}^{*}$ is the Hermitian transpose of $x$.
 The definitions for positive semidefinite, negative definite, and negative semidefinite involve reversal of the inequality sign, or relaxation from a strict inequality.
 • For real non-symmetric (complex non-Hermitian) Matrices, definiteness is established by considering the symmetric (Hermitian) part of $A$, that is,  $\frac{1}{2}\left(A+{A}^{+}\right)$ ($\frac{1}{2}\left(A+{A}^{*}\right)$).

Examples

 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{LinearAlgebra}]\right):$
 > $A≔\mathrm{DiagonalMatrix}\left(\left[-5,0,-1\right]\right)$
 ${A}{≔}\left[\begin{array}{rrr}{-}{5}& {0}& {0}\\ {0}& {0}& {0}\\ {0}& {0}& {-}{1}\end{array}\right]$ (1)
 > $\mathrm{IsDefinite}\left(A\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{IsDefinite}\left(A,'\mathrm{query}'='\mathrm{positive_semidefinite}'\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{IsDefinite}\left(A,'\mathrm{query}'='\mathrm{negative_semidefinite}'\right)$
 ${\mathrm{true}}$ (4)
 > $B≔⟨⟨1,8,3⟩|⟨-4,5,2⟩|⟨6,1,0⟩⟩$
 ${B}{≔}\left[\begin{array}{rrr}{1}& {-}{4}& {6}\\ {8}& {5}& {1}\\ {3}& {2}& {0}\end{array}\right]$ (5)
 > $\mathrm{IsDefinite}\left(B\right)$
 ${\mathrm{false}}$ (6)
 > $C≔⟨⟨1,2+I⟩|⟨2-I,5⟩⟩$
 ${C}{≔}\left[\begin{array}{cc}{1}& {2}{-}{I}\\ {2}{+}{I}& {5}\end{array}\right]$ (7)
 > $\mathrm{IsDefinite}\left(C\right)$
 ${\mathrm{false}}$ (8)
 > $\mathrm{IsDefinite}\left(C,'\mathrm{query}'='\mathrm{positive_semidefinite}'\right)$
 ${\mathrm{true}}$ (9)
 > $\mathrm{IsDefinite}\left(C,'\mathrm{query}'='\mathrm{negative_semidefinite}'\right)$
 ${\mathrm{false}}$ (10)

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam