Ch 2.7: Numerical Approximations: Euler’s Method

Slides:



Advertisements
Similar presentations
Boyce/DiPrima 9th ed, Ch 2.4: Differences Between Linear and Nonlinear Equations Elementary Differential Equations and Boundary Value Problems, 9th edition,
Advertisements

Boyce/DiPrima 9th ed, Ch 2.8: The Existence and Uniqueness Theorem Elementary Differential Equations and Boundary Value Problems, 9th edition, by William.
Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Infinite Sequences and Series
A second order ordinary differential equation has the general form
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Ch 2.1: Linear Equations; Method of Integrating Factors
APPLICATIONS OF DIFFERENTIATION Newton’s Method In this section, we will learn: How to solve high-degree equations using Newton’s method. APPLICATIONS.
Ch 5.5: Euler Equations A relatively simple differential equation that has a regular singular point is the Euler equation, where ,  are constants. Note.
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.
Differential Equations 7. The Logistic Equation 7.5.
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.
Section 6.1: Euler’s Method. Local Linearity and Differential Equations Slope at (2,0): Tangent line at (2,0): Not a good approximation. Consider smaller.
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
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
LIMITS AND DERIVATIVES
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
Ch 2.2: Separable Equations In this section we examine a subclass of linear and nonlinear first order equations. Consider the first order equation We can.
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.
Class 5: Question 1 Which of the following systems of equations can be represented by the graph below?
Copyright © Cengage Learning. All rights reserved. 4 Applications of Differentiation.
Math 3120 Differential Equations with Boundary Value Problems
Boyce/DiPrima 9 th ed, Ch 8.5: More on Errors; Stability Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce.
Differential Equations 7. Direction Fields and Euler's Method 7.2.
Scientific Computing Numerical Solution Of Ordinary Differential Equations - Euler’s Method.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Copyright © Cengage Learning. All rights reserved. 12 Limits and an Introduction to Calculus.
6.1 D IFFERENTIAL E QUATIONS & S LOPE F IELDS. D IFFERENTIAL E QUATIONS Any equation involving a derivative is called a differential equation. The solution.
Section 2.8 The Derivative as a Function Goals Goals View the derivative f ´(x) as a function of x View the derivative f ´(x) as a function of x Study.
Differential Equations Copyright © Cengage Learning. All rights reserved.
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
CHAPTER 3 NUMERICAL METHODS
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Ch 2.1: Linear Equations; Method of Integrating Factors A linear first order ODE has the general form where f is linear in y. Examples include equations.
Copyright © Cengage Learning. All rights reserved.
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area. We also saw that it arises when we try to find the distance traveled.
5 INTEGRALS.
Warm up Problem Solve the IVP, then sketch the solution and state the domain.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Announcements Topics: -Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: -Review sections 7.1, 7.2, and 7.5 in the.
Copyright © Cengage Learning. All rights reserved The Integral Test and Estimates of Sums.
INFINITE SEQUENCES AND SERIES In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series and.
SLOPE FIELDS & EULER’S METHOD
SLOPE FIELDS & EULER’S METHOD
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
1 Functions and Applications
Prepared by Vince Zaccone
A second order ordinary differential equation has the general form
Calculus II (MAT 146) Dr. Day Wednesday November 8, 2017
Copyright © Cengage Learning. All rights reserved.
The Tangent Line Problem
Solution of Equations by Iteration
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Numerical Solutions of Ordinary Differential Equations
Copyright © Cengage Learning. All rights reserved.
Slope Fields and Euler’s Method
The Tangent Line Problem
Differential Equations
Direction Fields and Euler's Method
Slope Fields (6.1) January 10th, 2017.
Presentation transcript:

Ch 2.7: Numerical Approximations: Euler’s Method Recall that a first order initial value problem has the form If f and f /y are continuous, then this IVP has a unique solution y = (t) in some interval about t0. When the differential equation is linear, separable or exact, we can find the solution by symbolic manipulations. However, the solutions for most differential equations of this form cannot be found by analytical means. Therefore it is important to be able to approach the problem in other ways.

Direction Fields For the first order initial value problem we can sketch a direction field and visualize the behavior of solutions. This has the advantage of being a relatively simple process, even for complicated equations. However, direction fields do not lend themselves to quantitative computations or comparisons.

