Docsity

Steady State Particular Solution: Finding the Vector x using Eigenvalues and Eigenvectors, Assignments of Differential Equations

Partial preview of the text

Download Steady State Particular Solution: Finding the Vector x using Eigenvalues and Eigenvectors and more Assignments Differential Equations in PDF only on Docsity!

Steady State Particular Solution

EDU>> A = [-2 1 0;1 -2 1; 0 1 -2]

A =

EDU>> f = (1/16)*[10 10 10]'

f =

EDU>> xp = -A\f

xp =

EDU>> [u d]= eig(A)

u =

0.5000 -0.7071 -0. -0.7071 0.0000 -0. 0.5000 0.7071 -0.

d =

-3.4142 0 0 0 -2.0000 0 0 0 -0.

EDU>> syms t EDU>> X = [u(:,1)exp(d(1,1)t) u(:,2)exp(d(2,2)t) u(:,3)exp(d(3,3)t)]

EDU>> x0=[0 0 0]'

x0 =

0 0 0

EDU>> sol = X*c + xp

sol =

[ - 7726955370599433/288230376151711744exp(- 3844062731816691/1125899906842624t)- 4101390972994225/4503599627370496exp(- 2638147582215221/4503599627370496t)+15/16] [ 7726955370599433/288230376151711744exp(- 3844062731816691/1125899906842624t)2^(1/2)- 4101390972994225/4503599627370496exp(- 2638147582215221/4503599627370496t)2^(1/2)+5/4] [ - 7726955370599433/288230376151711744exp(- 3844062731816691/1125899906842624t)- 4101390972994225/4503599627370496exp(- 2638147582215221/4503599627370496t)+15/16]

EDU>> ezplot(sol(1), [0 10]) EDU>> hold on EDU>> ezplot(sol(2), [0 10]) EDU>> ezplot(sol(3), [0 10])