Numerical Solutions of Differential Equations Taylor Methods.

Slides:



Advertisements
Similar presentations
Numerical Solutions of Differential Equations Euler’s Method.
Advertisements

Equations of Tangent Lines
ESSENTIAL CALCULUS CH11 Partial derivatives
DERIVATIVES 3. DERIVATIVES In this chapter, we begin our study of differential calculus.  This is concerned with how one quantity changes in relation.
MA Day 24- February 8, 2013 Section 11.3: Clairaut’s Theorem Section 11.4: Differentiability of f(x,y,z) Section 11.5: The Chain Rule.
Relative Extrema of Two Variable Functions. “Understanding Variables”
Recall Taylor’s Theorem from single variable calculus:
The Derivative as a Function
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
Numerical Solution of Ordinary Differential Equation
Copyright © Cengage Learning. All rights reserved.
Mathematics for Business (Finance)
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.
A Numerical Technique for Building a Solution to a DE or system of DE’s.
Copyright © Cengage Learning. All rights reserved. 14 Partial Derivatives.
Numerical Differentiation
Wicomico High School Mrs. J. A. Austin AP Calculus 1 AB Third Marking Term.
ME 2304: 3D Geometry & Vector Calculus Dr. Faraz Junejo Double Integrals.
DERIVATIVES The Derivative as a Function DERIVATIVES In this section, we will learn about: The derivative of a function f.
LIMITS AND DERIVATIVES
Additional Topics in Differential Equations
Chapter 9 Numerical Integration Flow Charts, Loop Structures Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © Cengage Learning. All rights reserved.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Aim: What are the higher degree function and equation? Do Now: a) Graph f(x) = x 3 + x 2 – x – 1 on the calculator b) How many times does the graph intersect.
Computational Biology, Part 17 Biochemical Kinetics III Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Block 4 Nonlinear Systems Lesson 14 – The Methods of Differential Calculus The world is not only nonlinear but is changing as well 1 Narrator: Charles.
Copyright © Cengage Learning. All rights reserved Partial Derivatives.
MA Day 25- February 11, 2013 Review of last week’s material Section 11.5: The Chain Rule Section 11.6: The Directional Derivative.
3.3: Rules of Differentiation Objective: Students will be able to… Apply the Power Rule, Sum and Difference Rule, Quotient and Product Rule for differentiation.
Integrals  In Chapter 2, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.  In much the.
3.2 Differentiability. Yes No All Reals To be differentiable, a function must be continuous and smooth. Derivatives will fail to exist at: cornercusp.
3. Fundamental Theorem of Calculus. Fundamental Theorem of Calculus We’ve learned two different branches of calculus so far: differentiation and integration.
Newton’s Method Other Recursive Methods Modified Fixed Point Method.
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
Differential Equations Copyright © Cengage Learning. All rights reserved.
CHAPTER Continuity Euler’s Method Euler’s idea was to improve on linear approximation by proceeding only a short distance along the tangent line.
Copyright © Cengage Learning. All rights reserved. 14 Partial Derivatives.
1 3.3 Rules for Differentiation Badlands National Park, SD.
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
The Indefinite Integral
Copyright © Cengage Learning. All rights reserved The Chain Rule.
Distance Traveled Area Under a curve Antiderivatives
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
Ms. Battaglia AP Calculus. Estimate y(4) with a step size h=1, where y(x) is the solution to the initial value problem: y’ – y = 0 ; y(0) = 1.
Differentials A quick Review on Linear Approximations and Differentials of a function of one Variable.
Maclaurin and Taylor Polynomials Objective: Improve on the local linear approximation for higher order polynomials.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Vector Analysis 15 Copyright © Cengage Learning. All rights reserved.
Announcements Topics: -sections 6.4 (l’Hopital’s rule), 7.1 (differential equations), and 7.2 (antiderivatives) * Read these sections and study solved.
Topic Overview and Study Checklist. From Chapter 7 in the white textbook: Modeling with Differential Equations basic models exponential logistic modified.
Section 9.4 – Solving Differential Equations Symbolically Separation of Variables.
SLOPE FIELDS & EULER’S METHOD
SLOPE FIELDS & EULER’S METHOD
Copyright © Cengage Learning. All rights reserved.
The LaGrange Error Estimate
Math 200 Week 4 - Monday Partial derivatives.
Copyright © Cengage Learning. All rights reserved.
Ch 8.6: Systems of First Order Equations
Section Euler’s Method
Calculus BC AP/Dual, Revised © : Lagrange's Error Bound
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Copyright © Cengage Learning. All rights reserved.
Sec 21: Analysis of the Euler Method
11.1 – Polynomial Approximations of Functions
Choose the equation which solution is graphed and satisfies the initial condition y ( 0 ) = 8. {applet} {image}
7. Implicit Differentiation
1. Antiderivatives and Indefinite Integration
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

