1 Programs for phase portrait plotting

Size: px
Start display at page:

Download "1 Programs for phase portrait plotting"

Transcription

1 . 1 Programs for phase portrait plotting We are here looking at how to use our octave programs to make phase portraits of two dimensional systems of ODE, adding automatically or halfautomatically arrows on trajectories. We have the possibilities to give the initial values of a solution curve, by giving the coordinates of the initial point, or by clicking on the window for the plot where the curve should start. We also have programs for plotting only the arrows for the direction of the solution, without any curve, at points given by clicking with mouse. We start by description of the programs for linear systems. After that we give information how to do minimal modifications to the programs in order to get phase portraits for any system. We also have a collection of programs giving phase portraits for some different known systems. At the end we examine the programs in more detail and give some examples and exercises recommended to go through for those not very familiar with octave. 1.1 Presentation of programs The programs can be grouped into three groups, the main four programs with examples using them, the program for using the mouse for giving initial points of solution curves, and the programs for plotting only arrows for the direction. We start with presenting the four main programs, one for giving system parameters and initial conditions and values to other important program parameters used, one where we define the equations for the system, one for integration and plotting the solution curve and the last for plotting an arrow on the solution curve. These are used in example programs making whole phase portraits. The most important inputs are the parameters of the system, the initial condition, the time length of integration. As an example we use programs for phase portraits for a linear system x = ax + by y = cx + dy (1) We start with a shorter description and list of important program variables and then describe them in more details. In next section we tell you how to modify these programs when other systems are used. The four main programs for the linear system are: LinFunInit.m, LinFun.m, onecurve.m and arrow.m with the examples linex1.m and linex2.m The program for making solution curves by clicking with mouse at initial condition is: mousecurves.m 1

2 The programs for making only arrows for directions are: arrowstart.m and arrowmake.m LinFunInit.m makes default initial values, in function: for function parameters a, b, c and d for funkis, the name of the file where the function is defined (here LinFun ) in integration: for p, deciding whether we integrate forwards (p=1) or backwards (p=-1) for x0, the initial point of the integal curve for tfinal, the final time of integration for points, the number of point on the integral curve in plot: for xmin, xmax, the mininal and maximal x-value of the plot for ymin, ymax, the mininal and maximal y-value of the plot in making the arrows: for jpauto, telling whether the arrow should be placed automatically in the middle of the curve (jpauto=1) or if you wish yourself to give the value of jp the index of a point on the curve where the arrow should be (jpauto=0) for na, the ratio of the length of the arrow compared with plotting window, the smaller the bigger length. for vv, the wideness of arrow for jab, parameter for choosing two types of finding automatically the place where to put arrow LinFun.m gives the right hand side of the system. onecurve.m the program for making the integral curve and plotting it arrow.m the program for plotting the arrow on the curve needs variables na, vv, jpauto and jab. linex1.m is one example of full phase portrait for the case when a = 1, b = c = 0 and d = 1. mousecurves.m is a program for plotting solution curves by clicking at initial points. arrowstart.m and arrowmake.m are the programs for plotting arrows for directions and they need the same parameters as arrow.m for working, except for that also parameter le is needed for making the proportion between wing length and central line length for the arrow. The parameter arrownumber is used to give the number of arrows to be plotted for one call of arrowmake.m As you see from the example the most important is to give good initial conditions x0 (it is possible to use loops to create more curves) and determine 2

3 the direction of integration p. Other parameters which are important are tfinal determining how long the curve will be and the value of the integration parameter points which should be big enough to get a smooth curve. Some explanations how programs work The right hand sides of the system of differential equations are given in the function file LinFun.m by the vector xdot. The parameters a b c d are global which means that they have the same value in other programs also and can be given new value outside this program. The value of p is determining how fast forward or backward the integration is going to be done. Positive values (normally +1) means we go forward along the integral curve and negative values (normally -1) means that we are going backwards. The function is called by LinFun(x,t) where x is a two dimensional vector and t is the one dimensional time. Here the systems are autonomous and function is not depending on time, it is a dummy variable. In LinFunInit.m important default values are given for integration and plotting. The values of the system parameters a, b, c, d are needed in the function file for the right hand side of the system. The value of p is determining whether we integrate backwards or forwards. The integral curve starts at x0 for time equal zero and goes until time is the value given by tfinal. The numbers of points given on the curve is determined by the value of the variable points. The output of the integration in onecurve.m is a matrix x of size points 2. The vector x(i,1) gives the x-values on the curve at time t(i) which is tfinal*(i-1)/(points-1) as the time points are equally distributed in the interval [0,tfinal] and the number of them is given by the value of variable points. Analogously x(i,2) gives the y-values on the curve. The time interval is divided into points-1 intervals and the integral curve is plotted as straight lines between points on the real integral curve given at the endpoints of these time intervals. The value of parameter points must be big enough to see it is a smooth curve even if it consists of straight line edges. The whole phase portrait is plotted into a window where the x-coordinate is between xmin and xmax and the y-coordinate is between ymin and ymax. The values of na, vv and jpauto are used in the program arrow.m plotting the arrows on the curves to see the time direction. The value of na determines the length of the arrow and is smaller with bigger values of na. The vaule of vv gives the angle of the arrow, small value is giving a narrow arrow. The value of jpauto is determining whether arrow should automatically be put approximately in the middle of the curve. If it is something else than 1 you must manually give jp meaning that the arrow is at point x(jp,:) corresponding to time t(jp). In onecurve.m the integration is carried out and linspace gives the time points (equally distributed between 0 and tfinal) at which the solution is calculated as output matrix x. The solution is also plotted. The program arrow.m produces the arrow plot on the curve for the time 3

4 direction. Some midpoint of a curve part is chosen if jpauto=1. The variable jab can have the values 1 or 2 and usually 1 can be used but sometimes 2 is good in order to get the arrow in a better place. Be careful to give the initial conditions where the solution curve starts inside the window for plotting, otherwise the arrow-program could collapse. This program supposes that the window octave plots on the screen is quadratic, if it is far from quadratic the arrows may look a little bit strange and you should ask us for other versions. The program mousecurves.m first asks for whether we wish to add the curves to a previous plot or not. If we wish to start a complete new picture we should give 0 otherwise something else. After that it asks for the number of curves to be plotted (these can be added later by using the program once again saving the previous figure). And finally before plotting the program asks for whether we wish to change between integration forward and backward compared to the latest use and if we wish to change the length of the curves in time. After that it waits for clicking to get an input for initial condition and a curve with arrow should appear starting at the place clicked. The programs arrowstart.m and arrowmake.m you can use for easy plot of arrows for finding the directions for solutions of a system of ordinary differential equations. You just click on a point in the plot and an arrow showing you the direction of the solution exactly at that point should appear. To use the programs of course, you need a file for giving the right hand sides of the system (for example, LinFun.m for a linear system) and a file for giving values to important parameters (for example, LinFunInit.m for the linear system given by file mentioned above). Calling for arrowstart gives you the window where to plot and askes for parameter arrownumber which defines the number of arrows you will plot the first time. Then you call for arrowmake and just click the number of times you have ordered and you should see the arrows. If you need more later you can call again for arrowmake giving may be first a new value for arrownumber. The type of the arrows are defined by some parameters which are set in the programs for initial parameters (for example LinFunInit.m ) and in arrowstart.m The parameters are na: giving the length of the arrow as length of the window divided by na. Greater na will give smaller arrows. We give default as 30. le: gives the ratio between the length of the central line and the wings in the arrow. vv: gives the angle between a wing of the arrow and the central line. arrownumber: is the number of arrows you can plot calling once for arrowmake.m and this can be changed before next call for this program in order to plot more The program linex1.m gives a full phase portrait for the system for the parameters given above. One more linear example with other coefficients is given in linex2.m and examples for non-linear functions are given in answers to exercises below. 4

5 1.2 How to use for own systems You can define your own function in a file you name yourfun.m (or give some other convenient name) and change the file LinFunInit to yourfuninit.m and change the text to actual parameters for your system in yourfuninit.m and write funkis= yourfun instead of LinFun. You need not to be worried about checking all parameters you can just copy them from other files giving initial values. But the parameters for the function and the value of funkis you have to change to your own. Also, of course, the initial points will be different. Often you also need to change the integration between backwards and forwards by variable p and the length of the curve by variable tfinal. And finally you probably have other values for the boundaries of the plot xmin, xmax, ymin and ymax. This will give you possibility to modify the examples to phase portraits for your system. 1.3 More detailed explanations with exercises The function file LinFun.m calculates the values for the funtion given by F (x, y, t) = (ax + by, cx + dy) and it is a function from R 3 to R 2. The values are given by typing command LinFun([x,y],t) in the case p = 1. Example 1. If a = c = d = p = 1, b = 2 the command LinFun([1,2],1) will give the values 5 and 3 coming from F (1, 2, 1) = (a + 2b, c + 2d). Execise 1. If a = 1, b = 0, c = 1, d = 1, p = 1 which is then the expression for the function? What will the command LinFun([2,1],4) give? What will the command LinFun([2,1],5) give? What will the command LinFun([-2,1],5) give? Which command should you type if you wish to find the value at the point (0,2)? In the function file x(1) means the first component of the vector x, the argument of the function. In LinFun.m this corresponds to the x-coordinate. The second component (corresponding to the y-coordinate in LinFun.m) is given by x(2). Exercise 2. Write a function file for the function given by F (x, y) = ( x + 2x 2 + y 2, y + y 2 ) and check the value octave is giving with the expected for some arguments. Exercise 3. Write a function file for the function given by F (x, y) = (x(y 1), y(x 1)) and check the value octave is giving with the expected ones for some arguments. Exercise 4. Write a file for initializing parameter values for the parameters and a function file for the function given by F (x, y) = (x(k 1 ax by), y(k 2 cx dy)) and check the value octave is giving with the expected for some arguments. Examine the case when F (x, y) = (x(4 x 2y), y(6 2x y)) 5

6 The text in onecurve.m is t=linspace(0,tfinal,points); x=lsode("linfun",x0,t); plot(x(:,1),x(:,2)) axis([xmin,xmax,ymin,ymax]); It first gives the time points 0, dt, 2dt,..., tfinal-dt, tfinal, where dt=tfinal/(points-1). The output x of integration is a matrix where each row is a point on the solution curve. The vector x(1,:) is the first point which is the initial condition x0. The vector x(points,:) is the last point on the solution curve. The point x(j,:) is the point on the solution curve for time t(j). The axis command gives coordinates for corners of the window where the solutions are plotted. Example 2. If we have a = 1, b = c = 0, d = 2 integrating the system in LinFun.m and x0=[1,0] and tfinal=10 and points=11, then x(5,:)=[e 4, 0] and if x0=[2,3] then x(7,:)=[2e 6, 3e 12 ]. Exercise 5. If we have a = 1, b = c = 0, d = 3 and we integrate the system in LinFun.m and tfinal=20 and points=41, what is then the value of t(20) and x(20,:) if x0=[1,-1]? Exercise 6. If we have a = 1, b = 1, c = 1, d = 1 and we integrate the system in LinFun.m and tfinal=10 and points=11, what is then the value of t(9) and x(9,:) if x0=[1,0]? In the following exercises it is useful to do some analysis of the system, calculating zero-isoclines, equilibria and carrying out sign analysis for the right hand sides of the equations, before starting to plot solution curves. Exercise 7. Write a program making a phase portrait for the system in exercise 2. Exercise 8. Write a program making a phase portrait for the system in exercise 3. Exercise 9. Write a program making a phase portrait for the system in exercise 4. Except system given by F (x, y) = (x(4 x 2y), y(6 2x y)) examine also F (x, y) = (x(1 x y), y(6 2x y)). Exercise 10. Write a program making a phase portrait for the system S = βis +ω(1 I S), I = βis γi in the case when β = 6, ω = 1, γ = 4 and in the case when β = 3, ω = 1, γ = 4. All variables and parameters are assumed non-negative. Exercise 11. Write a program making a phase portrait for the Ross system x = r 1 T 1 (1 x)y r 1 x, y = r 2 T 2 (1 y)x r 2 y in the case when r 1 = 0.01, r 2 = 0.1, T 1 = 6, T 2 = 3. Variables x and y are assumed to be in the closed interval from 0 to 1. 6

