dt 2 The Order of a differential equation is the order of the highest derivative that occurs in the equation. Example The differential equation

Similar documents
Derivation of Euler's Method - Numerical Methods for Solving Differential Equations

1.2. Direction Fields: Graphical Representation of the ODE and its Solution Let us consider a first order differential equation of the form dy

Final Exam Review Part I: Unit IV Material

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point,

Math 266: Ordinary Differential Equations

Math 122 Fall Handout 11: Summary of Euler s Method, Slope Fields and Symbolic Solutions of Differential Equations

The Princeton Review AP Calculus BC Practice Test 2

Unit #16 : Differential Equations

2.12: Derivatives of Exp/Log (cont d) and 2.15: Antiderivatives and Initial Value Problems

Sample Questions, Exam 1 Math 244 Spring 2007

Math 225 Differential Equations Notes Chapter 1

Solutions: Homework 8

Solving Differential Equations: First Steps

9.1 Solving Differential Equations

0.1 Solution by Inspection

MA 102 Mathematics II Lecture Feb, 2015

The acceleration of gravity is constant (near the surface of the earth). So, for falling objects:

2.1 Differential Equations and Solutions. Blerina Xhabli

DIFFERENTIAL EQUATIONS

Section 11.1 What is a Differential Equation?

APPLICATIONS OF DIFFERENTIATION

2015 Math Camp Calculus Exam Solution

Solutions to the Review Questions

1,3. f x x f x x. Lim. Lim. Lim. Lim Lim. y 13x b b 10 b So the equation of the tangent line is y 13x

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. 2) h(x) = x2-5x + 5

Test 2 Review Math 1111 College Algebra

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Limits at Infinity. Horizontal Asymptotes. Definition (Limits at Infinity) Horizontal Asymptotes

6x 2 8x + 5 ) = 12x 8

AP Calculus 2004 AB FRQ Solutions

Euler s Method (BC Only)

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE BENG (HONS) CIVIL ENGINEERING SEMESTER TWO EXAMINATION 2015/2016

Introduction to First Order Equations Sections

MATH 1231 MATHEMATICS 1B Calculus Section 3A: - First order ODEs.

Mth Review Problems for Test 2 Stewart 8e Chapter 3. For Test #2 study these problems, the examples in your notes, and the homework.

Math 1071 Final Review Sheet The following are some review questions to help you study. They do not


Math 308, Sections 301, 302, Summer 2008 Review before Test I 06/09/2008

This practice exam is intended to help you prepare for the final exam for MTH 142 Calculus II.

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

4 The Cartesian Coordinate System- Pictures of Equations

Target 6.1 The student will be able to use l Hôpital s Rule to evaluate indeterminate limits. lim. lim. 0, then

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method)

Problem # Max points possible Actual score Total 100

Basic Theory of Differential Equations

Math Applied Differential Equations

Solution: APPM 1350 Final Exam Spring 2014

MTH 254, Fall Term 2010 Test 2 No calculator Portion Given: November 3, = xe. (4 points) + = + at the point ( 2, 1, 3) 1.

University of Toronto MAT137Y1 Calculus! Test 2 1 December 2017 Time: 110 minutes

Solutions to the Review Questions

2016 SPECIALIST MATHEMATICS

= first derivative evaluated at that point: ( )

Distance. Warm Ups. Learning Objectives I can find the distance between two points. Football Problem: Bailey. Watson

y2 + 4y - 5 c a + b 27 i C) ) (16, ) B) (16 3 3, )

STEP Support Programme. Pure STEP 1 Questions

Slope Fields and Differential Equations. Copyright Cengage Learning. All rights reserved.

CHAPTER 7. An Introduction to Numerical Methods for. Linear and Nonlinear ODE s

CHAPTER ONE FUNCTIONS AND GRAPHS. In everyday life, many quantities depend on one or more changing variables eg:

Section Differential Equations: Modeling, Slope Fields, and Euler s Method

ENGR 213: Applied Ordinary Differential Equations

Suppose that f is continuous on [a, b] and differentiable on (a, b). Then

10. e tan 1 (y) 11. sin 3 x

Exam Two. Phu Vu. test Two. Take home group test April 13 ~ April 18. Your group alias: Your group members: Student name

AP Calculus Testbank (Chapter 6) (Mr. Surowski)

