MATH2071: LAB 1(b): Using Matlab ODE solvers. This version of the first lab is intended only for students who have already taken Math 2070.

Size: px
Start display at page:

Download "MATH2071: LAB 1(b): Using Matlab ODE solvers. This version of the first lab is intended only for students who have already taken Math 2070."

Transcription

1 MATH2071: LAB 1(b): Using Matlab ODE solvers 1 Introduction Introduction Exercise 1 Matlab ODE solvers Exercise 2 ODE systems Exercise 3 Goodwin s economic model Exercise 4 Higher Order ODE s Exercise 5 Phase Plane Plots Exercise 6 Stiff systems Exercise 7 Roundoff errors Exercise 8 This version of the first lab is intended only for students who have already taken Math There are two versions of the first lab. This version introduces the Matlab ODE solvers and is intended for students who took Math If you have not already taken Math 2070, please see Lab 1(a). That version of the first lab introduces the Matlab environment and programming language, and presents the general format of the work you need to hand in. This lab is concerned with solution of ordinary differential equations (ODEs) using a Matlab function for the solution. You will see it applied first to a simple scalar equation, then to a system of equations, and then to a higher order equation converted into a system. In later labs, you will be writing your own ODE solver routines so you can understand the underlying theory. A very simple ordinary differential equation (ODE) is the explicit scalar first-order initial value problem: y = f(x, y) y(x 0 ) = y 0. Here y is shorthand for the derivative dy/dx. The equation is explicit because y can be written explicitly as a function of x and y. It is scalar because we assume that y(x) is a scalar quantity. It is first-order because the highest derivative that appears is the first derivative y. It is an initial value problem (IVP) because we are given the value of the solution at some time or location x 0 and are asked to produce a formula for the solution at later times. An analytic solution of an ODE is a formula y(x), that we can evaluate, differentiate, or analyze in any way we want. However, analytic solutions can only be determined for a limited class of ODE s. A numerical solution of an ODE is simply a table of abscissæ and approximate values (x k, y k ) that approximate the value of an analytic solution. The values x k are often called steps, especially for initial value problems. In general, a numerical solution is always wrong; the important question is, how wrong is it? One way to pose this question is to determine how close the computed values (x k, y k ) are to the analytic solution, which we might write as (x k, y(x k )). This lab will take three sessions. If you print this lab, you may prefer to use the pdf version. 2 Matlab ODE solvers Matlab has a number of built-in ODE solvers. These include: 1

2 ode23 ode113 ode15s ode23s ode23t ode23tb ode45 Matlab ODE solvers non-stiff, low order non-stiff, variable order stiff, variable order, includes DAE stiff, low order trapezoid rule stiff, low order non-stiff, medium order (Runge-Kutta) Do not worry about the meaning of stiff in this context, you will see it later this term. All of these functions use the very best methods, are highly reliable, use adaptive step size control, and allow close control of errors and other parameters. As a bonus, they can be told to precisely locate interesting events such as zero crossings and will even allow user-written functions to be called when certain types of events occur. There is very little reason to write your own ODE solvers unless you are actively researching new methods. In the following exercises you will see how to use these solvers. In the following exercise, you will solve the following initial value problem (IVP). Exercise 1: (a) Copy the following code to a function m-file named ex1 ode.m. function yprime=ex1_ode(x,y) % yprime=ex1_ode(x,y) % computes the right side of the ODE y =sin(x)-y % x,y are scalars, yprime is y % your name and the date yprime=sin(x)-y; dy =sin x y (1) dx y(0) =1 (b) You can watch a solution evolve if you call the solver without any output variables. Use ode45 to solve the IVP in Equation (1) on the interval [0,15] with the following Matlab command. ode45( ex1_ode,[0,15],1) You should see that the solution becomes very much like sinx after a short period of adjustment to the initial condition that is different from sin 0. The circles on the plot indicate points at which Matlab has chosen to evaluate solution, based on its default error criteria. Please include this plot with your summary. (c) If you wish to examine the solution in more detail, or manipulate it, you need the solution values, not a picture. You can get the solution values with commands similar to the following: [x,y]=ode45( ex1_ode,[0,15],1); If you wish, you can plot the solution, compute its error, etc. Plot this solution (plot y vs x) to see that it looks the same as before. Please send me this plot with your summary also. (d) For this solution, what is the value of y at x=15? (Please use at least 6 decimal places for this answer. You can use the command format long to get more than the default amount of printed accuracy.) How many steps did it take? (The length of x is one more than the number of steps because it includes the initial value.) 2

3 (e) Suppose you want a very accurate solution. The default tolerance is.001 relative accuracy in Matlab, but suppose you want a relative accuracy of 1.e-8? There is an extra variable to provide options to the solver. It works in the following manner: myoptions=odeset( RelTol,1.e-8) [x,y]=ode45( ex1_ode,[0,15],1,myoptions); (The semicolon is left off the odeset call so you can see some of the other options and their defaults. Use help odeset for more detail.) How many steps did it take this time? What is the value of y at x=15 (to 6 decimal places)? 3 ODE systems The vast majority of ODEs that are solved are actually systems of differential equations, that is, a set of equations for which the unknown function y(x) is a vector, say of dimension n. In this case, we might write an individual component of the vector as y l or y l (x). Assuming that the right hand side function f returns a vector, then the system of equations has the same form as the scalar equation, and we can apply the same ODE solvers to this system. Here s an implementation issue: Matlab uses the variables x and y as column vectors. The value y(k) is the approximate solution at x(k). Since this as a column vector, it s possible to handle the case of a system by assuming the individual solution values are row vectors. In this setting, a numerical solution will be a table of values, an initial condition specifies the first row of that table, and each row specifies the behavior of one of the components of the solution. 4 Goodwin s economic model A model for cyclic economic behavior due to R. M. Goodwin ( A Growth Cycle, 1967, in Feinstein, editor, Socialism, Capitalism and Economic Growth) will be described below. This model results in a system of ordinary differential equations that we will be able to solve using Euler s method. The primary role of this model in the study of economics is that it predicts cyclical behavior without a cyclical driving force it just arises naturally from the model itself. It is not necessary for you to understand the discussion of the foundation of the model or its economic interpretation. We will be using it as a source of a system of differential equations to be solved. The model involves two primary dependent variables, y 1 and y 2. The variable y 1 is the share of the total economy represented by employee salaries y 1 = (wages)*(numberemployed), where wages refers to the average amount paid to each employee, numberemployed refers to the number of employed people, and refers to the gross national product, the total value of all production. Of course, the total of all wages paid to all workers is given by (wages)*(numberemployed). The employment rate, y 2 is the second primary dependent variable: y 2 = numberemployed population where population is the total number of people. The independent variable is time, t. The first assumption is that there is a constant, ρ, representing the average return on capital for all investments. Thus, the gross national product is a fixed percentage of total capital invested. totalcapital = ρ. (2) 3