7 Exercise 12. Write a program making a phase portrait for the system x = ax ( ) 1 x K bxy 1+Ax y = cy + dxy 1+Ax in the cases a = 1, b = 1, c = 1, d = 1, K = 10, A = 0.2 and a = 1, b = 1, c = 1, d = 1, K = 4, A = 0.2 and a = 1, b = 1, c = 1, d = 1, K = 1.1, A = 0.2 and a = 1, b = 1, c = 3, d = 1, K = 1.5, A = 0.5. Variables are assumed non-negative. (2) 7

8 Answers Exercise 1. The function is given by F (x, y) = ( x, x y) The value of LinFun([2,1],4) and LinFun([2,1],5) will both be (-2,1). The function is not time depent as t does not occur in the function expressions. The command LinFun([-2,1],5) will give (2,-3). The command to get the value for (0,2) could be LinFun([0,2],3.5) or LinFun([0,2],-100) or LinFun([0,2],t0) where t0 is any number. Exercise 2. If the file is called BBFun.m a possible text could be function xdot=bbfun(x,t) global p xdot(1)=p*(-x(1)+2*(x(1)^2)+(x(2))^2); xdot(2)=p*(-x(2)+x(2)^2); endfunction Exercise 3. If the function file is called APfun.m a possible text could be function xdot=apfun(x,t) global p xdot(1) = p*(-(1 - x(2))*x(1)); xdot(2) = p*(-(1 - x(1))*x(2)); endfunction Exercise 4. A possible file for initial conditions could be called ecolinit.m and contain the text below. (Here we also give initial values for parametes used for integration and plotting arrows, only the first row is necessary for giving the actual parameters). global a b c d k1 k2 p a=1;b=2;k1=4;k2=6;c=2;d=1;p=1; points=1000;pmid=500; tfinal=200; xmin=0;xmax=1.5;ymin=0;ymax=1; na=30;vv=0.5;xratio=2;jauto=1; jpauto=1; 8

9 The function file could be called ecol.m and contain the text. function xdot=ecol(x,t) global p a b c d k1 k2 xdot(1)=p*x(1)*(k1-a*x(1)-b*x(2)); xdot(2)=p*x(2)*(k2-c*x(1)-d*x(2)); endfunction Exercise 5. The point is x(20,:)=[e 9.5, e 28.5 ] for time t(20)=9.5. Exercise 6. The point is x(9,:)=[e 8 cos 8, e 8 sin 8] for time t(9)=8. The solution has the form (x(t), y(t)) = (e t cos t, e t sin t). Exercise 7. Example programs are in folder BBpp Exercise 8. Example programs are in folder APpp Exercise 9. Example programs are in folder predprey Exercise 10. Example programs are in folder sir Exercise 11. Example programs are in folder ross Exercise 12. Example programs are in folder oros 9

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7 Warm-Up Exercises Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; 3 2. y = 2x + 7 7 2 ANSWER ; 7 Chapter 1.1 Graph Quadratic Functions in Standard Form A quadratic function is a function that

More information

UNIT 5 QUADRATIC FUNCTIONS Lesson 6: Analyzing Quadratic Functions Instruction

UNIT 5 QUADRATIC FUNCTIONS Lesson 6: Analyzing Quadratic Functions Instruction Prerequisite Skills This lesson requires the use of the following skills: factoring quadratic expressions finding the vertex of a quadratic function Introduction We have studied the key features of the

More information

Unit: Quadratic Functions

Unit: Quadratic Functions Unit: Quadratic Functions Learning increases when you have a goal to work towards. Use this checklist as guide to track how well you are grasping the material. In the center column, rate your understand

More information

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives. D Graphics Primitives Eye sees Displays - CRT/LCD Frame buffer - Addressable pixel array (D) Graphics processor s main function is to map application model (D) by projection on to D primitives: points,

More information

NEW CONCEPTS LEARNED IN THIS LESSON INCLUDE: Fundamental Theorem of Algebra

NEW CONCEPTS LEARNED IN THIS LESSON INCLUDE: Fundamental Theorem of Algebra 2.5. Graphs of polynomial functions. In the following lesson you will learn to sketch graphs by understanding what controls their behavior. More precise graphs will be developed in the next two lessons

More information

First of all, we need to know what it means for a parameterize curve to be differentiable. FACT:

First of all, we need to know what it means for a parameterize curve to be differentiable. FACT: CALCULUS WITH PARAMETERIZED CURVES In calculus I we learned how to differentiate and integrate functions. In the chapter covering the applications of the integral, we learned how to find the length of

More information

while its direction is given by the right hand rule: point fingers of the right hand in a 1 a 2 a 3 b 1 b 2 b 3 A B = det i j k

