Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.

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

Ch 2.7: Numerical Approximations: Euler’s Method
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.
Boyce/DiPrima 9th ed, Ch 3.5: Nonhomogeneous Equations;Method of Undetermined Coefficients Elementary Differential Equations and Boundary Value Problems,
Boyce/DiPrima 10th ed, Ch 10.1: Two-Point Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 10th edition, by William.
Infinite Sequences and Series
A second order ordinary differential equation has the general form
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.
Boyce/DiPrima 10th ed, Ch 10.2: Fourier Series Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and Richard.
Boyce/DiPrima 9 th ed, Ch 2.1: Linear Equations; Method of Integrating Factors Elementary Differential Equations and Boundary Value Problems, 9 th edition,
Boyce/DiPrima 9 th ed, Ch 3.1: 2 nd Order Linear Homogeneous Equations-Constant Coefficients Elementary Differential Equations and Boundary Value Problems,
In the previous two sections, we focused on finding solutions to differential equations. However, most differential equations cannot be solved explicitly.
Boyce/DiPrima 10th ed, Ch 10.5: Separation of Variables; Heat Conduction in a Rod Elementary Differential Equations and Boundary Value Problems, 10th.
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 9th ed, Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues Elementary Differential Equations and Boundary Value Problems,
Boyce/DiPrima 9th ed, Ch 3.4: Repeated Roots; Reduction of Order Elementary Differential Equations and Boundary Value Problems, 9th edition, by William.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Copyright © Cengage Learning. All rights reserved. 6 Inverse Functions.
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
Boyce/DiPrima 9 th ed, Ch 11.5: Further Remarks on Separation of Variables: A Bessel Series Expansion Elementary Differential Equations and Boundary Value.
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.
Boyce/DiPrima 9 th ed, Ch 5.1: Review of Power Series Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce.
Scientific Computing Numerical Solution Of Ordinary Differential Equations - Euler’s Method.
Boyce/DiPrima 9 th ed, Ch 1.1: Basic Mathematical Models; Direction Fields Elementary Differential Equations and Boundary Value Problems, 9 th edition,
Boyce/DiPrima 9th ed, Ch 4.2: Homogeneous Equations with Constant Coefficients Elementary Differential Equations and Boundary Value Problems, 9th edition,
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Boyce/DiPrima 9 th ed, Ch 10.8: Laplace’s Equation Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and.
Boyce/DiPrima 9 th ed, Ch 3.2: Fundamental Solutions of Linear Homogeneous Equations Elementary Differential Equations and Boundary Value Problems, 9 th.
Boyce/DiPrima 9th ed, Ch 1.2: Solutions of Some Differential Equations Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Differential Equations Copyright © Cengage Learning. All rights reserved.
Boyce/DiPrima 9th ed, Ch 4.1: Higher Order Linear ODEs: General Theory Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
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.
Boyce/DiPrima 9 th ed, Ch 7.6: Complex Eigenvalues Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and.
Boyce/DiPrima 9 th ed, Ch 6.2: Solution of Initial Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Copyright © Cengage Learning. All rights reserved.
Boyce/DiPrima 9th ed, Ch 3.3: Complex Roots of Characteristic Equation Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
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.
Boyce/DiPrima 9 th ed, Ch 2.2: Separable Equations Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and.
Boyce/DiPrima 9 th ed, Ch 11.3: Non- Homogeneous Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Boyce/DiPrima 9 th ed, Ch1.3: Classification of Differential Equations Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Boyce/DiPrima 9 th ed, Ch 6.1: Definition of Laplace Transform Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William.
Boyce/DiPrima 9 th ed, Ch 5.3: Series Solutions Near an Ordinary Point, Part II Elementary Differential Equations and Boundary Value Problems, 9 th edition,
Boyce/DiPrima 9 th ed, Ch 6.3: Step Functions Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and Richard.
Boyce/DiPrima 9 th ed, Ch 2.6: Exact Equations & Integrating Factors Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William.
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.
Boyce/DiPrima 10th ed, Ch 6.2: Solution of Initial Value Problems Elementary Differential Equations and Boundary Value Problems, 10th edition, by William.
SLOPE FIELDS & EULER’S METHOD
Boyce/DiPrima 10th ed, Ch 10.3: The Fourier Convergence Theorem Elementary Differential Equations and Boundary Value Problems, 10th edition, by William.
SLOPE FIELDS & EULER’S METHOD
Boyce/DiPrima 10th ed, Ch 10.8: Laplace’s Equation Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
Boyce/DiPrima 10th ed, Ch 6.3: Step Functions Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Boyce/DiPrima 10th ed, Ch 7.4: Basic Theory of Systems of First Order Linear Equations Elementary Differential Equations and Boundary Value Problems,
Calculus II (MAT 146) Dr. Day Wednesday November 8, 2017
Boyce/DiPrima 10th ed, Ch 7.5: Homogeneous Linear Systems with Constant Coefficients Elementary Differential Equations and Boundary Value Problems, 10th.
Boyce/DiPrima 10th ed, Ch 6.4: Differential Equations with Discontinuous Forcing Functions Elementary Differential Equations and Boundary Value Problems,
Boyce/DiPrima 9th ed, Ch 4.3: Nonhomogeneous Equations: Method of Undetermined Coefficients Elementary Differential Equations and Boundary Value Problems,
Boyce/DiPrima 9th ed, Ch 3.6: Variation of Parameters Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce.
Slope Fields and Euler’s Method
Slope Fields (6.1) January 10th, 2017.
Boyce/DiPrima 9th ed, Ch 5.3: Series Solutions Near an Ordinary Point, Part II Elementary Differential Equations and Boundary Value Problems, 9th edition,
Presentation transcript:

Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and Richard C. DiPrima, ©2009 by John Wiley & Sons, Inc. 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 t 0. 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 t 0. The solution passes through initial point (t 0, y 0 ) with slope f (t 0, y 0 ). The line tangent to the solution at this initial point is The tangent line is a good approximation to solution curve on an interval short enough. Thus if t 1 is close enough to t 0, we can approximate  (t 1 ) by

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

Euler Approximation To graph an Euler approximation, we plot the points (t 0, y 0 ), (t 1, y 1 ),…, (t n, y n ), 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.2 to approximate the solution at t = 0.2, 0.4, 0.6, 0.8, and 1.0 as shown below.

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

Example 1: Error Analysis (3 of 3) From table below, we see that the errors start small, but get larger. This is most likely due to the fact that the exact solution is not linear on [0, 1]. Note: Exact y in red Approximate y in blue

Example 2: Euler’s Method (1 of 3) For the initial value problem we can use Euler’s method with various step sizes to approximate the solution at t = 1.0, 2.0, 3.0, 4.0, and 5.0 and compare our results to the exact solution at those values of t.

Example 2: Euler’s Method (2 of 3) Comparison of exact solution with Euler’s Method for h = 0.1, 0.05, 0.25, 0.01 t Exact yh = 0.1h = 0.05h = 0.025h =

Example 2: Euler’s Method (3 of 3)

Example 3: 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 3: 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, The errors are small initially, but quickly reach an unacceptable level. This suggests a nonlinear solution.

Example 3: 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 t 0. 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  (t 0 ) = y 0.

General Error Analysis Discussion (2 of 4) The first step of Euler’s method uses the tangent line to  at the point (t 0, y 0 ) in order to estimate  (t 1 ) with y 1. The point (t 1, y 1 ) is typically not on the graph of , because y 1 is an approximation of  (t 1 ). 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 (t 1, y 1 ). 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 (t n, y n ), 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.