Example (#1) Example (#1) Example (#2) Example (#2) dv dt

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

Math 16A Second Midterm 6 Nov NAME (1 pt): Name of Neighbor to your left (1 pt): Name of Neighbor to your right (1 pt):

Practice Final Exam Solutions

These will be no tutorials for Math on Tuesday April 26.

University of Connecticut Department of Mathematics

First-Order Differential Equations

When using interval notation use instead of open circles, and use instead of solid dots.

These will be no tutorials for Math on Tuesday April 26.

Learning Objectives for Math 165

y 2y = 4 x, Name Form Solution method

Differential Equations

Solutions to Math 53 First Exam April 20, 2010

AB CALCULUS SEMESTER A REVIEW Show all work on separate paper. (b) lim. lim. (f) x a. for each of the following functions: (b) y = 3x 4 x + 2

1 + x 2 d dx (sec 1 x) =

Calculus II Practice Test Questions for Chapter , 9.6, Page 1 of 9

Solving differential equations (Sect. 7.4) Review: Overview of differential equations.

Week 1: need to know. November 14, / 20

Section 1.4 Circles. Objective #1: Writing the Equation of a Circle in Standard Form.

Math 180, Exam 2, Practice Fall 2009 Problem 1 Solution. f(x) = arcsin(2x + 1) = sin 1 (3x + 1), lnx

2. (12 points) Find an equation for the line tangent to the graph of f(x) =

Applied Calculus. Review Problems for the Final Exam

MAC 2311 Calculus I Spring 2004

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

Section 4.2: The Mean Value Theorem

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Math 115 Spring 11 Written Homework 10 Solutions

MATH 408N PRACTICE MIDTERM 1

MA 125 CALCULUS I FALL 2006 December 08, 2006 FINAL EXAM. Name (Print last name first):... Instructor:... Section:... PART I

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method)

PHY321 Homework Set 2

Practice Midterm 1 Solutions Written by Victoria Kala July 10, 2017

VANDERBILT UNIVERSITY. MATH 2300 MULTIVARIABLE CALCULUS Practice Test 1 Solutions

Transcription:

Lecture 18 : Direction Fields and Euler s Method A Differential Equation is an equation relating an unknown function and one or more of its derivatives. Examples Population growth : dp dp = kp, or = kp (1 P ). K Motion of a spring with a mass m attached: m d x = kx. Body of mass m falling under the action of gravity g encounters air resistance. The velocity of the falling body at time t satisfies the equation : m dv(t) = mg k[v(t)]. General Examples y = x y, y = yx, y + xy = x. The Order of a differential equation is the order of the highest derivative that occurs in the equation. Example The differential equation The differential equation dv(t) d x = 10x has order = 10[v(t)] has order A function y = f(x) is a solution of a differential equation if the equation is satisfied when y = f(x) and its appropriate derivatives are substituted into the equation. Example Match the following differential equations with their solutions: Equation Solution dp = P y = x 1 y = x y y = ln 1 + e x y = ex P (t) = 10e t 1+e x y = x 1 + 1 e x When asked to Solve a differential equation we aim to find all possible solutions. Our solution will be a family of functions. A General Solution is a solution involving constants which can be specialized to give any particular solution. Example The general solutions to the differential equations given above are Equation General Solution dp = P P (t) = Ke t y = x y y = x 1 + C e x y = ex y = ln 1 + e x + C 1+e x Example For the differential equation dy dx = ex 1 + e x, 1

we can find the general solution using methods of integration. (we will solve the others using the methods of separable equations and Linear First order equations.) The graph below shows a sketch of some solutions from the family of solutions : 10 8 0, ln 10 10 Note that only one of these solution curves passes through the point (0, ln ), i.e. satisfies the requirement y(0) = ln. An Initial Value Problem asks for a specific solution to a differential equation satisfying an initial condition of the form y(t 0 ) = y 0. Example Problem: Using the general solution given above, find a solution to the initial value problem y = x y with the property that y(0) = 0. (At the end of this lecture, we give an approximate numerical solution to this problem using Euler s method. ) There are many techniques for solving differential equations which you will study in a course on differential equations. In this course, we will look at a numerical method for approximating a specific solution to a differential equation, Euler s method, two methods to solve specific types of first order equations and a method for second order linear equations with constant coefficients. If you take a course on linear algebra and differential equations, you will learn methods to help solve equations of higher order. If we have a differential equation of the type Direction Fields y = F (x, y) where F (x, y) is an expression in x and y only, then the slope of a solution curve at a point (x, y) is F (x, y). We can use the formula to calculate the slopes of the graphs of the solutions of the differential equation that pass through particular points on the plane. We can draw a picture of these slopes by drawing a small line (or arrow )indicating the direction of the curve at each point we have considered. Example Consider the equation y = y x. The graph of any solution to this differential equation passing through the point (x, y) = (, 1) has slope. The graph of any solution to this differential equation passing through the point (x, y) = (0, 1)has slope

. The graph of any solution to this differential equation passing through the point (x, y) = ( 1, 1)has slope. etc... We can get some idea of what the graphs of the solutions to differential equation look like by drawing a Direction Field where we draw a short line segment (or arrow) with slope y x at each point (x, y) on the plane to indicate the direction of a solution running through that point. The picture below shows a computer generated direction field for the equation y = y x. For any Differential equation of the form y = F (x, y) we can make a direction field by drawing an arrow with slope F (x, y) at many points in the plane. The more points we include, the better the picture we get of the behavior of the solutions. We can use this picture to give a rough sketch of a solution to an initial value problem. Example Below is a sketch of a solution to the differential equation y = y x, where y(1) =. 1 1 1 1 we see that a solution to the initial value problem y = y x, y(1) = passes through the point (1.) and follows the direction of the arrows. Sketch a solution to the equation with y() = 0 on the vector field above.

