Euler’s mehod..

Slides:



Advertisements
Similar presentations
Roundoff and truncation errors
Advertisements

Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Error Measurement and Iterative Methods
Section 8.3 Slope Fields; Euler’s Method.  Calculus,10/E by Howard Anton, Irl Bivens, and Stephen Davis Copyright © 2009 by John Wiley & Sons, Inc. All.
Homework Homework Assignment #19 Read Section 9.3 Page 521, Exercises: 1 – 41(EOO) Quiz next time Rogawski Calculus Copyright © 2008 W. H. Freeman and.
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Math 3C Euler’s Method Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
In the previous two sections, we focused on finding solutions to differential equations. However, most differential equations cannot be solved explicitly.
A Numerical Technique for Building a Solution to a DE or system of DE’s.
Slope Fields and Euler’s Method. When taking an antiderivative that is not dealing with a definite integral, be sure to add the constant at the end. Given:find.
A Numerical Technique for Building a Solution to a DE or system of DE’s.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Euler’s Method BC Only Copyright © Cengage Learning. All rights reserved Day
6.1: Antiderivatives and Slope Fields. First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take.
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
“Teach A Level Maths” Vol. 1: AS Core Modules
6.1 day 1: Antiderivatives and Slope Fields Greg Kelly, Hanford High School, Richland, Washington.
Copyright © Cengage Learning. All rights reserved. 4 Applications of Differentiation.
Example 5 Graphical Solutions Chapter 2.1 Solve for x using the x-intercept method.  2009 PBLPathways.
6.1: Antiderivatives and Slope Fields. First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take.
Slope Fields Objective: To find graphs and equations of functions by the use of slope fields.
Differential Equations Copyright © Cengage Learning. All rights reserved.
First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take the derivative the constant disappears.
CHAPTER 3 NUMERICAL METHODS
AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………..
Copyright © Cengage Learning. All rights reserved. 1 Functions and Models.
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Mathematical Modeling with Differential Equations Chapter 9: By, Will Alisberg Edited By Emily Moon.
Linearization, Newton’s Method
Warm-Up If the average annual rate of inflation is 3% over 6 years, then the cost, c, of a house in any year of that period is c(t) = p (1.03) t where.
Iteration The solution lies between 0 and 1. e.g. To find integer bounds for we can sketch and  0 and 1 are the integer bounds. We often start by finding.
Lesson 9-2 Direction (Slope) Fields and Euler’s Method.
Solving Differential Equations Slope Fields. Solving DE: Slope Fields Slope Fields allow you to approximate the solutions to differential equations graphically.
Numerical Solution Of Equations
1.1 Basic Concepts. Modeling
CHAPTER 3 NUMERICAL METHODS
Parametric equations Parametric equation: x and y expressed in terms of a parameter t, for example, A curve can be described by parametric equations x=x(t),
1 Functions and Applications
Differential Equations
Families of Solutions, Geometric Interpretation
MTH1150 Tangents and Their Slopes
Slope Fields If you enjoyed connecting the dots, you’ll love slope fields It is a graphical method to find a particular solution to any differential equation.
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Numerical Methods.
Sketch the graph/ Write the equation YoungMath Presents
Prepared by Vince Zaccone
Ch 2.1: Linear Equations; Method of Integrating Factors
7.1 Slope Fields and Euler’s Method
Numerical Methods.
Slope Fields; Euler’s Method
Ch 8.6: Systems of First Order Equations
Local Linearity and Approximation
Section Euler’s Method
Solving Equations Graphically
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Slope Fields and Euler’s Method
Graphing Linear Equations
Choose the differential equation corresponding to this direction field
Specialist Mathematics
1.3 Exponential Functions
5. Euler’s Method.
Reading Between the Lines!
Copyright © Cengage Learning. All rights reserved.
Specialist Mathematics
Presentation transcript:

Euler’s mehod.

Leonard Euler (1707 – 1783) Leonhard Euler was a Swiss mathematician, physicist, astronomer, logician and engineer who made important and influential discoveries in many branches of mathematics like calculus and differential equations. Numerical solution of using Euler’s method. where h is a constant (step length) The above formulas are given in the formulae booklet so no need to memorise.