while its direction is given by the right hand rule: point fingers of the right hand in a 1 a 2 a 3 b 1 b 2 b 3 A B = det i j k I.f Tangent Planes and Normal Lines Again we begin by: Recall: (1) Given two vectors A = a 1 i + a 2 j + a 3 k, B = b 1 i + b 2 j + b 3 k then A B is a vector perpendicular to both A and B. Then length

More information

1.1 Graphing Quadratic Functions (p. 2) Definitions Standard form of quad. function Steps for graphing Minimums and maximums

1.1 Graphing Quadratic Functions (p. 2) Definitions Standard form of quad. function Steps for graphing Minimums and maximums 1.1 Graphing Quadratic Functions (p. 2) Definitions Standard form of quad. function Steps for graphing Minimums and maximums Quadratic Function A function of the form y=ax 2 +bx+c where a 0 making a u-shaped

More information

6 Using Technology Wisely

6 Using Technology Wisely 6 Using Technology Wisely Concepts: Advantages and Disadvantages of Graphing Calculators How Do Calculators Sketch Graphs? When Do Calculators Produce Incorrect Graphs? The Greatest Integer Function Graphing

More information

FUNCTIONS AND MODELS

FUNCTIONS AND MODELS 1 FUNCTIONS AND MODELS FUNCTIONS AND MODELS In this section, we assume that you have access to a graphing calculator or a computer with graphing software. FUNCTIONS AND MODELS 1.4 Graphing Calculators

More information

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving The Bisection Method and Newton s Method. If f( x ) a function, then a number r for which f( r) 0 is called a zero or a root of the function f( x ), or a solution to the equation f( x) 0. You are already

More information

Box It Up (A Graphical Look)

Box It Up (A Graphical Look) . Name Date A c t i v i t y 1 0 Box It Up (A Graphical Look) The Problem Ms. Hawkins, the physical sciences teacher at Hinthe Middle School, needs several open-topped boxes for storing laboratory materials.

More information

GRAPHING WORKSHOP. A graph of an equation is an illustration of a set of points whose coordinates satisfy the equation.

GRAPHING WORKSHOP. A graph of an equation is an illustration of a set of points whose coordinates satisfy the equation. GRAPHING WORKSHOP A graph of an equation is an illustration of a set of points whose coordinates satisfy the equation. The figure below shows a straight line drawn through the three points (2, 3), (-3,-2),

More information

Years after US Student to Teacher Ratio

Years after US Student to Teacher Ratio The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. The

More information

,!7IA3C1-cjfcei!:t;K;k;K;k ISBN Graphing Calculator Reference Card. Addison-Wesley s. Basics. Created in conjuction with

,!7IA3C1-cjfcei!:t;K;k;K;k ISBN Graphing Calculator Reference Card. Addison-Wesley s. Basics. Created in conjuction with Addison-Wesley s Graphing Calculator Reference Card Created in conjuction with Basics Converting Fractions to Decimals The calculator will automatically convert a fraction to a decimal. Type in a fraction,

More information

Section 4.4: Parabolas

Section 4.4: Parabolas Objective: Graph parabolas using the vertex, x-intercepts, and y-intercept. Just as the graph of a linear equation y mx b can be drawn, the graph of a quadratic equation y ax bx c can be drawn. The graph

More information

We begin this section with a question. What do the roots of a polynomial have to do with its graph?

We begin this section with a question. What do the roots of a polynomial have to do with its graph? Section I: Polynomials Chapter 5 Graphing We begin this section with a question. What do the roots of a polynomial have to do with its graph? The graph package on the TI-85 is accessed via GRAPH from the

More information

Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives

Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives In general, if f is a function of two variables x and y, suppose we let only x vary while keeping y fixed, say y = b, where b is a constant. By the definition of a derivative, we have Then we are really

More information

Lecture 15. Lecturer: Prof. Sergei Fedotov Calculus and Vectors. Length of a Curve and Parametric Equations

Lecture 15. Lecturer: Prof. Sergei Fedotov Calculus and Vectors. Length of a Curve and Parametric Equations Lecture 15 Lecturer: Prof. Sergei Fedotov 10131 - Calculus and Vectors Length of a Curve and Parametric Equations Sergei Fedotov (University of Manchester) MATH10131 2011 1 / 5 Lecture 15 1 Length of a

More information

Linear and quadratic Taylor polynomials for functions of several variables.

Linear and quadratic Taylor polynomials for functions of several variables. ams/econ 11b supplementary notes ucsc Linear quadratic Taylor polynomials for functions of several variables. c 016, Yonatan Katznelson Finding the extreme (minimum or maximum) values of a function, is

More information

Basic Graphing on TI 83 / 84

Basic Graphing on TI 83 / 84 Basic Graphing on TI 83 / 84 A graphing calculator can, of course, graph but only from an equation in function form. That means each equation must be solved for "y". The first activity is to practice solving

More information

2nd Year Computational Physics Week 1 (experienced): Series, sequences & matrices

2nd Year Computational Physics Week 1 (experienced): Series, sequences & matrices 2nd Year Computational Physics Week 1 (experienced): Series, sequences & matrices 1 Last compiled September 28, 2017 2 Contents 1 Introduction 5 2 Prelab Questions 6 3 Quick check of your skills 9 3.1

More information

Background for Surface Integration

Background for Surface Integration Background for urface Integration 1 urface Integrals We have seen in previous work how to define and compute line integrals in R 2. You should remember the basic surface integrals that we will need to

More information

Total Number of Students in US (millions)

Total Number of Students in US (millions) The goal of this technology assignment is to graph a formula on your calculator and in Excel. This assignment assumes that you have a TI 84 or similar calculator and are using Excel 2007. The formula you

More information

In this activity, students will graph the relationship between the length of the sides of cut-out squares and the volume of the resulting box.

