13 min学习

ODE常微分方程总结

一阶常微分方程解法总结:可分离变量、齐次方程、线性方程、伯努利方程、恰当方程与积分因子。

目录21 节

教材:[DLI-BSc-Mathematics-Documents/Ordinary Differential Equatrions.pdf at main · JavaZeroo/DLI-BSc-Mathematics-Documents (github.com)](https://github.com/JavaZeroo/DLI-BSc-Mathematics-Documents/blob/main/y3s2/常微分方程/Ordinary Differential Equatrions.pdf)

第一章

Explicit First Order Equations

这种形式的

y=f(x,y)y' = f(x, y)

称为 'Explicit First Order Equations' 。

y=f(x)

1. Equations with Separated Variables

y=f(x)g(y)y' = f(x)g(y)

这种可以直接变成 dyg(y)=f(x)dx\frac{dy}{g(y)}=f(x)dx

积分完后

dyg(y)=f(x)dx\int\frac{dy}{g(y)}=\int f(x)dx

IVP: y(ξ)=ηy(\xi)=\eta

ηydyg(y)=ξxf(x)dx\int^y_{\eta}\frac{dy}{g(y)}=\int^x_{\xi} f(x)dx

这里需要注意的是如果g(y(ξ))=g(η)=0g(y(\xi))=g(\eta)=0 那么,直接就有 y=0y'=0 因此y=ηy=\eta ;

2. 普通的替换

y=f(ax+by+c)y'=f(ax+by+c)

这种情况用u(x)=ax+by+cu(x) = ax+by+c 去替换掉变量xx 。原理是u=a+by(x)=a+bf(u)u'=a+by'(x)=a+bf(u)。很关键的一点是,uuyy 都是一次的。求导后刚好是线性关系。

因此 最后得出的u(x)u(x)后可以直接利用u(x)=ax+by+cu(x)=ax+by+c得到yy

3. 普通的Homogeneous Differential Equation

y=f(yx)y'=f\left(\frac{y}{x}\right)

同样的道理用u(x)=y(x)x,(x0)u(x) = \frac{y(x)}{x}, (x\neq0)替换掉变量yy。有y=u+xu=f(yx)y'=u+xu'=f(\frac{y}{x}) ,可得u=f(u)uxu'=\frac{f(u)-u}{x}

因此 最后得出的u(x)u(x)后可以直接利用u(x)=y(x)xu(x)=\frac{y(x)}{x}得到yy

4. 高级的 Homogeneous Differential Equation

y=f(ax+by+cαx+βy+γ)y'=f\left(\frac{ax+by+c}{\alpha x+\beta y+ \gamma}\right)

这个的核心思想是转换成“普通的Homogeneous Differential Equation”。

首先分析行列式

abαβ\left | \begin{matrix} a &b \\ \alpha &\beta \\ \end{matrix} \right |
  1. 行列式为零时,说明a=λaα,b=λbβa=\lambda_a \alpha, b=\lambda_b \beta 此时 可以直接转换成“普通的Homogeneous Differential Equation”
  2. 行列式不为零的时候,说明方程组有唯一解。

首先解方程组

{ax+by+c=0αx+βy+γ=0\left\{\begin{align} ax+by+c&=0\\ \alpha x+\beta y+ \gamma&=0\\ \end{align}\right.

可以解出一组(x0,y0)(x_0, y_0) 利用这组解将**“高级的 Homogeneous Differential Equation”转换成“普通的Homogeneous Differential Equation”**。

原理是新建坐标系得xˉ:=xx0,yˉ:=yy0\bar{x}:=x-x_0, \bar{y}:=y-y_0 那么在这个坐标系下面原方程就变成了yˉ(xˉ):=y(xˉ+x0)y0\bar{y}(\bar{x}):=y(\bar{x}+x_0)-y_0。对这个方程求导可以将yy消掉,将原问题变yˉ\bar{y}xx的关系。这样做的目的就是将**“高级的 Homogeneous Differential Equation”转换成“普通的Homogeneous Differential Equation”**。

yˉ\bar{y}求导后可以发现(利用方程yˉ(xˉ):=y(xˉ+x0)y0,ax0+by0+c=0,αx0+βy0+γ=0\bar{y}(\bar{x}):=y(\bar{x}+x_0)-y_0, ax_0+by_0+c=0, \alpha x_0+\beta y_0+ \gamma=0

yˉ(x)dxˉ=y(xˉ+x0)=f(axˉ+byˉ(xˉ)αxˉ+βyˉ(xˉ))\frac{\bar{y}(x)}{d\bar{x}} = y'(\bar{x}+x_0)=f\left(\frac{a\bar{x}+b\bar{y}(\bar{x})}{\alpha\bar{x}+\beta\bar{y}(\bar{x})}\right)

这里就可以像刚才的普通的Homogeneous Differential Equation一样去做了。值得注意的是,这样解出来的yˉ\bar{y}需要转换成原来的yy。这里可以用

y(x):=y0+yˉ(xx0)y(x):=y_0+\bar{y}(x-x_0)

得到最后的yy

The Linear Differential Equation

这种形式的

y+g(x)y=h(x)y' + g(x)y=h(x)

称为 'The Linear Differential Equation' 。

这时有两种情况:h(x)=0h(x)=0h(x)0h(x)\neq0, 分别称为"homogeneous" 和"nonhomogeneous"

事实上当h(x)=0h(x)=0也就是"homogeneous"时,就是上面的"Explicit First Order Equations",这里就不在赘述了。

对于h(x)0h(x)\neq0的情况,也就是"nonhomogeneous"时,我们需要用到"Method of variation of constants"。

**Method of variation of constants:**这个方法首先计算出齐次的时候的通解。对于方程y+g(x)y=h(x)y'+g(x)y=h(x)他的齐次方程的通解是通过解y+g(x)y=0y'+g(x)y=0,可得

y=Ceg(x)dxy=C\cdot e^{-\int g(x)dx}

此时我们将常数CC作为一个与xx的函数C(x)C(x)。这个时候,只需要解出一个C(x)C(x)就是非齐次情况下的答案

那么现在的问题就变成了,如何得到一个C(x)C(x)使得y+g(x)y=h(x)y' + g(x)y=h(x)

首先先计算C(x)C'(x)

y=C(x)eg(x)dxy=(C(x))eg(x)+C(x)(eg(x)dx)y=C(x)eg(x)+C(x)(eg(x)dx(g(x)))y=C(x)eg(x)+C(x)(eg(x)dxg(x))y=Ceg(x)gCeg(x)dx\begin{align} y &=C(x)\cdot e^{-\int g(x)dx}\\ y'&=\left( C(x) \right)'\cdot e^{-\int g(x)}+C(x)\cdot \left( e^{-\int g(x)dx }\right)' \\ y'&=C'(x)\cdot e^{-\int g(x)}+C(x)\cdot \left( e^{-\int g(x)dx }\cdot\left(-\int g(x)\right)'\right) \\ y'&=C'(x)\cdot e^{-\int g(x)}+C(x)\cdot \left( e^{-\int g(x)dx }\cdot -g(x)\right) \\ &\Downarrow \\ y'&=C'\cdot e^{-\int g(x)}-gC\cdot e^{-\int g(x)dx} \end{align}

然后代入y+g(x)y=h(x)y' + g(x)y=h(x)

Lyy+g(x)y=h(x)Ly=Ceg(x)dxgCeg(x)dx+gCeg(x)dxLy=Ceg(x)dx=h(x)C(x)=h(x)eg(x)dxC(x)=h(x)eg(x)dxdx+C0\begin{align} L_y \equiv y' + g(x)y&=h(x)\\ L_y&=C'\cdot e^{-\int g(x)dx}-gC\cdot e^{-\int g(x)dx}+gC\cdot e^{-\int g(x)dx}\\ L_y&=C'\cdot e^{-\int g(x)dx}=h(x) \\ &\Downarrow \\ C'(x)&=h(x)\cdot e^{\int g(x)dx} \\ &\Downarrow \\ C(x)&=\int h(x)\cdot e^{\int g(x)dx}dx + C_0 \end{align}

现在我们可以知道,当y=C(x)eg(x)dxy=C(x)\cdot e^{-\int g(x)dx}C(x)=h(x)eg(x)dx+C0C(x)=\int h(x)\cdot e^{\int g(x)dx} + C_0时。,有y+g(x)y=h(x)y' + g(x)y=h(x)。这里有个二级结论

If y,yˉy, \bar{y}, yare two solutions to the nonhomogeneous equation Ly=hL_y = h, then L(yy)=LyLyˉ=0,i.e.,z(x)=yyˉL(y - y) = L_y - L_{\bar{y}} = 0, i.e., z(x) = y - \bar{y} is a solution of the homogeneous equation Ly=0L_y = 0. Thus all solutions y(x)y(x) of the nonhomogeneous equation can be written in the form

y(x)=yˉ+z(x)y(x)=\bar{y}+z(x)

这里面z(x)z(x)就是刚刚的y=Ceg(x)dxy=C\cdot e^{-\int g(x)dx}yˉ\bar{y}就是C(x)=h(x)eg(x)dx+C0C(x)=\int h(x)\cdot e^{\int g(x)dx} + C_0y=Ceg(x)dxy=C\cdot e^{-\int g(x)dx}的结合中的yy,也就是yˉ=(h(x)eg(x)dxdx+C0)eg(x)dx\bar{y}=\left(\int h(x)\cdot e^{\int g(x)dx}dx + C_0\right)\cdot e^{-\int g(x)dx}

Bernoulli's Equation

这种形式的

y+g(x)y+h(x)yα=0.α1y'+g(x)y+h(x)y^{\alpha}=0.\alpha \neq 1

非常的简单,只需要把yαy^{\alpha}解决了就可以了。等式去除yαy^{\alpha}

yyα+g(x)y(1α)+h(x)=0y'y^{-\alpha}+g(x)y^{(1-\alpha)}+h(x)=0

利用z=y(1α)    z=(1α)yαyz=y^{(1-\alpha)} \implies z'=(1-\alpha)y^{-\alpha}\cdot y'替换原式得

11αz+g(x)z+h(x)=0\frac{1}{1-\alpha}z'+g(x)z+h(x)=0

现在,就变成了nonhomogeneous的"The Linear Differential Equation"。最后解出zz,别忘了替换回yy

Exact differential equations

这种形式的

M(x,y)dx+N(x,y)dy=0, U(x,y) s.t. Ux(x,y)=M(x,y),Uy(x,y)=N(x,y)M(x,y)dx+N(x,y)dy=0,\\ \exists\ U(x, y)\ s.t.\ U_x(x,y)=M(x,y),U_y(x,y)=N(x,y)

xdx+ydy=0xdx+ydy=0 is an exact equation, and U(x,y)=1/2(x2+y2)U(x,y)=1/2 (x^2+y^2 )is a potential function.

Integrating Factors

Integrating Factors是用来让非 Exact 变成Exact differential equations。

E.g. ydx+2xdy=0ydx + 2xdy = 0 is not exact. However, it can easily be made an exact differential equation (in the domain x>0x > 0) by multiplying the equation by 1/x1/\sqrt{x}. The resulting differential equation

yxdx+2xdy=0\frac{y}{\sqrt{x}}dx+2\sqrt{x}dy=0

is exact, and a potential function is given by

F(x,y)=2yx=0 (x>0)F(x,y)=2y\sqrt{x}=0\ (x>0)

对于一个not excat differential equation我们需要找到一个Factor U(x,y)U(x,y) 使得U(x,y)M(x,y)dx+U(x,y)N(x,y)dy=0U(x,y)\cdot M(x,y)dx+U(x,y)\cdot N(x,y)dy=0变成一个Exact differential equations。

现在的问题就是,如何去找?首先令M=UM,N=UNM' = U\cdot M,N'=U\cdot N如果Fx=M,Fy=NF_x=M',F_y=N'则有My=NxM'_y=N'_x。利用这个关系可以知道

(UM)y=(UN)x    UyM+UMy=UxN+UNx\begin{align} &(U\cdot M)_y=(U\cdot N)_x\\ \implies &U_y\cdot M+U\cdot M_y=U_x\cdot N+U\cdot N_x \\ \end{align}

此时需要考虑,Integrating Factors是只与xx有关还是只与yy有关(只需要选一个)

  1. 假如只与xx有关则Uy=0U_y=0则有
UyM+UMy=UxN+UNxUMy=UN+UNx1UU=MyNxN(lnU)=MyNxNU=eMyNxNdx\begin{align} U_y\cdot M+U\cdot M_y&=U_x\cdot N+U\cdot N_x \\ U\cdot M_y &= U' \cdot N+U \cdot N_x \\ \frac{1}{U}U'&=\frac{M_y-N_x}{N} \\ (\ln U)'&=\frac{M_y-N_x}{N} \\ U&=e^{\int \frac{M_y-N_x}{N}dx} \end{align}
  1. 假如只与yy有关则Ux=0U_x=0则有
UyM+UMy=UxN+UNxUM+UMy=UNx1UU=NxMyM(lnU)=NxMyMU=eNxMyM\begin{align} U_y\cdot M+U\cdot M_y&=U_x\cdot N+U\cdot N_x \\ U'\cdot M+U\cdot M_y &= U \cdot N_x \\ \frac{1}{U}U'&=\frac{N_x-M_y}{M} \\ (\ln U)'&=\frac{N_x-M_y}{M} \\ U &=e^{\int \frac{N_x-M_y}{M}} \end{align}

Implicit First Order Differential Equations

这种形式的

F(x,y,y)=0F(x, y, y')=0

一般来说有两种解决办法。要么通过一些方法获得explicit differential equation,要么就用参数化。

在这里我们只讨论两种情况:

  1. F(x,y)=0F(x, y')=0 , F(y,y)=0F(y, y')=0
  2. y=f(x,y)y=f(x,y'), x=f(y,y)x=f(y,y')

第一种情况

对于F(x,y)=0F(x, y')=0 我们使用参数化:

{x=ϕ(t)y=ψ(t)\left\{\begin{array}{l} x=\phi(t) \\ y'=\psi(t) \end{array}\right.

此时方程变为F(ϕ(t),ψ(t))=0F(\phi(t), \psi(t))=0,同时我们有

y=dydx and ϕ(t)=dϕ(t)dtdy=ydx  and dϕ(t)=ϕ(t)dty=ydx+Cy=ψ(t)dϕ(t)+Cy=ψ(t)ϕ(t)dt+C\begin{align} y'&=\frac{dy}{dx} \ \text{and} \ \phi'(t)=\frac{d\phi(t)}{dt} \\ dy&=y'dx \ \ \text{and} \ d\phi(t)=\phi'(t)dt\\ y&=\int y'dx + C\\ y&=\int \psi(t)d\phi(t) + C \\ y&=\int \psi(t)\phi'(t)dt +C \end{align}

最后得到:

{x=ϕ(t)y=ψ(t)ϕ(t)dt+C\left\{\begin{array}{l} x=\phi(t) \\ y=\int \psi(t)\phi'(t)dt +C \end{array}\right.

第一种情况2

对于F(y,y)=0F(y,y')=0我们仍然参数化:

{y=ϕ(t)y=ψ(t)\left\{\begin{array}{l} y=\phi(t) \\ y'=\psi(t) \end{array}\right.

此时有F(ϕ(t),ψ(t)=0F(\phi(t),\psi(t)=0,同时有:

y=dydx and ϕ(t)=dydtdx=dyψ(t) and dy=ϕ(t)dtdx=ϕ(t)dtψ(t)dx=ϕ(t)dtψ(t)x=ϕ(t)dtψ(t)\begin{align} y'&=\frac{dy}{dx} \ \text{and} \ \phi'(t)=\frac{dy}{dt} \\ dx&=\frac{dy}{\psi(t)} \ \text{and} \ dy=\phi'(t)dt \\ dx&=\frac{\phi'(t)dt}{\psi(t)} \\ \int dx&= \int \frac{\phi'(t)dt}{\psi(t)} \\ x&=\int \frac{\phi'(t)dt}{\psi(t)} \end{align}

An Existence and Uniqueness Theorem

中文名是存在唯一性定理。首先我们介绍Lipschitz condition:

We consider the following initial value problem

y=f(x,y), for ξxξ+a, y(ξ)=ηy' = f(x,y),\ \text{for}\ \xi \leq x\leq \xi+a,\ y(\xi)=\eta

The main assumptions in the following theorem are that ff is continuous in the strip S=J×RS=J\times\mathbb{R} with J=[ξ,ξ+a]J=[\xi,\xi+a] and satisfies a Lipschitz condition with respect to yy in SS

f(x,y)f(x,yˉ)Lyyˉ|f(x,y)-f(x, \bar{y})|\leq L|y-\bar{y}|

No restrictions are placed on the value of the Lipschitz constant L0L\geq 0

然后引出存在唯一性定理:

Let fC(S)f \in C(S) satisfy the Lipschitz condition. Then the IVP has exactly one solution y(x)y(x). The solution exists in the interval J:ξxξ+aJ: \xi\leq x \leq\xi +a

The extension of solutions.

以下三个定理是用于 The extension of solutions.

1️⃣Local Lipschitz condition. The function f(x,y)f(x,y) is said to satisfy a local Lipschitz condition with respect to yy in DR2D\subset R^2 if for every (x0,y0)D(x_0,y_0 )\in D there exists a neighborhood U=U(x0,y0)U=U(x_0,y_0 ) and an L=L(x0,y0)L=L(x_0,y_0 ) such that in UDU\cup D the function ff satisfies the Lipschitz condition f(x,y)f(x,yˉ)Lyyˉ|f(x,y)-f(x,\bar{y})|\leq L|y-\bar{y}|.

2️⃣Theorem on local solvability If DD is open and fC(D)f\in C(D) satisfies a local Lipschitz condition in DD, then the IVP is locally uniquely solvable for(x0,y0)D (x_0,y_0 )∈D; i.e., there is a neighborhood II ofx0 x_0 such that exactly one solution exists in II.

3️⃣Theorem on the extension of solutions Let fC(D)f \in C (D) satisfy a local Lipschitz condition with respect to yy in DD. Then for every (x0,y0)D(x_0, y_0)\in D the initial value problem y=f(x,y),y(x0)=y0y' = f (x, y), y(x_0) = y_0 has a solution that can be extended to the left and to the right comes arbitrarily close to the boundary of DD.

最后我们有:

The Peano existence theorem. If f(x,y)f(x,y) is continuous in a domain DD and (ξ,η)(\xi,\eta) is a point in DD, then at least one solution of the differential equation y=f(x,y)y′=f(x,y) goes through (ξ,η)(\xi,\eta). Every solution can be extended to the left and to the right up to the boundary of DD.

Linear System

这里开始就是在讨论,常微分方程组。

Systems of n Linear Differential Equations

给出常微分方程组的形式:

y1=a11(t)y1++a1n(t)yn+b1(t)  y1=a11(t)y1++a1n(t)yn+b1(t)\begin{align} y_1' &= a_{11}(t)y_1+\cdots+ a_{1n}(t)y_n+b_1(t) \\ &\ \ \vdots \\ y_1' &= a_{11}(t)y_1+\cdots+a_{1n}(t)y_n+b_1(t) \\ \end{align}

或者:

y=A(t)y+b(t)where\hfillA(t)=(aij(t)), b(t)=(b1(t),,bn(t))\mathbf{y}'=A(t)\mathbf{y}+\mathbf{b}(t)\\ \text{where} \hfill \\ A(t)=(a_{ij}(t)),\ \mathbf{b}(t)=(b_1(t), \dots, b_n(t))^\top

值得一提的是,存在唯一性定理在常微分方程组也同样适用。

Homogeneous Linear Systems

对于齐次的形式,常微分方程组就变成了:

y=A(x)y\mathbf{y}'=A(x)\mathbf{y}

此时,根据存在唯一性定理有:

 exactly one solution y=y(t;τ,η) τJ,ηRn or \Cn\exist \text{ exactly one solution } \mathbf{y}=\mathbf{y}(t;\tau,\boldsymbol{\eta})\ \forall \tau \in J, \boldsymbol{\eta}\in \R^n\text{ or }\C^n

当然,齐次常微分方程组有一些重要的性质:

  1. y0 \mathbf{y} \equiv 0 in J J is a solution of the homogeneous linear systems.
  2. There exist nn linearly independent solutions 1,,yn_1,\dots,\mathbf{y}_n. Every such set of nn linearly independent solutions is called a fundamental system of solutions. If y1,,yn\mathbf{y}_1,\dots,\mathbf{y}_n is a fundamental system, then every solution y\mathbf{y} can be written in a unique way as a linear combination y=C1y1++Cnyn\mathbf{y}=C_1 \mathbf{y}_1+\dots+C_n \mathbf{y}_n.
  3. A system of nn solutions y1,,yn\mathbf{y}_1,…,\mathbf{y}_n can be assembled into an n×nn\times n solution matrix Φ(x)=(y1,,yn)\Phi(x)=(\mathbf{y}_1,\dots,\mathbf{y}_n ). If nn solutions y1,,yn\mathbf{y}_1,\dots,\mathbf{y}_n are linearly independent, then Φ(x)\Phi(x) is a system of nn solutions y1,,yn\mathbf{y}_1,\dots,\mathbf{y}_n can be assembled into an n×nn\times n solution matrix Φ(x)=(y1,,yn)\Phi(x)=(\mathbf{y}_1,\dots,\mathbf{y}_n ). If nn solutions y1,,yn\mathbf{y}_1,\dots,\mathbf{y}_n are linearly independent, then Φ(x)\Phi(x)is a Fundamental Matrix.

The Wronskian

现在讨论一下,齐次常微分方程的解,是线性无关还是线性相关。

  • The Wronskian. If Φ(x)=(y1,,yn)\Phi(x)=(\mathbf{y}_1,\dots,\mathbf{y}_n ) is a solution matrix of y=A(x)y\mathbf{y}^′=A(x)\mathbf{y}, then its determinant W(x)=Φ(x)W(x)=|\Phi(x)|is called the Wronskian determinant.

  • Theorem If y1,,yn\mathbf{y}_1,\dots,\mathbf{y}_n are linearly dependent in JJ, then the Wronskian W(x)0W(x)\equiv0.

  • Theorem If y1,,yn\mathbf{y}_1,…,\mathbf{y}_n is a fundamental system of equation y=A(x)y\mathbf{y}'=A(x)\mathbf{y}, then the Wronskian W(x)0W(x)\neq0 in JJ.

  • Theorem. There exists a fundamental system of solutions for equation y=A(x)y\mathbf{y}'=A(x)\mathbf{y}.

因此,我们先求出nn个解,然后再去判断这nn个解的Fundamental Matrix的行列式,也就是The Wronskian,是否为零。

Inhomogeneous Systems

对于非齐次的常微分方程组,就是最开始样子:

y=A(t)y+b(t)\mathbf{y}'=A(t)\mathbf{y}+\mathbf{b}(t)

下面这个定理类似线性代数,非齐次方程组的通解是,齐次方程组的通解+非齐次方程组的特解:

  • Theorem. Let y~(x)\tilde{\mathbf{y}}(x)be a fixed solution of the inhomogeneous equation (1). If y0(x)\mathbf{y}_0 (x) is an arbitrary solution of the homogeneous equation, then y(x)=y~(x)+y0(x)\mathbf{y}(x)=\tilde{\mathbf{y}}(x)+\mathbf{y}_0 (x)is a solution of the inhomogeneous equation, and all solutions of the inhomogeneous equation are obtained in this way.