

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


This is a more complicated problem with multiple eigenvalues and chains. with(LinearAlgebra): A:=Matrix(4,4,[35,-12,4,30, 22,-8,3,19, -10,3,0,-9, -27,9,-3, -23]); A :=
Eigenvectors(A); 1 1 1 1
Eigenvalue lambda=1 has algebraic multiplicity 4 and we only have two eigenvectors, so this is defective matrix. We now look at the generalized eigenspace for lambda=1: Id:=IdentityMatrix(4): NullSpace((A-1Id)^4);* 0 1 0 0
The two eigenvectors are in this subspace. Let us pick one of these generalized eigenvectors to do a chain u1:=Vector([0,1,0,0]); u1 :=
u2:= (A-Id). u1; u2 :=
u3:= (A-Id). u2; u3 :=
u4:=(A-Id). u3; u4 :=
This means u3 is an eigenvector. So we have a chain of length 3. (If the chain had stopped with two vectors only, we would have tried another basis vector to get the other chain). We have several linearly independent solutions One that comes from one of teh eigenvectors x4:=t-> exp(t)Vector([0,1/3,1,0]);* x4 := t /e t Vector 0 ,
And the ones that come from the chain. For convenience I defined some vi's which are the ui's in reverse order (look at algorithm p341) v1:=u3: v2:=u2: v3:=u1: x1:=t-> exp(t)v1; x2:=t-> exp(t)(tv1 + v2); x3:=t-> exp(t)(t^2v1/2 + tv2 + v3);** x1 := t /e t v x2 := t /e t t v1 C v x3 := t /e t^1 2 t 2 v1 C t v2 C v Let us check that putting these together gives a fundamental solution matrix: Phi := t -> Matrix(4,4,[x1(t),x2(t),x3(t),x4(t)]); F := t / Matrix 4 , 4 , x1 t , x2 t , x3 t , x4 t Phi(t); # ugly expression K 18 e t e t K 18 t K 12 e t K 9 t 2 K 12 t 0 K 3 e t e t K 3 t K 9 e t K
t 2 K 9 t C 1
e t 9 e t e t 9 t C 3 e t^9 2 t 2 C 3 t e t 18 e t e t 18 t C 9 e t 9 t 2 C 9 t 0 The following checks that our solution is correct (we should be getting all zeros and the fundamental solution should have linearly indep vectors!) simplify(map(diff,Phi(t),t) - A. Phi(t));