Numerical Methods For our first order initial value problem an alternative is to compute approximate values of the solution y = (t) at a selected set of t-values. Ideally, the approximate solution values will be accompanied by error bounds that ensure the level of accuracy. There are many numerical methods that produce numerical approximations to solutions of differential equations, some of which are discussed in Chapter 8. In this section, we examine the tangent line method, which is also called Euler’s Method.

Euler’s Method: Tangent Line Approximation For the initial value problem we begin by approximating solution y = (t) at initial point t0. The solution passes through initial point (t0, y0) with slope f (t0, y0). The line tangent to solution at initial point is thus The tangent line is a good approximation to solution curve on an interval short enough. Thus if t1 is close enough to t0, we can approximate (t1) by

Euler’s Formula For a point t2 close to t1, we approximate (t2) using the line passing through (t1, y1) with slope f (t1, y1): Thus we create a sequence yn of approximations to (tn): where fn = f (tn, yn). For a uniform step size h = tn – tn-1, Euler’s formula becomes

Euler Approximation To graph an Euler approximation, we plot the points (t0, y0), (t1, y1),…, (tn, yn), and then connect these points with line segments.

Example 1: Euler’s Method (1 of 3) For the initial value problem we can use Euler’s method with h = 0.1 to approximate the solution at t = 0.1, 0.2, 0.3, 0.4, as shown below.

Example 1: Exact Solution (2 of 3) We can find the exact solution to our IVP, as in Chapter 1.2:

Example 1: Error Analysis (3 of 3) From table below, we see that the errors are small. This is most likely due to round-off error and the fact that the exact solution is approximately linear on [0, 0.4]. Note:

Example 2: Euler’s Method (1 of 3) For the initial value problem we can use Euler’s method with h = 0.1 to approximate the solution at t = 1, 2, 3, and 4, as shown below. Exact solution (see Chapter 2.1):

Example 2: Error Analysis (2 of 3) The first ten Euler approxs are given in table below on left. A table of approximations for t = 0, 1, 2, 3 is given on right. See text for numerical results with h = 0.05, 0.025, 0.01. The errors are small initially, but quickly reach an unacceptable level. This suggests a nonlinear solution.

Example 2: Error Analysis & Graphs (3 of 3) Given below are graphs showing the exact solution (red) plotted together with the Euler approximation (blue).

General Error Analysis Discussion (1 of 4) Recall that if f and f /y are continuous, then our first order initial value problem has a solution y = (t) in some interval about t0. In fact, the equation has infinitely many solutions, each one indexed by a constant c determined by the initial condition. Thus  is the member of an infinite family of solutions that satisfies (t0) = y0.

General Error Analysis Discussion (2 of 4) The first step of Euler’s method uses the tangent line to  at the point (t0, y0) in order to estimate (t1) with y1. The point (t1, y1) is typically not on the graph of , because y1 is an approximation of (t1). Thus the next iteration of Euler’s method does not use a tangent line approximation to , but rather to a nearby solution 1 that passes through the point (t1, y1). Thus Euler’s method uses a succession of tangent lines to a sequence of different solutions , 1, 2,… of the differential equation.

Error Analysis Example: Converging Family of Solutions (3 of 4) Since Euler’s method uses tangent lines to a sequence of different solutions, the accuracy after many steps depends on behavior of solutions passing through (tn, yn), n = 1, 2, 3, … For example, consider the following initial value problem: The direction field and graphs of a few solution curves are given below. Note that it doesn’t matter which solutions we are approximating with tangent lines, as all solutions get closer to each other as t increases. Results of using Euler’s method for this equation are given in text.

Error Analysis Example: Divergent Family of Solutions (4 of 4) Now consider the initial value problem for Example 2: The direction field and graphs of solution curves are given below. Since the family of solutions is divergent, at each step of Euler’s method we are following a different solution than the previous step, with each solution separating from the desired one more and more as t increases.

Error Bounds and Numerical Methods In using a numerical procedure, keep in mind the question of whether the results are accurate enough to be useful. In our examples, we compared approximations with exact solutions. However, numerical procedures are usually used when an exact solution is not available. What is needed are bounds for (or estimates of) errors, which do not require knowledge of exact solution. More discussion on these issues and other numerical methods is given in Chapter 8. Since numerical approximations ideally reflect behavior of solution, a member of a diverging family of solutions is harder to approximate than a member of a converging family. Also, direction fields are often a relatively easy first step in understanding behavior of solutions.