markdown
方向場・Euler 法・誤差と安定性の入口md 31aa65a
lecture/math/differential-equations/direction-fields-euler-method-error-and-stability.lecture.n.md
Download PDF

方向場ほうこうば・Euler ほう誤差ごさ安定性あんていせい入口いりぐち

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

1導入どうにゅう

この講義こうぎでは、解析解かいせきかいられない場合ばあいでも、方向場ほうこうばかい傾向けいこう把握はあくし、Euler ほう近似解きんじかい構成こうせいし、誤差ごさ安定性あんていせい別概念べつがいねんとして確認かくにんする。

2なにくページか

標準形ひょうじゅんけい

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

である。方向場ほうこうばDirection field は、各点かくてん (x,y)かたむf(x,y)配置はいちした図式ずしきである。Euler ほうEuler method は、現在点げんざいてんかたむきでみじか直線近似ちょくせんきんじおこな数値解法すうちかいほうである。

3なぜこの方針ほうしんえらぶのか

微分びぶん局所的きょくしょてき一次近似いちじきんじあたえる。したがって、現在点げんざいてんy=f(x,y)評価ひょうかすれば、みじか区間くかんでは y がどちらへ変化へんかするかを推定すいていできる。方向場ほうこうばしきかずに全体傾向ぜんたいけいこう確認かくにんする道具どうぐであり、Euler ほうはその局所近似きょくしょきんじ反復はんぷくする方法ほうほうである。

4解法かいほうなが

初期値しょきち y(x0)=y0きざはば h設定せっていする。Euler ほうでは

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

更新こうしんする。最大存在区間さいだいそんざいくかん内部ないぶにある固定こていされた有限区間ゆうげんくかんえらび、厳密解げんみつかいが 2 回連続微分可能かいれんぞくびぶんかのう|y'|有界ゆうかいであるとする。このとき Taylor 展開てんかい

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

一次項いちじこう近似きんじである。ここでは、厳密げんみつあたいから 1 だけ Euler 更新こうしんしたときの欠損けっそん一歩欠損いっぽけっそんone-step defectぶ。この定義ていぎでは一歩欠損いっぽけっそんO(h2) である。欠損けっそんhったりょう局所打切きょくしょうちき誤差ごさ流儀りゅうぎでは、次数じすうO(h) になる。

さらに、fかい数値列すうちれつとどまる領域りょういきyかんして Lipschitz であるとする。一歩いっぽごとの誤差ごさ増幅ぞうふくをこの Lipschitz 定数ていすうおさえると、固定有限区間こていゆうげんくかんでの大域誤差たいいきごさglobal errorO(h) になる。なめらかさや Lipschitz 条件じょうけんかずに、この誤差次数ごさじすう断定だんていしてはならない。

5具体例ぐたいれい

5.1増加ぞうかするれい

y=y,y(0)=1

h=0.1 とすると、Euler ほうyn+1=1.1ynあたえる。したがって y1=1.1,y2=1.21 である。厳密解げんみつかい ex比較ひかくすると、きざはば縮小しゅくしょうすると近似きんじ改善かいぜんする。

5.2安定性あんていせい問題もんだいになるれい

y=ay,a<0

厳密解げんみつかい減衰げんすいする。Euler ほうでは

yn+1=(1+ah)yn

である。数値解すうちかい減衰げんすいするには |1+ah|<1必要ひつようである。たとえば a=-10h=0.3 では 1+ah=-2 となり、厳密解げんみつかい減衰げんすいするにもかかわらず数値解すうちかい振動しんどうしながら増大ぞうだいする。

6精度せいど安定性あんていせい区別くべつ

精度せいどは、きざはばちいさくしたとき厳密解げんみつかいへどのはやさで接近せっきんするかをあらわす。安定性あんていせいは、反復はんぷく誤差ごさ増幅ぞうふくするか抑制よくせいするかをあらわす。高精度こうせいど方法ほうほうでも、問題もんだいきざはば組合くみあわせによって不安定ふあんていになることがある。

7陰的方法いんてきほうほうへの接続せつぞく

Forward Euler ほう現在点げんざいてんかたむf(xn,yn)使用しようする。一方いっぽう、Backward Euler ほう次点じてんかたむf(xn+1,yn+1)使用しようし、

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

く。未知量みちりょう yn+1右辺うへんにも出現しゅつげんするため、各段階かくだんかい方程式ほうていしき計算負担けいさんふたんしょうじる。しかし減衰問題げんすいもんだいでは、安定性あんていせい改善かいぜんされることがある。

モデル方程式ほうていしき y=ay適用てきようすると、Backward Euler ほう

yn+1=11-ahyn

あたえる。a<0 なら、任意にんいh>0たいして 1-ah=1+|a|h>1 であるため、|1/(1-ah)|<1成立せいりつする。この比較ひかくは、数値解法すうちかいほう選択せんたくでは精度せいどだけでなく安定性あんていせい確認かくにんする必要ひつようがあることをしめす。

8方向場ほうこうば判定はんていできること

方向場ほうこうば厳密解げんみつかい生成せいせいしないが、解析前かいせきまえ診断しんだん有効ゆうこうである。

確認項目かくにんこうもく方向場ほうこうばからられる情報じょうほう
零傾斜曲線れいけいしゃきょくせんf(x,y)=0 となる曲線きょくせん。そこをとおかいとはかぎらない
平衡解へいこうかい定数ていすう c がすべての xf(x,c)=0たすときの水平解すいへいかい y=c
増減ぞうげんかたむきの符号ふごう
安定性候補あんていせいこうほ近傍きんぼう矢印やじるし平衡解へいこうかいかうかをみ、符号解析ふごうかいせきなどで確認かくにんする
急変区間きゅうへんくかん候補こうほかたむきのおおきい領域りょういきむ。数値安定性すうちあんていせい増幅率ぞうふくりつべつ判定はんていする

9どこまで成立せいりつするか

方向場ほうこうば解曲線かいきょくせん候補こうほ可視化かしかする道具どうぐであり、1 ほん厳密解げんみつかい安定性あんていせい証明しょうめいあたえるものではない。とくに一意性いちいせい仮定かていがない領域りょういきでは、1 ほんながれをあらわすと解釈かいしゃくしてはならない。Euler ほう入口いりぐちとして重要じゅうようだが、実用計算じつようけいさんでは Runge-Kutta ほう、Backward Euler ほう適応刻てきおうきざはばなどを検討けんとうする。

10まえ講義こうぎ

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

11つぎ講義こうぎ

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

12演習えんしゅうリンク

data/exercise/math/differential-equations/numerical-ode-methods.exercise.n.md

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

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
タブを全て閉じる