全微分による1次近似計算
黒田紘敏(理学研究院 数学部門)
数理解析学特論A /フロンティア数理物質科学II 第4回
2020年6月4日
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 1 / 24
Review (Tangent line)
Theorem (接線の方程式)
曲線 y= f(x)のx= aにおける接線の方程式は y = f′(a)(x−a)+ f(a) で与えられる.
(Ref. http://www.ftext.org/text/subsubsection/2469)
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
Review (Approximate calculation by tangent line)
Example
sin 59◦の近似値を1次近似で求めてみる.
y =sinxのx =π/3における接線lは l: y= 1
2 x+
√3 2 − π
6 なので,x ≒π/3ならば
sinx≒ 1 2 x+
√3 2 − π
6
が成り立つ.そこで,x=59◦ =59π/180とすれば
sin 59◦ ≒
√3
2 − π
360 ≒ 1.7320
2 − 3.1415
360 = 0.85727· · ·
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 3 / 24
Review (First-order approximation) 微分係数の式
xlim→a
f(x)− {f′(a)(x−a)+ f(a)}
x−a =0
より
f(x)− {f′(a)(x−a)+ f(a)}= terms of(x−a)2,(x−a)3,(x−a)4, . . . と考えられる.
1次近似の公式
f(x)を滑らかな関数とすると
f(x) ≒ f(a)+ f′(a)(x−a) (|x−a| ≪ 1)
が成り立つ.誤差はおよそC|x−a|2程度で,定数Cは2階微分 f′′の大 きさに依存する.
つまり,微分可能であるとは1次近似ができることと考えればよい.
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
Aim and Contents
前回は微分法を用いて関数の多項式近似を考えられることを学んだ.
Aim
多変数関数に関する微分法を見直し,微分積分学と線形代数学の関係の 一端に触れる.
We review the differential method for multivariable functions and consider the relationship between Calculus and Linear Algebra.
Contents
1 Review
2 接平面(Tangent plane)
3 全微分と1次近似(Total differentiation and First-order approximation)
4 BZ反応の解析,線形化問題(Linearized problem of Oregonator)
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 5 / 24
接平面(tangent plane) 関数 z = f(x,y)のグラフは曲面となる.
D
0 x
y z
z=f(x,y)
D
0 x
y z
z=f(x,y)
f(x,y) = p
1−x2−y2, D ={(x,y)| x2+y2 ≤1}とおけば z = f(x,y) (⇐⇒ x2+y2+z2 =1, z≥ 0)
は原点中心で半径1の球面の上半分(北半球, Northern Hemisphere).
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
接平面(tangent plane)
関数 y= f(x)のグラフは曲線で,その1次近似は直線(接線)となる.
Figure:Tangent line Figure:Tangent plane
2変数関数のグラフは曲面であり,その1次近似は平面(接平面)となる.
地球は丸いが,自分の周りを見回しても地球の大きさに対してごく局所 的な範囲しか見えないため平面に感じる.これが接平面である.
(The earth is of course round. However, when standing on the ground, you can only see a very local area relative to the size of the earth. Therefore, the ground feels flat. This is the tangent plane.)
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 7 / 24
接平面(tangent plane)
Theorem (接平面の方程式)
曲面 z = f(x,y)上の点(a,b,f(a,b))における接平面の方程式は z= f(a,b)+ fx(a,b)(x−a)+ fy(a,b)(y−b) で与えられる.
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
1次近似(First-order approximation)
A1(a,b,0), A2(a+h,b,0), A3(a+h,b+k,0), A4(a,b+ k,0)とおくと B3(a+h,b+k,f(a+h,b+k)), B3′(a+h,b+k, f(a,b)+fx(a,b)h+fy(a,b)k) なので,|h| ≪ 1,|k| ≪ 1ならば,B3とB3′ のz座標について
f(a+h,b+ k) ≒ f(a,b)+ fx(a,b)h+ fy(a,b)k と考えられる.
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 9 / 24
全微分(total differentiation) 得られた近似式
f(a+h,b+ k) ≒ f(a,b)+ fx(a,b)h+ fy(a,b)k は
f(a+h,b+ k)− f(a,b) ≒ fx(a,b)h+ fy(a,b)k とも表せる.これはxとyが両方とも微小変化すれば
(f の変化量)≒ fx(a,b)×(xの変化量)+ fy(a,b)×(yの変化量)
と見積もれる.そこで
∆f = f(x+∆x,y+∆y)− f(x,y) ≒ fx(x,y)∆x+ fy(x,y)∆y で変化量∆x,∆yを0に極限をとった式を
d f = fx(x,y)dx+ fy(x,y)dy
で表し,関数 f の全微分(total differentiation)という.これを用いると,
次のような1次近似計算が出来る.
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
全微分による誤差評価(Error evaluation by total differentiation)
Problem
C =90◦ の直角三角形ABCがある.簡易計測では2辺ACとBCの長さ がそれぞれ3mと4mであったのでAB=5mと判断した.しかし,実際 に精密な計測を行ったところそれぞれの辺の長さは3.02mと4.01mで あった.このとき,ABの長さと5mとの誤差はどの程度か?
There is a right-angled triangle ABC withC =90◦. In the simple
measurement, the lengths of the two sides AC and BC were 3 meters and 4 meters, respectively, so AB was determined to be 5 meters. However, when the precise measurement was actually performed, the length of each side was 3.02 meters and 4.01 meters.
At this time, what is the error between the length of AB and 5 meters?
q
(3.02)2+(4.01)2−5=?
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 11 / 24
全微分による誤差評価(Error evaluation by total differentiation) x =AC, y= BC, z= ABとおけば,z= z(x,y) = p
x2+y2である.こ の全微分は
d z= zxdx+zydy= x px2+y2
dx+ y
px2+y2 dy
であるから,x=3, ∆x =0.02, y= 4, ∆y =0.01として近似値は z(3+0.02,4+0.01)− z(3,4)≒ 3
√32+42
·0.02+ 4
√32+42
·0.01= 0.02
より,測定誤差はおよそ0.02mである.なお,計算機で計算すると q
(3.02)2+(4.01)2−5= 0.020009960149481643· · ·
なので,今回は1次近似でも十分な誤差評価が行えているとみてもよさ そうである.
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
全微分による相対誤差評価(Relative error evaluation by total differentiation)
Problem
直円柱の高さ hと底面の半径 rを実測し体積V を計算したいが,測定機 器の精度として高さhは0.2%以内,半径rは0.1%以内の相対誤差が出 るとする.このとき,体積Vの相対誤差はどの程度か?
We want to calculate the volume V of a right cylinder by measuring the height h and the radius r of the base. Due to the accuracy of the
measuring equipment, it is assumed that the relative error is within 0.2%
for the height h and 0.1% for the radius r.
At this time, what is the relative error of volume V?
(Remark)
絶対誤差(absolute error) =測定値−理論値 =⇒ ∆V 相対誤差(relative error) =(測定値-理論値)/理論値 =⇒ ∆V V
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 13 / 24
全微分による相対誤差評価(Relative error evaluation by total differentiation)
Problem
高さ hは0.2%以内,半径rは0.1%以内の相対誤差が出るとする.この とき,直円柱の体積Vの相対誤差はどの程度か?
V = πr2hであるから,全微分は dV = ∂V
∂r dr+ ∂V
∂h dh =2πrh dr+πr2dh より
dV
V = 2πrh
V dr+ πr2
V dh =2 dr r + dh
h となる.そこで,相対誤差 ∆V
V を全微分を用いて1次近似すれば ∆V
V
≒2∆r r + ∆h
h
≦2 ∆r r
+∆h h
≦2·0.001+0.002=0.004 となり,Vの相対誤差はおよそ0.4%以内であると見積もれる.
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
(Review) Belousov-Zhabotinsky reaction
有名な振動化学反応(oscillating chemical reactions)
Oxidant(酸化剤) NaBrO3,臭素酸ナトリウム
Reductant(還元剤) CH2(COOH)2,マロン酸
Acid H2SO4,硫酸
Catalyst(触媒) Ce3+,Ce4+,セリウムイオン Redox indicator(指示薬) Fe(phen)32+,フェロイン
2BrO3−+3CH2(COOH)2+2H+
−→2BrCH(COOH)2+3CO2+4H2O
酸化反応と還元反応が交互に繰り返され,指示薬の色が変わる.
(A state of the solution oscillates between the oxidation state and the reduced state.)
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 15 / 24
(Review) Mathematical model of the BZ reaction
x≈ [HBrO2], z ≈[Ce4+] 質量作用の法則より,次の数理モデルが立てられる.
Oregonator
ε dx(s)
ds = x(s) 1−x(s)− pz(s) x(s)−q x(s)+q d z(s)
ds = x(s)−z(s)
ここで,式に現れるパラメータは実験により
ε ≒9.90×10−3, q ≒7.62×10−4, p=1
であることが知られている.とりあえずεとqは十分小さいと思ってお けばよい.(Consider thatεandqare small enough.)
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
Nullcline
Oregonator
x˙ = F(x,z)= 1 ε
(
x(1−x)− pz x−q x+q )
˙z= G(x,z)= x−z
Definition (nullcline) 曲線
F(x,z)= 0, G(x,z) =0 をnullclineと呼ぶ.
F(x,z)= 0 ⇐⇒ z= x(1−x)(x+ q)
p(x−q) (=: f(x)) G(x,z)= 0 ⇐⇒ z= x
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 17 / 24
Nullcline
Question
曲線 z = f(x)と z= xの交点に軌道が収束していくことはないか?
(Does the solution trajectory converge to the intersection point of the curves?)
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
Nullcline
Oregonator
x˙ = F(x,z) = 1 ε
(
x(1−x)− pz x−q x+q )
=0 ⇐⇒ z= f(x)
˙z =G(x,z) = x− z= 0 ⇐⇒ z= x
Question
曲線 z = f(x)とz = xの交点(x∗,z∗)に軌道(x(s),z(s))がs → ∞で収束 していくことはないか?
(Does the solution trajectory(x(s),z(s))converge to the intersection point of the curves z = f(x)andz = xass → ∞?)
そこで,交点(x∗,z∗)の近くでの微分方程式の様子を調べてみる.
(Therefore, let us consider the state of the differential equation near the intersection point(x∗,z∗).)
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 19 / 24
線形化問題(Linearized problem)
F(x,z)を交点(x∗,z∗)の周りで1次近似すれば,|u|,|v| ≪1に対して F(x∗+u,z∗+v) ≒ F(x∗,z∗)+ ∂F
∂x(x∗,z∗)u+ ∂F
∂z(x∗,z∗)v
= Fx(x∗,z∗)u+Fz(x∗,z∗)v となる.よって,|u(s)|,|v(s)| ≪1に対して
F(x∗+u(s),z∗+v(s))≒ Fx(x∗,z∗)u(s)+ Fz(x∗,z∗)v(s) G(x∗+u(s),z∗+v(s))≒ Gx(x∗,z∗)u(s)+Gz(x∗,z∗)v(s)
(今回はG(x,z)が1次式なので近似というよりも等号だが,一般的な解 法として紹介する.)
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
線形化問題(Linearized problem) そこで,解(x(s),z(s))と交点(x∗,z∗)のずれを
u(s) := x(s)−x∗, v(s) := z(s)−z∗ とおくと,x˙ = u˙ なので
u˙ = F x,z = F(x∗+u,z∗+v)≒ Fx(x∗,z∗)u+Fz(x∗,z∗)v となる.よって,元の常微分方程式系は次の線形方程式
u(s)˙ = Fx(x∗,z∗)u(s)+Fz(x∗,z∗)v(s) v(s)˙ = Gx(x∗,z∗)u(s)+Gz(x∗,z∗)v(s)
で近似できる(Approximation problem).これはヤコビ行列(Jacobian matrix)を用いて
u˙ v˙
!
=
Fx(x∗,z∗) Fz(x∗,z∗) Gx(x∗,z∗) Gz(x∗,z∗)
u v
!
と表せる.
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 21 / 24
線形化問題(Linearized problem)
Oregonator
x˙ = F(x,z) = 1 ε
(
x(1−x)− pz x−q x+q )
=0 ⇐⇒ z= f(x)
˙z =G(x,z) = x− z= 0 ⇐⇒ z= x
もし解の軌道(x(s),z(s))が交点(x∗,z∗)に十分近ければ,
u(s) = x(s)−x∗, v(s)= z(s)−z∗ とおけば|u(s)|と|v(s)|は十分小さい ので
u˙ v˙
!
=
Fx(x∗,z∗) Fz(x∗,z∗) Gx(x∗,z∗) Gz(x∗,z∗)
u v
!
を近似的にみたすと考えられる.
(If the solution trajectory(x(s),z(s))is close enough to the intersection point(x∗,z∗)and setu(s) = x(s)−x∗, v(s)= z(s)−z∗, then|u(s)|and
|v(s)|are small enough and(u(s),v(s))is considered as an approximation of the above differential equation.)
数理解析学特論A (第 回) 全微分と線形変換 年 月 日
Conclusion
(Today’s topics)
1 接平面(Tangent plane)
2 全微分と1次近似(Total differentiation and First-order approximation)
3 BZ反応の解析,線形化問題(Linearized problem of Oregonator) 多変数関数でも1次近似により扱いやすい問題で近似することができる.
交点(平衡点)の周りでの様子を調べるために,1次近似を利用して線形 化問題を考えた.これを解析するために,次回以降は行列の固有値や線 形常微分方程式の解について説明する.
(In order to investigate the state around the intersection (equilibrium point), we considered a linearized problem using a first-order approximation. So next week, we will explain the solution for linear ODE systems.)
数理解析学特論A (第4回) 全微分と線形変換 2020年6月4日 23 / 24
References
神永正博,「超」入門微分積分(ブルーバックス),講談社,2012.
川添充・岡本真彦,思考ツールとしての数学,共立出版,2012.
荒木修・齋藤智彦,本質から理解する数学的手法,裳華房,2016.
相良紘 著,化学工学会 編,化学工学のための数学の使い方,丸善出版,
2014.
千葉逸人,工学部で学ぶ数学新装版,プレアデス出版,2009.
杉浦光夫,基礎数学2解析入門I,東京大学出版会,1980.
数理解析学特論A (第 回) 全微分と線形変換 年 月 日