User Tools

Site Tools


gibson:teaching:fall-2012:math445:lab11

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gibson:teaching:fall-2012:math445:lab11 [2012/12/03 14:05]
gibson [Problem 2]
gibson:teaching:fall-2012:math445:lab11 [2012/12/04 06:03] (current)
gibson [Problem 3: projectile motion]
Line 2: Line 2:
  
  
-===== Problem 1 =====+===== Problem 1: dy/dt = sin(y+t) ​=====
  
 Show a quiver plot in the //(t,y)// plane of the differential equation //dy/dt = sin(y+t)// over the region //0 ≤ t ≤ 2pi// and //-pi ≤ y ≤ pi//. Show a quiver plot in the //(t,y)// plane of the differential equation //dy/dt = sin(y+t)// over the region //0 ≤ t ≤ 2pi// and //-pi ≤ y ≤ pi//.
 Use Matlab'​s //ode45// function to compute solution curves //y(t)// for each of the following initial conditions, and superimposed the solution curves on the quiver plot in the indicated colors //y(0) = -1// in red, //y(0) = 0// in blue , //y(0) = 1// in black. Be sure to set the axes tight around the quiver plot, set the unit length of the axes to be equal, label the axes, and title the graph. Use Matlab'​s //ode45// function to compute solution curves //y(t)// for each of the following initial conditions, and superimposed the solution curves on the quiver plot in the indicated colors //y(0) = -1// in red, //y(0) = 0// in blue , //y(0) = 1// in black. Be sure to set the axes tight around the quiver plot, set the unit length of the axes to be equal, label the axes, and title the graph.
  
-===== Problem 2 =====+===== Problem 2: van der Pol oscillator ​=====
  
-The van der Pol oscillator is defined by the second-order differential equation ​+(a)  ​The van der Pol oscillator is defined by the second-order differential equation ​
  
 <​latex>​ <​latex>​
Line 31: Line 31:
 Hint: put the call to //ode45// inside a //for// loop that sets the value of $y_1$ to the five different initial values. Hint: put the call to //ode45// inside a //for// loop that sets the value of $y_1$ to the five different initial values.
  
-===== Problem 3 =====+(b) Put your work for part (a) in a script file, and run the script for a range of values of $\mu$ between -1 and 1. How does the character of the solutions of the equation change as $\mu$ passes through 0? Turn in plots for a negative, zero, and a positive value of $\mu$, whichever values you think best illustrate the change as $\mu$ passes through zero.
  
-Put your work for Problem 2 in a script file, and run the script for a range of values ​of $\mu$ between -1 and 1. How does the character of the solutions of the equation change as $\mupasses through 0? Turn in plots for a negativezeroand a positive value of $\mu$, whichever values you think best illustrate ​the change as $\mu$ passes through zero.+Hint: To avoid the need to change the value of $\mu$ in both the script ​and the function file that defines ​$dy/dt = f(t,y)$, define $dy/dt = f(t,y)as an anonymous function within your script fileso that it inherits ​the $\mu$ of  
 +the script file
  
 +
 + 
  
gibson/teaching/fall-2012/math445/lab11.1354572336.txt.gz · Last modified: 2012/12/03 14:05 by gibson