Using web-based Java pplane applet to graph solutions of systems of differential equations

Similar documents
Lab 5: Nonlinear Systems

1 The relation between a second order linear ode and a system of two rst order linear odes

Section 5.4 (Systems of Linear Differential Equation); 9.5 Eigenvalues and Eigenvectors, cont d

PHY 123 Lab 9 Simple Harmonic Motion

Activity P15: Simple Harmonic Oscillation (Force Sensor, Photogate)

PHYS 1405 Conceptual Physics I Laboratory # 2 Hooke s Law

PHY 123 Lab 10-Simple Harmonic Motion

1 The pendulum equation

Experiment P30: Centripetal Force on a Pendulum (Force Sensor, Photogate)

Physics 326 Lab 6 10/18/04 DAMPED SIMPLE HARMONIC MOTION

LAB #6 The Swaying Building

Physics 2310 Lab #3 Driven Harmonic Oscillator

Lab 1 Uniform Motion - Graphing and Analyzing Motion

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

Harmonic Motion. Mass on a Spring. Physics 231: General Physics I Lab 6 Mar. 11, Goals:

Lab 11. Spring-Mass Oscillations

Math 132 Lab 3: Differential Equations

Driven Harmonic Oscillator

Chemical Kinetics I: The Dry Lab. Up until this point in our study of physical chemistry we have been interested in

Nonlinear Oscillators: Free Response

Spring Thing: Newton s Second Law. Evaluation copy

Work and Energy. This sum can be determined graphically as the area under the plot of force vs. distance. 1

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department. Physics 8.01 Fall Term 2006

Activity P20: Conservation of Mechanical Energy (Force Sensor, Photogate)

The Spring-Mass Oscillator

Linear Second-Order Differential Equations LINEAR SECOND-ORDER DIFFERENTIAL EQUATIONS

Physics Labs with Computers, Vol. 1 P14: Simple Harmonic Motion - Mass on a Spring A

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring

2: SIMPLE HARMONIC MOTION

16.30/31, Fall 2010 Recitation # 13

Force vs time. IMPULSE AND MOMENTUM Pre Lab Exercise: Turn in with your lab report

Simple Harmonic Motion

Math 266: Phase Plane Portrait

PHY 221 Lab 2. Acceleration and Uniform Motion

a. Follow the Start-Up Procedure in the laboratory manual. Note the safety rules.

Motion on a linear air track

Work and Energy. computer masses (200 g and 500 g) If the force is constant and parallel to the object s path, work can be calculated using

One Dimensional Collisions 1 Fall 2018

Updated 2013 (Mathematica Version) M1.1. Lab M1: The Simple Pendulum

Using Microsoft Excel

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department

Lab 12. Spring-Mass Oscillations

LAB 3: WORK AND ENERGY

2: SIMPLE HARMONIC MOTION

Developing a Scientific Theory

LAB 2 - ONE DIMENSIONAL MOTION

MATERIAL MECHANICS, SE2126 COMPUTER LAB 3 VISCOELASTICITY. k a. N t

THE MOVING MAN: DISTANCE, DISPLACEMENT, SPEED & VELOCITY

Assembly and Operation Manual. April 2016

Finite Element Modules for Enhancing Undergraduate Transport Courses: Application to Fuel Cell Fundamentals

Newton's 2 nd Law. . Your end results should only be interms of m

Physics Lab #5: Starry Night Observations of the Sun and Moon

Introduction to Simple Harmonic Motion

Kinetics of Crystal Violet Bleaching

Chapter 1, Section 1.2, Example 9 (page 13) and Exercise 29 (page 15). Use the Uniqueness Tool. Select the option ẋ = x

Dynamics and Time Integration. Computer Graphics CMU /15-662, Fall 2016

Math 310 Introduction to Ordinary Differential Equations Final Examination August 9, Instructor: John Stockie

1 Overview of Simulink. 2 State-space equations

Class President: A Network Approach to Popularity. Due July 18, 2014

Physics 8 Friday, September 22, 2017

AMS 132: Discussion Section 2

ELEC 1908 The Electric Potential (V) March 28, 2013

Figure 2.1 The Inclined Plane

Lab 14 - Simple Harmonic Motion and Oscillations on an Incline

Old Math 330 Exams. David M. McClendon. Department of Mathematics Ferris State University

a. Determine the potential energy of the spring as a function of displacement.

Simple Harmonic Motion

Unit 7: Oscillations

Motion II. Goals and Introduction

Work and Energy. W F s)

ASEN 6008: Interplanetary Mission Design Lab Spring, 2015

University Physics 226N/231N Old Dominion University. Chapter 14: Oscillatory Motion

Hooke s Law. Equipment. Introduction and Theory

Solving Differential Equations on 2-D Geometries with Matlab

Evaluation copy. Ground Temperature Measurements. computer OBJECTIVES MATERIALS PRE-LAB QUESTIONS

1. Title: What can earthquake and volcano locations tell us? 2. Contributing Teacher: Richard Meyer, Pine River-Backus Schools, November14 th, 2009

Math 304 Answers to Selected Problems

Lecture 10: Powers of Matrices, Difference Equations

Inverted Pendulum System

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

first name (print) last name (print) brock id (ab17cd) (lab date)

Lab #2 - Two Degrees-of-Freedom Oscillator

Modeling Data with Functions

