一階線型微分方程式と積分因子
mathdifferential-equationsfirst-orderintegrating-factorlecture
1導入
この講義では、積分因子を暗記する公式ではなく、左辺を積の微分に作り替えるための因子として導出する。
一階線型の標準形は
y'+p(x)y=q(x)
である。この形では、y' と y が別々に現れるため、そのまま積分しにくい。そこで、ある関数 \mu(x) を掛けて、
\mu y'+\mu p(x)y
を
(\mu y)'
という 1 個の微分にしたい。
2積分因子を導入する理由
\mu=e^{\int p(x)\,dx} という式は、積の微分公式から系統的に導出できる。
まず、直接積分できる形は
y'=q(x)
である。この形なら、左辺が 1 個の微分なので、そのまま積分できる。
一方、一階線型
y'+p(x)y=q(x)
では、左辺に y' と y が別々に現れる。p(x)y が存在するため、左辺をそのまま 1 個の関数の導関数として積分することはできない。
そこで、積の微分公式
(\mu y)'=\mu y'+\mu' y
を逆向きに適用する。もし元の左辺を
\mu y'+\mu' y
の形に作り替えられれば、左辺は 1 個の微分になり、積分できる。
ところが元の方程式には y'+p(x)y しかない。そこで両辺に未知の関数 \mu(x) を掛けて、
\mu y'+\mu p(x)y
を作る。積の微分と比べると、うまくいくためには
\mu'=\mu p(x)
であればよい。この条件から \mu を決めると、積分因子が自然に出る。
したがって、\mu を掛ける目的は、左辺を 1 個の積の導関数に変換し、直接積分できる形へ帰着することである。
3一階線型とは何か
一階線型微分方程式とは、
y'+p(x)y=q(x)
の形に書ける一階微分方程式である。ここで p(x),q(x) は x の関数であり、y や y^2 を含まない。
線型という用語は、L[y]=y'+p(x)y とおいたとき、L[ay_1+by_2]=aL[y_1]+bL[y_2] が成立することを意味する。この性質は、未知関数 y とその導関数 y' が積や非線型関数を介さずに現れることに対応する。たとえば
y'+xy=1
は一階線型である。一方、
y'+y^2=x
は y^2 を含むので、そのままでは一階線型ではない。
4命題1:積分因子の導出
仮定として、p,q が対象区間で連続であり、
y'+p(x)y=q(x)
を考える。\mu が対象区間で 0 にならず、
\mu'=\mu p(x)
を満たすなら、
(\mu y)'=\mu q(x)
が成立する。また、\mu\ne0 であるため、この変換後の方程式は元の方程式と同値である。
4.1証明
元の方程式の両辺に \mu を掛ける。
\mu y'+\mu p(x)y=\mu q(x)
仮定 \mu'=\mu p(x) により、左辺は
\mu y'+\mu' y
である。積の微分公式
(\mu y)'=\mu' y+\mu y'
より、
(\mu y)'=\mu q(x)
を得る。
逆に、(\mu y)'=\mu q(x) を積の微分公式で展開し、\mu'=\mu p(x) を代入すると、\mu y'+\mu p(x)y=\mu q(x) となる。\mu は対象区間で 0 にならないため、\mu で除して元の方程式を得る。
したがって一階線型を解く要点は、\mu'=\mu p(x) を満たす \mu を決定することである。
5積分因子の形
\mu'=\mu p(x)
は \mu\ne 0 の範囲で
\frac{\mu'}{\mu}=p(x)
と書ける。両辺を積分すると、
\log|\mu|=\int p(x)\,dx
である。したがって、積分因子として
\mu(x)=e^{\int p(x)\,dx}
を選べばよい。積分定数を入れると \mu に定数倍が付くだけであり、最終的な解の任意定数に吸収される。
6命題2:一般解の公式
仮定として、p,q が区間 I で連続であるとする。\mu=e^{\int p(x)\,dx} とおけば、一階線型方程式
y'+p(x)y=q(x)
の解は
y=\frac{\int \mu(x)q(x)\,dx+C}{\mu(x)}
で与えられる。
6.1証明
命題1より、
(\mu y)'=\mu q(x)
である。両辺を積分すると、
\mu y=\int \mu q(x)\,dx+C
である。\mu=e^{\int p(x)\,dx} は 0 にならないので、両辺を \mu で割って
y=\frac{\int \mu(x)q(x)\,dx+C}{\mu(x)}
を得る。
この証明は、一般解の公式が、積分因子によって方程式を直接積分できる形へ変換した結果であることを示す。
7例1:y'+y=x
y'+y=x
では p(x)=1,\ q(x)=x である。積分因子は
\mu=e^{\int 1\,dx}=e^x
である。両辺に e^x を掛けると、
e^x y'+e^x y=xe^x
である。左辺は
(e^x y)'
なので、
(e^x y)'=xe^x
である。積分して
e^x y=\int xe^x\,dx+C=(x-1)e^x+C
を得る。したがって
y=x-1+Ce^{-x}
である。
検算する。y'=1-Ce^{-x} だから、
y'+y=(1-Ce^{-x})+(x-1+Ce^{-x})=x
となり、元の方程式を満たす。
8定数変化法との関係
定数変化法は、一階線型を別の角度から解く方法である。
まず非同次項 q(x) を 0 にした同次方程式
y'+p(x)y=0
を解く。y=0 はこの同次方程式の解である。y\ne 0 の範囲では変数分離でき、
\frac{dy}{y}=-p(x)\,dx
から
y=Ce^{-\int p(x)\,dx}
を得る。C=0 とすれば、先に確認した零解もこの解族に含まれる。
非同次方程式では、この定数 C を関数 C(x) に変える。
y=C(x)e^{-\int p(x)\,dx}
とおく。ここで
\mu=e^{\int p(x)\,dx}
とすれば
\mu y=C(x)
である。積分因子法で得た
(\mu y)'=\mu q(x)
は、
C'(x)=\mu q(x)
と同じ意味である。つまり定数変化法は、同次解の定数を動かして非同次項に対応する方法であり、積分因子法と同じ構造を持つ。
9線型作用素による表現
左辺を
L[y]=y'+p(x)y
と書くと、一階線型方程式は
L[y]=q(x)
である。これは線型作用素の方程式である。同次方程式 L[y]=0 の解は核 \ker L にあたり、非同次方程式の一般解は
\text{特殊解}+\text{同次解}
の形になる。
この作用素表現は、後続の二階線型方程式や連立系でも使用する。
data/lecture/math/linear-operator/linear-operator-equation-basics.lecture.n.md
10適用範囲
この方法は、方程式が
y'+p(x)y=q(x)
という線型の形に整理できる場合に適用する。p,q が区間 I で連続なら、I 内の点で指定した初期値に対し、I 全体で一意な解が存在する。
一方、
y'+p(x)y=q(x)y^n
のように y^n が現れる場合は、そのままでは一階線型ではない。ただし Bernoulli 型では、置換によって一階線型へ帰着できる場合がある。
data/lecture/math/differential-equations/bernoulli-equations.lecture.n.md
積分因子は、次の完全微分方程式では、微分形式を全微分へ変換する因子として一般化される。
data/lecture/math/differential-equations/exact-differential-equations.lecture.n.md
11演習リンク
data/exercise/math/differential-equations/first-order-linear-odes-and-integrating-factors.exercise.n.md
First-Order Linear Differential Equations and Integrating Factors
1Introduction
This lecture derives an integrating factor as a factor that converts the left-hand side of a first-order linear equation into the derivative of a product, rather than presenting it as a formula to memorize.
The standard form of a first-order linear equation is
y'+p(x)y=q(x).
Because y' and y occur as separate terms, the left-hand side cannot generally be integrated directly. The objective is to multiply the equation by a function \mu(x) so that
\mu y'+\mu p(x)y
becomes the single derivative
(\mu y)'.
2Why an Integrating Factor Is Introduced
The expression \mu=e^{\int p(x)\,dx} follows systematically from the product rule.
An equation of the form
y'=q(x)
can be integrated directly because its left-hand side is already one derivative. By contrast, in
y'+p(x)y=q(x),
the term p(x)y prevents the left-hand side from being integrated directly as the derivative of a single function.
Apply the product rule in reverse:
(\mu y)'=\mu y'+\mu' y.
If multiplication by an unknown function \mu(x) transforms the original left-hand side into
\mu y'+\mu' y,
then it becomes one derivative. Multiplication of the original equation by \mu gives
\mu y'+\mu p(x)y=\mu q(x).
Comparison with the product rule shows that the required condition is
\mu'=\mu p(x).
Thus the purpose of the integrating factor is to transform the left-hand side into the derivative of a product and thereby reduce the equation to direct integration.
3First-Order Linear Differential Equations
A first-order linear differential equation is an equation that can be written as
y'+p(x)y=q(x),
where p(x) and q(x) depend only on x.
The term linear means that, for L[y]=y'+p(x)y,
L[ay_1+by_2]=aL[y_1]+bL[y_2].
Equivalently, the unknown function and its derivative do not occur in products with each other or inside nonlinear functions. For example,
y'+xy=1
is first-order linear, whereas
y'+y^2=x
is not linear in y because it contains y^2.
4Proposition 1: Derivation of the Integrating Factor
Suppose that p and q are continuous on an interval and that
y'+p(x)y=q(x).
If \mu is nonzero on the interval and satisfies
\mu'=\mu p(x),
then
(\mu y)'=\mu q(x).
Moreover, because \mu\ne0, the transformed equation is equivalent to the original equation.
4.1Proof
Multiply the original equation by \mu:
\mu y'+\mu p(x)y=\mu q(x).
The assumption \mu'=\mu p(x) transforms the left-hand side into
\mu y'+\mu' y.
The product rule therefore gives
(\mu y)'=\mu q(x).
Conversely, expand (\mu y)'=\mu q(x) by the product rule and substitute \mu'=\mu p(x). This gives \mu y'+\mu p(x)y=\mu q(x). Since \mu is nonzero on the interval, division by \mu recovers the original equation.
Consequently, the essential step is to determine a function \mu satisfying \mu'=\mu p(x).
5Form of the Integrating Factor
On a range where \mu\ne0, the equation \mu'=\mu p(x) becomes
\frac{\mu'}{\mu}=p(x).
Integration gives
\log|\mu|=\int p(x)\,dx.
One may therefore choose
\mu(x)=e^{\int p(x)\,dx}.
An integration constant only multiplies \mu by a nonzero constant, which is absorbed into the arbitrary constant in the final solution.
6Proposition 2: General-Solution Formula
Suppose that p and q are continuous on an interval I. With
\mu=e^{\int p(x)\,dx},
the solutions of
y'+p(x)y=q(x)
are given by
y=\frac{\int \mu(x)q(x)\,dx+C}{\mu(x)}.
6.1Proof
Proposition 1 gives
(\mu y)'=\mu q(x).
Integrating both sides yields
\mu y=\int \mu q(x)\,dx+C.
Since \mu=e^{\int p(x)\,dx} is nonzero, division by \mu gives
y=\frac{\int \mu(x)q(x)\,dx+C}{\mu(x)}.
Thus the formula results directly from transforming the equation into an integrable product derivative.
7Example 1: y'+y=x
For
y'+y=x,
we have p(x)=1 and q(x)=x. An integrating factor is
\mu=e^{\int 1\,dx}=e^x.
Multiplication by e^x gives
e^x y'+e^x y=xe^x.
The left-hand side is (e^x y)', so
(e^x y)'=xe^x.
Integration yields
e^x y=\int xe^x\,dx+C=(x-1)e^x+C,
and hence
y=x-1+Ce^{-x}.
To verify the result, note that y'=1-Ce^{-x}. Therefore,
y'+y=(1-Ce^{-x})+(x-1+Ce^{-x})=x.
8Relation to Variation of Constants
Variation of constants provides another derivation for the solution of a first-order linear equation. First consider the associated homogeneous equation
y'+p(x)y=0.
The zero function is a solution. On a branch where y\ne0, separation gives
\frac{dy}{y}=-p(x)\,dx,
and hence
y=Ce^{-\int p(x)\,dx}.
Allowing C=0 includes the zero solution. For the nonhomogeneous equation, replace the constant C by a function C(x):
y=C(x)e^{-\int p(x)\,dx}.
If \mu=e^{\int p(x)\,dx}, then
\mu y=C(x).
The integrating-factor equation
(\mu y)'=\mu q(x)
is therefore equivalent to
C'(x)=\mu q(x).
Variation of constants and the integrating-factor method express the same transformation: the constant multiplying a homogeneous solution is varied to account for the nonhomogeneous term.
9Linear-Operator Formulation
Define
L[y]=y'+p(x)y.
Then the first-order linear equation is
L[y]=q(x).
This is an equation for a linear operator. The solutions of the homogeneous equation L[y]=0 form the kernel \ker L, and the general solution of the nonhomogeneous equation has the form
\text{particular solution}+\text{homogeneous solution}.
The same operator formulation will be used for second-order linear equations and systems of equations.
data/lecture/math/linear-operator/linear-operator-equation-basics.lecture.n.md
10Scope of the Method
The integrating-factor method applies when an equation can be written in the linear form
y'+p(x)y=q(x).
If p and q are continuous on an interval I, then an initial value prescribed at a point in I determines a unique solution on all of I.
An equation of the form
y'+p(x)y=q(x)y^n
is not linear in y as written. A Bernoulli equation of this form can sometimes be transformed into a first-order linear equation by substitution.
data/lecture/math/differential-equations/bernoulli-equations.lecture.n.md
In the next lecture, the integrating-factor concept is generalized to a factor that transforms a differential form into a total differential.
data/lecture/math/differential-equations/exact-differential-equations.lecture.n.md
11Exercises
data/exercise/math/differential-equations/first-order-linear-odes-and-integrating-factors.exercise.n.md