math245lab07

math245lab07 - Math245 Computer Lab set #7, Fall 2008 Roots...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Math245 Computer Lab set #7, Fall 2008 Roots of characteristic equation In Matlab, there is a very useful command roots to find all the roots of the polynomial. By using roots , you can obtain the roots of characteristic equation of linear higher order ODE, and also you can determine whether the solution of ODE is stable or unstable. Example 1 Consider the 4rd-order linear, homogeneous ODE y (4) + 3 5 y 000 + 138 100 y 00 + 231 500 y 0 + 2929 10000 y = 0 . (1) Noting y e rt , the characteristic equation of this ODE is r 4 + 3 5 r 3 + 138 100 r 2 + 231 500 r + 2929 10000 = 0 . We can find the roots of this characteristic (polynomial) equation very easily as shown below. EDU>> roots([1 3/5 138/100 231/500 2929/10000]) ans = -0.1000 + 1.0000i -0.1000 - 1.0000i -0.2000 + 0.5000i -0.2000 - 0.5000i Roots of the characteristic equation are r 1 , 2 = - 0 . 1 ± i , and r 3 , 4 = - 0 . 2 ± 0 . 5 i . The general solution is written y = e - 0 . 1 t { A cos t + B sin t } + e - 0 . 2 t { C cos0 . 5 t + D sin0 . 5
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/08/2009 for the course MATH 245 at USC.

Page1 / 2

math245lab07 - Math245 Computer Lab set #7, Fall 2008 Roots...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online