4 The second assumption is that the money left over after wages have been paid is assumed to be invested, increasing the total capital available. Thus the total capital increases in the following way. dtotalcapital dt = (wages) (numberemployed) = (1 y 1 ) (3) The following expression, in terms of relative rates of change, is a consequence of (2) and (3). dtotalcapital/dt totalcapital = d/dt = (1 y 1) totalcapital = 1 y 1 ρ The third assumption is that the relative rates of change of productivity and population are both constants. Productivity is the average value of goods produced by employees productivity = and population was used above in the definition of y 2. Thus numberemployed (4) dproductivity/dt productivity dpopulation/dt population = δ (5) = ν (6) A simple consequence of (5) is that d/dt = dnumberemployed/dt numberemployed + δ. (7) The fourth assumption is that the relative change in wages is a function of employment. dwages/dt wages = α + βy 2. (8) A consequence of the derivative of definition of employment rate, e, (7), (4) and (6) is one of the two differential equations for Goodwin s model dy 2 /dt = 1 y 1 δ ν. (9) y 2 ρ A consequence of the derivative of the definition of wage share, y 1, is the other equation for Goodwin s model dy 1 /dt y 1 = dwages/dt wages In summary, Goodwin s model can be written where the Greek letters signify positive constants. + dnumberemployed/dt numberemployed d/dt = α + βy 2 δ (10) dy 1 dt = (δ + α)y 1 + βy 1 y 2 (11) dy 2 dt = (1 ρ δ ν)y 2 y 1y 2 ρ (12) 4

5 Exercise 2: (a) Copy the following code to a Matlab function m-file called goodwin ode.m, that returns the derivative function as a column vector: function yprime = goodwin_ode ( x, y ) % comments % your name and the date ALPHA =0.4; BETA =0.9; DELTA =0.05; NU =0.01; RHO =5.0; yprime=zeros(2,1); yprime(1)=-(delta+alpha)*???+beta*y(1)*y(2); yprime(2)=(1/rho-delta-nu)*???-y(1)*y(2)/rho; (b) Add comments just below the signature to indicate the calling and return sequences and to provide a summary of what the function does. (c) Replace the symbols??? with the proper quantities so goodwin ode implements Goodwin s model equations. (d) What is the role of the line yprime=zeros(2,1); What would happen if it were left out? (e) Note that the variable x, corresponding to time, is unused. Nonetheless, it must be present in the signature. (f) Now use ode45 to integrate from x = 0 to x = 100 starting from y(1)=0.5, y(2)=0.5; yinit = [ ]; ode45 ( goodwin_ode, [ 0.0, ], yinit ); (g) Why do you get two curves? Please include a copy of this plot with your summary. (h) Open a blank plot window with the command figure(2). Solve the same system, but this time use ode15s. Your solution should look the same, but you should see a slightly different distribution of circles indicating a different set of step sizes. 5 Higher Order ODE s The previous examples are for first order equations and systems. What about higher order differential equations, ones that include derivatives such as y? There is a standard trick for transforming higher order equations into first order systems. You may have seen this trick in an ODE course. It also shows up in control theory in the conversion to state-space form of a system model and, I am sure, many other places. Atkinson describes the trick in Section 6.1, page 340. The trick will be illustrated by example here. Consider a fourth-order differential equation 5z + 4z + 3z + 2z + z = sin(x) with initial conditions z ( 0) = 0, z (0) = 10, z (0) = 20, z (0) = 30. 5