In this activity, students will graph the relationship between the length of the sides of cut-out squares and the volume of the resulting box. Box It Up (A Graphical Approach) ID: 4647 Time required 45 minutes Activity Overview In this activity, students will graph the relationship between the length of the sides of cut-out squares and the volume

More information

Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ x + 5y + 7z 9x + 3y + 11z

Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ x + 5y + 7z 9x + 3y + 11z Basic Linear Algebra Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ 1 5 ] 7 9 3 11 Often matrices are used to describe in a simpler way a series of linear equations.

More information

Foundations of Math II

Foundations of Math II Foundations of Math II Unit 6b: Toolkit Functions Academics High School Mathematics 6.6 Warm Up: Review Graphing Linear, Exponential, and Quadratic Functions 2 6.6 Lesson Handout: Linear, Exponential,

More information

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is 1. Let f(x, y) = 5 + 3x 2 + 3y 2 + 2y 3 + x 3. (a) Final all critical points of f. (b) Use the second derivatives test to classify the critical points you found in (a) as a local maximum, local minimum,

More information

Calculator Basics TI-83, TI-83 +, TI-84. Index Page

Calculator Basics TI-83, TI-83 +, TI-84. Index Page Calculator Basics TI-83, TI-83 +, TI-84 Index Page Getting Started Page 1 Graphing Page 2 Evaluating Functions page 4 Minimum and Maximum Values Page 5 Table of Values Page 6 Graphing Scatter Plots Page

More information

Organizing and Summarizing Data

Organizing and Summarizing Data Section 2.2 9 Organizing and Summarizing Data Section 2.2 C H A P T E R 2 4 Example 2 (pg. 72) A Histogram for Discrete Data To create a histogram, you have two choices: 1): enter all the individual data

More information

Image Differentiation

Image Differentiation Image Differentiation Carlo Tomasi September 4, 207 Many image operations, including edge detection and motion analysis in video, require computing the derivatives of image intensity with respect to the

More information

5.1 Introduction to the Graphs of Polynomials

5.1 Introduction to the Graphs of Polynomials Math 3201 5.1 Introduction to the Graphs of Polynomials In Math 1201/2201, we examined three types of polynomial functions: Constant Function - horizontal line such as y = 2 Linear Function - sloped line,

More information

Daily WeBWorK, #1. This means the two planes normal vectors must be multiples of each other.

Daily WeBWorK, #1. This means the two planes normal vectors must be multiples of each other. Daily WeBWorK, #1 Consider the ellipsoid x 2 + 3y 2 + z 2 = 11. Find all the points where the tangent plane to this ellipsoid is parallel to the plane 2x + 3y + 2z = 0. In order for the plane tangent to

More information

Graphics and Interaction Transformation geometry and homogeneous coordinates

Graphics and Interaction Transformation geometry and homogeneous coordinates 433-324 Graphics and Interaction Transformation geometry and homogeneous coordinates Department of Computer Science and Software Engineering The Lecture outline Introduction Vectors and matrices Translation

More information

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates Department of Computer Science and Software Engineering The Lecture outline Introduction Vectors and matrices Translation

More information

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Spring 2007 PLOTTING LINE SEGMENTS Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Example 1: Suppose you wish to use MatLab to plot a line segment connecting two points in the xy-plane. Recall that

More information

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle. Algebra I Chapter 4 Notes Name Sec 4.1 Coordinates and Scatter Plots Coordinate Plane: Formed by two real number lines that intersect at a right angle. X-axis: The horizontal axis Y-axis: The vertical

More information

Time series plots and phase plane plots Graphics

Time series plots and phase plane plots Graphics Time series plots and phase plane plots Graphics Feb. 4, 2009 Graphics for Scientific/Technical Computation Line Plots Contour Plots Surface Plots What type of plots do we want?... - Time series plots

More information

Lines and Circles Guided Practice: Teacher Instructions

Lines and Circles Guided Practice: Teacher Instructions Lines and Circles Guided Practice: Teacher Instructions Overview 1. Together, as a class, go through the Lines and Circles Guided Practice (exercises 1-22) described below. 2. Then have student teams conduct

More information

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc. Chapter 1 Linear Equations and Straight Lines 2 of 71 Outline 1.1 Coordinate Systems and Graphs 1.4 The Slope of a Straight Line 1.3 The Intersection Point of a Pair of Lines 1.2 Linear Inequalities 1.5

More information

Section Graphs of the Sine and Cosine Functions

Section Graphs of the Sine and Cosine Functions Section 5. - Graphs of the Sine and Cosine Functions In this section, we will graph the basic sine function and the basic cosine function and then graph other sine and cosine functions using transformations.

More information

Lesson 6 - Practice Problems

Lesson 6 - Practice Problems Lesson 6 - Practice Problems Section 6.1: Characteristics of Quadratic Functions 1. For each of the following quadratic functions: Identify the coefficients a, b and c. Determine if the parabola opens

More information

Vertical and Horizontal Translations

Vertical and Horizontal Translations SECTION 4.3 Vertical and Horizontal Translations Copyright Cengage Learning. All rights reserved. Learning Objectives 1 2 3 4 Find the vertical translation of a sine or cosine function. Find the horizontal

More information

Tips to Save Typing, etc.

Tips to Save Typing, etc. MATH 110 Dr. Stoudt Using Your TI-89/Voyage 200 Guidebooks for all Texas Instruments calculators can be downloaded (in Adobe PDF format) from http://education.ti.com/en/us/guidebook/search Just search

More information

Digital Differential Analyzer Bresenhams Line Drawing Algorithm

Digital Differential Analyzer Bresenhams Line Drawing Algorithm Bresenham s Line Generation The Bresenham algorithm is another incremental scan conversion algorithm. The big advantage of this algorithm is that, it uses only integer calculations. Difference Between