Numerical Solutions of Differential Equations Taylor Methods

Euler’s Method We have previously seen Euler’s Method for estimating the solution of a differential equation. That is to say given the derivative as a function of x and y (i.e. f(x,y) ) and an initial value y(x 0 )=y 0 and a terminal value x n we can generate an estimate for the corresponding y n. They are related in the following way: The value  x = ( x n - x 0 )/ n and the accuracy increases with n. Taylor Method of Order 1 Euler’s Method is one of a family of methods for solving differential equations developed by Taylor. We would call this a Taylor Method of order 1. The 1 refers to the fact that this method used the first derivative to generate the next estimate. In terms of geometry it says you are moving along a line (i.e. the tangent line) to get from one estimate to the next.

Taylor Method of Order 2 In this method instead of moving from point to point along a line we move from point to point along a parabola. Not just any parabola but the parabola that most closely approximates the function y we are interested in. In intermediate calculus we discussed Taylor’s Theorem. This explained how to get a polynomial of varying degrees that would estimate any function at a point a. In particular a second degree polynomial (i.e. it graph is a parabola). How you do this estimate is given below. In order to be able to apply this we need to be able to resolve 2 questions: 1) How is the second or higher derivative found? 2) How is accuracy improved by increasing the number of subintervals?

Computing Higher Order Derivatives The problem we are trying to solve we are given the first derivative expressed as a function of x and y. How can we get the second, third or any higher derivative from this piece of information? We use a concept from multivariable calculus and a tool called partial derivatives. The Problem: Given :find To the right is a tree that shows how the variables depend on each other. Remember y is a function of x (i.e. y is the dependent variable x is the independent variable). The delta symbol  indicates a partial derivative which means treat the indicated variable as the variable and all other variables as a constant. xy x

Example: Find the second derivative if the first derivative is given to the right. Set f(x,y) = x 2 y and plug it into the formula below. Here we notice that: Higher Derivatives Third, fourth, fifth, … etc derivatives can be computed with the same method. This has a recursive definition given to the right. Notice you get a function of x and y again!

Subintervals If we wish to apply Taylor’s Method to the general differential equation given to the right on only one subinterval we simply plug into the formula the following values: x 0 = ay 0 = f(x 0 )x 1 = x Applying this to a subinterval with n parts to the partition this formula becomes: Where:

Example: Apply the second order Taylor Method to estimate the solution to the differential equation to the right at x = 2 using 4 partitions. The recursive formula becomes: The estimate we have found for this value is

Higher Order Taylor Methods Taylor’s Method can be extended to any order Taylor approximation by the following recursive definition. This is the definition of a Taylor method of order n. Algorithm for Taylor’s Method f(x,y) (* expression for x and y *) x 0 (* initial value for x *) y 0 (* initial value for y *) xn (* terminal value for x *) n (* number of partitions of the interval *) deltax = ( xn-x0 )/ n x i = x 0 xprev = x i y i = y 0 for( i =1, i  n, i ++, x i = x i + deltax y i = y i + f(xprev,yi)*deltax+…+(1/(n!))(y (n) (xprev,y i )*deltax ) xprev = x i Return y i