User Tools

Site Tools


gibson:teaching:fall-2014:math445:lab7

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-2014:math445:lab7 [2014/12/01 13:09]
gibson
gibson:teaching:fall-2014:math445:lab7 [2014/12/02 09:19] (current)
gibson
Line 1: Line 1:
-====== Math 445 lab 7: differential ​equations ​======+====== Math 445 lab 7: the pendulum (numerical integration of differential ​eqns) ======
  
 **Problem 1:** In class we developed a linear system of differential equations of the form $dx/dt = f(x) = Ax$ for the plane pendulum, where **Problem 1:** In class we developed a linear system of differential equations of the form $dx/dt = f(x) = Ax$ for the plane pendulum, where
Line 28: Line 28:
 for some value of $c$.  Determine what the value of $c$ is from your graph in %%(c)%%. for some value of $c$.  Determine what the value of $c$ is from your graph in %%(c)%%.
  
-**Problem 2:** +---- 
 + 
 +**Problem 2:** For the linear pendulum, we produced in lecture //time series// plots of position $\theta$ and (angular) velocity $d\theta/​dt$ as a function of time, and a //phase portrait// of $\theta$ versus $d\theta/​dt$. 
 + 
 +**With no damping** from air resistance, the equations of motion of the linear pendulum are  
 + 
 +\begin{eqnarray*} 
 +\frac{d}{dt} \left( \begin{array}{c} x_1 \\ x_2 \end{array} \right) = \left[ \begin{array}{cc} 0 & 1 \\ -g/l & 0 \end{array} \right] \left( \begin{array}{c} x_1 \\ x_2 \end{array} \right) 
 +\end{eqnarray*} 
 + 
 +where $(x_1, x_2) = (\theta, d\theta/​dt$). The time series and phase portrait (for $g=9.8$ and $l=1$) look like  
 + 
 +{{:​gibson:​teaching:​fall-2014:​math445:​timeseries_linear_nodamp.png?​nolink&​400}} ​ {{:​gibson:​teaching:​fall-2014:​math445:​phaseportrait_linear_nodamp.png?​nolink&​400}} 
 + 
 + 
 +Note that the temporal oscillations look like perfect sines and cosines, and the phase portrait shows that trajectories circle around the origin indefinitely.  
 + 
 +However, **if we include the damping of air resistance**,​ the equations of motion of the linear pendulum are  
 + 
 +\begin{eqnarray*} 
 +\frac{d}{dt} \left( \begin{array}{c} x_1 \\ x_2 \end{array} \right) = \left[ \begin{array}{cc} 0 & 1 \\ -g/l & -\alpha/m \end{array} \right] \left( \begin{array}{c} x_1 \\ x_2 \end{array} \right) 
 +\end{eqnarray*} 
 + 
 +and the time series and phase portrait for (for $g=9.8$, $l=1$, and $\alpha=1$) look like 
 + 
 +{{:​gibson:​teaching:​fall-2014:​math445:​timeseries_linear_damp.png?​nolink&​400}} ​ {{:​gibson:​teaching:​fall-2014:​math445:​phaseportrait_linear_damp.png?​nolink&​400}} 
 + 
 +Now the temporal oscillations get smaller and smaller as time goes on. The phase portrait shows that all initial conditions eventually spiral into the origin, i.e. the pendulum hangs straight down ($\theta = 0$) and doesn'​t move $d\theta/dt = 0$). 
 + 
 +For this lab problem, you are to recreate the previous four plots for the nonlinear pendulum, whose equations of motion are 
 + 
 +\begin{eqnarray*} 
 +\frac{d}{dt} \left( \begin{array}{c} x_1 \\ x_2 \end{array} \right) = \left( \begin{array}{c} x_2 \\ -g/l \, \sin x_1 - \alpha/m \, x_2 \end{array} \right) 
 +\end{eqnarray*} 
 + 
 +Use parameter values $g=9.8, l=1$ and $\alpha = 0$ or $1$ for no damping or damping, respectively. For the time series plots, initiate the pendulum with $x_1 = \theta=0$ and $x_2 = d\theta/dt = 2$. For the phase portraits, show the range $8 \leq \theta \leq 8$ on the horizontal axis and $-10 \leq d\theta/dt \leq 10$ on the vertical. On top of the quiver plots, show trajectories with initial conditions $\theta=0$ and a variety of $d\theta/​dt$ ranging from -10 to 10 in steps of 1.  
 + 
 +Turn in your code, your plots, and answer the following questions 
 + 
 +**(a)** Describe the differences that you see in the phase portraits of the nonlinear pendulum compared to the linear pendulum. 
 + 
 +**(b)** For the undamped nonlinear pendulum, you should see trajectories with three distinctly different types of behavior. Give a physical interpretation of each of those three types of trajectories in terms of the motion of the pendulum. 
 + 
 +**%%(c)%%** You should also see three distinct type of trajectories for damped nonlinear pendulum. Give a physical interpretation of each of those types of trajectories. 
 + 
 +**(d)** The damped nonlinear pendulum has quite a few more distinct groups of trajectories than the ones shown in shown in your phase portrait. Based on your physical interpretation,​ what would those be? Revise your nonlinear damped phase portrait to show some of these other trajectories. ​
gibson/teaching/fall-2014/math445/lab7.1417468172.txt.gz · Last modified: 2014/12/01 13:09 (external edit)