1 / 11

Euler’s Method

Euler’s Method. A Numerical Technique for Building a Solution to a DE or system of DE’s. Euler’s Method. 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. .

iden
Download Presentation

Euler’s Method

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Euler’s Method A Numerical Technique for Building a Solution to a DE or system of DE’s

  2. Euler’s Method 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.

  3. Euler’s Method Here’s how it works. We start with a point on our solution. . . . . . and a fixed small step size Dt. . . . then we project a small distance along the tangent line to compute the next point, . . . Dt . . . and repeat!

  4. Projecting Along a Little Arrow Dy Dt

  5. Projecting Along a Little Arrow slope Dy= slope Dt = f (t0,y0) Dt Dt

  6. Projecting Along a Little Arrow slope = (t0 +Dt, y0+ Dy) = (t0 +Dt, y0+f (t0,y0) Dt) Dt

  7. Projecting Along a Little Arrow = (told +Dt, yold+ Dy) = (told +Dt, y0+ f (told , yold) Dt)

  8. Summarizing Euler’s Method You need a differential equation of the form , an initial condition (t0,y0), A smaller step size will lead to more accuracy, but will also take more computations. and a fixed step size Dt. tnew=told+ Dt ynew = y0+ f (told , yold) Dt

  9. For instance, if and (1,1) lies on the graph of y, then 1000 steps of length .01 yield the following graph of the function y. This graph is the anti-derivative of sin(t 2); a function which has no elementary formula!

  10. Exercise Start with the differential equation , the initial condition , and a step size of Dt = 0.5. Compute the next two (Euler) points on the graph of the solution function.

  11. Exercise tnew=told+ Dt ynew = y0+ f (told , yold) Dt Start with the differential equation , the initial condition , and a step size of Dt = 0.5.

More Related