Download presentation
Presentation is loading. Please wait.
Published byLora Kennedy Modified over 9 years ago
1
Euler’s Method Building the function from the derivative
2
Local Linearity and Approximation
3
Euler’s Method tt Suppose we know the value of the derivative of a function at every point and we know the value of the function at one point. We can build an approximate graph of the function using local linearity to approximate over and over again. This iterative procedure is called Euler’s Method. Here’s how it works.
4
Implementing Euler’s Method New t = Old t + t New y = Old y + y = Old y + (slope at (Old t, Old y)) t Well, you need a differential equation of the form: y’ = some expression in t and y Finally, you need a fixed step size t. And a point (t 0,y 0 ) that lies on the graph of the solution function y = f (t). A smaller step size will lead to more accuracy, but will also take more computations. What’s needed to get Euler’s method started?
5
For instance, if y’= sin(t 2 ) and (1,1) lies on the graph of y =f (t), then 1000 steps of length.01 yield the following graph of the function f. This graph is the anti-derivative of sin(t 2 ); a function which has no elementary formula!
6
Old PointSlope at old Pt.Change in yNew tNew y Old tOld yy’(old t, old y) y= y’* tOld t + tOldy + y 11.8414.084141.11.084 1.11.084.9723.097231.21.181 1.21.1811.1101.111011.31.292 New t = Old t + t New y = Old y + y = Old y + y’(Old t, Old y) t How do we accomplish this? Suppose that y’ = t sin(y) and (1,1) lies on the graph. Let t =.1.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.