6 The first step is to define new variables y 1 = z y 2 = z y 3 = z y 4 = z (Note that the original equation is fourth order and there are four new variables defined. With these new variables, the original scalar equation can be written as a system of equations y 1 = y 2 y 2 = y 3 y 3 = y 4 y 4 = (sin x y 1 2y 2 3y 3 4y 4 )/5 Exercise 3: A pendulum swings through a circular arc. At any time, the angle θ(x) the pendulum makes with the downward vertical is described by Newton s law (F = ma): with initial conditions θ + 1.5θ = 0 θ(x 0 ) = 1 θ (x 0 ) = 0 (a) Rewrite this as a first order system. (Hint: set y 1 = θ and y 2 = θ.) Write a function m-file named pendulum ode.m to represent this system. Be sure to put comments after the signature line and wherever else they are needed. Be sure that you return a column vector. (b) Use ode45 to solve for θ up to x = 25. Please include a plot of your solution with your summary file. Exercise 4: Your team has a cannon that shoots water balloons with a velocity of 100 ft/sec. You can adjust its angle of inclination, α, to change the range. The other team is in front of a wall 10 ft high, 300 ft away from you. If you hit the wall with a water balloon, you will soak the other team. Your plan is to use Matlab to solve the equations of motion and trial and error to choose the correct value of α. The trick is to pick a value of α that results in the balloon being between 0 and 10 ft above ground at 300 ft. The equations of motion of a cannonball of unit mass under the influence of gravity are: ξ = 0 η = 32 where ξ denotes distance along the ground, and η denotes height. The independent variable, x, is time. The initial conditions are ξ(0) = 0 ξ (0) = 100 cosα η(0) = 0 η (0) = 100 sinα 6

7 where α is a constant you will discover by trial and error. This is a combination of two second-order systems. Define the variables: y 1 = ξ y 2 = ξ y 3 = η y 4 = η (a) Write a function m-file called cannon ode.m to implement the system. Be sure to include comments and to have the function return a column vector. (b) Use ode45 to integrate the equations of motion and determine, by trial and error, a value of α so that the cannon ball hits the wall. You can determine success by checking that 0 η 10 when ξ = 300. Watch out: the condition is on ξ, not x. You can find the first step beyond ξ = 300 using the Matlabfind statement. The first index, k for which ξ k 300 is k=min(find(y(:,1)>=300)). Alternatively, you can plot the balloon s trajectory and see where it hits the ground or the wall. You can plot the trajectory (ξ, η) with plot ( y(:,1), y(:,3) ) You might find the axis([xmin,xmax,ymin,ymax]) command in Matlab useful to zoom in on the target, or you can use the magnifying icon on the plot window. (Click on the magnifying glass and then use the mouse to outline a square by clicking on the upper left and dragging. Warning: this might cause Matlab to crash on the computers in GSCC.) Include the file cannon ode.m and the value of alpha you used when you turn in this exercise. 6 Phase Plane Plots In many problems, a system is defined by a second order ODE whose right hand side does not depend on time. Such a system is called autonomous. The behavior of the solution doesn t depend on when you start the problem, only on the initial condition. Most of the above examples are autonomous. Especially for these kind of problems, it can be useful to look at the solution on a special phase plane plot. This simply means that instead of plotting x versus the solution y, we plot y versus y. This is an especially good way to detect periodic solutions, decaying transients, and so on. Phase plane plots are most interesting when the differential equation is not linear. Phase plane plots are valuable because they highlight periodic or almost periodic behavior. Think about it: the solution to the pendulum case is θ = cosx, and that makes θ = sin x. If you plot this in the phase plane (θ on the vertical axis, θ on the horizontal axis) you get a circle. Of course, once you go around the circle once, the autonomous nature of the system guarantees that you will continue going around forever, so the periodic behavior is highlighted. If you add a little damping to the pendulum equation, the phase plane plot becomes a slow spiral into the center. Exercise 5: An equation for motion of a pendulum including a frictional term proportional to velocity is θ +.2θ + 1.5θ = 0. (a) Copy your file pendulum ode.m to decay ode.m and modify it to include the frictional term.2θ. (b) Use ode45 to solve the resulting ODE for x between 0 and 20, starting from the same initial condition as in Exercise 3 above, [1;0]. (c) Plot it in phase space (θ along the horizontal axis and θ on the vertical axis) using the command 7

8 plot(y(:,1),y(:,2)); Please send me the plot. Exercise 6: In the previous exercise, all three coefficients on the left in the ODE are positive. If the coefficient of velocity is negative instead of positive, the physical result is that the solution grows instead of decaying. (a) Copy your filedecay ode.m togrow ode.m and modify it by changing the coefficient of the velocity term from.2 to -.2. (b) Use ode45 to solve the resulting ODE for x between 0 and 20, starting from [1;0]. (c) Plot y vs. x to see one view of what the solution looks like. You do not have to send me this plot. (d) Plot it in phase space (θ along the horizontal axis and θ on the vertical axis) using the command plot(y(:,1),y(:,2)); You should observe an outward spiral. Please send me this phase-plane plot. One simple nonlinear equation with quite complicated behavior is van der Pol s equation. This equation is written z + a(z 2 1)z + z = 0 (13) For positive a, it can be seen by analogy with decay ode.m and grow ode.m that solutions z to (13) will grow when z < 1 and shrink when z > 1. The result is a non-linear oscillator. Physical systems that behave somewhat as a van der Pol oscillator include electrical circuits with semiconductor devices such as tunnel diodes in them (see this web page from Duke, and some biological systems, such as the beating of a heart, or the firing of neurons. Exercise 7: This exercise illustrates phase plane plots using the van der Pol ODE. (a) Rewrite the van der Pol equation as a first-order system, and place the code in a function m-file named vanderpol ode.m. Use the value a = 1. Be sure you place comments where they belong. (b) Use ode45 to solve the system of ODEs for x between x=0 to x=20, starting from an initial condition of yinitial = [0; 0.25] (notice the semicolon, making it a column vector). Make a phase plane plot from your solution. (c) Now, on the same plot (use the Matlab command hold on), plot the solution starting from the initial condition [0;3]. Send me the plot and your guesses about: What would the plot look like if you started at other points close to the ones you already did? What would the plot look like if you started very near the origin? What would the plot look like if you started exactly on the origin? 7 Stiff systems ODEs can be either stiff or non-stiff. We will look at stiff ODEs again later in the term, but it is instructive to look at one practical method for distinguishing stiff from non-stiff ODEs. Basically, you try both non-stiff and stiff solvers and note which is faster. Take my word that the IVP can be regarded as a stiff system. y =1000(sinx y) (14) y(0) =1 8

9 Exercise 8: (a) Implement the right side of the above IVP, Equation (14) in a function m-file namedstiff ode.m. You may want to start from ex1 ode.m. (b) Integrate it from x=0 to x=15, starting from y=1 using ode45. Measure the time it takes with the commands tic;[x,y]=ode45( stiff_ode,[0,15],1);toc How long does it take? How many steps did it take (length(x)-1)? (c) Use the following command to plot your result, using a blue line. plot(x,y, b ) (d) Repeat the above steps using ode15s. Again, how much time does it take (should be much smaller)? How many steps does it take (length(x)-1)? Plot the results in red on the same frame as above. You should see the lines almost on top of one another, so the solutions are essentially the same. Please include this plot with your summary. 8 Roundoff errors Last term you saw some effects of roundoff errors. Later in this term you will look at roundoff errors again. Right now, though, is a good time to look at how some roundoff errors come about. In the exercise below we will have occasion to use a special matrix called the Frank matrix. Row k of the n n Frank matrix has the formula: The Frank matrix for n = 5 looks like: A k,j = 0 for j < k 2 n + 1 k for j = k 1 n + 1 j for j k The determinant of the Frank matrix is 1, but is difficult to compute numerically. This matrix has a special form called Hessenberg form wherein all elements below the first subdiagonal are zero. Matlab provides the Frank matrix in its gallery of matrices, gallery( frank,n), but we will use an m-file frank.m. The inverse of the Frank matrix also consists of integer entries and an m-file for it can be downloaded as frank inv.m. You can find more information about the Frank matrix from the Matrix Market, and the references therein. Exercise 9: Let s look carefully at the Frank matrix and its inverse. For convenience, define A to be the Frank matrix of order 6, and Ainv its inverse, computed using frank and frank inv. Similarly, let B and Binv be the Frank matrix of order 24 and its inverse. Do not use the Matlab inv function for this exercise! You know that both A*Ainv and B*Binv should equal the identity matrices of order 6 and 24 respectively. Let s just look at the top left entry. Compute A(1,:)*Ainv(:,1)= B(1,:)*Binv(:,1)= Both of these answers should equal 1. The first does and the second does not. To see what goes right, compute the terms: 9

10 A(1,6)*Ainv(6,1)= A(1,5)*Ainv(5,1)= A(1,4)*Ainv(4,1)= A(1,3)*Ainv(3,1)= A(1,2)*Ainv(2,1)= A(1,1)*Ainv(1,1)= sum = Note that the signs alternate, so that when you add them up, each term tends to cancel part of the preceeding term. Now, to see what goes wrong, compute the terms: B(1,24)*Binv(24,1)= B(1,23)*Binv(23,1)= B(1,22)*Binv(22,1)= B(1,21)*Binv(21,1)= B(1,20)*Binv(20,1)= B(1,16)*Binv(16,1)= B(1,11)*Binv(11,1)= B(1,6) *Binv(6,1) = B(1,1) *Binv(1,1) = You can see what happens to the sum. The first few terms are huge compared with the final sum of 1. Matlab uses 64-bit floating point numbers, so you can only rely on the first thirteen or fourteen significant digits in numbers like B(1,24)*Binv(24,1). Further, they are of opposing signs so that there is extensive cancellation. There simply are not enough bits in the calculation to get anything like the correct answer. (Remark: It would not have been productive to compute each of the products B(1,k)*Binv(k,1) for each k, so I had you do the five largest and then sampled the rest. I chose to sample the terms with an odd-sized interval between adjacent terms. Had I chosen an even interval say every other term the alternating sign pattern would have been obscured. When you are sampling errors or residuals for any reason, never take every other term!) 10

MATH2071: LAB 3: Implicit ODE methods

MATH2071: LAB 3: Implicit ODE methods MATH2071: LAB 3: Implicit ODE methods 1 Introduction Introduction Exercise 1 Stiff Systems Exercise 2 Direction Field Plots Exercise 3 The Backward Euler Method Exercise 4 Newton s method Exercise 5 The

More information

MATH2071: LAB #5: Norms, Errors and Condition Numbers

MATH2071: LAB #5: Norms, Errors and Condition Numbers MATH2071: LAB #5: Norms, Errors and Condition Numbers 1 Introduction Introduction Exercise 1 Vector Norms Exercise 2 Matrix Norms Exercise 3 Compatible Matrix Norms Exercise 4 More on the Spectral Radius

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for solving higher order ODEs and

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 75 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP. Use MATLAB solvers for solving higher order ODEs and systems

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MATLAB sessions: Laboratory 4 MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for

More information

Mon Jan Improved acceleration models: linear and quadratic drag forces. Announcements: Warm-up Exercise:

Mon Jan Improved acceleration models: linear and quadratic drag forces. Announcements: Warm-up Exercise: Math 2250-004 Week 4 notes We will not necessarily finish the material from a given day's notes on that day. We may also add or subtract some material as the week progresses, but these notes represent

More information

PH 120 Project # 2: Pendulum and chaos

PH 120 Project # 2: Pendulum and chaos PH 120 Project # 2: Pendulum and chaos Due: Friday, January 16, 2004 In PH109, you studied a simple pendulum, which is an effectively massless rod of length l that is fixed at one end with a small mass

More information

Computer lab for MAN460

Computer lab for MAN460 Computer lab for MAN460 (version 20th April 2006, corrected 20 May) Prerequisites Matlab is rather user friendly, and to do the first exercises, it is enough to write an m-file consisting of two lines,

More information

LAB 2 - ONE DIMENSIONAL MOTION

LAB 2 - ONE DIMENSIONAL MOTION Name Date Partners L02-1 LAB 2 - ONE DIMENSIONAL MOTION OBJECTIVES Slow and steady wins the race. Aesop s fable: The Hare and the Tortoise To learn how to use a motion detector and gain more familiarity

More information

DISCRETE RANDOM VARIABLES EXCEL LAB #3

DISCRETE RANDOM VARIABLES EXCEL LAB #3 DISCRETE RANDOM VARIABLES EXCEL LAB #3 ECON/BUSN 180: Quantitative Methods for Economics and Business Department of Economics and Business Lake Forest College Lake Forest, IL 60045 Copyright, 2011 Overview

More information

AIMS Exercise Set # 1

AIMS Exercise Set # 1 AIMS Exercise Set #. Determine the form of the single precision floating point arithmetic used in the computers at AIMS. What is the largest number that can be accurately represented? What is the smallest

More information

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

Math 310 Introduction to Ordinary Differential Equations Final Examination August 9, Instructor: John Stockie Make sure this exam has 15 pages. Math 310 Introduction to Ordinary Differential Equations inal Examination August 9, 2006 Instructor: John Stockie Name: (Please Print) Student Number: Special Instructions

More information

Initial value problems for ordinary differential equations

Initial value problems for ordinary differential equations AMSC/CMSC 660 Scientific Computing I Fall 2008 UNIT 5: Numerical Solution of Ordinary Differential Equations Part 1 Dianne P. O Leary c 2008 The Plan Initial value problems (ivps) for ordinary differential

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Objective: Students will gain familiarity with using Excel to record data, display data properly, use built-in formulae to do calculations, and plot and fit data with linear functions.

More information

Solving Differential Equations: First Steps

Solving Differential Equations: First Steps 30 ORDINARY DIFFERENTIAL EQUATIONS 3 Solving Differential Equations Solving Differential Equations: First Steps Now we start answering the question which is the theme of this book given a differential

More information

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

Chapter 1, Section 1.2, Example 9 (page 13) and Exercise 29 (page 15). Use the Uniqueness Tool. Select the option ẋ = x Use of Tools from Interactive Differential Equations with the texts Fundamentals of Differential Equations, 5th edition and Fundamentals of Differential Equations and Boundary Value Problems, 3rd edition

More information

MITOCW watch?v=dztkqqy2jn4

MITOCW watch?v=dztkqqy2jn4 MITOCW watch?v=dztkqqy2jn4 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of Scientific Computing with Case Studies SIAM Press, 2009 http://www.cs.umd.edu/users/oleary/sccswebpage Lecture Notes for Unit V Solution of Differential Equations Part 1 Dianne P. O Leary c 2008 1 The

More information

DIFFERENTIAL EQUATIONS

DIFFERENTIAL EQUATIONS DIFFERENTIAL EQUATIONS Basic Concepts Paul Dawkins Table of Contents Preface... Basic Concepts... 1 Introduction... 1 Definitions... Direction Fields... 8 Final Thoughts...19 007 Paul Dawkins i http://tutorial.math.lamar.edu/terms.aspx

More information

Nonlinear Oscillators: Free Response

Nonlinear Oscillators: Free Response 20 Nonlinear Oscillators: Free Response Tools Used in Lab 20 Pendulums To the Instructor: This lab is just an introduction to the nonlinear phase portraits, but the connection between phase portraits and

More information

MECH : a Primer for Matlab s ode suite of functions

MECH : a Primer for Matlab s ode suite of functions Objectives MECH 4-563: a Primer for Matlab s ode suite of functions. Review the fundamentals of initial value problems and why numerical integration methods are needed.. Introduce the ode suite of numerical

More information

Gravity Pre-Lab 1. Why do you need an inclined plane to measure the effects due to gravity?

Gravity Pre-Lab 1. Why do you need an inclined plane to measure the effects due to gravity? Lab Exercise: Gravity (Report) Your Name & Your Lab Partner s Name Due Date Gravity Pre-Lab 1. Why do you need an inclined plane to measure the effects due to gravity? 2. What are several advantage of

More information

MB4018 Differential equations

MB4018 Differential equations MB4018 Differential equations Part II http://www.staff.ul.ie/natalia/mb4018.html Prof. Natalia Kopteva Spring 2015 MB4018 (Spring 2015) Differential equations Part II 0 / 69 Section 1 Second-Order Linear

More information

A Brief Introduction to Numerical Methods for Differential Equations

A Brief Introduction to Numerical Methods for Differential Equations A Brief Introduction to Numerical Methods for Differential Equations January 10, 2011 This tutorial introduces some basic numerical computation techniques that are useful for the simulation and analysis

More information

Modeling and Experimentation: Compound Pendulum

Modeling and Experimentation: Compound Pendulum Modeling and Experimentation: Compound Pendulum Prof. R.G. Longoria Department of Mechanical Engineering The University of Texas at Austin Fall 2014 Overview This lab focuses on developing a mathematical

More information

MATH 1231 MATHEMATICS 1B Calculus Section 2: - ODEs.

MATH 1231 MATHEMATICS 1B Calculus Section 2: - ODEs. MATH 1231 MATHEMATICS 1B 2007. For use in Dr Chris Tisdell s lectures: Tues 11 + Thur 10 in KBT Calculus Section 2: - ODEs. 1. Motivation 2. What you should already know 3. Types and orders of ODEs 4.

More information

Physics 584 Computational Methods

Physics 584 Computational Methods Physics 584 Computational Methods Introduction to Matlab and Numerical Solutions to Ordinary Differential Equations Ryan Ogliore April 18 th, 2016 Lecture Outline Introduction to Matlab Numerical Solutions

More information

AP Physics C 2015 Summer Assignment

AP Physics C 2015 Summer Assignment AP Physics C 2015 Summer Assignment College Board (the people in charge of AP exams) recommends students to only take AP Physics C if they have already taken a 1 st year physics course and are currently

More information

Numerical Methods for Initial Value Problems; Harmonic Oscillators

Numerical Methods for Initial Value Problems; Harmonic Oscillators Lab 1 Numerical Methods for Initial Value Problems; Harmonic Oscillators Lab Objective: Implement several basic numerical methods for initial value problems (IVPs), and use them to study harmonic oscillators.

More information

MecE 390 Final examination, Winter 2014

MecE 390 Final examination, Winter 2014 MecE 390 Final examination, Winter 2014 Directions: (i) a double-sided 8.5 11 formula sheet is permitted, (ii) no calculators are permitted, (iii) the exam is 80 minutes in duration; please turn your paper

More information

Motion in 1 Dimension. By Prof. Massimiliano Galeazzi, University of Miami

Motion in 1 Dimension. By Prof. Massimiliano Galeazzi, University of Miami Motion in 1 Dimension By Prof. Massimiliano Galeazzi, University of Miami When you throw a pebble straight up, how high does it go? How fast is it when it gets back? If you are in your car at a red light

More information

Assignment 1 Physics/ECE 176

Assignment 1 Physics/ECE 176 Assignment 1 Physics/ECE 176 Made available: Thursday, January 13, 211 Due: Thursday, January 2, 211, by the beginning of class. Overview Before beginning this assignment, please read carefully the part

More information

Multiple Choice Answers. MA 114 Calculus II Spring 2013 Final Exam 1 May Question

Multiple Choice Answers. MA 114 Calculus II Spring 2013 Final Exam 1 May Question MA 114 Calculus II Spring 2013 Final Exam 1 May 2013 Name: Section: Last 4 digits of student ID #: This exam has six multiple choice questions (six points each) and five free response questions with points

More information

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology Intermediate Algebra Gregg Waterman Oregon Institute of Technology c 2017 Gregg Waterman This work is licensed under the Creative Commons Attribution 4.0 International license. The essence of the license

More information

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis Appendix 3B MATLAB Functions for Modeling and Time-domain analysis MATLAB control system Toolbox contain the following functions for the time-domain response step impulse initial lsim gensig damp ltiview

More information

MthSc 107 Test 1 Spring 2013 Version A Student s Printed Name: CUID:

MthSc 107 Test 1 Spring 2013 Version A Student s Printed Name: CUID: Student s Printed Name: CUID: Instructor: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, or

More information

Numerical Methods for Initial Value Problems; Harmonic Oscillators

Numerical Methods for Initial Value Problems; Harmonic Oscillators 1 Numerical Methods for Initial Value Problems; Harmonic Oscillators Lab Objective: Implement several basic numerical methods for initial value problems (IVPs), and use them to study harmonic oscillators.

More information

Project 2: Using linear systems for numerical solution of boundary value problems

Project 2: Using linear systems for numerical solution of boundary value problems LINEAR ALGEBRA, MATH 124 Instructor: Dr. T.I. Lakoba Project 2: Using linear systems for numerical solution of boundary value problems Goal Introduce one of the most important applications of Linear Algebra

More information

Numerical Analysis Exam with Solutions

Numerical Analysis Exam with Solutions Numerical Analysis Exam with Solutions Richard T. Bumby Fall 000 June 13, 001 You are expected to have books, notes and calculators available, but computers of telephones are not to be used during the

More information

AMS 27L LAB #8 Winter 2009

AMS 27L LAB #8 Winter 2009 AMS 27L LAB #8 Winter 29 Solving ODE s in Matlab Objectives:. To use Matlab s ODE Solvers 2. To practice using functions and in-line functions Matlab s ODE Suite Matlab offers a suite of ODE solvers including:

More information

Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 00 Dec 27, 2014.

Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 00 Dec 27, 2014. Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals Gary D. Simpson gsim100887@aol.com rev 00 Dec 27, 2014 Summary Definitions are presented for "quaternion functions" of a quaternion. Polynomial

More information

Physics 225 Relativity and Math Applications. Fall Unit 7 The 4-vectors of Dynamics

Physics 225 Relativity and Math Applications. Fall Unit 7 The 4-vectors of Dynamics Physics 225 Relativity and Math Applications Fall 2011 Unit 7 The 4-vectors of Dynamics N.C.R. Makins University of Illinois at Urbana-Champaign 2010 Physics 225 7.2 7.2 Physics 225 7.3 Unit 7: The 4-vectors

More information

Differential Equations FMNN10 Graded Project #1 c G Söderlind 2017

Differential Equations FMNN10 Graded Project #1 c G Söderlind 2017 Differential Equations FMNN10 Graded Project #1 c G Söderlind 2017 Published 2017-10-30. Instruction in computer lab 2017-11-02/08/09. Project report due date: Monday 2017-11-13 at 10:00. Goals. The goal

More information

7.1 Indefinite Integrals Calculus

7.1 Indefinite Integrals Calculus 7.1 Indefinite Integrals Calculus Learning Objectives A student will be able to: Find antiderivatives of functions. Represent antiderivatives. Interpret the constant of integration graphically. Solve differential

More information

2 Solving Ordinary Differential Equations Using MATLAB

2 Solving Ordinary Differential Equations Using MATLAB Penn State Erie, The Behrend College School of Engineering E E 383 Signals and Control Lab Spring 2008 Lab 3 System Responses January 31, 2008 Due: February 7, 2008 Number of Lab Periods: 1 1 Objective

More information

A First Course on Kinetics and Reaction Engineering Example S5.1

A First Course on Kinetics and Reaction Engineering Example S5.1 Example S5.1 Problem Purpose This example illustrates the use of the MATLAB template file SolvBVDif.m to solve a second order boundary value ordinary differential equation. Problem Statement Solve the

More information

Chapter 1 Review of Equations and Inequalities

Chapter 1 Review of Equations and Inequalities Chapter 1 Review of Equations and Inequalities Part I Review of Basic Equations Recall that an equation is an expression with an equal sign in the middle. Also recall that, if a question asks you to solve

More information

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo 2008-11-07 Graded Project #1 Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo This homework is due to be handed in on Wednesday 12 November 2008 before 13:00 in the post box of the numerical

More information

8 Numerical Integration of Ordinary Differential

8 Numerical Integration of Ordinary Differential 8 Numerical Integration of Ordinary Differential Equations 8.1 Introduction Most ordinary differential equations of mathematical physics are secondorder equations. Examples include the equation of motion

More information

Taylor series. Chapter Introduction From geometric series to Taylor polynomials

Taylor series. Chapter Introduction From geometric series to Taylor polynomials Chapter 2 Taylor series 2. Introduction The topic of this chapter is find approximations of functions in terms of power series, also called Taylor series. Such series can be described informally as infinite

More information

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations Supplemental Unit S5. Solving Initial Value Differential Equations Defining the Problem This supplemental unit describes how to solve a set of initial value ordinary differential equations (ODEs) numerically.

More information

Math 41 Final Exam December 9, 2013

Math 41 Final Exam December 9, 2013 Math 41 Final Exam December 9, 2013 Name: SUID#: Circle your section: Valentin Buciumas Jafar Jafarov Jesse Madnick Alexandra Musat Amy Pang 02 (1:15-2:05pm) 08 (10-10:50am) 03 (11-11:50am) 06 (9-9:50am)

More information

APPM 2460 CHAOTIC DYNAMICS

APPM 2460 CHAOTIC DYNAMICS APPM 2460 CHAOTIC DYNAMICS 1. Introduction Today we ll continue our exploration of dynamical systems, focusing in particular upon systems who exhibit a type of strange behavior known as chaos. We will

More information

Mon Jan Improved acceleration models: linear and quadratic drag forces. Announcements: Warm-up Exercise:

Mon Jan Improved acceleration models: linear and quadratic drag forces. Announcements: Warm-up Exercise: Math 2250-004 Week 4 notes We will not necessarily finish the material from a given day's notes on that day. We may also add or subtract some material as the week progresses, but these notes represent

More information

Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology. Indian Institute of Technology, Kharagpur

Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology. Indian Institute of Technology, Kharagpur Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology Indian Institute of Technology, Kharagpur Lecture No 03 Damped Oscillator II We were discussing, the damped oscillator

More information

Introduction to First Order Equations Sections

Introduction to First Order Equations Sections A B I L E N E C H R I S T I A N U N I V E R S I T Y Department of Mathematics Introduction to First Order Equations Sections 2.1-2.3 Dr. John Ehrke Department of Mathematics Fall 2012 Course Goals The

More information

Lab 11. Spring-Mass Oscillations

Lab 11. Spring-Mass Oscillations Lab 11. Spring-Mass Oscillations Goals To determine experimentally whether the supplied spring obeys Hooke s law, and if so, to calculate its spring constant. To find a solution to the differential equation

More information

Numerical Methods for Ordinary Differential Equations

Numerical Methods for Ordinary Differential Equations Numerical Methods for Ordinary Differential Equations By Brian D. Storey 1. Introduction Differential equations can describe nearly all systems undergoing change. They are ubiquitous is science and engineering

More information

Experiment 0 ~ Introduction to Statistics and Excel Tutorial. Introduction to Statistics, Error and Measurement

Experiment 0 ~ Introduction to Statistics and Excel Tutorial. Introduction to Statistics, Error and Measurement Experiment 0 ~ Introduction to Statistics and Excel Tutorial Many of you already went through the introduction to laboratory practice and excel tutorial in Physics 1011. For that reason, we aren t going

More information

Experiment 1: The Same or Not The Same?

Experiment 1: The Same or Not The Same? Experiment 1: The Same or Not The Same? Learning Goals After you finish this lab, you will be able to: 1. Use Logger Pro to collect data and calculate statistics (mean and standard deviation). 2. Explain

More information

PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum

PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum To print higher-resolution math symbols, click the Hi-Res Fonts for Printing button on the jsmath control panel. PHY 13 Lab 1 - Error and Uncertainty and the Simple Pendulum Important: You need to print

More information

Lab 5: Projectile Motion

Lab 5: Projectile Motion Concepts to explore Scalars vs. vectors Projectiles Parabolic trajectory As you learned in Lab 4, a quantity that conveys information about magnitude only is called a scalar. However, when a quantity,

More information

Lab I. 2D Motion. 1 Introduction. 2 Theory. 2.1 scalars and vectors LAB I. 2D MOTION 15

Lab I. 2D Motion. 1 Introduction. 2 Theory. 2.1 scalars and vectors LAB I. 2D MOTION 15 LAB I. 2D MOTION 15 Lab I 2D Motion 1 Introduction In this lab we will examine simple two-dimensional motion without acceleration. Motion in two dimensions can often be broken up into two separate one-dimensional

More information

Lab 1: Dynamic Simulation Using Simulink and Matlab

Lab 1: Dynamic Simulation Using Simulink and Matlab Lab 1: Dynamic Simulation Using Simulink and Matlab Objectives In this lab you will learn how to use a program called Simulink to simulate dynamic systems. Simulink runs under Matlab and uses block diagrams

More information

Math 51 Second Exam February 23, 2017

Math 51 Second Exam February 23, 2017 Math 51 Second Exam February 23, 2017 Name: SUNet ID: ID #: Complete the following problems. In order to receive full credit, please show all of your work and justify your answers. You do not need to simplify

More information

Numerical Methods I Solving Nonlinear Equations

Numerical Methods I Solving Nonlinear Equations Numerical Methods I Solving Nonlinear Equations Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fall 2014 October 16th, 2014 A. Donev (Courant Institute)

More information

Numerical Algorithms for ODEs/DAEs (Transient Analysis)

Numerical Algorithms for ODEs/DAEs (Transient Analysis) Numerical Algorithms for ODEs/DAEs (Transient Analysis) Slide 1 Solving Differential Equation Systems d q ( x(t)) + f (x(t)) + b(t) = 0 dt DAEs: many types of solutions useful DC steady state: state no

More information

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25 Lecture 2 Introduction to Differential Equations Roman Kitsela October 1, 2018 Roman Kitsela Lecture 2 October 1, 2018 1 / 25 Quick announcements URL for the class website: http://www.math.ucsd.edu/~rkitsela/20d/

More information

MITOCW MITRES18_005S10_DiffEqnsMotion_300k_512kb-mp4

MITOCW MITRES18_005S10_DiffEqnsMotion_300k_512kb-mp4 MITOCW MITRES18_005S10_DiffEqnsMotion_300k_512kb-mp4 PROFESSOR: OK, this lecture, this day, is differential equations day. I just feel even though these are not on the BC exams, that we've got everything

More information

Lab 4 Numerical simulation of a crane

Lab 4 Numerical simulation of a crane Lab 4 Numerical simulation of a crane Agenda Time 10 min Item Review agenda Introduce the crane problem 95 min Lab activity I ll try to give you a 5- minute warning before the end of the lab period to

More information

of 8 28/11/ :25

of 8 28/11/ :25 Paul's Online Math Notes Home Content Chapter/Section Downloads Misc Links Site Help Contact Me Differential Equations (Notes) / First Order DE`s / Modeling with First Order DE's [Notes] Differential Equations

More information

The Plan. Initial value problems (ivps) for ordinary differential equations (odes) Review of basic methods You are here: Hamiltonian systems

The Plan. Initial value problems (ivps) for ordinary differential equations (odes) Review of basic methods You are here: Hamiltonian systems Scientific Computing with Case Studies SIAM Press, 2009 http://www.cs.umd.edu/users/oleary/sccswebpage Lecture Notes for Unit V Solution of Differential Equations Part 2 Dianne P. O Leary c 2008 The Plan

More information

Lab I. 2D Motion. 1 Introduction. 2 Theory. 2.1 scalars and vectors LAB I. 2D MOTION 15

Lab I. 2D Motion. 1 Introduction. 2 Theory. 2.1 scalars and vectors LAB I. 2D MOTION 15 LAB I. 2D MOTION 15 Lab I 2D Motion 1 Introduction In this lab we will examine simple two-dimensional motion without acceleration. Motion in two dimensions can often be broken up into two separate one-dimensional

More information

Final 09/14/2017. Notes and electronic aids are not allowed. You must be seated in your assigned row for your exam to be valid.

Final 09/14/2017. Notes and electronic aids are not allowed. You must be seated in your assigned row for your exam to be valid. Final 09/4/207 Name: Problems -5 are each worth 8 points. Problem 6 is a bonus for up to 4 points. So a full score is 40 points and the max score is 44 points. The exam has 6 pages; make sure you have

More information

ABE Math Review Package

ABE Math Review Package P a g e ABE Math Review Package This material is intended as a review of skills you once learned and wish to review before your assessment. Before studying Algebra, you should be familiar with all of the

More information

Maple for Math Majors. 3. Solving Equations

Maple for Math Majors. 3. Solving Equations Maple for Math Majors Roger Kraft Department of Mathematics, Computer Science, and Statistics Purdue University Calumet roger@calumet.purdue.edu 3.1. Introduction 3. Solving Equations Two of Maple's most

More information

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES J. WONG (FALL 2017) What did we cover this week? Basic definitions: DEs, linear operators, homogeneous (linear) ODEs. Solution techniques for some classes

More information

MA 262, Fall 2017, Final Version 01(Green)

MA 262, Fall 2017, Final Version 01(Green) INSTRUCTIONS MA 262, Fall 2017, Final Version 01(Green) (1) Switch off your phone upon entering the exam room. (2) Do not open the exam booklet until you are instructed to do so. (3) Before you open the

More information

LAB 2: INTRODUCTION TO MOTION

LAB 2: INTRODUCTION TO MOTION Lab 2 - Introduction to Motion 3 Name Date Partners LAB 2: INTRODUCTION TO MOTION Slow and steady wins the race. Aesop s fable: The Hare and the Tortoise Objectives To explore how various motions are represented

More information

Purpose: Materials: WARNING! Section: Partner 2: Partner 1:

Purpose: Materials: WARNING! Section: Partner 2: Partner 1: Partner 1: Partner 2: Section: PLEASE NOTE: You will need this particular lab report later in the semester again for the homework of the Rolling Motion Experiment. When you get back this graded report,

More information

MATH 100 Introduction to the Profession

MATH 100 Introduction to the Profession MATH 100 Introduction to the Profession Differential Equations in MATLAB Greg Fasshauer Department of Applied Mathematics Illinois Institute of Technology Fall 2012 fasshauer@iit.edu MATH 100 ITP 1 What

More information

Ordinary Differential Equations

Ordinary Differential Equations CHAPTER 8 Ordinary Differential Equations 8.1. Introduction My section 8.1 will cover the material in sections 8.1 and 8.2 in the book. Read the book sections on your own. I don t like the order of things

More information

NUMERICAL SOLUTION OF ODE IVPs. Overview

NUMERICAL SOLUTION OF ODE IVPs. Overview NUMERICAL SOLUTION OF ODE IVPs 1 Quick review of direction fields Overview 2 A reminder about and 3 Important test: Is the ODE initial value problem? 4 Fundamental concepts: Euler s Method 5 Fundamental

More information

Intro to Scientific Computing: How long does it take to find a needle in a haystack?

Intro to Scientific Computing: How long does it take to find a needle in a haystack? Intro to Scientific Computing: How long does it take to find a needle in a haystack? Dr. David M. Goulet Intro Binary Sorting Suppose that you have a detector that can tell you if a needle is in a haystack,

More information

In this activity, we explore the application of differential equations to the real world as applied to projectile motion.

In this activity, we explore the application of differential equations to the real world as applied to projectile motion. Applications of Calculus: Projectile Motion ID: XXXX Name Class In this activity, we explore the application of differential equations to the real world as applied to projectile motion. Open the file CalcActXX_Projectile_Motion_EN.tns

More information

Math 2250 Lab #1 : Tennis Ball Missile Defense

Math 2250 Lab #1 : Tennis Ball Missile Defense Math 2250 Lab #1 : Tennis Ball Missile Defense 1. INTRODUCTION TO THE LAB PROGRAM. Here are some general notes and ideas which will help you with the lab. The purpose of the lab program is to expose you

More information

MATH 1020 TEST 2 VERSION A Fall Printed Name: Section #: Instructor:

MATH 1020 TEST 2 VERSION A Fall Printed Name: Section #: Instructor: Printed Name: Section #: Instructor: Please do not ask questions during this exam. If you consider a question to be ambiguous, state your assumptions in the margin and do the best you can to provide the

More information

A primer on matrices

A primer on matrices A primer on matrices Stephen Boyd August 4, 2007 These notes describe the notation of matrices, the mechanics of matrix manipulation, and how to use matrices to formulate and solve sets of simultaneous

More information

A primer on matrices

A primer on matrices A primer on matrices Stephen Boyd August 4, 2007 These notes describe the notation of matrices, the mechanics of matrix manipulation, and how to use matrices to formulate and solve sets of simultaneous

More information

Maple for Math Majors. 3. Solving Equations

Maple for Math Majors. 3. Solving Equations 3.1. Introduction Maple for Math Majors Roger Kraft Department of Mathematics, Computer Science, and Statistics Purdue University Calumet roger@calumet.purdue.edu 3. Solving Equations The solve command

More information

Slope Fields: Graphing Solutions Without the Solutions

Slope Fields: Graphing Solutions Without the Solutions 8 Slope Fields: Graphing Solutions Without the Solutions Up to now, our efforts have been directed mainly towards finding formulas or equations describing solutions to given differential equations. Then,

More information

Exercises for Windows

Exercises for Windows Exercises for Windows CAChe User Interface for Windows Select tool Application window Document window (workspace) Style bar Tool palette Select entire molecule Select Similar Group Select Atom tool Rotate

More information

Often, in this class, we will analyze a closed-loop feedback control system, and end up with an equation of the form

Often, in this class, we will analyze a closed-loop feedback control system, and end up with an equation of the form ME 32, Spring 25, UC Berkeley, A. Packard 55 7 Review of SLODEs Throughout this section, if y denotes a function (of time, say), then y [k or y (k) denotes the k th derivative of the function y, y [k =

More information

Section 2.1 Differential Equation and Solutions

Section 2.1 Differential Equation and Solutions Section 2.1 Differential Equation and Solutions Key Terms: Ordinary Differential Equation (ODE) Independent Variable Order of a DE Partial Differential Equation (PDE) Normal Form Solution General Solution

More information

Basic Theory of Differential Equations

Basic Theory of Differential Equations page 104 104 CHAPTER 1 First-Order Differential Equations 16. The following initial-value problem arises in the analysis of a cable suspended between two fixed points y = 1 a 1 + (y ) 2, y(0) = a, y (0)

More information

Sin, Cos and All That

Sin, Cos and All That Sin, Cos and All That James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University March 9, 2017 Outline 1 Sin, Cos and all that! 2 A New Power Rule 3

More information

Lab 10 - Harmonic Motion and the Pendulum

Lab 10 - Harmonic Motion and the Pendulum Lab 10 Harmonic Motion and the Pendulum L10-1 Name Date Partners Lab 10 - Harmonic Motion and the Pendulum L (measured from the suspension point to the center of mass) Groove marking the center of mass

More information

Gravity Well Demo - 1 of 9. Gravity Well Demo

Gravity Well Demo - 1 of 9. Gravity Well Demo Gravity Well Demo - 1 of 9 Gravity Well Demo Brief Summary This demo/activity in Space Odyssey will give visitors a hands-on feel for how gravity works. Specifically, how Newton interpreted the force of

More information

Moving away from Happy Physics World

Moving away from Happy Physics World Moving away from Happy Physics World Inquiry 4 William Oakley Abstract Introduction As a former Mechanical Engineer, I ve had a great fondness for Newtonian Mechanics, to the point that I m getting certified

More information

MATH2070: LAB 9: Legendre Polynomials and L 2 Approximation. 1 Introduction

MATH2070: LAB 9: Legendre Polynomials and L 2 Approximation. 1 Introduction MATH070: LAB 9: Legendre Polynomials and L Approximation 1 Introduction Introduction Exercise 1 Integration Exercise Legendre Polynomials Exercise 3 Orthogonality and Integration Exercise 4 Least squares

More information