LinearAlgebra - Maple Help

Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Eigenvalues : LinearAlgebra/MinimalPolynomial

LinearAlgebra

 MinimalPolynomial
 construct the minimal polynomial of a Matrix

 Calling Sequence MinimalPolynomial(A, lambda)

Parameters

 A - Matrix lambda - name; used as a variable

Description

 • The MinimalPolynomial(A, lambda) function returns a polynomial in lambda that is the minimal polynomial of Matrix A.
 The minimal polynomial of A is the polynomial of lowest degree that divides every polynomial which has A as a zero.
 The minimal polynomial of A always divides the characteristic polynomial of A.
 • This function is part of the LinearAlgebra package, and so it can be used in the form MinimalPolynomial(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[MinimalPolynomial](..).

Examples

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$
 > $A≔⟨⟨3,0,1⟩|⟨-1,2,-1⟩|⟨0,0,2⟩⟩$
 ${A}{:=}\left[\begin{array}{rrr}{3}& {-}{1}& {0}\\ {0}& {2}& {0}\\ {1}& {-}{1}& {2}\end{array}\right]$ (1)
 > $\mathrm{mp}≔\mathrm{MinimalPolynomial}\left(A,x\right)$
 ${\mathrm{mp}}{:=}{{x}}^{{2}}{-}{5}{}{x}{+}{6}$ (2)
 > $\mathrm{divide}\left(\mathrm{CharacteristicPolynomial}\left(A,x\right),\mathrm{mp}\right)$
 ${\mathrm{true}}$ (3)
 > $P≔\mathrm{unapply}\left(\mathrm{mp},x\right)$
 ${P}{:=}{x}{→}{{x}}^{{2}}{-}{5}{}{x}{+}{6}$ (4)
 > $P\left(A\right)$
 $\left[\begin{array}{rrr}{0}& {0}& {0}\\ {0}& {0}& {0}\\ {0}& {0}& {0}\end{array}\right]$ (5)