Skip to content Skip to navigation

Connexions

You are here: Home » Content » The Matrix Exponential via Eigenvalues and Eigenvectors

Navigation

Recently Viewed

This feature requires Javascript to be enabled.

The Matrix Exponential via Eigenvalues and Eigenvectors

Module by: Steven J. Cox. E-mail the author

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: This module introduces how to compute the matrix exponential using eigenvalues and eigenvectors.

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

In this module we exploit the fact that the matrix exponential of a diagonal matrix is the diagonal matrix of element exponentials. In order to exploit it we need to recall that all matrices are almost diagonalizable. Let us begin with the clean case: if AA is nn-by-nn and has nn distinct eigenvalues, λjλj, and therefore nn linear eigenvectors, sjsj, then we note that j,j1n:Asj=λjsj j j 1 n A sj λj sj may be written

A=SΛS-1 A S Λ S (1)
where S=s1s2sn S s1 s2 sn is the full matrix of eigenvectors and Λ=diagλ1λ2λn Λ diag λ1 λ2 λn is the diagonal matrix of eigenvalues. One cool reason for writing AA as in Equation 1 is that A2=SΛS-1SΛS-1=SΛ2S-1 A 2 S Λ S S Λ S S Λ 2 S and, more generally Ak=SΛkS-1 A k S Λ k S If we now plug this into the definition in The Matrix Exponential as a Sum of Powers, we find At=SΛtS-1 A t S Λ t S where Λt Λ t is simply diagλ1tλ2tλnt diag λ1 t λ2 t λn t Let us exercise this on our standard suite of examples.

Example 1

If A=1002 A 1 0 0 2 then S=IΛ=A S I Λ A and so At=Λt A t Λ t . This was too easy!

Example 2

As a second example let us suppose A=01-10 A 0 1 -1 0 and compute, in matlab,


	
	>> [S, Lam] = eig(A)

	   S = 0.7071             0.7071
	            0 + 0.7071i        0 - 0.7071i


	   Lam = 0 + 1.0000i     0
	         0               0 - 1.0000i


	>> Si = inv(S)

	   Si = 0.7071     0 - 0.7071i
	        0.7071     0 + 0.7071i


	>> simple(S*diag(exp(diag(Lam)*t))*Si)

	   ans = [ cos(t),   sin(t)]
	         [-sin(t),   cos(t)]
	
      

Example 3

If A=0100 A 0 1 0 0 then matlab delivers


	
	>> [S, Lam] = eig(A)

	   S = 1.0000   -1.0000
	       0         0.0000

	   Lam = 0    0
	         0    0
	
      

So zero is a double eigenvalue with but one eigenvector. Hence SS is not invertible and we can not invoke (Equation 1). The generalization of (Equation 1) is often called the Jordan Canonical Form or the Spectral Representation. The latter reads A=j=1hλjPj+Dj A j 1 h λj Pj Dj where the λjλj are the distinct eigenvalues of AA while, in terms of the resolvent Rz=zIA-1 R z z I A , Pj=12πCjRzdz Pj 1 2 z Cj R z is the associated eigen-projection and Dj=12πCjRzzλjdz Dj 1 2 z Cj R z z λj is the associated eigen-nilpotent. In each case, CjCj is a small circle enclosing only λjλj.

Conversely we express the resolvent Rz=j=1h1zλjPj+k=1mj11zλjk+1 D j k R z j 1 h 1 z λj Pj k 1 mj 1 1 z λj k 1 D j k where mj=dimPj mj dim Pj with this preparation we recall Cauchy's integral formula for a smooth function ff fa=12πCafzzadz f a 1 2 z C a f z z a where Ca C a is a curve enclosing the point aa. The natural matrix analog is fA=-12πCrfzRzdz f A -1 2 z C r f z R z where Cr C r encloses ALL of the eigenvalues of AA. For fz=zt f z z t we find

At=j=1hλjtPj+k=1mj1tkk! D j k A t j 1 h λj t Pj k 1 mj 1 t k k D j k (2)
with regard to our example we find, h=1 h 1 , λ 1 =0 λ 1 0 , P 1 =I P 1 I , m 1 =2 m 1 2 , D 1 =A D 1 A so At=I+tA A t I t A Let us consider a slightly bigger example, if A=110010002 A 1 1 0 0 1 0 0 0 2 then


	
	>> R = inv(s*eye(3)-A)

	   R = [ 1/(s-1),   1/(s-1)^2,         0]
	       [       0,     1/(s-1),         0]
	       [       0,           0,   1/(s-2)]
	
      

and so λ 1 =1 λ 1 1 and λ 2 =2 λ 2 2 while P1=100010000 P1 1 0 0 0 1 0 0 0 0 and so m 1 =2 m 1 2 D1=010000000 D1 0 1 0 0 0 0 0 0 0 and P2=000000001 P2 0 0 0 0 0 0 0 0 1 and m 2 =1 m 2 1 and D 2 =0 D 2 0 . Hence At=tP1+tD1+2tP2 A t t P1 t D1 2 t P2 ttt00t0002t t t t 0 0 t 0 0 0 2 t

Content actions

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks