In this lab you will explore basic computer tools helpful
in understanding stability for scalar ODEs.
Turning in your work is not mandatory but can be used for
extra credit. If you choose to do so, make sure all the steps are
labelled properly and described well. A bunch of graphs stapled
together does not constitute a solution worthy of extra credit.
Instructions follow below. Please note approximate timing of the steps and demonstrations.
Set-up phase: (14:100-14:10)
- Log in to the computer using your ONID account. The computers can
be started in Windows or in MAC mode.
I will be presenting in Windows so if you prefer to use MAC, try to follow
what I am doing but I won't be able to assist you.
- Locate the basic tools:
- Locate a browser (Firefox or Chrome) and locate class website. Check if
DFIELD by John Polking
is working for you.
These instructions are available at
http://www.math.oregonstate.edu/~mpesz/teaching/480_W14/lab1.html
- Find MATLAB: as icon on desktop or in Start->Programs (Search for Matlab)
Exploring with DFIELD: Plot slope/direction fields and explore bifurcations
(14:10-14:30)
- Get familiar with DFIELD using the following steps
- Click on the icon (and on the OK, Run etc. buttons that pop up)
- Get familiar with the different windows that appear
- In the window "DFIELD Direction Field Window" click at some point to see a trajectory (orbit).
- In the Window "DFIELD Equation Window" change parameters a,b and those of 'The Display Window'
- Use DFIELD to explore the equilibria for
x'=ax+t, and x'=ax-t.
Describe qualitatively what you see for different values of a.
- DEMONSTRATION. Explore equilibria and qualitative dependence on parameters
for the ODE x'= x2 + b (type it as x^2+b)
- Find the equilibrium depending on b and classify it. Plot the phase line. (You can use DFIELD to guide you)
- Change b and do it again. And again ...
- Record your explorations on the (b,x) plot. Describe the nature of bifurcation (it is called a saddle node).
- Use DFIELD to explore the solutions to
x'=ax^2+b
In particular, consider the terminal velocity problem with a quadratic
drag function, in which x denotes velocity, a=k/m, with k=0.2 denoting the
drag coefficient, and b=-g=-10kg m/sec^2 denoting the gravity acceleration. If mass
m=100kg, find the terminal velocity by hand (it should have the direction of gravity)
and confirm using DFIELD. [You will have to search for the appropriate window].
- Now repeat 3). for the functions listed below and/or those from your homework
- x' = b - x^2 (saddle node bifurcation)
- x' = bx - x^2 (transcritical bifurcation)
- x' = bx - x^3, for b>0 (pitchfork bifurcation, supercritical)
- x' = bx + x^3, (pitchfork bifurcation, subcritical)
Exploring with MATLAB: Solve ODEs symbolically and plot trajectories.(14:30-14:50)
- Open MATLAB window and learn to navigate.
- Locate the Command Window, Help Window etc.
- In Command Window, type doc dsolve and read instructions.
Type the examples from the help window in Command Window
and learn how to solve ODEs symbolically with dsolve.
- Learn how to plot. Type doc plot .
- DEMONSTRATION
Use dsolve to get a solution for the terminal velocity problem.
Pick some initial condition, for example, x(0)=0 for the terminal velocity problem.
Use dsolve to get the closed form solution, and plot the trajectory using plot
- Compare with trajectories obtained with DFIELD.
- Repeat for the problems in 5.
To get my attention, please raise your hand.
|