Introduction to Direction Fields, Euler's Method, Error, and Stability
1Introduction
This lecture explains how to use direction fields to identify qualitative behavior when an analytic solution is unavailable, construct approximate solutions with Euler's method, and distinguish accuracy from numerical stability.
2Problem Setting
Consider the standard initial value problem
A direction field assigns a line segment of slope to each point . Euler's method is a numerical method that advances along a short linear approximation determined by the slope at the current point.
3Rationale for the Method
Differentiation supplies a local linear approximation. Evaluating at the current point therefore indicates the direction in which changes over a short interval. A direction field reveals global qualitative tendencies without solving the equation, whereas Euler's method repeatedly applies the corresponding local approximation.
4Euler Update and Error Order
Given the initial value and a step size , Euler's method uses
Fix a finite interval contained in the maximal interval of existence. Assume that the exact solution is twice continuously differentiable there and that is bounded. The Taylor expansion
shows that Euler's method retains only the constant and linear terms. In this lecture, the discrepancy produced by taking one Euler step from an exact value is called the one-step defect. Under this convention, it is . Under the alternative convention in which the defect is divided by and called the local truncation error, its order is .
Assume in addition that is Lipschitz continuous in on a region containing both the exact solution and the numerical iterates. Controlling the amplification of successive errors by the Lipschitz constant gives a global error of on the fixed finite interval. This conclusion must not be asserted without the required smoothness and Lipschitz hypotheses.
5Examples
5.1A Growing Solution
For
and , Euler's method gives . Hence and . Comparison with the exact solution shows that reducing the step size improves the approximation.
5.2A Stability Restriction
Consider
The exact solution decays, whereas Euler's method gives
The numerical solution decays only if . For example, if and , then . Although the exact solution decays, the numerical solution oscillates with increasing magnitude.
6Accuracy Versus Stability
Accuracy describes how rapidly the approximation approaches the exact solution as the step size decreases. Stability describes whether the iteration amplifies or suppresses errors. Even a high-order method may be unstable for an unsuitable combination of problem and step size.
7Connection to Implicit Methods
Forward Euler uses the slope at the current point. Backward Euler instead uses the slope at the next point and requires the equation
to be solved. Because the unknown also appears on the right-hand side, each step entails the additional cost of solving an equation. This construction can nevertheless improve stability for decay problems.
Applied to the model equation , Backward Euler gives
If , then for every , and hence for every positive step size. This comparison demonstrates that the selection of a numerical method must account for stability as well as accuracy.
8Information Available from a Direction Field
A direction field does not produce an exact solution, but it is useful for diagnosis before analytic or numerical computation.
| Feature | Information supplied by the direction field |
|---|---|
| Zero-slope curves | Curves on which ; such a curve is not necessarily itself a solution |
| Equilibrium solutions | Horizontal solutions for constants satisfying for every |
| Increase or decrease | The sign of the slope |
| Candidates for stability | Whether nearby line segments point toward an equilibrium; the conclusion must be confirmed by sign analysis or another rigorous argument |
| Candidates for rapid variation | Regions in which the slope has large magnitude; numerical stability must be assessed separately through an amplification factor |
9Scope and Limitations
A direction field visualizes candidate solution curves; it does not provide an exact solution or a proof of stability. In a region where uniqueness has not been established, it must not be interpreted as defining a single flow. Euler's method is an essential introductory method, but practical computation may require Runge--Kutta methods, Backward Euler, or adaptive step sizes.