More information

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002 Math 13 Calculus III Practice Exam Solutions Fall 00 1. Let g(x, y, z) = e (x+y) + z (x + y). (a) What is the instantaneous rate of change of g at the point (,, 1) in the direction of the origin? We want

More information

Graphing with a Graphing Calculator

Graphing with a Graphing Calculator APPENDIX C Graphing with a Graphing Calculator A graphing calculator is a powerful tool for graphing equations and functions. In this appendix we give general guidelines to follow and common pitfalls to

More information

Vocabulary Unit 2-3: Linear Functions & Healthy Lifestyles. Scale model a three dimensional model that is similar to a three dimensional object.

Vocabulary Unit 2-3: Linear Functions & Healthy Lifestyles. Scale model a three dimensional model that is similar to a three dimensional object. Scale a scale is the ratio of any length in a scale drawing to the corresponding actual length. The lengths may be in different units. Scale drawing a drawing that is similar to an actual object or place.

More information

CS 130. Scan Conversion. Raster Graphics

CS 130. Scan Conversion. Raster Graphics CS 130 Scan Conversion Raster Graphics 2 1 Image Formation Computer graphics forms images, generally two dimensional, using processes analogous to physical imaging systems like: - Cameras - Human visual

More information

David Appleyard Department of Mathematics and Computer Science Carleton College North eld, Minnesota 55057

David Appleyard Department of Mathematics and Computer Science Carleton College North eld, Minnesota 55057 David Appleyard Department of Mathematics and Computer Science Carleton College North eld, Minnesota 55057 After turning your calculator on, press F1 then 8 to clear the home screen. #1. Find lim ³1+ x

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

= w. w u. u ; u + w. x x. z z. y y. v + w. . Remark. The formula stated above is very important in the theory of. surface integral.

= w. w u. u ; u + w. x x. z z. y y. v + w. . Remark. The formula stated above is very important in the theory of. surface integral. 1 Chain rules 2 Directional derivative 3 Gradient Vector Field 4 Most Rapid Increase 5 Implicit Function Theorem, Implicit Differentiation 6 Lagrange Multiplier 7 Second Derivative Test Theorem Suppose

More information

MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations)

MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) MATLAB sessions: Laboratory 3 1 MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) In this session we look at basic numerical methods to help us understand

More information

MEI Casio Tasks for A2 Core

MEI Casio Tasks for A2 Core Task 1: Functions The Modulus Function The modulus function, abs(x), is found using OPTN > NUMERIC > Abs 2. Add the graph y = x, Y1=Abs(x): iyqfl 3. Add the graph y = ax+b, Y2=Abs(Ax+B): iyqaff+agl 4.

More information

Classes 7-8 (4 hours). Graphics in Matlab.

Classes 7-8 (4 hours). Graphics in Matlab. Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.

More information

Using a Scientific Calculator

Using a Scientific Calculator Using a Scientific Calculator Hardware on the TI-89 How much memory does the TI 89 have? The TI-89 has 188k of RAM and 384k of memory that can be used for archiving programs, making a total memory of 572k

More information

An introduction to interpolation and splines

An introduction to interpolation and splines An introduction to interpolation and splines Kenneth H. Carpenter, EECE KSU November 22, 1999 revised November 20, 2001, April 24, 2002, April 14, 2004 1 Introduction Suppose one wishes to draw a curve

More information

Setting a Window - Finding One That Works. You can enter the dimensions of the graph by accessing button you will see a window like the one below.

Setting a Window - Finding One That Works. You can enter the dimensions of the graph by accessing button you will see a window like the one below. A. Overview 1. WINDOW Setting a Window - Finding One That Works You can enter the dimensions of the graph by accessing button you will see a window like the one below.. When you use this The Xmin and Xmax

More information

NOTES Linear Equations

NOTES Linear Equations NOTES Linear Equations Linear Parent Function Linear Parent Function the equation that all other linear equations are based upon (y = x) Horizontal and Vertical Lines (HOYY VUXX) V vertical line H horizontal

More information

Partial Derivatives (Online)

Partial Derivatives (Online) 7in x 10in Felder c04_online.tex V3 - January 21, 2015 9:44 A.M. Page 1 CHAPTER 4 Partial Derivatives (Online) 4.7 Tangent Plane Approximations and Power Series It is often helpful to use a linear approximation

More information

Unit 4 Graphs of Trigonometric Functions - Classwork

Unit 4 Graphs of Trigonometric Functions - Classwork Unit Graphs of Trigonometric Functions - Classwork For each of the angles below, calculate the values of sin x and cos x ( decimal places) on the chart and graph the points on the graph below. x 0 o 30

More information

MATH 2400: CALCULUS 3 MAY 9, 2007 FINAL EXAM

MATH 2400: CALCULUS 3 MAY 9, 2007 FINAL EXAM MATH 4: CALCULUS 3 MAY 9, 7 FINAL EXAM I have neither given nor received aid on this exam. Name: 1 E. Kim................ (9am) E. Angel.............(1am) 3 I. Mishev............ (11am) 4 M. Daniel...........

More information

Algebra. Chapter 4: FUNCTIONS. Name: Teacher: Pd:

Algebra. Chapter 4: FUNCTIONS. Name: Teacher: Pd: Algebra Chapter 4: FUNCTIONS Name: Teacher: Pd: Table of Contents Day1: Chapter 4-1: Relations SWBAT: (1) Identify the domain and range of relations and functions (2) Match simple graphs with situations

More information

Quadratic Functions. *These are all examples of polynomial functions.

Quadratic Functions. *These are all examples of polynomial functions. Look at: f(x) = 4x-7 f(x) = 3 f(x) = x 2 + 4 Quadratic Functions *These are all examples of polynomial functions. Definition: Let n be a nonnegative integer and let a n, a n 1,..., a 2, a 1, a 0 be real

