lab7 final

lab7 final - >> y=1 cos(t The solutions using the...

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

>> t=(-4:.133:4); T is defined so that there are 60 subdivisions between -4 and 4 >> y=t.^3-9*t The first solution equation is entered >> plot(t,y) This solution is plotted >> hold on >> y=t.^3-(49/4)*t The second solution is entered >> plot(t,y) This solution is plotted on the same graph >> y=t.^3-16*t The third solution is entered >> plot(t,y) This solution is plotted on the same graph A direction field is also graphed. The initial values are then put in to the field, resulting in the graphs of three curves. These curves are the same as the original plotted three, confirming that the graphs are correct. >> t=(0:.1:10); T is defined with 100 subdivisions between 1 and 10

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> y=1+cos(t) The solutions using the initial condition (0,2) is entered >> plot(t,y) The solution is then plotted 1 2 3 4 5 6 7 8 9 10 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 We then plot the differential equation’s direction field for the initial conditions: (0,-1) (0,0) (0,1) (0,2) Next we graph the autonomous differential equation using the direction field We graph the curves of the solutions to the equation that have the initial conditions: (0,0) (0,-4) (0,8) (4,2) (-2,2) The equilibrium solutions are easily discernible by the lines at y = 6 and y = -2...
View Full Document

This document was uploaded on 07/10/2011.

Page1 / 2

lab7 final - >> y=1 cos(t The solutions using the...

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

View Full Document
Ask a homework question - tutors are online