MATLAB_Putzer_Help Help

MATLAB_Putzer_Help is a graphical user interface (GUI) that aids in computing the matrix exponential via Putzer’s Algorithm. According to Putzer’s Algorithm, given a matrix A and its eigenvalues λ1,λ2⋅⋅⋅,λN (including multiplicity) then

      N∑-1
eAt =     rk+1(t)Pk

       k=0
where
{
  P0   = I

  Pj   = (A -  λ1I)(A - λ2I )⋅⋅⋅(A - λjI ),j =  1,2,...N -  1

where ri(t) is the unique solution of the IVP

{
 r′(t)  = λ1r1 (t),r1(0) = 1,
  1′
 ri(t)  = λiri(t) + ri-1(t),ri(0) = 0,i = 2,...,N

This GUI will find the eigenvalues of A and the matrices P0,P1,…PN-1. To use the GUI, click the ‘Input Matrix’ Button and pop-up boxes will guide you through the input process of the matrix A


PIC

Figure 1: Pop-up box for inputs of A


Once the inputs have been made the GUI will output the matrix A and its eigenvalues in the appropriate panels.


PIC

Figure 2: Output in Panels


The matrices P0,P1,…PN-1 can be displayed in the command window by typing the variable name in the command window. For example, in the command window type

P_1

then hit return. MATLAB will then display P1. Recall the algorithm assumes the eigenvalues have been labeled and that order is preserved while solving the differential equations. Please refer to the eigenvalue panel or type

lambda
in the command line to see the order of the eigenvalues.


PIC

Figure 3: Output in Command Window


All that remains to compute the matrix exponential is to compute, by hand, the functions ri(t) according to Putzer’s algorithm. Note: if A is diagonalizable then it is much simpler, and faster, to compute the matrix exponential via

 At      Dt
e  =  Pe   P
where
A =  P- 1AP
Use the MATLAB_Diagonalizable GUI to aid in this process. To reset the GUI, click the ‘Reset’ button.