Euler s Method (Following The Arrows) Euler s method makes precise the idea of following the arrows in the direction field to get an approximate solution to a differential equation of the form y = F (x, y) satisfying the initial condition y(x 0 ) = y 0. For such an initial value problem we can use a computer to generate a table of approximate numerical values of y for values of x in an interval [x 0, b]. This is called a numerical solution to the problem. Example Estimate y() where y(x) is a solution to the differential equation y = y x which satisfies the initial condition y() = 0, on the interval x. Euler s method approximates the path of the solution curve with a series of line segments following the directions of the arrows in the direction fields. 1. First we choose the Step Size of our approximation, which will be the change in the value of x on each line segment. In general a smaller step size means shorter line segments and a better approximation.. The first point on our approximating curve is determined by the initial condition y(x 0 ) = y 0. The corresponding point on the curve is (x 0, y 0 ).. To get the next (defining) point on the curve, we follow the arrow in the direction field which starts at (x 0, y 0 ) (with slope F (x 0, y 0 )) and which ends at x 1 = x 0 + h. (where h is the step size). We can write down algebraic formulas for the endpoint of this arrow (x 1, y 1 ). We know that x 1 = x 0 + h. We have the slope of the arrow is F (x 0, y 0 ) = y 1 y 0. Therefore x 1 x 0 = y 1 y 0 h y 1 y 0 = hf (x 0, y 0 ) or y 1 = y 0 + hf (x 0, y 0 ).. We can now draw the first segment of our approximating curve as the line segment between the points (x 0, y 0 ) and (x 1, y 1 ).. To get the next (defining) point on the curve,, we follow the arrow in the direction field which starts at (x 1, y 1 ) (with slope F (x 1, y 1 )) and which ends at x = x 1 + h. In other words, we repeat the process starting at (x 1, y 1 ). By the same argument, we get the following equations for the point (x, y ): x = x 1 + h, and y = y 1 + hf (x 1, y 1 ).. The second line segment of our approximating curve is the line between (x 1, y 1 ) and (x, y ). 7. We repeat the process until x n = a, if we wish to approximate y(a). Note that we should choose the step size, h, so that a x 0 h is an integer n. In summary, to use this approximation; We first decide on the step size h. (If we want to estimate y(x 0 + L) where y is a solution to the IVP y = F (x, y), y(x 0 ) = y 0, and we wish to use n steps, then the step size should be L/n. )

Our series of approximations is then given by Initial point = (x 0, y 0 ). y 1 = y 0 + hf (x 0, y 0 ) new point on approximate curve = (x 1, y 1 ) = (x 0 + h, y 1 ) y = y 1 + hf (x 1, y 1 ) new point on approximate curve = (x, y ) = (x 0 + h, y ) y = y + hf (x, y ) new point on approximate curve = (x, y ) = (x 0 + h, y ). y i = y i 1 + hf (x i 1, y i 1 ) corresponding point on approximate curve = (x i, y i ) = (x 0 + ih, y i ) Example Use Euler s method with step size h = 0. to find an approximation for y(), where y is a solution to the initial value problem y = y x, y() = 0.. i x i = x 0 + ih y i = y i 1 + h(y i 1 x i 1 ) 0 0 1. 0. 7 8 9 10-1.7 y 10.0..0..0. - -10 x 10, y 10-1 In the above picture, we show the approximate solution in red alongside the real solution to the Initial value problem in green. In general a smaller step size should give a more accurate approximation.

Extra Example Use Euler s method with step size h = 0. to find an approximation for y(), where y is a solution to the initial value problem y = x y, y(0) = 0. i x i = x 0 + ih y i = y i 1 + h(x i 1 y i 1 ) 0 0 0 1 0. 7 8 9 10 We can compare our numerical solution to the actual values of y along the curve when x = x 0, x 1,..., x n =, since we know that the solution is y = x 1 + 1 e x. i x i y i = y i 1 + h(x i 1 y i 1 ) x i 1 + 1 error = x e x i i 1 + 1 e x i 0 0 0 0 0 1 0. 0 0.0187 0.0187 0. 0.0 0.070.00 0. 0.110 0.188 0.08 0.8 0.09 0.9 0.097 1.0 0.7 0.79.00 1. 0.1 0.01 0.090 7 1. 0.097 0. 0.088 8 1. 0.778 0.8019 0.01 9 1.8 0.9 0.9 0.0108 10.0 1.107 1.1 0.079 y i

Here is a picture of some solutions and a picture of the direction field for the differential equation y = x y. Here is a picture of our numerical approximation in blue alongside the real solution in red. 7