Professional Documents
Culture Documents
Lecture 14: Numerical Application: Solving Differential Equations
Lecture 14: Numerical Application: Solving Differential Equations
Examples:
d F (x)
f (x, y ) = = 2x
dx
d F (x)
f (x, y ) = = y x 2 cos(x)
dx
Euler’s Method
This is the easiest numerical method for solving differential
equations. We seek the value of the function at a point xN
F (x)
yn+1 = yn + f (xn , yn )∆ x
We can apply this formula to successive points until we reach
desired value of yN .
y1 = y0 + f (x0 , y0 )∆ x
y2 = y1 + f (x1 , y1 )∆ x
y3 = y2 + f (x2 , y2 )∆ x
... = ... + ...
yN = yN−1 + f (xN−1 , yN−1 )∆ x