markdown
Introduction to Direction Fields, Euler's Method, Error, and Stabilitymd 31aa65a
lecture/math/differential-equations/direction-fields-euler-method-error-and-stability.lecture.n.md
Download PDF

Introduction to Direction Fields, Euler's Method, Error, and Stability

date2026-07-16document_iddoc_b18e1753cd1f82c741b1d8c125d5f897description方向場と Euler 法を、解析解が得られない場合の挙動把握・誤差評価・数値安定性の入口として整理する。prerequisites微分方程式とは何か / 初期値問題の存在・一意性と最大存在区間type講義content_typelecturestatusactiverelateddata/lecture/math/differential-equations/existence-uniqueness-and-lipschitz-condition.lecture.n.md / data/lecture/math/differential-equations/singular-solutions-and-envelopes.lecture.n.md / data/lecture/math/differential-equations/beyond-euler-runge-kutta-and-implicit-methods.lecture.n.md / data/lecture/math/differential-equations/first-order-ode-solution-diagnostics.lecture.n.md / data/exercise/math/differential-equations/numerical-ode-methods.exercise.n.md
mathdifferential-equationsnumerical-methodslecture

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

y=f(x,y),y(x0)=y0.

A direction field assigns a line segment of slope f(x,y) to each point (x,y). 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 y=f(x,y) at the current point therefore indicates the direction in which y 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 y(x0)=y0 and a step size h, Euler's method uses

xn+1=xn+h,yn+1=yn+hf(xn,yn).

Fix a finite interval contained in the maximal interval of existence. Assume that the exact solution is twice continuously differentiable there and that |y'| is bounded. The Taylor expansion

y(x+h)=y(x)+hy(x)+O(h2)

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 O(h2). Under the alternative convention in which the defect is divided by h and called the local truncation error, its order is O(h).

Assume in addition that f is Lipschitz continuous in y 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 O(h) on the fixed finite interval. This conclusion must not be asserted without the required smoothness and Lipschitz hypotheses.

5Examples

5.1A Growing Solution

For

y=y,y(0)=1,

and h=0.1, Euler's method gives yn+1=1.1yn. Hence y1=1.1 and y2=1.21. Comparison with the exact solution ex shows that reducing the step size improves the approximation.

5.2A Stability Restriction

Consider

y=ay,a<0.

The exact solution decays, whereas Euler's method gives

yn+1=(1+ah)yn.

The numerical solution decays only if |1+ah|<1. For example, if a=-10 and h=0.3, then 1+ah=-2. 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 f(xn,yn) at the current point. Backward Euler instead uses the slope f(xn+1,yn+1) at the next point and requires the equation

yn+1=yn+hf(xn+1,yn+1)

to be solved. Because the unknown yn+1 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 y=ay, Backward Euler gives

yn+1=11-ahyn.

If a<0, then 1-ah=1+|a|h>1 for every h>0, and hence |1/(1-ah)|<1 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.

FeatureInformation supplied by the direction field
Zero-slope curvesCurves on which f(x,y)=0; such a curve is not necessarily itself a solution
Equilibrium solutionsHorizontal solutions y=c for constants c satisfying f(x,c)=0 for every x
Increase or decreaseThe sign of the slope
Candidates for stabilityWhether nearby line segments point toward an equilibrium; the conclusion must be confirmed by sign analysis or another rigorous argument
Candidates for rapid variationRegions 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.

10Previous Lecture

data/lecture/math/differential-equations/singular-solutions-and-envelopes.lecture.n.md

11Next Lecture

data/lecture/math/differential-equations/beyond-euler-runge-kutta-and-implicit-methods.lecture.n.md

12Exercises

data/exercise/math/differential-equations/numerical-ode-methods.exercise.n.md
raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる