Professional Documents
Culture Documents
Lecture 1.3: Approximating Solutions To Differential Equations
Lecture 1.3: Approximating Solutions To Differential Equations
Lecture 1.3: Approximating Solutions To Differential Equations
Matthew Macauley
M. Macauley (Clemson) Lecture 1.3: Approximating Solutions to ODEs Math 2080, ODEs 1/5
Motivation (from single variable calculus)
Classic calculus problem
Suppose f (1) = 1 and f 0 (1) = 1/2. Use the tangent line to f (x) at x = 1 to
approximate f (1.5).
M. Macauley (Clemson) Lecture 1.3: Approximating Solutions to ODEs Math 2080, ODEs 2/5
Old vs. New
Classic calculus problem
Suppose f (1) = 1 and f 0 (1) = 1/2. Use the tangent line to f (x) at x = 1 to
approximate f (1.5).
M. Macauley (Clemson) Lecture 1.3: Approximating Solutions to ODEs Math 2080, ODEs 3/5
Euler’s method
Example
Suppose y (t) solves the ODE y 0 = y − t, and y (1) = 1. Use Euler’s method to
approximate y (1.5).
M. Macauley (Clemson) Lecture 1.3: Approximating Solutions to ODEs Math 2080, ODEs 4/5
Euler’s method
Summary
Given y 0 = f (t, y ) and y (t0 ) = y0 with a stepsize h:
(t1 , y1 ) = t0 + h, y0 + f (t0 , y0 ) · h
(t2 , y2 ) = t1 + h, y1 + f (t1 , y1 ) · h
..
.
(tk+1 , yk+1 ) = tk + h, yk + f (tk , yk ) · h
M. Macauley (Clemson) Lecture 1.3: Approximating Solutions to ODEs Math 2080, ODEs 5/5