Euler’s Method. Allows to find an approximate solution to a differential equation This is done by finding a sequence of points which lie on the solution curve of the given differential equation with a boundary condition. We need to approximate numerically the value of yn at xn. Graphically we start at the point and find the gradient at this point. The step h is usually given in the question. The smaller the step, the more accurate the approximation. We move to the point by using the gradient calculated in step 1. We repeat the process until we reach the point 𝑥 0 , 𝑦 0 𝑥 1 , 𝑦 1 𝑥 𝑛 , 𝑦 𝑛 As numerical calculations are quite time consuming when performed manually, the spreadsheet or computer programs are helpful to do all the calculations much quicker.

Iterations, how it works: and so on…

Example 1: Use Euler’s method of numerical integration with a step size of 0.1 to find y(1) if y’=y-x and y(0)=2. Identify the information given: Now multiply by h Repeat the process with the point (x1,y1) First calculate f(0,2) Add to y0 To obtain the point (x2,y2)

Repeating the process eight more times and tabulating the results gives the following: xn yn f(x,y)h yn+1 = yn +f(x, y) h   2 0.2 2.2 1 0.1 0.21 2.41 0.221 2.631 3 0.3 0.2331 2.864 4 0.4 0.2464 3.111 5 0.5 0.2611 3.372 6 0.6 0.2772 3.649 7 0.7 0.2949 3.944 8 0.8 0.3144 4.258 9 0.3358 4.59374 10 1.0

How accurate is this result? When solving the above DE we obtain y=ex+x+1 So we have an underestimation here 4.59374– 4.71828 = -0.12454 and the absolute percentage error of around 2.64%, so not a bad approximation. This value can be also obtained using your TI Nspire, sketch the slope field in the Diff Eq mode, enter the initial condition. Use Trace, Graph trace and left-right arrows to move along the curve in steps of 0.1 (default) Edit parameters to change the step. Make sure Euler is selected.

Using a spreadsheet on TI Nspire (Lists & Spreadsheet). Steps: Name the columns. Fill in the values for x from 0 to 1 every 0.1. Enter the initial value for y as 2. In cell c1=0.1(b1-a1) In cell d1=b1+c1 In cell b2=d1 And copy down one by one.

Using a Calculator RHS of DE initial x, final x variables y-value from initial condition step answer

Your turn! Use Euler’s method to find y(0.5) for the DE with y(0)=1 and h=0.1

What to expect on the examination? Consider the differential equation and Use Euler’s method with steps of 0.2 to estimate f(2) to 5 decimal places. f(2)=1.10033 Note that the step is 0.2 now and required accuracy is 5 d.p.

Change the float in 9: Settings Display Digits Float to display 5 d.p.

Question: For the differential equation with y(0)=3, use the Euler’s method with step h=0.5 to find y(7) to 4 decimal places. Sketch the slope field for the above differential equation for x values from 0 to 7 and y values from -4 to 4. Plot the pairs of x and y-values from your spreadsheet on the slope field graph. For which values of x does the numerical solution by Euler’s method seem to follow the slope field? For which values of x is the numerical method clearly wrong? Solve the differential equation algebraically. Plot the particular solution which contains (0,3). Explain why Euler’s method gives meaningless answers for larger values of x. Answers: f(7)=2.0634 (d) Euler’s method seems to produce reasonable answers for x<5 (f) 0.5x2+y2=9 (h) The solution curve is an ellipse with semi-major axis = 4.24 (x-direction) and semi-minor axis =3 (y-direction). When the curve approaches the x-axis, the slope becomes nearly infinite. Furthermore, after crossing the x-axis the curve should go in the negative x-direction, but the method does not account for this.

Summary: Describe Euler’s method for solving the initial value problem y’=f(x,y), y(x0)=y0. Comment on the method’s accuracy. Why might you want to solve an initial value problem numerically? What is the slope field of a differential equation y’=f(x,y)? What can we learn from such fields?