More information

Changing Variables in Multiple Integrals

Changing Variables in Multiple Integrals Changing Variables in Multiple Integrals 3. Examples and comments; putting in limits. If we write the change of variable formula as (x, y) (8) f(x, y)dx dy = g(u, v) dudv, (u, v) where (x, y) x u x v (9)

More information

Not for reproduction

Not for reproduction x=a GRAPHING CALCULATORS AND COMPUTERS (a, d ) y=d (b, d ) (a, c ) y=c (b, c) (a) _, by _, 4 x=b FIGURE 1 The viewing rectangle a, b by c, d _4 4 In this section we assume that you have access to a graphing

More information

We start by looking at a double cone. Think of this as two pointy ice cream cones that are connected at the small tips:

We start by looking at a double cone. Think of this as two pointy ice cream cones that are connected at the small tips: Math 1330 Conic Sections In this chapter, we will study conic sections (or conics). It is helpful to know exactly what a conic section is. This topic is covered in Chapter 8 of the online text. We start

More information

BME 5742 Bio-Systems Modeling and Control

BME 5742 Bio-Systems Modeling and Control BME 5742 Bio-Systems Modeling and Control Lecture 4 Simulink Tutorial 1: Simulation of the Malthusian and Logistic Models Model Set Up, Scope Set Up Dr. Zvi Roth (FAU) 1 Getting started In the MATLAB command

More information

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR FOM 11 T15 INTERSECTIONS & OPTIMIZATION PROBLEMS - 1 1 MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED 1) INTERSECTION = a set of coordinates of the point on the grid where two or more graphed lines touch

More information

Lesson 8 - Practice Problems

Lesson 8 - Practice Problems Lesson 8 - Practice Problems Section 8.1: A Case for the Quadratic Formula 1. For each quadratic equation below, show a graph in the space provided and circle the number and type of solution(s) to that

More information

Lesson 8 Introduction to Quadratic Functions

Lesson 8 Introduction to Quadratic Functions Lesson 8 Introduction to Quadratic Functions We are leaving exponential and logarithmic functions behind and entering an entirely different world. As you work through this lesson, you will learn to identify

More information

Local Linearity (Tangent Plane) Unit #19 : Functions of Many Variables, and Vectors in R 2 and R 3

Local Linearity (Tangent Plane) Unit #19 : Functions of Many Variables, and Vectors in R 2 and R 3 Local Linearity and the Tangent Plane - 1 Unit #19 : Functions of Many Variables, and Vectors in R 2 and R 3 Goals: To introduce tangent planes for functions of two variables. To consider functions of

More information

Parametric and Polar Curves

Parametric and Polar Curves Chapter 2 Parametric and Polar Curves 2.1 Parametric Equations; Tangent Lines and Arc Length for Parametric Curves Parametric Equations So far we ve described a curve by giving an equation that the coordinates

More information

521493S Computer Graphics Exercise 1 (Chapters 1-3)

521493S Computer Graphics Exercise 1 (Chapters 1-3) 521493S Computer Graphics Exercise 1 (Chapters 1-3) 1. Consider the clipping of a line segment defined by the latter s two endpoints (x 1, y 1 ) and (x 2, y 2 ) in two dimensions against a rectangular

More information

8-1 Simple Trigonometric Equations. Objective: To solve simple Trigonometric Equations and apply them

8-1 Simple Trigonometric Equations. Objective: To solve simple Trigonometric Equations and apply them Warm Up Use your knowledge of UC to find at least one value for q. 1) sin θ = 1 2 2) cos θ = 3 2 3) tan θ = 1 State as many angles as you can that are referenced by each: 1) 30 2) π 3 3) 0.65 radians Useful

More information

Minima, Maxima, Saddle points

Minima, Maxima, Saddle points Minima, Maxima, Saddle points Levent Kandiller Industrial Engineering Department Çankaya University, Turkey Minima, Maxima, Saddle points p./9 Scalar Functions Let us remember the properties for maxima,

More information

Getting Started with the TI-83/TI-84 Plus Family of Calculators

Getting Started with the TI-83/TI-84 Plus Family of Calculators Appendix C Getting Started with the TI-83/TI-84 Plus Family of Calculators ON-OFF To turn on the calculator, press the ON key. To turn off the calculator, press 2nd and then ON. Most keys on the calculator

More information

Section 6.1: Quadratic Functions and their Characteristics Vertical Intercept Vertex Axis of Symmetry Domain and Range Horizontal Intercepts

Section 6.1: Quadratic Functions and their Characteristics Vertical Intercept Vertex Axis of Symmetry Domain and Range Horizontal Intercepts Lesson 6 Quadratic Functions and Equations Lesson 6 Quadratic Functions and Equations We are leaving exponential functions behind and entering an entirely different world. As you work through this lesson,

More information

Topic 5.1: Line Elements and Scalar Line Integrals. Textbook: Section 16.2

Topic 5.1: Line Elements and Scalar Line Integrals. Textbook: Section 16.2 Topic 5.1: Line Elements and Scalar Line Integrals Textbook: Section 16.2 Warm-Up: Derivatives of Vector Functions Suppose r(t) = x(t) î + y(t) ĵ + z(t) ˆk parameterizes a curve C. The vector: is: r (t)

More information

Massachusetts Institute of Technology. Department of Computer Science and Electrical Engineering /6.866 Machine Vision Quiz I

Massachusetts Institute of Technology. Department of Computer Science and Electrical Engineering /6.866 Machine Vision Quiz I Massachusetts Institute of Technology Department of Computer Science and Electrical Engineering 6.801/6.866 Machine Vision Quiz I Handed out: 2004 Oct. 21st Due on: 2003 Oct. 28th Problem 1: Uniform reflecting