Your Second Physics Simulation: A Mass on a Spring

Investigation #2 TEMPERATURE VS. HEAT. Part I

MITOCW MITRES18_005S10_DiffEqnsMotion_300k_512kb-mp4

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department. Physics 8.01L IAP Experiment 3: Momentum and Collisions

Collisions Impulse and Momentum

Math 312 Lecture Notes Linearization

Connect the Vernier spectrometer to your lap top computer and power the spectrometer if necessary. Start LoggerPro on your computer.

Lab Exploration #4: Solar Radiation & Temperature Part II: A More Complex Computer Model

Students will explore Stellarium, an open-source planetarium and astronomical visualization software.

Physics Spring 2006 Experiment 4. Centripetal Force. For a mass M in uniform circular motion with tangential speed v at radius R, the required

tutorial ii: One-parameter bifurcation analysis of equilibria with matcont

Experiment: Oscillations of a Mass on a Spring

AP Physics C - Mechanics

PHY 221 Lab 7 Work and Energy

Energy Problem Solving Techniques.

Lecture 1 Notes: 06 / 27. The first part of this class will primarily cover oscillating systems (harmonic oscillators and waves).

Transcription:

Using web-based Java pplane applet to graph solutions of systems of differential equations Our class project for MA 341 involves using computer tools to analyse solutions of differential equations. This is an introduction to using a java version of the Matlab pplane routine which is far more user friendly than coding in Matlab. The creator of the Matlab programs pplane and dfield, Dr. John Polking, developed a java version that adds a user interface. This java version can be found at http://math.rice.edu/~dfield/dfpp.html or by following the first hit on Google for pplane. It s worth noting that this requires a browser with a Java plug-in, and most of the computer labs on campus do not have this plug-in installed and students don t have admin rights to install it, so you ll have to do this on your own computer. The web page of the applet. If you don t see the two buttons marked DFIELD and PPLANE, you don t have Java working. Click on PPLANE. This will bring up four windows: An introduction window, the messages window, the phase plane graph, and the equation window. Read the introduction window text, and click OK to start using the program. The Equation Window has an example system of first order equations to get you started. At the top you can change the equation. If you want to include parameters, you can define them on the lower right. For example, if you wanted to investigate the effect of different coefficients on the same system of equations, you could enter the equations x = ay and y =bx at the top, then in the parameter expressions

section, enter values for a, and b. (Note that this is Example 5 on page pp4 of the notes). If a field has invalid syntax it will turn red. On the lower right of this window, you can set the range of the graph. Once you are happy with your settings, click on Graph Phase Plane to update the graph window. The equation window eqn entered is E5, pp4. The Phase Plane Window displays the graph of the phase plane for the equations and range entered in the Equation window. If you click on the graph, it will plot the trajectory ( orbit ) through that point. The messages window will display the point you selected and where the forward and backward solutions leave the window range. From the Solution menu on this window we can do some interesting things. Choose Find an equilibrium point and click on the phase plane graph. The program will solve for the closest equilibrium point and mark it in red. The messages window will display the eigenvalues and eigenvectors and classify the equilibrium point (but not its stability). Note that it chooses eigenvector values such that the magnitude of the vector is 1.

Next choose plot stable and unstable orbits, and click on the graph window. The program will solve for trajectories that pass through the nearest equilibrium point, light green for stable, light blue for unstable. (this only works for saddle points I think). Phase plane plot of E5, pp4

Message window showing result of equilibrium point solution. Experiment with the options and solutions to get different results in the graph. It s possible to see a 3-d plot of a particular orbit (in x,y,t) and also to plot the lines where x = 0 and y = 0. I found that printing to PDF gave good output. With a pdf printer installed on your computer, choose print in the phase plane window and select the pdf printer. You ll get a pretty nice letter-sized print of the plot. An application example: Consider a mass-spring-damper system with a hooke s law spring of stiffness k and a linear damper with damping constant c. From hooke s law, the force exerted by the spring is equal to kx, and the force exerted by a linear damper is equal to c, where x is the displacement from the equilibrium position. By newton s second law,, which we can write as: Where x = / and a = x = / In standard form: 0 (1) We saw in class how an n th order ODE can be represented as n 1 st order ODEs. This 2 nd order system can be reformed as two first order equations, which we can use to graph the phase plane of the system s response. Let x = v. It follows that x = dv/dt. Inserting into (1): 0

Therefore our system of equations in v, x is: Where c, m, k are positive constants. The phase plane graph will have axes of x and y, which correspond to the position and velocity of the mass respectively. If we plot a trajectory by clicking on a point, this is equivalent to specifying an initial position and velocity. Equation set up for this example.

Let s look at two cases of the response here: 1) C = 0: No damping. We d expect the system to act like an ideal spring, and the solutions should look like closed orbits of the origin. By picking a point in (x,v) on the graph we are specifying the initial displacement and velocity of the system. For c=0, k=5. M = 5: Case 1: No Damping

2) With a small damping constant, we expect the system to lose a little velocity every time it goes back and forth. Each cycle should have less and less energy until it stops. For c=1, k=5, m=5: Case 2: Underdamped response Relation to the project: Unfortunately, this relatively painless method only works for the phase plane plotting part of each problem. We ll still need to use something else to plot our calculated solutions and energy analysis plots. That is, #1d, #3c, #4c will need to be plotted in some other software.