Download presentation

Presentation is loading. Please wait.

Published byKendra Reid Modified over 3 years ago

1
Solving Systems of ODE’s Dr. Mohammed Alsayed

2
Again we need the dsolve function. Example: For the system y 1 ' = y 2, y 2 ' = -y 1 + sin(5 t) with the initial conditions y 1 (0) = 1 y 2 (0) = 0

3
Solution type sol = dsolve('Dy1=y2','Dy2=-y1+sin(5*t)','y1(0)=1','y2(0)=0','t') sol = y1: [1x1 sym] y2: [1x1 sym]

4
sol.y1 Gives -2/3*sin(t)*cos(t)^4+1/2*sin(t)*cos(t)^2+1/6*sin(t)+cos(t). This can be simplified by typing s1 = simple(sol.y1) which gives -1/24*sin(5*t)+5/24*sin(t)+cos(t). For the second component y2 of the solution we proceed in the same way: Typing s2 = simple(sol.y2) gives -sin(t)-5/24*cos(5*t)+5/24*cos(t). To plot the solution curves use ezplot: ezplot(sol.y1, [0,20]) hold on ezplot(sol.y2, [0,20]) hold off

Similar presentations

OK

PARAMETRIC EQUATIONS. An equation which is given as a relationship between x and y only is a Cartesian equation. Sometimes it is more convenient to express.

PARAMETRIC EQUATIONS. An equation which is given as a relationship between x and y only is a Cartesian equation. Sometimes it is more convenient to express.

© 2018 SlidePlayer.com Inc.

All rights reserved.

By using this website, you agree with our use of **cookies** to functioning of the site. More info in our Privacy Policy and Google Privacy & Terms.

Ads by Google

Ppt on media revolution Strategy to increase market share ppt online Ppt on limits and continuity quiz Ppt on area of parallelogram and triangles for class 9 Ppt on quality education data Genetics for kids ppt on batteries Ppt on the road not taken analysis Download ppt on wastewater management Ppt on save our natural resources Ppt on tribals of india