More information

Friday, 11 January 13. Interpolation

Friday, 11 January 13. Interpolation Interpolation Interpolation Interpolation is not a branch of mathematic but a collection of techniques useful for solving computer graphics problems Basically an interpolant is a way of changing one number

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are

More information

Parametric and Polar Curves

Parametric and Polar Curves Chapter 2 Parametric and Polar Curves 2.1 Parametric Equations; Tangent Lines and Arc Length for Parametric Curves Parametric Equations So far we ve described a curve by giving an equation that the coordinates

More information

MATH2071: LAB 2: Explicit ODE methods

MATH2071: LAB 2: Explicit ODE methods MATH2071: LAB 2: Explicit ODE methods 1 Introduction Introduction Exercise 1 Euler s method review Exercise 2 The Euler Halfstep (RK2) Method Exercise 3 Runge-Kutta Methods Exercise 4 The Midpoint Method

More information

Parametric and Polar Curves

Parametric and Polar Curves Chapter 2 Parametric and Polar Curves 2.1 Parametric Equations; Tangent Lines and Arc Length for Parametric Curves Parametric Equations So far we ve described a curve by giving an equation that the coordinates

More information

Mathematics for chemical engineers

Mathematics for chemical engineers Mathematics for chemical engineers Drahoslava Janovská Department of mathematics Winter semester 2013-2014 Numerical solution of ordinary differential equations Initial value problem Outline 1 Introduction

More information

. 1. Chain rules. Directional derivative. Gradient Vector Field. Most Rapid Increase. Implicit Function Theorem, Implicit Differentiation

. 1. Chain rules. Directional derivative. Gradient Vector Field. Most Rapid Increase. Implicit Function Theorem, Implicit Differentiation 1 Chain rules 2 Directional derivative 3 Gradient Vector Field 4 Most Rapid Increase 5 Implicit Function Theorem, Implicit Differentiation 6 Lagrange Multiplier 7 Second Derivative Test Theorem Suppose

More information

Math Exam III Review

Math Exam III Review Math 213 - Exam III Review Peter A. Perry University of Kentucky April 10, 2019 Homework Exam III is tonight at 5 PM Exam III will cover 15.1 15.3, 15.6 15.9, 16.1 16.2, and identifying conservative vector

More information

1.1 Functions. Cartesian Coordinate System

1.1 Functions. Cartesian Coordinate System 1.1 Functions This section deals with the topic of functions, one of the most important topics in all of mathematics. Let s discuss the idea of the Cartesian coordinate system first. Cartesian Coordinate

More information

Microsoft Excel. Charts

Microsoft Excel. Charts Microsoft Excel Charts Chart Wizard To create a chart in Microsoft Excel, select the data you wish to graph or place yourself with in the conjoining data set and choose Chart from the Insert menu, or click

More information

Basic Graphs of the Sine and Cosine Functions

Basic Graphs of the Sine and Cosine Functions Chapter 4: Graphs of the Circular Functions 1 TRIG-Fall 2011-Jordan Trigonometry, 9 th edition, Lial/Hornsby/Schneider, Pearson, 2009 Section 4.1 Graphs of the Sine and Cosine Functions Basic Graphs of

More information

Computers in Engineering Root Finding Michael A. Hawker

Computers in Engineering Root Finding Michael A. Hawker Computers in Engineering COMP 208 Root Finding Michael A. Hawker Root Finding Many applications involve finding the roots of a function f(x). That is, we want to find a value or values for x such that

More information

7.3 3-D Notes Honors Precalculus Date: Adapted from 11.1 & 11.4

7.3 3-D Notes Honors Precalculus Date: Adapted from 11.1 & 11.4 73 3-D Notes Honors Precalculus Date: Adapted from 111 & 114 The Three-Variable Coordinate System I Cartesian Plane The familiar xy-coordinate system is used to represent pairs of numbers (ordered pairs

More information

Introduction to Simulink

Introduction to Simulink Introduction to Simulink There are several computer packages for finding solutions of differential equations, such as Maple, Mathematica, Maxima, MATLAB, etc. These systems provide both symbolic and numeric

More information

2D Image Synthesis. 2D image synthesis. Raster graphics systems. Modeling transformation. Vectorization. u x u y 0. o x o y 1

2D Image Synthesis. 2D image synthesis. Raster graphics systems. Modeling transformation. Vectorization. u x u y 0. o x o y 1 General scheme of a 2D CG application 2D Image Synthesis Balázs Csébfalvi modeling image synthesis Virtual world model world defined in a 2D plane Department of Control Engineering and Information Technology

More information

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs In this technology assignment, you will find a quadratic function that passes through three of the points on each of the scatter plots you created in an earlier technology assignment. You will need the

More information

MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations)

MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) In this session we look at basic numerical methods to help us understand the fundamentals of numerical approximations.

More information

INTRODUCTION TO LINE INTEGRALS

INTRODUCTION TO LINE INTEGRALS INTRODUTION TO LINE INTEGRALS PROF. MIHAEL VANVALKENBURGH Last week we discussed triple integrals. This week we will study a new topic of great importance in mathematics and physics: line integrals. 1.

More information

Math 5BI: Problem Set 2 The Chain Rule

Math 5BI: Problem Set 2 The Chain Rule Math 5BI: Problem Set 2 The Chain Rule April 5, 2010 A Functions of two variables Suppose that γ(t) = (x(t), y(t), z(t)) is a differentiable parametrized curve in R 3 which lies on the surface S defined

More information

Chapter 6 Some Applications of the Integral

Chapter 6 Some Applications of the Integral Chapter 6 Some Applications of the Integral More on Area More on Area Integrating the vertical separation gives Riemann Sums of the form More on Area Example Find the area A of the set shaded in Figure

More information