9.1 Euler Methods and Error Analysis: Class Notes
9.1a
Definition
Because Euler’s method, which uses the iterative formula , to approximate solutions to initial-value problems of the form , , uses approximations, the -values obtained this way contain local truncation error at each step in the approximation.
To determine an upper bound for the size of the error, consider the following. Suppose a function possesses derivatives that are continuous on an open interval containing and . The with for is
where is some value between and . For , , and , we have
This is precisely the formula for Euler’s method plus a remainder term. Thus, the local truncation error in is , where . Since we typically don’t know the value of , an upper bound for the absolute value of the error is , where , . We can use the notation to indicate that the magnitude of the error depends on . (This is called “big oh” notation, and it essentially indicates that one quantity is bounded by another quantity.)
The first part of the right side is the Taylor polynomial, and the last term is the remainder.
Definition
The total error in approximating contains local truncation error at each step, and so the result after multiple iterations contains global truncation error.
It can be shown that global truncation error using Euler’s method is .
The improved Euler’s method uses an average of two slopes and has a local truncation error and global truncation error .
Improved Euler’s method
First, we use Euler’s method to obtain . This is a predictor step.
Then we use . This is a corrector step.
Because of the two-step process, this is called a predictor-corrector method.
Euler’s method (from Section 2.6): each step follows the tangent line.

Euler’s method. A solution curve (in blue) passes through . The tangent line at that point has slope . Moving a step to along the tangent line gives the approximation , while the curve itself is at . The vertical gap between those two points is the error.
Improved Euler’s method: each step follows a line whose slope is the average of two slopes.

Improved Euler’s method. From on the solution curve, the tangent line with slope predicts the point . A short line through that point has slope . The dashed line from has the average slope and gives the corrected point , much closer to the curve’s point than the prediction.
9.1b
Example
Use the improved Euler’s method to obtain a four-decimal approximation of the indicated value. First use and then use .
Solution
: start with and . Predictor:
Corrector, with and the predicted value used in the second slope :
Then the next predictor starts from , and gives the same way:
Continuing in a spreadsheet (each row uses to predict , and the next row’s uses both slopes):
Answer:
Answer:
Compare with the actual values from the analytic solution (found below):
Note that makes the error about as large: at , the absolute error drops from to (and the relative error from to ). The error is .
Analytic solution: , .
Tip: The equation is linear, so an integrating factor works, as do the auxiliary equation (with undetermined coefficients) and Laplace transforms. Two of these are shown.
Using the auxiliary equation, , so . Try , so :
Or, with the integrating factor :
and again gives .
Answer: